Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created December 14, 2013 17:52
Show Gist options
  • Select an option

  • Save zeroeth/7962442 to your computer and use it in GitHub Desktop.

Select an option

Save zeroeth/7962442 to your computer and use it in GitHub Desktop.
git'n
# LOCAL GIT REPO COMMANDS
#
# in project folder
git init .
# (rinse repeat this pattern)
# CODECODECODE
git add <files>
# git add --patch for changing existing files selectively
git commit
# PUT IT ON GITHUB
#
# (go create a repo on github)
git remote add origin git@github.com:<username>/<myrepo>.git
git push -u origin master
# NEW WORKFLOW
#
# (work work work)
git add <files>
git commit
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment