git-squash Questions
2
I always prefer to rebase -i my changes locally and leave a very clean and useful commit history for my feature branches. This also have the benefit of being able to prune local/remote branches aft...
Winded asked 22/6, 2021 at 0:18
3
Solved
What is the difference between amend and squash commands? I tried both and found that both are doing the same for proper management.
Eleusis asked 27/1, 2016 at 17:33
2
Solved
I have created 2 commits to remote dev branch. That I squashed and merge into remote master branch.
Now when I want to continue with working on dev branch - I don't know how can I correctly "repai...
Tarantula asked 23/6, 2018 at 6:59
1
I have a merge request with 5 commits, all pushed to the branch on GitLab. I'd like to squash those 5 commits into 1 -- but there are intermediate commits to the repo by other people. E.g.,in git l...
Archfiend asked 19/2, 2021 at 5:28
15
Solved
I have a remote Git server, here is the scenario which I want to perform:
For each bug/feature I create a different Git branch
I keep on committing my code in that Git branch with un-official Git...
Shank asked 15/3, 2011 at 7:47
2
Solved
I cannot find the documentation about the several options (checkboxes) that are visible when commiting.
I'm looking for an option to squash all commits from the IDE, and I'm wondering if one of ...
Cleo asked 22/4, 2015 at 12:59
4
I've been reading a little about --squashing commits, but they all seem to be go hand in hand with a --rebase.
I have a feature branch with a set of commits like this:
(Feature) A --> B -->...
Casto asked 14/7, 2015 at 14:37
2
Solved
I have a git repository with master and alt branches. alt branch contains modified version of master code, and i am trying to merge changes from master to alt like this:
git merge --squash master
...
Stradivari asked 3/8, 2012 at 14:39
0
I created a simple folder with a file and performed few commits for practicing squash. I selected two commits and right click. However, the squash commit option is disabled.
Where am I going wrong?...
Fukien asked 14/7, 2020 at 10:38
2
When using Git inside of IntelliJ, how do I squash all of my commits for a local branch? What settings do I use in the rebase branch window?
I've tried setting the Onto to local/master and From to ...
Buroker asked 26/1, 2016 at 16:24
1
Solved
I have the following scenario:
Master-branch: what is in production, can contain hotfixes
Develop-branch: the branch my developers are using to create pull requests to
feature-branches: the branc...
Concussion asked 15/1, 2020 at 8:55
1
Solved
I use an optimistic work-flow in Gitlab, which assumes the majority of my merge requests will be accepted without change. The flow looks like this:
Submit a merge request for branch cool-feature-...
Traumatize asked 28/6, 2019 at 9:48
3
A developer recently left who left a ton of commits in a repo from a few months ago that are just like 'updated'. Ideally, I'd like to squash them into a single commit but I have only done this for...
Apogee asked 11/1, 2016 at 23:57
1
Solved
Our team is deciding on what merge strategy to use in our repo. We're looking at squash merges for the ability to have a clean commit history. However, we want to be able to review intermediate cha...
Risotto asked 14/6, 2019 at 14:49
2
For some projects I do or work on sometimes it is usually best that we squash/rebase all changes into a single commit. However, I was wondering how this affects the contributions page on github.
F...
Trapper asked 21/3, 2018 at 22:59
1
Solved
I'm working on a git repository which I forked from an upstream. There was a feature I wanted to implement and I created a new branch uiTests and did changes there and made a pull request.
The PR ...
Ferrin asked 26/5, 2018 at 14:1
2
Solved
I have tried multiple ways to squash my remote repo commits but didnt get it right. I want to squash them all and make it one . Below is the list of commits. Below is the summary of my pull request...
Showy asked 12/5, 2018 at 2:51
4
I'm fairly new to git, so I've been trying to figure out how to squash 3 commits into 1 so my PR can get merged. I've read a lot of docs and guides and sort of found out how to squash commits but o...
Prose asked 29/5, 2017 at 19:24
1
Solved
Imagine a git repository with the following commits:
Fixed issue 3 123eabc
Fixed issue 2 (part 2) fa23b79
Fixed issue 2 (part 1) 7bea5cc
Fixed issue 1 0d229f4
These are all pushed to remote mast...
Conover asked 10/2, 2017 at 15:37
1
Solved
Let's say I've developed a feature on branch1 and sent it out for code review using a GitHub Pull Request. While it's being reviewed, I do some follow-on work on branch2.
branch2 -> D --> E...
Shakeup asked 25/1, 2017 at 18:48
3
Solved
So GitHub has the ability to merge+squash commits for a PR.
We follow the process of PR'ing code from dev -> master.
Previously, I've been just 'merging' the PR's but that generates a new commit ...
Preset asked 25/7, 2016 at 4:44
8
Solved
I have a bunch of commits on my local repository which are thematically similar. I'd like to combine them into a single commit before pushing up to a remote. How do I do it? I think rebase do...
Galagalactagogue asked 4/8, 2011 at 0:4
1
Solved
I want to squash several commits together in the middle of a branch without modifying the commits before and after.
I have :
A -- B -- C -- D -- E -- F -- G
| |
master dev
origin/master
I want ...
Resound asked 18/8, 2016 at 16:35
3
I have a local branch, we're using git-flow with Pull Requests and I'm looking to squash a few commits after receiving PR feedback.
How can I squash all my commits (from PR's for example) into the...
Karmakarmadharaya asked 4/12, 2015 at 13:5
3
Solved
Initial scenario:
A (master)
\
B - C - D (development)
What I want after merge --squash:
A - E (master/development)
\ /
B - C - D
On branch master, git log would be
commit E
Squashed c...
Oxalis asked 17/10, 2015 at 20:30
© 2022 - 2024 — McMap. All rights reserved.