3,456 questions
4 votes
2 answers
85 views
Merging branch based off another branch that since has been merged (with squash and delete)
I am running into some weird merge conflict issues even though I am the only one working on the repository and have only made linear commits. I have these branches: main feature-A (based off of main) ...
-1 votes
1 answer
56 views
How to merge two different git repos into one?
I was given access to a GitHub repository that doesn’t belong to me. My goal: I want to clone this repo into my own new GitHub repository and then push it there. I’ve already cloned the repo locally, ...
0 votes
2 answers
96 views
Safest way to resolve push conflicts and messy commit history after rebasing local branch with updated main?
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’...
-1 votes
2 answers
61 views
Squashing unrelated history merges [closed]
I have just been messing around with some other repos and doing some git merge --allow-unrelated-histories: I now want to squash these together such that they are all part of the same history. (...
-2 votes
3 answers
173 views
How can I work on multiple git branches at once?
Clarification: I'm asking about working on multiple branches in the same worktree. (I know how to work on multiple branches in separate worktrees, but that's not the question here.) Suppose I'm ...
1 vote
1 answer
699 views
Embarrassing myself with git merge - adds a bunch of files and commits to my PR that I hadn't touched
Git novice here. tl;dr: I don't understand why already merged commits end up in my PR. Going to number my steps here so people can point out where I went wrong with a number. So I'm working on a ...
1 vote
0 answers
85 views
Strange characters appearing on merge conflict
I'm working on a French WinForm application and in the team we are using multiple git clients (VS studio, GitKraken, etc.) to manage branches and so on. I'm currently using Git Fork with the ...
0 votes
1 answer
164 views
Why do some merged commits have no effect?
Here is my workflow with git: A 'master' branch. A 'devel' branch, that I merge into master when it is mature for a new release. Several little branches, such as 'imprimerie', 'ordomatic', etc. ...