git使用小记
本地:
git status
git add .
git commit -am "first commit init project"
连接远程仓库
git remote add origin 项目github url
git push -u origin master 若报错,先git pull ,若还报错,git push -u -f origin master强制推
查看远程分支
git branch -r
git checkout -b v1.0 origin/master 新建分支
git push origin HEAD -u 推送到远程分支