Guest User

Untitled

a guest
Dec 19th, 2019
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. project1_dir=/project1
  2. project2_dir=/project2
  3. project3_dir=/project3
  4.  
  5. # Create original project
  6. mkdir ${project1_dir}
  7. cd ${project1_dir}
  8. git init
  9. touch file
  10. git add file
  11. git commit -m "file"
  12.  
  13. git log --graph --oneline --all
  14. git clone ${project1_dir} ${project2_dir}
  15. git clone ${project1_dir} ${project3_dir}
  16.  
  17. cd ${project2_dir}
  18. git remote add origin2 ${project3_dir}
  19.  
  20.  
  21. cd ${project1_dir}
  22. features="feature1 feature2 feature3"
  23. for feature in ${features}; do
  24. echo Creating ${feature} branch
  25. git branch ${feature} master
  26. git checkout ${feature}
  27. touch ${feature}
  28. git add ${feature}
  29. git commit -m "commit ${feature}"
  30. done
  31.  
  32.  
  33. cd ${project2_dir}
  34. git pull origin
Advertisement
Add Comment
Please, Sign In to add comment