Skip to content

Instantly share code, notes, and snippets.

@timurista
Created November 2, 2018 13:35
Show Gist options
  • Save timurista/441d3a565202b8e4d1656c85a9537f0c to your computer and use it in GitHub Desktop.
Save timurista/441d3a565202b8e4d1656c85a9537f0c to your computer and use it in GitHub Desktop.
branch-commit-pr.fish for fast saving
#!/bin/fish
# echo $argv[1]
set name $argv[1]
set branch_name (string replace -a ' ' '-' $name)
# echo $branch_name
git fetch origin
gnb $branch_name
gp "$name"
pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment