My remote repository has hundreds of branches, so fetch is configured conservatively:
% git config --get-all remote.origin.fetch +refs/heads/master:refs/remotes/origin/master refs/heads/release/2.5:refs/remotes/origin/release/2.5 When I'm trying to work with a new remote branch, argumentless pull does not work:
% git status On branch platform_4.33 nothing to commit, working tree clean % git pull --set-upstream origin platform_4.33 From github.com:eclipse-rcptt/org.eclipse.rcptt * branch platform_4.33 -> FETCH_HEAD Already up to date. % git pull Your configuration specifies to merge with the ref 'refs/heads/platform_4.33' from the remote, but no such ref was fetched. I can complete the configuration manually:
% git config --add remote.origin.fetch +refs/heads/platform_4.33:refs/remotes/origin/platform_4.33 % git pull From github.com:eclipse-rcptt/org.eclipse.rcptt * [new branch] platform_4.33 -> origin/platform_4.33 Already up to date. git config is cumbersome, error prone and requires manual pruning once branch is deleted. I do not care about "Remote Tracking Branches", remote.origin.fetch would be empty if it did not break git pull.
How can I configure git pull (without arguments) with fewer or with simpler commands?