>

Setting up a local Git using a remote server

  1. Install git
    sudo apt-get install git
  2. Configure git
    git config --global user.name "Jay Everson (hostname-O/S)"
    git config --global user.email jeverson@techmentor.com
  3. Setup SSH client to use port 2222
    # vi ~/.ssh/config
    Host backwater.techmentor.com
        port 2222
  4. Setup SSH to login to the “origin” server without a password.
  5. Create source directory
  6. Clone Repos
    git clone gitpriv@backwater.techmentor.com:gitrepo/scripts.git
    git clone gitpriv@backwater.techmentor.com:gitrepo/configs.git
    git clone gitpriv@backwater.techmentor.com:gitrepo/java.git
    
banner ad

Comments are closed.