Musings

A random collection

Archive for the ‘svn’ Category

TECH: Getting started with GIT (Version Control)

Setup Local repository

mkdir local-dir
git init    # creates a local repository directory .git/
git add .   # marks the content of current directory tree for ADD
git commit  # checks into the repository

Setup Remote repository

mkdir GIT-STORE
git --bare init

Push Local repository changes to Remote Repository

cd ~/local-dir
git remote add origin $HOME/GIT-STORE
git push origin master
Advertisements

Written by curious

March 4, 2010 at 10:47 am

Posted in svn

TECH: SSH Tunnel for Subversion

Here are the steps for configuring Subversion on Windows to use SVN tunnel

  1. Generate a private key for use with putty by running “puttygen” tool. Save the private key file.
  2. From puttygen window “Copy” the public key part and insert it into $HOME/.ssh/authorized_keys file on Linux to enable logins without a password.
  3. Create a putty connection (we call it “linux1”) to your Linux machine and configure it to use the private key you saved earlier.
  4. Fix your SVN config file to enable it to use SSH tunneling. Edit the config file %USERPROFILE%\Application Data\Subversion\config and in the tunnels section add the following line:
    [tunnels]
    ssh = $SVN_SSH c:/tools/plink
    
  5. We are now ready to use SVN. Check out with SVN URL: svn+ssh://linux1/path-svn-repository

Written by curious

January 26, 2010 at 3:44 am

Posted in svn