Guest User

Untitled

a guest
Jun 20th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function current_branch() {
  2. ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  3. echo ${ref#refs/heads/}
  4. }
  5.  
  6. function push_edge() {
  7. old_branch=`current_branch`
  8. git stash save "Edgepush"
  9. git checkout edge
  10. git rebase $old_branch
  11. git push origin edge
  12. git checkout $old_branch
  13. git stash pop "Edgepush"
  14. }
Add Comment
Please, Sign In to add comment