User Tools

Site Tools


Sidebar

software:git:server-and-client
  • have a repo writable by not everyone but shared to the public
# server
yum -y install git-all git-daemon
chkconfig git on
service xinetd start

cd /srv/git
mkdir mytest
cd mytest
echo hugo >file1
git init
git add file1
git commit -m 'first commit'

# client, getting repo
git clone git://clu0/mytest mytest.git

# client, repo for editting
git clone ssh://clu0/srv/git/mytest mytest.ssh
cd mytest.ssh/
echo ffd >file2
git add file2
git commit -m 'fdfdd' 
git push
cd ..

# client, updating read
cd mytest.git
git pull

# importing svn-projects
git-svn clone http://my-project.googlecode.com/svn/trunk new-project
software/git/server-and-client.txt ยท Last modified: 2021/03/23 12:22 (external edit)