Difference between revisions of "SourceTree Helpful Tips"

From PCGen Wiki
Jump to: navigation, search
(Created page with "== How to set up and update a forked repo == First, set up the parent repo: 1. Open your forked repo in SourceTree. 2. Select Settings in the toolbar. 3. In the "Remotes" pan...")
 
(How to set up and update a forked repo)
 
Line 3: Line 3:
  
 
1. Open your forked repo in SourceTree.
 
1. Open your forked repo in SourceTree.
 +
 
2. Select Settings in the toolbar.
 
2. Select Settings in the toolbar.
 +
 
3. In the "Remotes" pane, press "Add".
 
3. In the "Remotes" pane, press "Add".
 +
 
4. Enter any name you like, and the URL / path to the parent repo.
 
4. Enter any name you like, and the URL / path to the parent repo.
 +
 
5. Press OK, then OK.
 
5. Press OK, then OK.
 +
  
 
Now, to update:
 
Now, to update:
  
 
1. Select Pull in the toolbar.
 
1. Select Pull in the toolbar.
 +
 
2. In the "Pull from repository" dropdown, switch from your fork to the repo you just added.
 
2. In the "Pull from repository" dropdown, switch from your fork to the repo you just added.
 +
 
3. Press OK.
 
3. Press OK.
 +
 
4. (Optional) Once you pull, you may want to Push, to push the new content up to the server.
 
4. (Optional) Once you pull, you may want to Push, to push the new content up to the server.

Latest revision as of 13:16, 8 January 2015

How to set up and update a forked repo

First, set up the parent repo:

1. Open your forked repo in SourceTree.

2. Select Settings in the toolbar.

3. In the "Remotes" pane, press "Add".

4. Enter any name you like, and the URL / path to the parent repo.

5. Press OK, then OK.


Now, to update:

1. Select Pull in the toolbar.

2. In the "Pull from repository" dropdown, switch from your fork to the repo you just added.

3. Press OK.

4. (Optional) Once you pull, you may want to Push, to push the new content up to the server.