All notes
Git notes
1. Settings
1.1. Global
git config --global user.name <username>
git config --global user.email <email>
1.2. Repository
git config user.name <username> # Set new user's name
git config user.email <email> # Set new user's email
2. Branches
git checkout -b <branch-name> # Create new branch and switch to it
3. Commits
git log # Show commits
git show <commit-id> # Show commit changes
4. Remote repositories
git remote -v # List all remote repos
git remote add <name> <repo-url> # Add new remote repo
git remote set-url <name> <new-url> # Change repo's URL