gitlab add remote upstream 1

gitlab add remote upstream

# First remove any existing hidden git folder in your project folder
# Initialize project in your folder
git init
# add your gitlab project as your remote origin
git remote add origin https://gitlab.com/your_account_name/project_name.git
# add all files in the folder
git add .
# commit changes
git commit -m "Initial commit"
# push your changes to the master branch
git push origin master
# Files should now be visible if you navigate to the address in your browser
https://gitlab.com/your_account_name/project_name

Here is what the above code is Doing:
1. First we remove any existing hidden git folder in your project folder.
2. Then we initialize project in your folder.
3. Then we add your gitlab project as your remote origin.
4. Then we add all files in the folder.
5. Then we commit changes.
6. Then we push your changes to the master branch.
7. Finally, we check if the files are visible if you navigate to the address in your browser.

Similar Posts