Skip to main content

Introduction

Git is just a tool to version any type of files. You can keep versions of html, css, js, pdf, docx, csv, etc. Technically anyone can use git, not just programmers, though its very popular amongst programmers.

  • allows experimentation without accidentally destroying your files
  • git init- add git to your folder
  • git clone - copy a folder that has git set up
  • rm -rf .git - remove git from your folder
  • git log -
  • git status -
  • git add -
  • git restore -
  • git restore --staged -
  • git commit -m "your note" -
  • git push -
  • git pull -
  • git remote -v -
  • git reset -
  • git revert -