首页 > 其他分享 >Git问题整理

Git问题整理

时间:2022-08-19 19:12:21浏览次数:82  
标签:origin Git remote 问题 push git 整理 com

删除 GitHub 所有 Commit 记录

git checkout --orphan latest_branch
git add -A
git commit -am "."
git branch -D master
git branch -m master
git remote set-url origin https://github.com/user/xxx.git
git push -f origin master

 

[git/GitHub] git push 时报错:fatal: remote error: You can’t push to git://github.com/user/xxx.git

https://www.cnblogs.com/memory4young/p/git-push-fatal-remote-error-can-not-push-over-the-git-protocol.html

 

标签:origin,Git,remote,问题,push,git,整理,com
From: https://www.cnblogs.com/georgechou/p/16603074.html

相关文章