git init
git clone ssh://git@github.com/[username]/[repository-name].git
git status
git add
git add -A
git commit -m "[commit message]"
git rm -r
git branch
git branch
git branch -d
git checkout -b
git checkout -b
git branch -m [old branch name] [new branch name]
git checkout [branch name]
git merge [branch name]
git merge [source branch] [target branch]
git stash
git stash clear
git push origin
git push
git pull
git pull origin
git remote add origin ssh://git@github.com/[username]/[repository-name].git
git log
git diff [source branch] [target branch]
希望本指南内容对你有所帮助。还有其他我们错过的命令吗?如果是这样,请在评论中让我知道!
推荐阅读:
编程技巧 · 行业秘闻 · 技术动向