Cheatsheet
Untrack ignored files from .gitignore
git rm -r --cached .
git add .
git commit -m "fix(git): Untrack ignored files"Useful commands
# Create a new branch
git checkout -b ALPHA-123
# Add all files to staging area
git add .
# Commit changes
git commit -m "Fix bug #123"
# Push changes to remote repository
git push
# Pull changes from remote repository
git pull
# Switch to a branch
git checkout ALPHA-123
# Merge a branch to master
git checkout master
git merge ALPHA-123
# Delete a branch
git branch -d ALPHA-123IntelliJ IDEA shortcuts
Windows
# Commit changes
Ctrl + K
# Push changes
Ctrl + Shift + K
# Pull changes
Ctrl + T
# Switch to a branch
Ctrl + Shift + Alt + S
Mac
# Commit changes
Cmd + K
# Push changes
Cmd + Shift + K
# Pull changes
Cmd + T
# Switch to a branch
Cmd + Shift + Alt + S