Skip to content

Convenient way to move branch pointer around? #402

Answered by arxanas
PhotonQuantum asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @PhotonQuantum, can you clarify a little more about your workflow? What do you do after git merge temp? Do you git push the main branch? Or, for example, do you use the branch to open a code review for others to see?

I think there's two parts of your problem which have to be addressed:

  • How do I sync my changes with the latest main, without branches?
  • How do I push the updated code, without branches?

For syncing, git-branchless provides the git sync command, which will rebase your stacks on top of the main branch. Note that it does a rebase rather than a merge.

If you want to do a merge, you can also just do it the other way, and write git merge main while you're on your commit.

Or, y…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@PhotonQuantum
Comment options

@joshyrobot
Comment options

Answer selected by PhotonQuantum
Comment options

You must be logged in to vote
1 reply
@PhotonQuantum
Comment options

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