Wednesday, August 4, 2021

Create gitlab repo from existing folder

 1. Make sure no git repo is there

cd project_folder

rm -rf .git


2. Initialize repository


git init


3. Add remote from gitlab. Get the URL by cloning the HTTPS link of the repo from gitlab


git remote add origin https://gitlab.com/mabolfadl/frx.git


4. Add files to staging


git add .


5 . COmmit it


git commit -m 'Initial commit'


6. Set origin to be upstream push


git push --set-upstream origin master


7. Push 


git push


8. Enter username and passwords


No comments:

Post a Comment

Loud fan of desktop

 Upon restart the fan of the desktop got loud again. I cleaned the desktop from the dust but it was still loud (Lower than the first sound) ...