Let's say you have a development project in the directory devproject. Let's start using Git to manage this project.
First off install Git. In Debian and Ubuntu we just need to do "aptitude install git"
cd devproject git init git add . git commit -m "My first commit"
ssh alex mkdir -p /var/git/devproject.git cd /var/git/devproject.git git --bare init exit
cd devproject git remote add origin ssh://alex/var/git/devproject.git
git push origin master
git clone: clone from a remote a new local repository
git fetch: update the local "remote" directory
git pull: = git fetch + git merge
No comments:
Post a Comment