-
Notifications
You must be signed in to change notification settings - Fork 2k
Add git rebase -i [SHA1] example. #1247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Following on from my git rebase headaches from #1244 @ben seems to have a nice workflow, maybe we should try adding that into the book? It skips figuring out the correct SHA1 hash to start from atleast... 😄
|
From https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History:
I put in bold the information about the commit you must provide to the |
Hi @aollier, Thanks for responding. 😄 I've chunked this comment into separate sections, I hope this is readable for you. Executive summary of proposed changes:
Now I know this is getting way outside of the "one clear, actionable bug per report" territory. Do you want me to file 2 new issues (for point 2 and 3 of the list above)? And continue the conversation in their respective issues? On git rebase command:Current text:
The current text only has a fully explained example for Git manual explanation:
On parent of a commit terminology in the Pro Git book:I've tried searching for
https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
https://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging
On including a sane workflow:Now that the whole "specific git commit to use for rebase" and "parent terminology" has been covered. I would like to propose that the book include a workflow that skips that whole "select correct sha1" process altogether. I'm looking for some "batteries included" workflows so to speak. I hope I'm not the only one struggling with the git rebase workflow, and I hope that improving the book with some workflows helps other readers too. 👍 Thank you for your time, and for reading this. |
Which version of the book is affected?
Problem is present in source and online books.
Describe the bug:
The book does not explain how to select the correct SHA1 commit to start a rebase operation on. The book has no example for the
git rebase -i [sha1 of specific commit]
command.Steps to reproduce:
git rebase -i [sha1 of specific commit]
command.Expected behavior:
git rebase -i [sha1 of specific commit]
command.git rebase -i HEAD~3
.Screenshots:
Additional context:
The git documentation(https://git-scm.com/docs/git-rebase#_interactive_mode) has some guidance:
Desktop:
The text was updated successfully, but these errors were encountered: