Currently, when I pull, I get changes from all the branches:
$ git pull
remote: ...
Unpacking objects: ...
From ssh://github.com/...
a69d94d..a2019da master -> origin/master
b684d4a..b8819dc develop -> origin/develop
+ 263c644..f1c1894 gh-pages -> origin/gh-pages (forced update)
Updating a69d94d..a2019da
I like this behavior, but I don't need to get content from the gh-pages
branch as that only contains generated content. How do I configure Git to fetch from all branches except some (gh-pages
). I'd also like to avoid ever seeing gh-pages
in my list of local branches.