Git clone repository

In this tutorial, How to git clone repository syncs it to your server.

My System

  • Target: gitlab repository
  • Source: Server Linux

Git clone repository

create a clone, or copy of the target repository to your server.

git clone https://huupv@https://gitlab.com/DevopsRoles/devopsroles.git

To switch from master to develop branch

git checkout develop

List all the branches in your repository

git branch

fetch and merge changes on the remote server to your working directory

git pull

Conclusion

Thought the article, you can use git clone repository for the project as above. I hope will this your helpful.

,

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

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

Comment moderation is enabled. Your comment may take some time to appear.

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