bedis9

a little bit of anything

Tag Archives: git

Git basics

  • Getting a local copy of a git project:
    git clone http://git.1wt.eu/git/haproxy.git
  • Rollback any update to a git branch:
    git reset --hard HEAD
  • Prepare a patch for your updated code:
    git format-patch origin
  • Print out the patch:
    git diff
  • Watch a patch impact on current code:
    git apply --stat /path/to/patch
  • Watch a patch errors on current code:
    git apply --check /path/to/patch
  • Apply a patch impact on current code:
    git apply /path/to/patch
  • Commit changes into your local project:
    git commit -m "COMMIT MESSAGE"