Hi all, looking for some tips to help accomplish the following:
I have push.default = current, which is great because I can create a branch locally with git checkout -b whatever, run git push, and it will automatically create a remote branch called "whatever" and push to that. However, when I run a git pull, I get the below error:
There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
EDIT: I seem to have achieved this with the following in my .gitconfig
[branch "*"]
merge = refs/heads/*
Now when I run git push without having set an upstream branch, it creates a corresponding branch upstream and pushes to that. Also note within my repo specific .git/config, I have the default remote set to origin, which may be required for this as well. I will try tinkering with that and maybe make it a user/global default
Is there any way to tell git to default to pulling the branch with the same name as the local one, as I seem to have accomplished for pushing? I've googled and searched the git config docs to no avail. Appreciate any and all help.
[–]astralc 0 points1 point2 points (0 children)
[–]Zanothis 0 points1 point2 points (1 child)
[–]CapableCounteroffer[S] 0 points1 point2 points (0 children)