git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git push doesn't update the status with multiple remotes

From
GGaroe <garoedp@gmail.com>
Date
Jul 11, 2016, 16:54 UTC
Message-ID
<5783CF57.1010105@gmail.com>
Hello,
I'm using git 1.9.1 in Ubuntu 14.04.

I have a repository on github, a clone on my desktop and bare repo on a private server, in my desktop the remotes looks like this

all git@github.com:user/repo.git (fetch) all git@github.com:user/repo.git (push) all user@server.com:user/repo.git (push) server user@server.com:user/repo.git (fetch) server user@server.com:user/repo.git (push) origin git@github.com:user/repo.git (fetch) origin git@github.com:user/repo.git (push)

If I commit to master in my desktop and run 'git push all master', the github and the server repos are correctly updated, but if I run 'git status' the message says:

Your branch is ahead of 'origin/master' by 1 commit.
   (use "git push" to publish your local commits)

The message won't update unless I run git fetch or git push origin master. I'd expect the git status to give me a updated status message after calling 'git push all master'.

Best regards, Garoe

Next: Johannes Sixt
Message 1 of 3 in “git push doesn't update the status with multiple remotes”
  1. GaroeJul 11, 2016
  2. Johannes SixtJul 12, 2016
  3. GaroeJul 12, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.