1. 程式人生 > >git 使用技巧

git 使用技巧

branch init 所有 clean not study blog dev detail

常見命令

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 . 添加所有的文件

git 使用技巧