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