bedis9

a little bit of anything

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"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: