Return to Snippet

Revision: 21471
at April 11, 2010 15:42 by narkisr


Updated Code
# SSHing into the remote machine
[email protected]$ mkdir ~/git
[email protected]oteserver$ mkdir ~/git/project-name.git
[email protected]$ cd ~/git/project-name.git
[email protected]/git/project-name.git$ git �-bare init
[email protected]/git/project-name.git$ chmod -R g=u .
[email protected]/git/project-name.git$ find . -type d | xargs chmod g+s
[email protected]/localprojectrepo$ git init

# on the local machine
[email protected]/localprojectrepo$ git init
[email protected]/localprojectrepo$ touch samplefile.txt
[email protected]/localprojectrepo$ git add .
[email protected]/localprojectrepo$ git commit -m �First commit�
[email protected]/localprojectrepo$ git remote add origin [email protected]:<pathto>/git/project-name.git
[email protected]/localprojectrepo$ git push origin master

Revision: 21470
at December 14, 2009 10:16 by narkisr


Initial Code
# SSHing into the remote machine
[email protected]$ mkdir ~/git
[email protected]$ mkdir ~/git/project-name.git
[email protected]$ cd ~/git/project-name.git
[email protected]/git/project-name.git$ git –-bare init
[email protected]/git/project-name.git$ chmod -R g=u .
[email protected]/git/project-name.git$ find . -type d | xargs chmod g+s
[email protected]/localprojectrepo$ git init

# on the local machine
[email protected]/localprojectrepo$ git init
[email protected]/localprojectrepo$ touch samplefile.txt
[email protected]/localprojectrepo$ git add .
[email protected]/localprojectrepo$ git commit -m “First commit”
[email protected]/localprojectrepo$ git remote add origin [email protected]:<pathto>/git/project-name.git
[email protected]/localprojectrepo$ git push origin master

Initial URL
http://www.tuxmaniac.com/blog/2009/12/14/setting-up-a-remote-git-server/

Initial Description
How to setup a remote git repository via SSH.

Initial Title
Settings up a remote git repository.

Initial Tags
ssh, git

Initial Language
Bash