A workaround is to set up all branches right after cloning:
git branch -r | grep -Po '(?<=\sorigin/)[^\s]*' | \
grep -vF 'HEAD' | sort | uniq | while read -r B; do
git branch --set-upstream "$B" "remotes/origin/$B"
done
이희승 (Trustin Lee) wrote:
Hey folks,
If I pull from remote repositories before switching to other branch,
'git checkout' fails. For example, this is an ordinary situation:
http://pastebin.com/3uWi9qFx
while this is not expected:
http://pastebin.com/ShCUHuru
Anyone knows why?
--
Trustin Lee -
http://gleamynode.net/