[ 2011-01-09]
Create a new git project:
cd my_project
git init .
git add some_file.txt
git commit
Let's share the project with other local users (from Setting Up a Private Repository):
git clone --bare $PWD/.git /tmp/my_project.git
scp -r /tmp/my_project.git myserver.com:/opt/git/my_project.git
Somewhere else in the galaxy:
cd my_projects
git clone myserver.com:/opt/git/my_project.git
cd my_project
[2010-01-23]
Typical git work cycle (from: Git for the lazy):
git status
git diff
git add file1 file2
git commit
Synchronize new project version back with the git server:
git push origin master
[2011-01-13]
Later that day somewhere else:
git pull
Saturday, January 23, 2010
Subscribe to:
Posts (Atom)