Sign up to create your own snipts, or login.

Public snipts » dalord's snipts » how to create a git repo on a server under msysgit on windows

posted on Sep 20, 2009 at 5:11 a.m. EDT in 
  • cd /e/language/Project/src
    git init
    vim .gitignore      # *.pyc, *~
    git add .gitignore  # ...
    git commit -m "Initial commit"
    
    cd ../..            # /e/language
    git clone --bare Project/src project.git
    scp -r -P 1234 project.git user@192.168.0.1:~/git
    # delete 'Project' in Eclipse
    git clone ssh://user@192.168.0.1:1234/~/git/project.git project/src
    # recreate 'project' in Eclipse
    

    copy | embed

0 Comments

Sign up, or login to leave a comment.