建立管理倉庫
git init
add和commit
git add readme.txt
git commit -m "wrote a readme file"
簡略版log
git
log-
-pretty=oneline--
abbrev
-commit
當前狀態
git status
撤銷更改
git
checkout--
*
版本回退
git
reset--
hard
head^
刪除錯誤提交
git
push
origin
head--
force
建立分支
git checkout -b dev
檢視分支
git branch
刪除分支
git branch -d dev
合併分支
git merge
推薦**
github
git中文學習
史上最淺顯易懂的git教程!
git常用命令
常用Git命令
下面是我在開發中常用的git命令 1.配置git git config global add user.email git config global add user.name 2.建立新的專案 git init git add git commit a m git remote add orig...
常用Git命令
附上一些git的常見命令 gitremote add origin git github.com myaccount myproject.git git push u origin master gitinit 建立repository git 命令 help 檢視幫助命令 touchfilenam...
常用git命令
修改新增至stage bash git add stage進版本 git commit m your message here 差異對比 git diff head 回退本地檔案 git checkout 若有stage撤銷至stage,沒有則撤銷至head 撤銷stage git reset he...