How to Importing code from an existing project GitLab, GitHub, and bitbucket?

Importing code from an existing project

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

techouse

I love helping beautiful people like you. I love hanging out with my dogs.

You may also like...

Leave a Reply

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

× How can I help you?