Back to Writing
NOTESgitversion-controlcheat-sheetclideveloper-tools
Git Quick Reference Guide
May 3, 2020•Updated Feb 17, 2026
- Create a Git repository
git init
- Set up user
git config --global user.name "Name"
git config --global user.email "Email"
- Stage all files
git add --all
- Commit
git commit -m "Content"
- Add remote repository
git remote add origin <path>
- Push
git push -u origin master
- Pull
git pull origin master
- Clone
git clone <repository-path>