kebab-case for all names: repositories, branches, tags
BadName
good-name
bad_name_returns
Words in lower case, separated by dashes
Permanent / protected branches
main
develop
Short-life branches
feature/xxx-yyy
hotfix/xxx-yyy
Long-life branches
release/xxx-yyy
# retrieves source code (map a local folder with a remote repository) git clone <repository_url> # creates a feature branch git checkout -b feature/xxx-yyy # adds all changes git add . # commits a set of changes git commit -m "Here I summarize the code change"
# pushes changes to the remotes git push # loads latest changes from remotes git pull # switches to main branch git checkout main # displays status git status
# displays git configuration on Windows more %userprofile%\.gitconfig # edits the configuration by opening an editor git config --global --edit # enables long paths git config --global core.longpaths true # disables end of line mess up (not git responsibility) git config --global core.autocrlf false
GitKraken
Visual Studio GitLens
SourceTree
You can go back to the presentation home page