I have merged branches several times without realizing that it worked the first time and thus messed up the git history. Now I would like to clean up the git history if possible. I would like the "Merge branch 'development' of https://... into development" to disappear or to reduced it to one entry in the git history. How could I do that?
Below is a screenshot of the history and a git log at the end of this post.
Edit: I am not sure, if I managed to express my desired result properly. My main concern is to clean up the history. The graphic below shows my current git history. I would like to squash the marked commits and merges together.
|
:
|
* commit 5c36203c6d995e11138ccdc79a9daa86cf05aeb7 (origin/development_initial, feature/project-ToolManager, development_initial)
|\ Merge: 8564fae 3dc0393
| | Author: Drimer
| | Date: Fri Mar 4 12:48:17 2022 +0100
| |
| | Merge branch 'development' of https://project into development
| |
| * commit 3dc03939829e05b2431f8e3c6a353f2da308b2a1
| |\ Merge: bf2f283 f2e18a9
| | | Author: Drimer
| | | Date: Fri Mar 4 11:27:27 2022 +0100
| | |
| | | Merge branch 'development' of https://project into development
| | |
* | | commit 8564fae1510d4dd1a318f5b223d822d2effe591e
|\ \ \ Merge: bf2f283 f2e18a9
| |/ / Author: Drimer
|/| / Date: Fri Mar 4 11:27:27 2022 +0100
| |/
| | Merge branch 'development' of https://project into development
| |
| * commit f2e18a9fd2c7dd67626b205e7ad765066f3db1ca
| |\ Merge: 6b53b37 3a603f2
| | | Author: Drimer
| | | Date: Thu Mar 3 16:03:44 2022 +0100
| | |
| | | Merge branch 'development' of https://project into development
| | |
| | * commit 3a603f2cad073dcfabf2b9c239b9eb82c238e8d2
| | |\ Merge: f49ff40 e3ccdc4
| | | | Author: Drimer
| | | | Date: Tue Mar 1 15:15:58 2022 +0100
| | | |
| | | | Merge branch 'development' of https://project into development
| | | |
| * | | commit 6b53b37fdd909be9ebc1b30abe315dabc2524336
| | |/ Author: Drimer
| |/| Date: Thu Mar 3 16:03:32 2022 +0100
| | |
| | | Added a check ...
| | |
* | | commit bf2f2839f84ceb52fafe6de1463b106cdafb55fb
|\| | Merge: f49ff40 e3ccdc4
| |/ Author: Drimer
|/| Date: Tue Mar 1 15:15:58 2022 +0100
| |
| | Merge branch 'development' of https://project into development
| |
| * commit e3ccdc485fd6364776c0f1a3d4ea2d4b54ea5f64
| | Author: Drimer
| | Date: Tue Mar 1 14:48:24 2022 +0100
| |
| | Load ...
| |
* | commit f49ff4065812c4a4f045c97c5817be326a4bbef6
|/ Author: Drimer
| Date: Tue Mar 1 14:48:24 2022 +0100
|
| Load ...
|
* commit c7424d0925d9b9ff5e821fe070b8dfd2bd89109e
|\ Merge: 2eb50d7 c71d5c0
| | Author: Drimer
| | Date: Tue Mar 1 14:17:20 2022 +0100
| |
| | Merge branch 'feature/project0003-resource-file' into development
| |
| | # Conflicts:
:
|
* commit 5c36203c6d995e11138ccdc79a9daa86cf05aeb7 (origin/development_initial, feature/project-ToolManager, development_initial)
|\ Merge: 8564fae 3dc0393
| | Author: Drimer
| | Date: Fri Mar 4 12:48:17 2022 +0100
| |
| | Merge branch 'development' of https://project into development
| |
| * commit 3dc03939829e05b2431f8e3c6a353f2da308b2a1
| |\ Merge: bf2f283 f2e18a9
| | | Author: Drimer
| | | Date: Fri Mar 4 11:27:27 2022 +0100
| | |
| | | Merge branch 'development' of https://project into development
| | |
* | | commit 8564fae1510d4dd1a318f5b223d822d2effe591e
|\ \ \ Merge: bf2f283 f2e18a9
| |/ / Author: Drimer
|/| / Date: Fri Mar 4 11:27:27 2022 +0100
| |/
| | Merge branch 'development' of https://project into development
| |
| * commit f2e18a9fd2c7dd67626b205e7ad765066f3db1ca
| |\ Merge: 6b53b37 3a603f2
| | | Author: Drimer
| | | Date: Thu Mar 3 16:03:44 2022 +0100
| | |
| | | Merge branch 'development' of https://project into development
| | |
| | * commit 3a603f2cad073dcfabf2b9c239b9eb82c238e8d2
| | |\ Merge: f49ff40 e3ccdc4
| | | | Author: Drimer
| | | | Date: Tue Mar 1 15:15:58 2022 +0100
| | | |
| | | | Merge branch 'development' of https://project into development
| | | |
| * | | commit 6b53b37fdd909be9ebc1b30abe315dabc2524336
| | |/ Author: Drimer
| |/| Date: Thu Mar 3 16:03:32 2022 +0100
| | |
| | | Added a check
| | |
* | | commit bf2f2839f84ceb52fafe6de1463b106cdafb55fb
|\| | Merge: f49ff40 e3ccdc4
| |/ Author: Drimer
|/| Date: Tue Mar 1 15:15:58 2022 +0100
| |
| | Merge branch 'development' of https://project into development
| |
| * commit e3ccdc485fd6364776c0f1a3d4ea2d4b54ea5f64
| | Author: Drimer
| | Date: Tue Mar 1 14:48:24 2022 +0100
| |
| | Load ...
| |
* | commit f49ff4065812c4a4f045c97c5817be326a4bbef6
|/ Author: Drimer
| Date: Tue Mar 1 14:48:24 2022 +0100
|
| Load ...
