srdo commented on issue #2911: STORM-2720 : Add TIMESTAMP option for 
FirstPollOffset for Kafka Trident spout
URL: https://github.com/apache/storm/pull/2911#issuecomment-492713035
 
 
   There's a decent guide here 
https://stackabuse.com/git-squash-multiple-commits-in-to-one-commit/
   
   Basically you want to do ``git rebase -i `git merge-base HEAD origin/master` 
`` (where origin/master is Storm's master branch). This will open an editor 
(usually vim, if you'd rather use nano or something else, do `git config 
core.editor nano` before doing the rebase command).
   
   In the editor, you'll see a list of your commits, with the "pick" command in 
front of them. If you replace "pick" with "fixup", you'll merge the line's 
commit into the previous commit.
   
   What you want is for the editor to show something like
   ```
   pick commit1
   fixup commit2
   fixup commit3
   ```
   
   Once you've edited the file, save and quit the editor. Git will execute the 
rebase and squash your commits down to one.
   
   If you think you've messed up, you can always do `git reflog` to see the 
recent commits you've been on. If you need to reset back to an old commit, you 
can do so with `git reset --hard <commit>`. This way, you can always get back 
to a good commit, even if you've messed something up.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to