fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] dw_dev2012-09-24 11:43 pm
Entry tags:

Identifying yourself when committing in Git

Quick note:

We'd like you to use your Dreamwidth username / email when committing. This makes it a lot easier for us to track who did what in the future. It also helps us match the author of the commit with who you are, and lets us confirm that we've received your CLA.

Edit your config (~/.gitconfig) and add this section:

[user]
name = USERNAME
email = USERNAME@dreamwidth.org


Then add your USERNAME@dreamwidth.org email to your Github account, so that the commits on Github will link to your identity on Github.

Please don't forget to tweak this setting on both your local computer and your Dreamhack if you do commits on both. Thank you!

If you're working on other projects, you can also just edit your author identity in just the Dreamwidth repositories (Thanks [personal profile] shadowspar)
shadowspar: cartoon of a developer sitting in a chair, reading a book, with back turned; speech bubble: "stacktrace or gtfo" (stacktrace or gtfo)

[personal profile] shadowspar 2012-09-25 01:48 am (UTC)(link)
FWIW, if you're using git for other projects and need to have a different identity there, it's also possible to configure name and email on a per-checkout basis.

In each of your dw-free and dw-nonfree checkouts, give these commands:

git config user.name "your name"
git config user.email "your@email"

or edit the .git/config file in each checkout and add the section

[user]
        name = your name
        email = your@email

And then git will use those values for that checkout, overriding the global ones in $HOME/.gitconfig.