|
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
[announce] Read-only git mirror of cURL CVS
From: Joshua Kwan <jkwan_at_vmware.com>
Date: Mon, 9 Nov 2009 08:48:46 -0800
Hey all,
I've completed my CVS-git mirroring process, and you can now download the
git clone http://triplehelix.org/curl.git
And now for a crash course on git.
Making changes:
Just make changes as you like, and then use
git commit <files>
to make a commit message, then commit the files. If you want to do a blanket
git commit -a
git is extraordinarily flexible with commits. It's not worth going into
git add --interactive foo.c
to view the diff, split it into smaller hunks, and 'stage' only certain
If you've really messed it up, you can revert your tree to a pristine state:
git reset --hard
Updating from CVS
The repository is synced to CVS head every 3 hours (in theory, I just added
git pull
This will download new bits from the server, and merge whatever changes you
'git pull' is actually a shortcut for 'git fetch origin' and 'git merge
Feature branches
A powerful feature of git is that you can be working on several distinct
Suppose you wish to add FOO protocol support to lib/. You start from your
git checkout -b foo-protocol
You are now on a new branch named 'foo-protocol'. You work on this as above,
git fetch origin # fetches new bits from server without
If the rebase succeeds without conflicts, diffs from your branch can be
Note that 'rebase' is different from 'merge' (as described above) and this
- 'rebase' makes it so that changes are applied in this order:
Using 'merge' may succeed more easily, but it will make it difficult to
It's recommended to 'rebase' on a regular basis to avoid having to spend 5
Submit patches
git has powerful support for taking commits you've made to a branch and
Using the foo-protocol example from before, if you want to generate patches
git format-patch origin/master..foo-protocol
This tells git to select the commits that have happened between CVS HEAD and
This, by the way, is the reason why it's attractive to be able to only
You can even get git format-patch to send the actual emails through
That's about all it takes to get started!
Questions?
You can ask me personally, but git also has extensive manpage and online
-Josh
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 16, 2009.
web site info