my-git-wiki-doing
github项目quick setup
git初始化
git init
git添加remote
git remote add origin YOURS_REMOTE_URL
git修改remote的url
git remote set-url origin YOURS_NEW_REMOTE_URL
git设置push时当前branch对应的remote
git push --set-upstream origin master
查看远程和本地的所有分支
git branch -a
本地新增分支a
git checkout -b a
对应的远程新增分支a
git push
:
git push origin a:a
删除远程分支
git push origin :a
使当前local分支追踪remote的某一分支
git branch --set-upstream-to=
/ local-branch
git branch --set-upstream-to=origin/asset-manage asset-manage
学会勇敢