deadman96385

Untitled

Jun 2nd, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. You would want to move file changes out of the newest commit normally if you are rebasing a stock kernel onto a caf tag. This allows you split changes to drivers and such into their own commit out of the big import commit so you can then more easily see what changes were done.
  2.  
  3.  
  4. <pre>
  5.  
  6. <code>
  7.  
  8. git reset HEAD^ directory/to/split/out
  9.  
  10. git commit —amend
  11.  
  12. git add directory/to/split/out
  13.  
  14. git commit
  15.  
  16. </code>
  17.  
  18. </pre>
  19.  
  20.  
  21. Then you will need to move the big import commit back to be the newest commit.
  22.  
  23.  
  24. <pre>
  25.  
  26. <code>
  27.  
  28. git rebase -i HEAD~2
  29.  
  30. </code>
  31.  
  32. </pre>
  33.  
  34. Do ctrl + k on the first line to cut it
  35.  
  36. Then make a new empty line and do ctrl + u to paste it
  37.  
  38. Then exit the editor
Advertisement
Add Comment
Please, Sign In to add comment