0x0 前言
如今邀泉,Git 大行其道买窟,頗有一統(tǒng)天下之勢(shì)。
如果你的技能樹(shù)上 Git 和 Github 的圖標(biāo)還沒(méi)有點(diǎn)亮的話贾铝,你都不好意思說(shuō)你是程序員隙轻。
0x1 54個(gè)命令助你乾坤大挪移
1: init
2: config
3: add
4: commit
5: clone
6: clone_to_folder
7: ignore
8: include
9: status
10: number_of_files_committed
11: rm
12: rm_cached
13: stash
14: rename
15: restructure
16: log
17: tag
18: push_tags
19: commit_amend
20: commit_in_future
21: reset
22: reset_soft
23: checkout_file
24: remote
25: remote_url
26: pull
27: remote_add
28: push
29: diff
30: blame
31: branch
32: checkout
33: checkout_tag
34: checkout_tag_over_branch
35: branch_at
36: delete_branch
37: push_branch
38: merge
39: fetch
40: rebase
41: repack
42: cherry-pick
43: grep
44: rename_commit
45: squash
46: merge_squash
47: reorder
48: bisect
49: stage_lines
50: find_old_branch
51: revert
52: restore
53: conflict
54: submodule
55: contribute
0x2 屌絲訓(xùn)練工具之Git木人巷--githug
sudo gem install githug
安裝成功后,在 Terminal 里進(jìn)入你常用的目錄垢揩,輸入githug
玖绿,會(huì)提示游戲目錄不存在,是否要?jiǎng)?chuàng)建一個(gè)叁巨,輸入y
然后回車:
根據(jù)提示cd git_hug
進(jìn)入游戲目錄斑匪,準(zhǔn)備開(kāi)始游戲。