Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate guidance on rebase / merges (advanced) #20

Open
alee opened this issue Mar 18, 2023 · 0 comments
Open

integrate guidance on rebase / merges (advanced) #20

alee opened this issue Mar 18, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@alee
Copy link
Contributor

alee commented Mar 18, 2023

concepts

how to practice

Setup merge commits into feature branch

  1. create a new branch test-rebase
  2. add a few arbitrary commits to test-rebase
  3. switch to main and add commits there
  4. switch to test-rebase and merge main into test-rebase: $ git checkout test-rebase; git merge main
  5. add few more arbitrary commits to test-rebase
  6. use git rebase -i to clean up test-rebase

Use rebase to bring changes from main into a feature branch (assuming origin is your fork and upstream is the upstream repo)

  1. git fetch upstream
  2. git checkout feature-branch
  3. git rebase upstream/main - resolve conflicts if any
@alee alee added enhancement New feature or request help wanted Extra attention is needed labels Mar 18, 2023
@alee alee changed the title guidance on rebase / merges (advanced) integrate guidance on rebase / merges (advanced) Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant