User login

git

Set your name in

git config --global user.name "My Name"
git config --global user.email "me@example.com"

http://www.lixo.org/archives/2008/06/26/git-tip-set-your-identification-and-colours/

http://help.github.com/git-email-settings/

How to clone a project from Github to work on it

http://github.com/guides/getting-a-copy-of-your-github-repo

This works for other people's repositories also, where you have been given access and when you have your public key.

For instance:

git clone git@github.com:scor/rdfx.git

Link to a changeset in Trac

Changeset
trac changeset link wiki syntax
trac changeset link display title

Trac print title of git changeset

[changeset:7a03c65500c4b96859a27bf5be2901e4ec42afdd]

gives you the title as a tooltip on hover.

More ways of doing this (where the title automatically becomes the anchor text, for example) does not seem to be an option. Have to live with the tooltip and any self-titling we want to pull off, i guess.

Get a past version of your project with Git

git checkout old version
git get old copy
git branch checkout revision

http://stackoverflow.com/questions/849265/do-you-need-to-create-a-branch-to-check-out-a-specific-git-revision

basic git commands

Git

Tell Git about you

In order to have commits properly tagged you need to provide Git with your name and email address:

$ git config --global user.name "Jean R. Hacker"
$ git config --global user.email jean.hacker@example.com

This ends up in your home directory's .gitconfig.

Use Git to commit to CVS, such as for maintaining a Drupal module

UPDATE: See http://more.zites.net/git_drupal_contrib_cvs

Kathleen says this is complicated and not necessary - http://drupal.org/node/288873

HOWEVER-- if you ever want to let other people contribute to your project the normal way (if CVS can be considered in any way normal), then you will want the synch anyway.

Include another file in your Vim configuration file

To store your Vim settings in a different file (Agaric does this so that we can put all our "custom home" configuration type files easily in version control together) use the source command.

In .vimrc to include other file:

source /path/to/file/morvimconfig

In ben-agaric's case, the entire .vimrc file is only:

source /home/ben/customhome/.vimrc-agaric

Checking the difference between a file modified locally and the repository with git

[done this before, never made a note of it]

git see difference between current and repository file

git diff

It's really that easy.

Additions in your local working copy are represented by + signs, subtractions by your local working copy are each preceded by a - sign.

http://media.pragprog.com/titles/tsgit/chap-005-extract.html

Syndicate content