I want to change the Git default remote branch destination so I could just
git push
Instead of:
git push upstream
>
It might be helpful to take a look at .git/config inside your repo, it will list all remotes and also the default remote for each branch
eg.
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@gitea.xxx.be:fii/web2016.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "bugfix/#8302"]
remote = origin
merge = "refs/heads/bugfix/#8302"
[branch "feature/#8331"]
remote = origin
merge = "refs/heads/feature/#8331"
[remote "scm"]
url = https://scm.xxx.be/git/web2016bs.git
fetch = +refs/heads/*:refs/remotes/scm/*
you can make manual changes in this file to remove an unwanted remote, or update the default remotes for the different branches you have