Git 常用命令随记
git 常用命令随记
删除本地仓库的版本信息,用于下载别人的仓库后,修改后推送到自己的仓库
find . -name ".git" | xargs rm -Rf
为本地仓库添加新的远程存储库
git remote add origin https://gitee.com/xxxxxxxxxx
推送本地库到远程分支
git push origin master
设置远程上游分支
git push --set-upstream origin master
保存远程仓库的账户和密码
git c
原创
2021-03-18 22:28:42 ·
102 阅读 ·
0 评论