Skip to content

Instantly share code, notes, and snippets.

/-

Created November 6, 2015 04:02
Show Gist options
  • Save anonymous/a4c64d94b969d94899ee to your computer and use it in GitHub Desktop.
Save anonymous/a4c64d94b969d94899ee to your computer and use it in GitHub Desktop.
gicof() {
git co $( (git branch -r | sed 's/origin\///'; git branch) | sort | uniq | fzf --query="$1" --select-1 --exit-0 )
}
gimf() {
git merge $( (git branch -r | sed 's/origin\///'; git branch) | sort | uniq | fzf --query="$1" --select-1 --exit-0 )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment