Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
90 views

Environment: Local machine: Linux 16.1 Repository member: Visual Studio 2022 (Win11) Today I merged a team member’s PR into master. This member modified file B. After the PR, the master branch’s graph ...
Autopy's user avatar
  • 37
0 votes
1 answer
100 views

This is my project's log: nubarke@linux0:~/CLionProjects/untitled$ git log --graph --all --oneline * 3ee3af6 (HEAD -> master) Rename project to Hard Disk Drive Stress Test * 36f6c14 Off-by-one ...
Nubarke's user avatar
  • 2,178
-1 votes
2 answers
128 views

Scenario: work... work... work... git commit -m "Step1" work... work... work... git commit -m "Step2" work... work... work... git commit -m "Step3" git pull # merge a ...
kan's user avatar
  • 29.2k
3 votes
3 answers
150 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
3 votes
1 answer
111 views

I have a private file that leaks into the repo, and I want to delete it. Here are the commits I suppose that it is first added: git log --follow --diff-filter=A --find-renames=40% --pretty=reference --...
Ooker's user avatar
  • 3,404
0 votes
1 answer
73 views

During development I noticed a bug in someone else's code. It was necessary for me to fix the bug to continue testing my feature, so I created a fixing commit on my branch, and then a new branch from ...
glades's user avatar
  • 5,374
-2 votes
2 answers
61 views

Let's say I have the following text file: fruits.txt apple mango pear That's the state of the file as-is at the HEAD. The file was last altered 2 commits ago. Before that commit the file read: ...
Spring E. Thing's user avatar
-1 votes
1 answer
71 views

Let's say I have the following tree: A -- B -- C -- D -- E main \ F -- G -- H featureA \ I featureB I'm working off ...
xormapmap's user avatar
1 vote
1 answer
47 views

