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 | |
for branch in $(git branch -r --merged | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'develop$\|develop-hybrid$\|master$\|IPM-\|4\.'); do | |
if [[ "$(git log $branch --since "4 months ago" | wc -l)" -eq 0 ]]; then | |
local_branch_name=$(echo "$branch" | sed 's/origin\///') | |
echo 'Deleting: ' $local_branch_name | |
#git push origin :$local_branch_name | |
fi | |
done |
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
if test -f ~/.config/git/git-prompt.sh | |
then | |
. ~/.config/git/git-prompt.sh | |
else | |
PS1='\[\033]0;$PWD\007\]' # set window title | |
PS1="$PS1"'\n' # new line | |
PS1="$PS1"'\[\033[32m\]' # change to green | |
PS1="$PS1"'\u ' # user@host<space> | |
PS1="$PS1"'\[\033[35m\]' # change to purple | |
PS1="$PS1"'\w' # current working directory |
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 g='git' | |
alias ga='git add' | |
alias gaa='git add --all' | |
alias gac='git add --all && git commit -m' | |
alias gapa='git add --patch' | |
alias gau='git add --update' | |
alias gav='git add --verbose' | |
alias gap='git apply' |