Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. darius@pc:/darius/git$ cat check
  2. # ma mut in repo-ul privat
  3. cd private-Materiale-Curs/
  4.  
  5. # pe branch-ul principal
  6. git checkout master
  7. git branch
  8.  
  9. # daca am fisiere care nu sunt in commit le sterg! (ex. binare)
  10. # dar sa fiu atent sa nu fie surse
  11. git stash
  12.  
  13. # ma asigur ca e actualizat
  14. git pull
  15.  
  16. # ies din director
  17. cd -
  18.  
  19. # ma mut in repo-ul public
  20. cd Materiale-Curs/
  21.  
  22. # pe branch-ul din care se face acum PR
  23. git checkout personal/remus
  24. git branch
  25.  
  26. # daca am fisiere care nu sunt in commit le sterg! (ex. binare)
  27. # dar sa fiu atent sa nu fie surse
  28. git stash
  29.  
  30. # ma asigur ca e actualizat
  31. git pull
  32.  
  33. # ies din director
  34. cd -
  35.  
  36. echo "checking for diff ..."
  37. diff -rq Materiale-Curs/ private-Materiale-Curs/ | grep -v "\.git"
  38. darius@pc:/darius/git$ ./check
  39. Already on 'master'
  40. Your branch is up to date with 'origin/master'.
  41. * master
  42. personal/remus
  43. No local changes to save
  44. Already up to date.
  45. /darius/git
  46. Already on 'personal/remus'
  47. Your branch is up to date with 'origin/personal/remus'.
  48. curs01/exemple-python
  49. master
  50. personal/darius
  51. * personal/remus
  52. No local changes to save
  53. Already up to date.
  54. /darius/git
  55. checking for diff ...
  56. Only in private-Materiale-Curs/2019-2020/Curs01: Python
  57. Only in private-Materiale-Curs/: README.md
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement