Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Command line instructions
  2.  
  3.  
  4. --- Git global setup ---
  5. git config --global user.name "Przemysław Burzykowski"
  6. git config --global user.email "202126@edu.p.lodz.pl"
  7.  
  8. --- Create a new repository ---
  9. git clone https://Burzykowski@gitlab.com/Burzykowski/gitlab-test-project.git
  10. cd gitlab-test-project
  11. touch README.md
  12. git add README.md
  13. git commit -m "add README"
  14. git push -u origin master
  15.  
  16. --- Existing folder ----
  17. cd existing_folder
  18. git init
  19. git remote add origin https://Burzykowski@gitlab.com/Burzykowski/gitlab-test-project.git
  20. git add .
  21. git commit
  22. git push -u origin master
  23.  
  24. --- Existing Git repository ---
  25. cd existing_repo
  26. git remote add origin https://Burzykowski@gitlab.com/Burzykowski/gitlab-test-project.git
  27. git push -u origin --all
  28. git push -u origin --tags
  29.  
  30. -----------
  31.  
  32. --- Deleting from git repository ---
  33.  
  34. git rm file1.txt
  35. gir rm db -r (usuwa folder)
  36. git commit -m "remove file1.txt"
  37. git push origin master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement