Product SiteDocumentation Site

1.3. Maintaining Tracking Branches

In order to keep your local repository up-to-date with the official one, there are a few simple commands needed for any tracking branches that you may have, including master and master-1.3.x.
First, you'll need to get the latest information from the remote repository:
git fetch origin


If you cloned from your personal GitHub fork instead of the official MantisBT repository as explained in Section 1.2.3, “Adding remotes”, then you should instead execute:
git fetch upstream
Then for each tracking branch you have, enter the following commands:
git checkout BranchName
git rebase
Alternatively, you may combine the fetch and rebase operations described above into a single pull command (for each remote tracking branch):
git checkout master
git pull --rebase