aAPT
dDebian
fFFmpeg
jJava
mMercurial: Usage
oOCaml
pPostgreSQL

Home Applications

Git

Mercurial cheat sheet

Hg Git
hg in git fetch origin && git log branch..origin/branch
hg out git fetch origin && git log origin/branch..branch
hg diff git add && git diff --cached
hg rollback git reset --soft HEAD~1

Format

Tag format example:

tag name:  %(tag)%0atag date:  %(taggerdate:iso-strict)%0atagged by: %(taggername) %(taggeremail:mailmap,trim)%0a%0a%(contents)

Tags

Creating annotated tag:

git tag -a v0.1 -m "Version 0.1"
git push origin v0.1

Create zip archive

git archive --format=zip --output /path/to/zipfile.zip branch

Signing commits

gpg --list-secret-keys --keyid-format=long
git config [--global] user.signingkey ID

Note: using fingerprint as id also seems to work

git config commit.gpgSign true
git config tag.gpgSign true

Remote

Push new local branch to remote

git push -u origin new_branch

See also

Github specific workflows