Is it possible to do git-rebase after running git-commit

I began to rewrite some of the Perl programs from NASM source files. I already made some commits for my working copy , and I was wondering git pullif I should instead of doing if I should have done git rebase.

I pretty much decided what I had to do git rebase, but I don’t know how to reprocess my repository to achieve this effect or even if it is possible.

Screenshot-gitk: nasm.crop

+5
source share
5 answers

, Git Magic , . , - , . , .

? /?

- , , , , . ? , commit privileges β€” , , , . , , , . ?

rebase-vs-merge.

+6
  • , - : git log
  • (, ): git reset HEAD^
    • HEAD ^ : " , HEAD"
  • : git rebase origin/master

git fetch, rebase 3.

git, , . , ( git, tarball ).

+2

:

:

up = pull --rebase origin
  • "dev" -
  • dev
  • git up master
  • git merge dev
  • git

:

  • git
  • dev
  • git up master

YMMV

+1

You should be able to undo your last merge by changing these branches:

git branch your-changes <reflog of "Reworked test files...">
git branch -f master remotes/origin/master

After that, you can try rebooting.

0
source

As a continuation of Dustin's answer, it should be "git config --global branch.master.rebase true".

0
source

All Articles