Advertisement
Guest User

Untitled

a guest
Nov 12th, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1.  
  2. # Make sure you're on the right branch
  3. # Then do this:
  4. # Replace X with the number of commits you've made
  5.  
  6. git reset --soft HEAD~X
  7.  
  8. # Now, for the files you want in your final PR, do this:
  9. # Replace path/to/the/file.xxx with the actual path
  10.  
  11. git add path/to/the/file.xxx
  12.  
  13. # Now commit the result:
  14. # Replace COMMIT MESSAGE with something meaningful
  15.  
  16. git commit -m "Commit Message"
  17.  
  18. # Now push the result to github's copy of your repo:
  19. # Replace your_branch with the actual branch name
  20.  
  21. git push --force origin your_branch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement