Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nbouscal
on June 9, 2015
|
parent
|
context
|
favorite
| on:
How to undo almost anything with Git
This is pretty good, I had never seen autosquash before. Another rebase flag that I find useful is --onto. For example, to rebase only the most recent N commits of a branch onto master:
git rebase HEAD~N --onto master
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
git rebase HEAD~N --onto master