git 备忘
rebase
git rebase -i commitId
revert
撤销某次操作,此次操作之前和之后的commit和history都会保留,并且把这次撤销作为一次最新的提交
reset
删除某次提交git reset --hard commitId
tag
git tag
show all tagsgit tag v0.0.1
git push origin v0.0.1
clone
git clone --depth=1 git://xxx
git clone -b dev git://xxxxx
git clone --recursive git://xxxx
remote
查看远程分支 git remote -v
设置多个远程仓库 git remote set-url --add origin git://xxxx