有远程库也能正常push
,但在本地master
分支上不显示your branch is up-to-date with 'origin/master'
。
找了好久,发现是在我这样的操作之后没有的提示消息的。。
git remote rm origin
git remote add origin git@github.com:username/repository.git
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
解决了。。少了一行命令: