Skip to content

Instantly share code, notes, and snippets.

@rbhatia46
Last active October 3, 2017 16:58
Show Gist options
  • Save rbhatia46/b4cc7a7a60f59ab6b47f6c425c033116 to your computer and use it in GitHub Desktop.
Save rbhatia46/b4cc7a7a60f59ab6b47f6c425c033116 to your computer and use it in GitHub Desktop.
Includes Basic Git commands for a beginner

Bare Minimum Git Commands to get started

$ git init 
$ git add .
$ git commit -m "Commit Message"
$ git status
$ git log --oneline
$ git checkout #commitid (fileName) //Revert back to a commit
$ git remote add origin {url}
$ git push -u origin master
$ git reset
$ git checkout -b branchName //Create a new branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment