git使用命令
刷新分支:git fetch
查看分支:`git branch`
创建分支:`git branch `
切换分支:`git checkout `或者`git switch `
创建+切换分支:`git checkout -b `或者`git switch -c `
合并某分支到当前分支:`git merge `
删除分支:`git branch -d `
版本回退: git reset --hard 0f38d62c9bc6bf7eabd50ead4859a984b7b9c3a0
查看分支:git branch -a
克隆项目: git clone git@10.5.0.182:piu-market-zhenxing/market-cms.git
–
…or create a new repository on the command line
echo "# butterfly" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin git@github.com:dingxinyuan/butterfly.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin git@github.com:dingxinyuan/butterfly.git
git branch -M master
git push -u origin master