Git problem sorting

Delete all Commit records on GitHub

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

Guess you like

Origin blog.csdn.net/qq_39517716/article/details/106951036