楼主: maxiaoan
1821 8

[原创博文] git-cheat-sheet-education.pdf [推广有奖]

  • 11关注
  • 3粉丝

已卖:326份资源

博士生

46%

还不是VIP/贵宾

-

威望
0
论坛币
4849 个
通用积分
403.7337
学术水平
6 点
热心指数
19 点
信用等级
16 点
经验
24262 点
帖子
411
精华
0
在线时间
89 小时
注册时间
2009-1-25
最后登录
2025-11-16

楼主
maxiaoan 在职认证  发表于 2019-6-19 08:57:35 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
git-cheat-sheet-education.pdf (97.85 KB, 需要: 2 个论坛币)

[url=]git-cheat-sheet-education.pdf 快捷查询,不过多介绍了,大家看标题应该都能够明白[/url]
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Education ducation cation ATION sheet

已有 2 人评分经验 收起 理由
yunnandlg + 20 精彩帖子
cheetahfly + 100 精彩帖子

总评分: 经验 + 120   查看全部评分

天天向上

沙发
cheetahfly(真实交易用户) 在职认证  发表于 2019-6-19 13:06:50
谢谢分享

藤椅
yunnandlg(未真实交易用户) 在职认证  学生认证  发表于 2019-6-25 07:33:40
谢谢分享

Git is the free and open source distributed version control system that's responsible for everything GitHub related that happens locally on your computer. This cheat sheet features the most important and commonly used Git commands for easy reference.

板凳
yunnandlg(未真实交易用户) 在职认证  学生认证  发表于 2019-6-25 07:35:35
INSTALLATION & GUIS
With platform specific installers for Git, GitHub also provides the ease of staying up-to-date with the latest releases of the command
line tool while providing a graphical user interface for day-to-day interaction, review, and repository synchronization.

GitHub for Windows
htps://windows.github.com

GitHub for Mac
htps://mac.github.com

For Linux and Solaris platforms, the latest release is available on the official Git web site.

Git for All Platforms
htp://git-scm.com

报纸
yunnandlg(未真实交易用户) 在职认证  学生认证  发表于 2019-6-25 07:36:06
SETUP
Configuring user information used across all local repositories
git config --global user.name “[firstname lastname]”
set a name that is identifiable for credit when review version history
git config --global user.email “[valid-email]”
set an email address that will be associated with each history marker
git config --global color.ui auto
set automatic command line coloring for Git for easy reviewing

地板
yunnandlg(未真实交易用户) 在职认证  学生认证  发表于 2019-6-25 07:36:48
STAGE & SNAPSHOT
Working with snapshots and the Git staging area
git status
show modified files in working directory, staged for your next commit
git add [file]
add a file as it looks now to your next commit (stage)
git reset [file]
unstage a file while retaining the changes in working directory
git diff
diff of what is changed but not staged
git diff --staged
diff of what is staged but not yet commited
git commit -m “[descriptive message]”
commit your staged content as a new commit snapshot

7
yunnandlg(未真实交易用户) 在职认证  学生认证  发表于 2019-6-25 07:37:14
BRANCH & MERGE
Isolating work in branches, changing context, and integrating changes
git branch
list your branches. a * will appear next to the currently active branch
git branch [branch-name]
create a new branch at the current commit
git checkout
switch to another branch and check it out into your working directory
git merge [branch]
merge the specified branch’s history into the current one
git log
show all commits in the current branch’s history

8
yunnandlg(未真实交易用户) 在职认证  学生认证  发表于 2019-6-25 07:37:37
INSPECT & COMPARE
Examining logs, diffs and object information
git log
show the commit history for the currently active branch
git log branchB..branchA
show the commits on branchA that are not on branchB
git log --follow [file]
show the commits that changed file, even across renames
git diff branchB...branchA
show the diff of what is in branchA that is not in branchB
git show [SHA]
show any object in Git in human-readable format

9
maxiaoan(未真实交易用户) 在职认证  发表于 2019-6-28 11:44:11 来自手机
maxiaoan 发表于 2019-6-19 08:57
git-cheat-sheet-education.pdf 快捷查询,不过多介绍了,大家看标题应该都能够明白
good boy

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-4 03:56