Switching Branches—Git

If you have created more than one branch, you can switch to, or select, the branch you want to work with. When you switch to a new branch, you will see the files associated with that branch, and any new commits will be sent to the selected branch. By default, the master branch is selected.

You can use branches so multiple translators can work in individual workspaces, or you can use them as a space to make major changes in your project without affecting the original (e.g., when translating large sections of text, using new translation memories or machine translation). Changing branches allows you to save your commits to a new development environment that is separate from the original. When you change branches, you can edit existing files or create new files. When you commit your changes to the branch, they will not affect the files on your other branches.

There are three ways to switch branches:

  • Submenu Use this method if you already know which branch you want to use.
  • Branch Management Dialog Use this method if you want to perform additional management tasks before switching to a branch.
  • Source Control Explorer Use this method if you want to pick a branch based on whether it is published or unpublished.