Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View DamirPorobic's full-sized avatar
😑
Busy

Damir Porobić DamirPorobic

😑
Busy
View GitHub Profile
@DamirPorobic
DamirPorobic / .gitconfig
Last active June 26, 2020 09:06
gitconfig for my GitBash
[core]
autocrlf = true
[merge]
ff = false
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
@DamirPorobic
DamirPorobic / rename-branch.sh
Created April 24, 2018 12:57
Script for renaming branches
#!/usr/bin/bash
GIT_CMD="$(which git)"
GIT_BRANCH="$GIT_CMD branch"
GIT_PUSH_ORIGIN="$GIT_CMD push origin"
GIT_FETCH_ORIGIN="$GIT_CMD fetch origin"
GIT_REMOTE_PRUNE="$GIT_CMD remote prune origin"
GIT_CHECK_BRANCH="$GIT_CMD show-ref refs/heads" # append /branch_name
# Check if the user has provided input
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFpBPdUBCAD7vYRK+baKir8pQLpSLRte4O4i2FPfWXS1wIjpNpxpCaZnAdUl
CQhaPiHKv5PidoekKq0UBbgWHMB0l+qKGgiVSAxg9bFN1YJ76SN3XNB+PglpDlcQ
pARhI/bvB9IVxPY4zSotmADs2+jRtbMvld/n4zXtF+TFAz5CrDQJsx+z3ioGxaN7
2j8Hd7Bon6TxLm6+Mha+HQt/wt7gbipadfbREl2wRM92sCXV+xb2XhWW87QiSYjf
1B3ECcD9t1ytgpY3L48cDOR+IEg0Yln9FcyDAQMxgw7cm4zxc9Lt+uABM1AImvpB
pHk9efvK33RLLEEwki5gKbdfcI6xrCEj3GOBABEBAAG0HUtzbmlwIDxkYW1pci5w
b3JvYmljQGdteC5jb20+iQE5BBMBAgAjBQJaQT3VAhsDBwsJCAcDAgEGFQgCCQoL