I am trying to interactively rebase commits from the branch tmp/20241220-rebase-source onto tmp/20241220-rebase-target. The commits to rebase include a branching point and corresponding merge-commit (...
packoman's user avatar
  • 1,292
1 vote
0 answers
42 views

I have a deployment.yml workflow in my repository that looks like this: name: Run deploy on: workflow_dispatch: push: branches: - main - staging - dev Nothing fancy, has ...
SeekanDestroy's user avatar
0 votes
3 answers
85 views

I have worked on a branch, and successfully merged my changes. After that I did another commit and want to merge it as well. However when I create pull request, it offers to merge the whole branch and ...
Nourless's user avatar
  • 956
1 vote
2 answers
139 views

I have the following situation: I rebased the feature branch my-branch on master using git rebase master from my-branch. However I'm not happy with the result (AFTER), so what I want is to get back ...
glades's user avatar
  • 5,374
8 votes
1 answer
253 views

I have the following repo: A--B--C--D--E--F--G--H--I--J \ K--L--M main -> J DEV -> M I want to squash the commits between B and E so the repo looks like ...
TSDrake's user avatar
  • 189
1 vote
1 answer
95 views

I'm trying to reconcile a very large feature branch with hundreds of commits that multiple teams and agencies worked on for a long time period. Unfortunately due to corporate policy issues it wasn't ...
user56reinstatemonica8's user avatar
0 votes
2 answers
115 views

Case A new branch created for given requirement Adding changes as per requirement in the branch and Below commands executed every time we commit git add . git commit -m "comment" (...
bsethi24's user avatar
0 votes
3 answers
132 views

I have a repo that looks like this... -+----*----*------*------------------------- Main \------------+---------+------+-- Dev \-*--*--*--/-*--*--*-/-*--*-/ Feature1 That's my best attempt at ...
dwilliss's user avatar
  • 932
0 votes
0 answers
53 views

I have a git status along the following lines main-branch * somehash001 (same as below) * somehash002 ... feature-branch * somehash003 * somehash001 (same as above) ... I would like to rebase ...
maja's user avatar
  • 830
0 votes
0 answers
146 views

I have a feature branch feature and a develop branch. In the feature branch, I ran git rebase develop, but I got stuck in a very strange loop: remote: Enumerating objects: 1, done. remote: Counting ...
zbz.lvlv's user avatar
  • 3,867
0 votes
1 answer
61 views

Recently a few times after rebasing I've seen what I assume are temporary commits and branches that get creating during the rebase. Presumably these should get garbage collected, but they haven't ...
Andy Madge's user avatar
1 vote
1 answer
72 views

When doing interactive rebase for making squash and merge some commits into one I realized that when commits are not correlative this can not be done properly, this is an example suppossing we have 5 ...
StormByte's user avatar
  • 1,335
1 vote
0 answers
70 views

We have the usual workflow of main, dev, and changes done in topic branches. Sometimes we want to deploy a quick-fix to production but without merging other dev changes. We might do a PR and merge ...
SankE's user avatar
  • 11
0 votes
2 answers
78 views

We've got a development branch, dev1. Starting from that, I create a feature branch, f1 and push to our git server: git checkout -b f1 git push -u origin f1 I make some changes, commit them and push ...
mconner's user avatar
  • 1,606
0 votes
1 answer
42 views

On my project, when devs ask for merge of feature branches on develop, the source branch is merged, and afterwards deleted, because in the Merge Requests settings, we checked Enable "Delete ...
Oodini's user avatar
  • 1,463
2 votes
2 answers
175 views

This has happened multiple times where we have a devel branch on which a large feature (feature/one branch) is being worked by multiple people. Each developer branches off of feature/one and performs ...
PatS's user avatar
  • 11.9k
0 votes
0 answers
144 views

My employer requires that all pull requests contain a single commit. So I often have several inflight PRs that depend on each other. Given master -> branch A -> branch B, when I need to update A,...
asg0451's user avatar
  • 523
1 vote
2 answers
2k views

Maybe an odd situation, but I have fiddled with this myself and searched several forums without any luck. Is this even possible without setting up a local environment and cloning the repo? For some ...
Chapmacl's user avatar
  • 191
1 vote
1 answer
68 views

I want to rebase a branch into the main branch so I do git checkout MyAwesomeBranch git rebase main The problem is that I get Using index info to reconstruct a base tree... .git/rebase-apply/patch:68:...
KansaiRobot's user avatar
  • 10.6k
0 votes
0 answers
43 views

From what I understand, rebasing essentially moves the base of your branch to a more recent (the most recent?) commit to make it seem like you branched off later than you actually did. This makes it ...
NFeruch - FreePalestine's user avatar
1 vote
1 answer
79 views

I had a project where I had to make some changes. I created a first Pull Request: git checkout -b v1 This PR is waiting to be reviewed and approved by my team lead. Meanwhile, I had to open a second ...
MichaelScott's user avatar
-1 votes
1 answer
75 views

My branch is way too behind the main development branch and I want to add these changes to my feature branch I have rebased my feature branch to main development and I can only see other team changes, ...
Nadin Martini's user avatar
-1 votes
1 answer
70 views

I have a branch that needs to be rebased onto master since there is a change in master. Basically, one of the header files has been deleted and some of its contents moved to another unit (split ...
JJ Moore's user avatar
1 vote
1 answer
348 views

I have a repo. It is a little bit chaotic... I can let it be as is and just go on using proper flow from now on, but... Can I at least fix some commit messages and keep old branches for history?) It ...
IO_Nox's user avatar
  • 33
0 votes
2 answers
145 views

I want to optimize the following process: branch A> checkout master master > git pull master > checkout branch A branch A> git rebase master Is it possible to do these commands in one ...
ALIAROUS's user avatar
  • 137
2 votes
1 answer
412 views

Let's say I have multiple commits, like this: ---A---B---C---D \ E---F---G \ H Now let's say I amend a change to B, creating commit B' ...
roberto's user avatar
  • 43
1 vote
1 answer
96 views

I often see this in pull requests, where someone accidentally pushes up a bunch of rebased commits into their PR, and then in the commits tab, there's a long list of all the existing commits that are ...
roulette01's user avatar
  • 2,502
0 votes
0 answers
35 views

I am developing some code in a dev/feature brach. My commit history has been messy (merges from main, files that didn't need to commit, lines that I didn't need to modify). Now I want to do a PR with ...
Knyq's user avatar
  • 45
2 votes
1 answer
63 views

Situation I am working on features that span across multiple branches. I have a branch issue-1 that is waiting for merge with squash commits. I checked out new branch from it, issue-2 to work on it. (...
andrejb-dev's user avatar
  • 2,477
1 vote
1 answer
91 views

I have two branches, 2 and 4: 2c <- top of branch 2 | 2b | 2a <- root branch 2 and 4c <- top of branch 4 | 4b | 4a <- root branch 4 The ...
kitatech's user avatar
0 votes
0 answers
40 views

I have a feature branch derived from master which is some months old now. I want the latest commits from master in my feature branch so I am rebasing. However, I am doing this in a new working branch, ...
John's user avatar
  • 11
0 votes
0 answers
39 views

I have to rebase my topic branch from master. There are some file with no conflicts; the rebase process, as I understood, should automatically merge changes without conflicts. $ git checkout topic $ ...
samuelj's user avatar
  • 135
-2 votes
1 answer
121 views

A variation of a question that has been asked multiple times but I haven't been able to determine a fitting answers that covers my case. In short I want to rebase a repository without specific commits ...
Daraan's user avatar
  • 5,166
0 votes
2 answers
107 views

While developing a feat branch based on the develop branch, the develop branch has been ‘frozen’, that is it has been merged into the staging branch. Now I would like to rebase feat onto staging ...
Géry Ogam's user avatar
  • 8,434
0 votes
2 answers
47 views

I have two branches A and B, the difference between those branches that B has some dropped commits from A (other one commits are identical). When I have make some new commits in branch A I want merge ...
DEgITx's user avatar
  • 990
0 votes
2 answers
2k views

After some thinking I think I have a similar case of rebase as the one in the documentation although with other branch names. Here the docs say to apply git rebase --onto master next topic to get ...
KansaiRobot's user avatar
  • 10.6k
-1 votes
1 answer
79 views

Branching strategy and some context: My team has a few sub-teams, each working on a separate project with its dedicated branch. The master branch has the common functionality and houses a major ...
Ben's user avatar
  • 655
0 votes
2 answers
101 views

I had a fairly old branch and I tried to rebase it to master. I think I messed up really bad, can someone help me on how to fix it? Here is what I did: I used git rebase origin/master. VSCode showed ...
FlushBG's user avatar
  • 301
-1 votes
1 answer
78 views

I am trying to do a release with Nx. During the release process, it get an error about an unknown revision in my commit history. This revision dates back to the initial setup of my repository. I'm ...
Cody Pritchard's user avatar
0 votes
0 answers
28 views

I have these three branches that looks something like this: A1--A2----A3--...--An----AB1--AB2--..--ABn--ABC \ \ / / \ C1-------------+------------------/ ...
winsett's user avatar
  • 109
15 votes
1 answer
490 views

Git shows commits in the interactive-rebase todo list (produced by git rebase -i) in the opposite of the usual order: the most ancestral commit (typically, the oldest commit) is shown first, not last. ...
Kodiologist's user avatar
  • 3,547
0 votes
1 answer
47 views

In a new local branch, I made a bunch of code changes in a directory and renamed that directory locally. The remote branch remains untouched -- I have not merged anything. My new directory does not ...
RB50's user avatar
  • 73

1
2 3 4 5
45