Menu
AWS CodeCommit
User Guide (API Version 2015-04-13)

Working with Branches in AWS CodeCommit Repositories

What is a branch? In Git, branches are simply pointers or references to a commit. In development, they're a convenient way to organize your work. You can use branches to separate work on a new or different version of files without impacting work in other branches. You can use branches to develop new features, store a specific version of your project from a particular commit, and more.

In AWS CodeCommit, you can change the default branch for your repository. This default branch is the one that will be used as the base or default branch in local repos when users clone the repository. You can also create and delete branches and view details about a branch. If you want to see the differences between a branch and the default branch, you can quickly compare the two branches. You can also compare any two branches to see the differences between them. To view the history of branches and merges in your repository, you can use the Commit Visualizer.


            A view of branches in a repository

For information about working with other aspects of your repository in AWS CodeCommit, see Working with Repositories, Working with Commits, and AWS CodeCommit Reference.