Recently I added two new bash/zsh aliases to make my git experience just a tad better.
Most of our work repos were recently migrated to new remote urls, we scriped out the update to all of the repos, but I was left with a tracking error for all of my open branches. To easily resolve this I just made an alias so that I can just run trackme anytime I see this error.
There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream develop origin/<branch>
getting the branch #
The following command will always return the currently checked out branch name.
git symbolic-ref --short HEAD
Injecting this into the suggested...
...