Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
if [ -z "$1" ]
then
echo "enter prefix: "
read prefix
else
prefix="$1"
fi
@deichcode
deichcode / rename-tag
Last active July 25, 2018 14:39 — forked from jloveland/rename-tag
rename a git tag
#!/bin/bash
if [ -z "$1" ]
then
echo "enter old tag: "
read old
else
old="$1"
fi
@deichcode
deichcode / .gitconfig
Created April 3, 2018 13:12
My personal .gitconfig
[alias]
tree = log --all --graph --decorate=short --color --format=format:'%C(bold blue)%h%C(reset) %C(auto)%d%C(reset)\n %C(auto)[%cr]%C(reset) %x09%C(normal)%an: %s %C(reset)'
logx = log --all --graph --decorate=short --color --format=format:'%C(bold blue)%h%C(reset)+%C(dim black)(%cr)%C(reset)+%C(auto)%d%C(reset)++\n+++ %C(bold black)%an%C(reset)%C(black): %s%C(reset)'
nf = "!sh -c \"git checkout develop && git pull && git checkout -b feature/$1 && git push --set-upstream origin feature/$1\""
nh = "!sh -c \"git checkout master && git pull && git checkout -b hotfix/$1 && git push --set-upstream origin hotfix/$1\""
rbo = "!sh -c \"git fetch && git rebase \"$(git rev-parse --abbrev-ref --symbolic-full-name @{u})\"\""
[rerere]
enabled = true
[user]
name = Sören Schröder

Keybase proof

I hereby claim:

  • I am deichcode on github.
  • I am cptschalbart (https://keybase.io/cptschalbart) on keybase.
  • I have a public key whose fingerprint is E8E4 F33F 357F 1431 0150 FFC7 144B 89DD 3DAA 0CA4

To claim this, I am signing this object: