This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fsck --full --no-reflogs --unreachable --lost-found | grep blob | cut -d\ -f3 | while read in; do printf "blob: $in\n"; git cat-file -p $in; printf "\n--------------------------------\n"; done > recover.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Mondit | |
// @namespace http://tampermonkey.net/ | |
// @version 0.6 | |
// @description try to take over the world! | |
// @author You | |
// @match https://mondit.alpari-ru.dom/monitoring/app | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
[alias] | |
co = "!f() { \ | |
local projectPrefix=DITBL-; \ | |
if [ $1 = "d" ] || [ $1 = "dev" ] || [ $1 = "develop" ]; then \ | |
git checkout develop; \ | |
elif [ $1 = "m" ] || [ $1 = "master" ] || [ $1 = "v2" ]; then \ | |
git checkout v2; \ | |
elif [ $1 != "$projectPrefix"* ]; then \ | |
git checkout $projectPrefix$1; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
[alias] | |
co = "!f() { \ | |
local projectPrefix=DITBL-; \ | |
local branch=$1; \ | |
if [[ "$1" != "$projectPrefix"* ]]; then \ | |
branch=$projectPrefix$branch; \ | |
fi; \ | |
if [[ $1 = "d" || $1 = "dev" || $1 = "develop" ]]; then \ | |
git checkout develop; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Hook script to prepend the commit log message with a branch name | |
# Not prepend the name of the branch only if: | |
# - branch name starts with one of the options in $NO_PREFIX_IF_BRANCH_STARTSWITH | |
# - commit message starts with one of the options in $NO_PREFIX_IF_THIS_IN_COMMIT_MESSAGE | |
# - branch name has been manually prepended in the commit message | |
# lnk: https://gist.github.com/shevaroller/680719f31e610cff3e6d8c930a078eb0 | |
# edited by fosemberg |