While working on my branch, I combined the leading branch so that my work is updated with the master.
Now that I want to clear my commit history (squash / pick), I get all the commits from the main branch as well git rebase myBranch -i HEAD myfirstcommit
git rebase myBranch -i HEAD myfirstcommit
How can I filter commits from the main branch, so I can only change my own commits?
Once you have merged masterinto your branch, staying in your branch, follow these steps:
master
git rebase -i master
This will restore your branch over master, only with new commits that are in your branch, but not in master.
Source: https://habr.com/ru/post/1654100/More articles:NgResource query with compound key parameter - angularjsORA-12899: column value too large - oracleManaging .txt requirements file contents for Python virtual environment - python.Net Core MVC application running in Visual Studio cannot find views - .netIBeacon output when calling with a Bluetooth headset - iosWaiting until location is enabled after enabling location alert service - javaAndroid: Как узнать имя провайдера местоположений от намерения трансляции KEY_STATUS_CHANGED, отправленного LocationManager? - androidProblem with Ionic and Cordova on iOS 10 - ioschange gradle file permission - build.gradleSort the pointers by the value that they point to C - cAll Articles