Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function current_branch() {
- ref=$(git symbolic-ref HEAD 2> /dev/null) || return
- echo ${ref#refs/heads/}
- }
- function push_edge() {
- old_branch=`current_branch`
- git stash save "Edgepush"
- git checkout edge
- git rebase $old_branch
- git push origin edge
- git checkout $old_branch
- git stash pop "Edgepush"
- }
Add Comment
Please, Sign In to add comment