More detail in second chapter
[gitmagic/dustin.git] / clone.txt
blob3e43a2204e84b801ac6d6ad8c07f6f6dd405df00
1 = Cloning Around =
3 == Classic Source Control ==
5 Copy your project to a directory in your main server. Initialize a Git
6 repository: <tt>git init ; git add . ; git commit -m "Initial commit"</tt>.
8 To check out source, a developer types
10  $ git clone git+ssh://main.server/directory
12 After making changes, the code is checked in to the main server by:
14  $ git commit -a
15  $ git push
17 If the main server has been updated, the latest version needs to be checked out before the push. To sync to the latest version:
19  $ git commit -a
20  $ git pull
22 == Forking a Project ==
24 Sick of the way a project is being run? Think you could do a better job?
26 First, on your server:
28  $ git clone git+ssh://main.server/directory
30 Then tell everyone to check out your fork of the project at your server.
32 At any later time, you can merge in the changes from the original project with:
34  $ git pull
36 == Ultimate Backups ==
38 How would you like multiple tamper-proof geographically diverse redundant archives?
40 TODO
42 == Guerilla Version Control ==
44 TODO
46 == Working On Features In Parallel ==
48 TODO
50 == Source Control Engine Tools and Utilities ==
52 TODO