Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Global setup
  2. git config --global user.name "Andrea"
  3. git config --global user.email "stilografico.it@gmail.com"
  4.  
  5.  
  6.  
  7.  
  8. Create a new repository
  9. git clone git@gitlab.com:stilografico/test2.git
  10. cd test2
  11. touch README.md
  12. git add README.md
  13. git commit -m "add README"
  14. git push -u origin master
  15.  
  16.  
  17.  
  18.  
  19.  
  20. Existing folder
  21. cd existing_folder
  22. git init
  23. git remote add origin git@gitlab.com:stilografico/test2.git
  24. git add .
  25. git commit
  26. git push -u origin master
  27.  
  28.  
  29.  
  30.  
  31. Clone repository on localmachine
  32. git clone git@gitlab.com:stilografico/test2.git
  33.  
  34.  
  35. cd existing_repo
  36. git remote add origin git@gitlab.com:stilografico/test2.git
  37. git push -u origin --all
  38. git push -u origin --tags
  39.  
  40.  
  41. Caricamento Progetto su Repository da existing folder
  42. git init;
  43. git remote add origin git@gitlab.com:stilografico/bardianicsf.git;
  44. git add .;
  45. git commit -m 'Master Pubblished'; git push -u origin master;
  46.  
  47. git add .; git commit -m 'commento'; git push -u origin master;
  48.  
  49.  
  50.  
  51. Configurare un nuovo remote [git@bitbucket.org:cobaltodev/gruppodallagrassa.it.git] -----> รจ il nuovo remote
  52. git remote set-url origin git@bitbucket.org:cobaltodev/gruppodallagrassa.it.git
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement