Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command line instructions
- --- Git global setup ---
- git config --global user.name "Przemysław Burzykowski"
- git config --global user.email "202126@edu.p.lodz.pl"
- --- Create a new repository ---
- git clone https://Burzykowski@gitlab.com/Burzykowski/gitlab-test-project.git
- cd gitlab-test-project
- touch README.md
- git add README.md
- git commit -m "add README"
- git push -u origin master
- --- Existing folder ----
- cd existing_folder
- git init
- git remote add origin https://Burzykowski@gitlab.com/Burzykowski/gitlab-test-project.git
- git add .
- git commit
- git push -u origin master
- --- Existing Git repository ---
- cd existing_repo
- git remote add origin https://Burzykowski@gitlab.com/Burzykowski/gitlab-test-project.git
- git push -u origin --all
- git push -u origin --tags
- -----------
- --- Deleting from git repository ---
- git rm file1.txt
- gir rm db -r (usuwa folder)
- git commit -m "remove file1.txt"
- git push origin master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement