About 167,000 results
Open links in new tab
  1. git - How to rebase local branch onto remote master - Stack Overflow

    Mar 13, 2024 · 1486 I have a cloned project from a master branch from remote repository remote_repo. I created a new branch and I committed to that branch. Other programmers pushed to the master …

  2. Git rebase one branch on top of another branch - Stack Overflow

    In my git repo, I have a Master branch. One of the remote devs created a branch Branch1 and had a bunch of commits on it. I branched from Branch1, creating a new branch called Branch2 (git checkout...

  3. How to git rebase a branch with the onto command?

    Rebase the range of commits whose parent is up to and including on top of . The syntax of git rebase --onto with a range of commits then becomes git rebase --onto <newparent> <oldparent> <until> . The …

  4. How can I make "git pull" use rebase by default for all my repositories?

    See "branch..rebase" for setting this on a per-branch basis. When merges, pass the --rebase-merges option to git rebase so that the local merge commits are included in the rebase (see git-rebase for …

  5. git - Rebase feature branch onto another feature branch - Stack Overflow

    Feb 15, 2013 · rebase: allow " - " short-hand for the previous branch Teach rebase the same shorthand as checkout and merge to name the branch to rebase the current branch on; that is, that " - " means …

  6. 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?

  7. 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 pull - …

  8. 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 commits on …

  9. How do I use 'git rebase -i' to rebase all changes in a branch?

    Dec 13, 2008 · >vi README >git add README >git commit -m "modified README" Now I want to do a ' git rebase -i ' that will let me rebase all commits for this branch. Is there something like ' git rebase -i …

  10. How to rebase and squash commits from branch to master?

    Oct 29, 2024 · 30 I'm trying to rebase and squash all my commits from current branch to master. Here is what I'm trying to do: git checkout -b new-feature make a couple of commits, after it I was trying: git …