About 43,200 results
Open links in new tab
  1. When do you use Git rebase instead of Git merge?

    Apr 30, 2009 · When is it recommended to use Git rebase vs. Git merge? Do I still need to merge after a successful rebase?

  2. git - How do I squash my last N commits together? - Stack Overflow

    Many answers are based on git rebase command, but in my experience it is somewhat complex and advanced for git-beginners. Let's say you want to squash last 3 commits.

  3. How can I make "git pull" use rebase by default for all my …

    Is there a way to setup the host Git repository such that any git pull done from its (local) clones uses --rebase by default? By searching on Stack Overflow, I learned about …

  4. git rebase basics - Stack Overflow

    Dec 26, 2013 · The actual content should match very closely if you git diff origin/next next -- the diff should just show the changes from B and C (as labeled in the diagram). When you do git …

  5. What exactly does a 'git pull --rebase' do? - Stack Overflow

    May 4, 2025 · When you git pull --rebase, a few things happen: git fetch origin master -just using origin/master as an example git rebase origin/master moves all of your commits after the …

  6. git - How to rebase local branch onto remote master - Stack …

    So isn't it shorter to do while on feature branch, git fetch then git rebase origin/master? We can't do git rebase master because that will try to rebase from master in workspace, we need …

  7. Undoing a git rebase - Stack Overflow

    How do I easily undo a git rebase? A lengthy manual method is: checkout the commit parent to both of the branches create and checkout a temporary branch cherry-pick all commits by hand …

  8. What's the difference between 'git merge' and 'git rebase'?

    May 21, 2013 · If you do a rebase, it will check every commit and if git find a conflict, you will see the remote changes first, followed by your changes, and when you finish you won't have extra …

  9. Git push after rebase - Stack Overflow

    May 14, 2019 · I'm doing this: git checkout master git pull git checkout feature git rebase origin/master then resolve all the problems... Try to push - not gonna happen... Git is telling me …

  10. Como funciona o comando git rebase? - Stack Overflow em …

    Aug 18, 2015 · O problema do rebase é que ele altera o histórico, assim como outros comandos do git (como os que levam o atributo --hard). Por isto ele é recomendado apenas em casos …