User Tools

Site Tools


evergreen-docs:github-workflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
evergreen-docs:github-workflow [2023/12/28 15:51] aneimanevergreen-docs:github-workflow [2023/12/28 15:54] (current) aneiman
Line 34: Line 34:
     - From your local branch, enter ''git rebase -i HEAD~2'' (where 2 is the number of commits you wish to combine)         - From your local branch, enter ''git rebase -i HEAD~2'' (where 2 is the number of commits you wish to combine)    
     - Your text editor will open and should show both of the commits, for example:     - Your text editor will open and should show both of the commits, for example:
-      - pick [COMMIT HASH 1] [COMMIT MESSAGE 1] +      - ''pick [COMMIT HASH 1] [COMMIT MESSAGE 1]'' 
-      - pick [COMMIT HASH 2] [COMMIT MESSAGE 2] +      - ''pick [COMMIT HASH 2] [COMMIT MESSAGE 2]'' 
-    - Change the word "pickin the second line to "fixupthen save and close the file +    - Change the word ''pick'' in the second line to ''fixup'' then save and close the file. This merges the commits and retains the first line'commit message.
-      - squash --> merges commits, then allows amendment of commit message +
-      - fixup --> merges commits like squash does, but discards previous commit message+
     - Check gitlog to ensure that you now have a single commit     - Check gitlog to ensure that you now have a single commit
   - Make any corrections (via additional commits, if needed)   - Make any corrections (via additional commits, if needed)
evergreen-docs/github-workflow.txt · Last modified: 2023/12/28 15:54 by aneiman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.