Should sync
have a --prune
flag?
#1491
claytonrcarter
started this conversation in
Ideas
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When fetching remotes, I almost always use
fetch --prune
to remove remote branches that have been deleted. I then have an alias1 to delete local branches that were tracking those remote branches. (In my case, such deletions nearly always indicate that the MR/branch was merged.) This is so common for me that I'm surprised that we don't support this insync
, and I'm left wondering if I've missed something in my workflow that would make this easier. 😄git fetch --prune && git prune-local
?sync
supposed to be deleting merged branches, and I'm doing something that prevents that? (It is hiding the merged commits from the smartlog, but the branch refs are now pointing to the merge commit onmain
where that branch was merged.)--prune
flag, shouldsync
also just delete the local tracking branches? Or should/could that be behind another flag (eg--prune
for remote branches and--prune-local
for remote and local branches)?Footnotes
'prune-local' is aliased to '!git branch -vv | awk '/: gone]/{print $1}' | xargs git br -d'
↩Beta Was this translation helpful? Give feedback.
All reactions