/CheatSheets

Cheat Sheet for everything I need to cheat on

CheatSheets

Cheat Sheet for everything I need to cheat on

// Linking VSCode to GitHub Repo //

  • git remote add origin

// Git process for Visual Code Studio: Making commits through the terminal //

// Committing code to Repo //

{make required changes in code}

{ctrl + ' to open terminal}

  • git init (for initial commits)
  • git add -A
  • git commit -m '{message - initial commit / additional of / change to}'
  • git push origin master {or desired branch}

// Reviewing previous commits //

  • git log

// Resetting to previous commit version //

  • git reset --hard {commit code ID}

// Branches //

  • git branch
  • git branch {name of new branch}
  • git checkout {name of branch moving to}
  • (While in consuming branch) git merge {name of branch to be merged}

// Useful other commands //

  • git status