Put the local GIT repository into the remote GIT repository

In this tutorial, I will guide you all how to put local GIT repository into remote GIT repository such as GitHub or Bitbucket …

For example, I have a GIT repository on my machine with the following content:

Put the local GIT repository into the remote GIT repository

Now, I want to put this repository into a remote GIT repository of Bitbucket at https://huongdanjavacom@bitbucket.org/huongdanjavacom/coffee.git, the steps to do this would be:

First, we will add the Bitbucket’s repository URL into our repository with the following statement:

In this example, I will run the following statement:

Next, I will push all the data up using the following statement:

With this statement, it will not push all the tags we have.

So, our last step is to push all the tags with the following statement:

Result:

Put the local GIT repository into the remote GIT repository

 

Đánh giá bài viết
Chia sẽ bài viết này ...Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Add Comment