Add some useful git commands to the HACKING file.
[inoclam.git] / HACKING
blob9e9df95c2e9f6411e12ba3ed8d1f83fbc399f739
1 Hacking inoclam
2 ===============
4 git cheat sheet
5 ---------------
7 setting up git
8 ~~~~~~~~~~~~~~
10 $ cat > ~/.gitconfig << EOF
11 [user]
12         name = Tom Cort
13         email = tom.cort@state.vt.us
14 EOF
16 committing a change to your repository
17 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 $ git commit -a
20 pushing changes to the public repository
21 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23 $ git push git+ssh://repo.or.cz/srv/git/inoclam.git master
25 tagging a release
26 ~~~~~~~~~~~~~~~~~
28 $ git tag -a 1.1.0
29 Version 1.1.0 (Flexo)
31 pushing the tag to the public repository
32 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34 $ git push git+ssh://repo.or.cz/srv/git/inoclam.git 1.1.0
36 creating a release tarball
37 ~~~~~~~~~~~~~~~~~~~~~~~~~~
39 $ git archive --format=tar --prefix=inoclam-1.1.0/ 1.1.0 | gzip > inoclam-1.1.0.tar.gz