Skip to content

Instantly share code, notes, and snippets.

@onedayitwillmake
Last active June 25, 2021 02:49
Show Gist options
  • Save onedayitwillmake/dd9558c3a80a6d94b549c280ab43303a to your computer and use it in GitHub Desktop.
Save onedayitwillmake/dd9558c3a80a6d94b549c280ab43303a to your computer and use it in GitHub Desktop.
basic git commands
git init # create a git repo
* git status # show me status of all my stuff
* git add . # Add all the files in this folder to my change list
* git commit -m "First commit!" #
git log # shows you your commits
clear # TERMINAL: clear the terminal so you can think
git checkout file # reset the file
git reset --hard # resets
* git checkout $BRANCH
git branch # Show me my branches
* git merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment