Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout untracked branches #89

Open
Fryie opened this issue Feb 26, 2015 · 0 comments
Open

Checkout untracked branches #89

Fryie opened this issue Feb 26, 2015 · 0 comments

Comments

@Fryie
Copy link

Fryie commented Feb 26, 2015

Just wondering if you would consider this behaviour (maybe configurable by an option setting) to be inside of the scope of this project?

I often have the case that there are new branches on the remote that I would like to automatically checkout and track, so this would be nice.

FWIW, the following bash snippet seemed to work for me (although it may be dependent on the exact git version), see this SO answer:

for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant