How to slide out closed PRs / deleted branches #1251
-
|
After merging/closing a PR and deleting the branch on Github, how can I get machete to slide out that branch? I'd ideally like to do this during a traverse. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Short answer: Still, git machete should typically detect that you've merged your branch, even if it was a squash — by looking up a commit with identical contents (tree, in gitspeak) in parent branch history. This is under improvement currently by @gjulianm on #1238, to detect even more non-obvious squash-merges ;) This merged-ness of a branch is marked as gray edge in Also, speaking of |
Beta Was this translation helpful? Give feedback.
Short answer:
git machete slide-out --removed-from-remote. This requires your local mirror (.git/refs/remotes/origin/...) of remote branch to be removed — as done bygit fetch --prune.git machete traverse --fetchalways runsgit fetchin--prunemode, and IIRC IntelliJ also uses that mode of fetch by default.Still, git machete should typically detect that you've merged your branch, even if it was a squash — by looking up a commit with identical contents (tree, in gitspeak) in parent branch history. This is under improvement currently by @gjulianm on #1238, to detect even more non-obvious squash-merges ;) This merged-ness of a branch is marked as gray edge in
status, andtraversewill su…