Guest User

Untitled

a guest
May 23rd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. [alias]
  2. # ronto stands for "rebase --onto". Uses the current branch to move it and updates the start-of-the-branch tag along
  3. ronto = "!f() { \
  4. git rebase --onto $1 __start__$(git rev-parse --abbrev-ref HEAD) $(git rev-parse --abbrev-ref HEAD); \
  5. git tag -d __start__$(git rev-parse --abbrev-ref HEAD); \
  6. git tag __start__$(git rev-parse --abbrev-ref HEAD) $1; \
  7. }; f"
  8. # nb stands for "create branch". Creates a tag marking the start-of-the-branch
  9. cb = "!f() { \
  10. git tag __start__$1; \
  11. git checkout -b $1; \
  12. }; f"
  13. # db stands for "delete branch". Deletes the tag and the branch itself
  14. db = "!f() { \
  15. git tag -d __start__$1; \
  16. git branch -D $1; \
  17. }; f"
Add Comment
Please, Sign In to add comment