Navigation Menu

Skip to content

Feature Request: merge branch locally but never commit #21678

Discussion options

You must be logged in to vote

I’m not entirely sure what it is you’re asking for. You can already create a branch and then never add an additional commit to it. You can also already create a branch that has no commits on it using the --orphan option. So I’m not sure what it is you need that doesn’t already exist within git itself.

Additionally, I’m not sure I understand your workflow. It sounds like you have a fairly standard setup:

  1. There is a main branch somewhere
  2. There are teams working on their own branches
  3. You are working on some other branch
  4. Occasionally, you need to bring in the latest code from some team branch
  5. When your work is done, you need to merge your code into one of the team branches or the main branch

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants