i386:
Now we want to checkout a copy of the new repository from a different server.
To add a new file to the repo:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpmrpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpmyum install gitWe’ll create a dummy file to get started. If you trying to clone (checkout) an empty git repository, you’ll just get errors:mkdir /home/rajat/repo #create directory for new repositorycd /home/rajat/repogit init
touch firstfilegit add .git commityou can copy your repo.git directory to where you want to make the repo publiccd /home/rajatgit clone --bare ./repo repo.gittouch repo.git/git-daemon-export-ok
Now we want to checkout a copy of the new repository from a different server.
git clone ssh://yourserveraddress/home/rajat/repo.gitTo add a new file to the repo:
Now we want to submit the changes back to the git server:cd repotouch secondfilegit add .git commit
git push
:)
 
 

















