-
I use git fixup commits all the time and would love to figure out how best to leverage Fugitive. There are the How do I do this though if I've pushed all my commits already and they're not showing up by default? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I recommend keeping your tracking branch as the remote branch you're intending to merge to (typically [alias]
work = !sh -c 'git fetch && git checkout @{upstream} -t -b \"$@\"' _
[push]
default = current
[pull]
rebase = true |
Beta Was this translation helpful? Give feedback.
-
Can you explain some more how you're supposed to use the work alias? Let's say I've got a main branch and a foobar branch where I'm working on a PR where I've pushed all commits so they're not shown in :G |
Beta Was this translation helpful? Give feedback.
I recommend keeping your tracking branch as the remote branch you're intending to merge to (typically
main
ormaster
), not the remote branch you're pushing to. This can be slightly clumsy to achieve with the Git command line, so I typically use an alias to create new branches: