Skip to content

Instantly share code, notes, and snippets.

@atomkirk
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomkirk/10e390a9f6339bfa041b to your computer and use it in GitHub Desktop.
Save atomkirk/10e390a9f6339bfa041b to your computer and use it in GitHub Desktop.
rob git cheatsheet

Cloning

  • git clone --recursive <repo> <the-name-you-want-for-repo-directory>

Set up production remote

  • git remote add production <production-repo-url>

Updating

  • git add . -A
  • git commit -am 'message'
  • git pull -r origin master
    • error:
    • git rebase --abort
    • git pull origin master
    • error:
      • git mergetool
      • Use kaleidoscope to merge. hit command + s to save, command + q to quit.
      • git add . -A
      • git commit -am 'fixing conflicts'
  • git push origin master
  • git push production master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment