Advertisement
rockdrilla

git test case #1

Jan 31st, 2014
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. # create empty repo 'v8-test' at your account @github
  2.  
  3. # initial setup with totally empty commit
  4. git init
  5. git remote add origin git@github.com:${username}/v8-test.git
  6. git checkout -b master
  7. git commit --allow-empty --allow-empty-message
  8.  
  9. # early detach
  10. git checkout -b upstream
  11. git commit --allow-empty -m 'start upstream branch'
  12.  
  13. # back to master
  14. git checkout master
  15. git commit --allow-empty -m 'start Debian branch'
  16.  
  17. # setup upstream branch
  18. git checkout upstream
  19. git remote add source git@github.com:v8/v8.git
  20. git remote update --prune
  21. git remote set-head source 3.22
  22. git merge --squash --no-commit source
  23. git commit -m 'Imported upstream 3.22.24.20'
  24.  
  25. # cleanup our upstream branch
  26. ls -lhd -- test/mjsunit/tools/*.log tools/v8.xcodeproj
  27. git rm -rf -- test/mjsunit/tools/*.log tools/v8.xcodeproj
  28. ls -lhd -- test/mjsunit/tools/*.log tools/v8.xcodeproj
  29. git commit -m 'Cleanup upstream'
  30.  
  31. # finalize
  32. git push -u origin master
  33. git push -u origin upstream
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement