git - 虽然经常使用,但还是随手记录一下吧
git checkout -b branchName
git push
git push origin :branchName
或
git push origin --delete branchName
- 更新远程分支, -p表示如果远程被删除了,本地的也会被删除
git pull -p
git checkout -b branchName origin/branchName
git branch -D branchName
git reset --hard commitId
git add .
git commit -m log
git pull
git push
git init
git remote add origin https://github.com/zhouhuafei/test.git
git push --set-upstream origin master
git remote remove origin
git config --global credential.helper store
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。