查看幫助 git help <verb>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git <verb> --help
初始化新的repository? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git init?
查看文件狀態? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?git status
新建 .gitignore 文件,用來指明不追蹤的文件? ?touch .gitignore
add files to staging area? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git add -A
remove files from staging area? ? ? ? ? ? ? ? ? ? ? ? ?git reset
commit? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git commit -m " commit message"
查看更新日志? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git log
cloning a remote repository? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git clone <url><where to clone >?
viewing information about the? repository? ? ? ? git remote -v??
list all of the branches in our repository? both locally and remote? git branch -a
show changes in? files? ?git diff
pull changes? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?git pull origin master
push changes we've just made? ? ? ? ? ? ? ? ? ? git push origin master
新建分支? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?git branch <branch_name>
顯示所有分支? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git branch 不跟分支名
顯示merge過的分支名? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git branch --merged?
刪除分支? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?git branch -d <branch_name>
switch to branch? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? giy checkout <branch_name>
分支合并? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? git merge <branch_name>