And English is a Work in Progress ⌛
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by functional category:
git status
list which (unstaged) files have changed
To rename your Git master branch to main, you must do the following steps:
-
Navigate to your repository in the command line and issue the following commands: -
git branch -m master main
-git push -u origin main
-
Change your default branch on GitHub by going to your GitHub repository in your browser, and navigate to
Settings > Branches
and click on the dropdown and switch frommaster
tomain
and clickUpdate
(this will only show if you have two or more branches). Themain
branch is now your default branch. -
Update the tracking of the branch from your command line with the following command: -
git branch -u origin/main main