Git & GitHub Mastery: Complete Cheat Sheet
VIM prompt โ:โ :wq โ save & quit :q! โ quit without saving GitHub Token Location + Brew Installaiotn commands (One Time): Token Setup: GitHub โ Profile Icon โ Settings โ Developer settings โ Personal access tokens โ Tokens Modern One (Not Classic). Use this when it asked you the password. commands for homebrew + git 1 2 3 4 5 6 brew install git brew --version # Run these commands in your terminal to add Homebrew to your PATH: echo >> /Users/fewsteps/.zprofile echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/fewsteps/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)" GitHub Workflow for Multiple Users and Devices โ Complete Command Guide 1 2 3 4 5 6 7 8 9 10 git pull origin main # 1. Get latest project (always do this first) git checkout -b my-feature-branch # 2. Create your own branch (give your branch a unique name) # (edit code normally) # 3. Make changes to your files git add . # 4. Stage and commit your changes git commit -m "my update" git push origin my-feature-branch # 5. Push your branch to GitHub # 6. Go to GitHub website # โ Open Pull Request โ Merge branch into main (No terminal command โ you click buttons on GitHub) git checkout main # 7. After the PR is merged, update your local main # git pull origin main # beginning of thask Future Modifications Workflow After a branch is merged, create a new branch for any new changes. ...