Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working on ksnip

Damir Porobić DamirPorobic

:octocat:
Working on ksnip
View GitHub Profile
@DamirPorobic
DamirPorobic / .gitconfig
Last active Jun 26, 2020
gitconfig for my GitBash
View .gitconfig
[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 Apr 24, 2018
Script for renaming branches
View rename-branch.sh
#!/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
View RPM-GPG-KEY-Ksnip
-----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