Skip to content

Fixup Workflow #2066

Answered by tpope
chukinas asked this question in Q&A
Oct 12, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I recommend keeping your tracking branch as the remote branch you're intending to merge to (typically main or master), 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:

[alias]
        work = !sh -c 'git fetch && git checkout @{upstream} -t -b \"$@\"' _
[push]
        default = current
[pull]
        rebase = true

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tpope
Comment options

You must be logged in to vote
3 replies
@tpope
Comment options

tpope Jan 5, 2023
Maintainer

@marlun
Comment options

@tpope
Comment options

tpope Jan 6, 2023
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants