ccdiego5
ccdiego5

Reputation: 666

Gitlab how to Synchronize Gitlab with Git

I wanna know, if can synchronize the Gitlab project with Git console because all time have to download the project .zip or any program for use like Github client?

Upvotes: 0

Views: 1509

Answers (2)

Deb
Deb

Reputation: 1098

The other answer is correct if you want to use HTTPS but if you want/prefer to use SSH you can do it this way!

  1. Add your public ssh key from github_rsa.pub (which is found in your .ssh folder) to your SSH keys on Gitlab.com
  2. Add a config file to your .ssh folder that looks like this

    Host gitlab.com
    RSAAuthentication yes
    IdentityFile ~/.ssh/github_rsa
    User mygitlabusername
    
  3. Clone / pull your repository through Git Bash

  4. Drag the folder to Github For Windows

Upvotes: 0

Drew Blessing
Drew Blessing

Reputation: 2705

Instead of downloading a .zip of the repository, clone the repository using the git command line tool. For example, to clone the GitLab CE repository using HTTPS:

git clone https://gitlab.com/gitlab-org/gitlab-ce.git

This will clone the code into gitlab-ce directory. Change in to this new directory. From this point forward, use git pull origin master, git push origin master and other git commands to interact with the remote repository.

For more information about Git basics and using GitLab see http://doc.gitlab.com/ce/gitlab-basics/README.html

Upvotes: 1

Related Questions