Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How does someone PULL all branches at one time

Would like to to PULL all the Remote branches in the list at one time instead of pulling one at a time. I run this alot and if there is a way it would save me some hassle and time.

Capture.JPG

1 answer

0 votes
Mike Corsaro Atlassian Team Apr 26, 2018

Hello! You can do this via a "Custom Action":

  • Go to Tools > Options > Custom Actions
  • Click "Add"
    • Menu caption: give this a name like "Pull all remote branches"
    • Make sure "Show Full Output" and "Run command silently" are unchecked so that you can debug your script
    • Script to run: make a new file called "pull_all.bat" or something like that. Edit the file to contain a script that does what you'd like to do (I'm not sure how to pull all remote branches so you'll need to figure out this part yourself)
    • Parameters: this should be $REPO
  • Click "OK"
  • You can now find your custom action under "Actions > Custom Actions"

 

For the .bat script, make sure you use the parameter you pass so that you're working in your repo when the command runs:

cd %1
git "pull all branches script"

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,816 views 4 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you