How to add existing project in gitlab , github and bitbucket ?

Adding the existing project in gitlab , github and bitbucket

Open terminal

Go to the local project directory

cd /home/username/test

Initialize the local directory

git init

Add all your files to the new local project directory

git add .

After adding all files, You have to commit that staged files by particular tag just for your reminder eg. “test commit”.

git commit -m "first commit"

In terminal add your repository URL for the remote repository

git remote add origin URL

push all changes of your local project repository to the Github , gitlab and bitbucket.

git push origin master

 

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.