-
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
-
Find the parent branch of a git branch
#!/usr/bin/env zsh branch=`git rev-parse --abbrev-ref HEAD` git show-branch | ack '\*' | ack -v "$branch" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
-
Find the starting point of a local branch
git merge-base mybranch mastergit show-branch --merge-base
Metadata
Metadata
Assignees
Labels
No labels