Changes between Version 2 and Version 3 of GitCleanLocalHistory
- Timestamp:
- Jun 19, 2013, 11:38:11 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitCleanLocalHistory
v2 v3 33 33 * feature_X_local 34 34 $ # create a temporary branch which HEADs to the last /patched/ commit (`C`) 35 $ git checkout -b _tmp PetascopeSecore35 $ git checkout -b _tmp feature_X_local 36 36 $ git reset --hard C # see "C" node in the graph above 37 37 $ # move commits /from/ the common ancestor (ie C) between tmp_branch and feature_X_local (ie {D,E}) on top of feature_X