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

代码项目初始化的时候获取branch应该把全程的所有branch都pull下来 #41

Closed
vTNT opened this issue Oct 20, 2017 · 0 comments

Comments

@vTNT
Copy link

vTNT commented Oct 20, 2017

不然代码里面branch只会有默认的branch 比如只有master
可以执行以下命令获取:
git branch -r | grep -v '->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all

@vTNT vTNT closed this as completed Oct 20, 2017
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