whitespace - Git rebase for a branch created days back -
whitespace - Git rebase for a branch created days back -
i need help in understanding git rebase situation. checked out branch created 1 10 days back. checked out using
git checkout -b <some name> origin/branchname (i used different name identify it)
after checkout, if rebase beingness in checked out branch,
git rebase origin/master it shows errors 1) trailing whitespace - read after trying command found online, still see warnings.
git config core.whitespace nowarn 2) auto-merging conflict (add/add): merge conflict in... these files in master branch content modified little bit in checkout branch. how should prepare this? don't have authorization alter in master straight if that's way prepare it. these files should have content checkout branch testing work fine it's related that..please clarify me..
regards
guys have pretty much answered question whitespaces didn't touch rebase part of question. here what's happening when rebase:
first checking out branch, say:
git rebase master this means rebase current head (your topic branch) onto master. git going in history of topic branch , in history of master branch , finds commit first mutual ancestor both of them. commit old base of operations topic branch. takes commits happened since in branch , "reapplies" them in order of appearance on top of current master. conflict can happen, rebase process stops , waits resolution. have have manually resolve them editing files , marking them resolved git add together conflicted_file when done have git rebase --continue
now you're not changing files in master branch doing - changes happening in topic branch , conflicts resolution recorded in topic branch.
hope helps.
git whitespace git-rebase git-merge
Comments
Post a Comment