guozeng / learngit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

git 命令说明


git init
git add

git commit -m xxxdd

git status
git diff


git log
git log --pretty=oneline
git reset --hard head^
git reset --hard 5f21eb7(版本号)

git reflog

暂存区概念

git remote add origin
git push -u origin master
git push origin master

git branch 查看分支
git branch dev 创建
git checkout dev 选择
git checkout -b dev 创建并选择
git merge  合并
git branch -d dev 删除

git branch confit test

About