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

How does someone PULL all branches at one time

Claudio Chiappetta April 25, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
April 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
AUG Leaders

Atlassian Community Events