§ tags: linuxgit



    name = my name
    email = mymail@domain.com
    diff = auto
    status = auto
    branch = auto
    co = checkout
    ci = commit
    st = status
    br = branch
    hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
    type = cat-file -t
    dump = cat-file -p
    filemode = true


# create
git tag <tag_name>
git tag <tag_name> <commit>
# list
git tag
# jump to
git tag <tag_name>
# remove
git tag -d <tag_name>
# remove from remove (after local changes)
git push origin :refs/tags/<tag_name>
# push to remote
git push origin --tags


# create
git diff > 01.patch
git diff HEAD^ > 01.patch
git diff <commit> > 01.patch
# apply
git apply --stat 01.patch
git apply --check  01.patch
git apply -v 01.patch