Skip to content

Instantly share code, notes, and snippets.

@mstorino
Last active September 13, 2017 19:31
Show Gist options
  • Save mstorino/6cf680ce40eaedbef0d6a3059a842a20 to your computer and use it in GitHub Desktop.
Save mstorino/6cf680ce40eaedbef0d6a3059a842a20 to your computer and use it in GitHub Desktop.
Common Git Commands

Git Commands

These are the basic commands for Git.

Create Repo

Create new repo on git by clicking "new" button on main profile page. Then it will direct you to a screen where you may clone it to your machine, copy that link then follow the next steps to clone it.

clone repo

git clone

add content

git add . git add -A

commit the file

git commit -m "meaningful comment in quotes here"

push it to your repo

git push origin master

check status

git status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment