It works fine if you have a remote library push
, but it does not display master
on the local your branch is up-to-date with 'origin/master'
branch.
After searching for a long time, I found that there was no prompt message after I did this operation. .
git remote rm origin
git remote add origin git@github.com:username/repository.git
Solved. . One line of command is missing: