search

Home  >  Q&A  >  body text

git - Check the status after changing the file and committing it. The prompt "There are file changes that need to be pushed to the remote library" is not displayed.

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
巴扎黑巴扎黑2813 days ago869

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-02 09:31:20

    Solved. . One line of command is missing:

    git push -u origin master

    reply
    0
  • Cancelreply