Skip to main content
1 vote
4 answers
79 views

If I have merge conflicts, how can I take all changes from HEAD for a single file? Not for the whole rebase, but for a single file? Is this possible, or do I have to manually change it?
burn_stick's user avatar
3 votes
1 answer
126 views

I have added some notes to commits using git notes add <hash> -m potato But when I rebase or amend the commits, the note is not copied over to the new rewritten commit. According to the docs ...
Moberg's user avatar
  • 5,636
0 votes
1 answer
94 views

While doing lots of branch-management via rebasing I have a number of common situations that cause merge conflicts to occur for which I have developed helper scripts that resolve the situation. When ...
Greg's user avatar
  • 2,729
4 votes
3 answers
95 views

Note: I have already looked at the following answers and they don't seem to apply or work in the way I expect them to work: Reword one commit prior to merge Squashing old git commits that were before ...
Mirrana's user avatar
  • 1,813
2 votes
1 answer
100 views

I pulled from origin main, and I'm having issues handling conflicts on my branch. I did the following git checkout test (name of my branch) git pull origin main It tells me I have conflicts and is ...
Rue Vitale's user avatar
  • 1,973
0 votes
2 answers
83 views

UPDATE: The 1st question below has been resolved. My remaining question is what is the best way to rebase a fork before I submit a PR to a FOSS project so my changes (of multiple commits and sync's) ...
David G's user avatar
  • 136
-2 votes
1 answer
135 views

My history is linear: ... — B — C I make an interactive rebase to B~1 and set to edit B, pick C. All I do with B is to add a file to the gitignore, rm --cache -r . and commit --amend --no-edit it. ...
Ooker's user avatar
  • 3,404
0 votes
1 answer
49 views

Here is a typical example of executing git rebase --interactive --autosquash: git rebase --interactive --update-refs origin/master Rebasing (1/102) Rebasing (2/102) error: could not apply eff00df3... ...
tribbloid's user avatar
  • 3,812
0 votes
2 answers
106 views

I recently rebased my local feature branch onto the latest main branch to get up-to-date. Now, my commit history looks all weird—some commits seem duplicated or out of order, and when I try to push, I’...
Sai Karthik Motapothula's user avatar
6 votes
1 answer
150 views

I have a script that does a git rebase with the flags --empty=keep and --keep-empty. It's important that no commit is dropped because the script later relies on relative refs (like HEAD~3) and on the ...
Piotr Siupa's user avatar
  • 5,169
0 votes
1 answer
126 views

I have recently learned that git diff --cached shows how the new commit during an interactive rebase conflict after resolving the conflict looks. What does git diff compare during resolving a git ...
lmixa's user avatar
  • 79
1 vote
1 answer
54 views

I apologize, the situation I am about to lay out below is probably very confusing, because I am very confused myself. As this is related to work, I cannot provide the actual repository. Summary of the ...
ygtozc's user avatar
  • 48
1 vote
3 answers
105 views

I was reading through code when I found an issue, and had forgotten to pull the main branch before opening my branch to make my fix, and commit. I noticed when opening the PR that there were latent ...
Brydon Gibson's user avatar
3 votes
3 answers
147 views

Say there is a squash of 3 commits into a single commit like so: pick abc Jan 1 stuff squash def Jan 2 stuff squash ghi Jan 3 stuff pick jkl Jan 4 stuff pick mno Jan 5 stuff In the above, my ...
1192805's user avatar
  • 1,126
-2 votes
2 answers
99 views

Update My company adds a prefix to the commit history which i had gotten so used to, I didn't see it but of course git would, and that was causing the issue. Removing that prefix fixed my issue. ...
Karthik T's user avatar
  • 32.1k

15 30 50 per page
1
2 3 4 5
119