Skip to content

Instantly share code, notes, and snippets.

Kova93

Block or report user

Report or block Kova93

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Kova93
Kova93 / .gitconfig
Last active Sep 18, 2019
git aliases
View .gitconfig
[alias]
printbranch = !"git branch | grep -Po '(?<=\\* )(\\S+)'"
review = push origin HEAD:refs/for/master
nuke = !"git reset --hard; git clean -fdx"
get = !git fetch origin $1:$1
fp = fetch --prune
pullall = !"git pull; git branch -v | grep -Po '(?<=^ )(\\S+)(?=\\s+\\S+\\s+\\[behind \\d+\\])' | xargs -L 1 git get"
pushforce = !"if test ! $(git printbranch) = master; then git push origin :$(git printbranch); git push ; else echo 'no force push on master'; fi"
[push]
default = simple
@Kova93
Kova93 / init.el
Last active Sep 18, 2019
emacs init
View init.el
;; auto-generated
;;
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
(quote
("0598c6a29e13e7112cfbc2f523e31927ab7dce56ebb2016b567e1eff6dc1fd4f" default)))
You can’t perform that action at this time.