What is main (or master) in Git?
In Git, "main" (or "master") is a naming convention for a branch. After cloning (downloading) a project from a remote server, the resulting local repository has a single local branch: the so-called "main" (or "master") branch. This means that "main" (or "master") can be seen as a repository's "default" branch.
The Git Cheat Sheet
No need to remember all those commands and parameters: get our popular "Git Cheat Sheet" - for free!
In case you are using the Tower Git client, creating and managing branches is very easy. Many operations can simply be performed by using drag and drop!
Try Tower 30 days for free!
Learn More
- Check out the chapter Branching can Change Your Life – Desktop GUI edition in our free online book
- More frequently asked questions about Git & version control
Download the Cheat SheetFree
Get 18 of our most popular Cheat Sheets in one handy ZIP!

Thanks! Please Check Your Inbox!
Want to win one of our awesome Tower shirts?
Tell your friends about the package!
