I created a local repository and I typed:
git branch --set-upstream-to=origin/master
to set up the configuration of how the remote repository's branch connects to the local branch.
git push
works fine.
If I enter:
git config --get-regex branch.master
I get:
branch.master.remote origin
branch.master.merge refs/heads/master
which is what git added to the configuration using:
git branch --set-upstream-to=origin/master
But it turned out that the above command is not necessary. Is that correct?
Other repositories that I created with the same commands and without the above command seem to work fine and they push to the remote without any issues.
Since I think that that configuration is not needed, how do I remove the configuration entries from the affected local repository?
Here are the commands that I used to create all the local repositories (I also used the above command for the afflicted repository):
git init
git add .
git commit -m "Initial commit"
git remote add origin https://...git
Git pull origin master --allow-unrelated-histories
git push origin master
Regards, sp2012