There is a question related to how to change the command parameters pushto avoid this message:
fatal: the upstream branch of your current branch does not match the name of your current branch
I am wondering how to suppress the message itself without changing the names of my local / remote branches or using fancy commands push.
Suppose I have a local branch tracking the remote branch of another name:
user@home:~ git branch -vv
branch-name abcd1234 [remote/origin/branch-name] last commit message
Now I want to push my modified changes just by typing git push. When I do this, I get the following message:
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
git push origin HEAD:remote/origin/branch-name
To push to the branch of the same name on the remote, use
git push origin branch-name
git , ? git 1.9.1