常见命令
git init 将当前文件夹作为一个git 仓库来使用
git add
git add --all
git add -A
git commit
git commit --message “the message detail”
git commit -m "message detail"
git status
如果没有pull 代码,那么有几次commit 本地代码就是比远程代码多几个。
pikzas@Pikzas MINGW64 /c/develop/git/study (master)
$ git status
On branch master
Your branch is ahead of ‘orgin/master‘ by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
git add . 添加所有的文件