Skip to content

Instantly share code, notes, and snippets.

@sengstacken
Created February 9, 2017 15:33
Show Gist options
  • Save sengstacken/5e9e4609c9ce2d78af485fe476b466ce to your computer and use it in GitHub Desktop.
Save sengstacken/5e9e4609c9ce2d78af485fe476b466ce to your computer and use it in GitHub Desktop.
Git for dummies
# create new repository (repo
git init
# check status of files
git status
# add file
git add <filename>
# commit files
git commit -m "your message here"
# create branch
git checkout -b <branch name>
# create new repo on github from local
git remote add origin <URL>
git push -u origin master
# get github changes on local computer
git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment