more a2ps instructions
[tridge/comp8440.git] / scm-tips.php
1 <?php
2 include "8440head.php";
3 ?>
4
5 <center>
6 <h1>
7 <font color="#931515" size="+3">COMP8440: SCM Tips</font>
8 </h1>
9 </center>
10
11 <h1>SCM Tips</h1>
12
13 As part of your lab work, you will be using a number of source code
14 management systems. For detailed information on how to use them you
15 should read the documentation of each system, but in case you need to
16 get up to speed quickly, here are some basic pointers.
17
18 <h2>svn (subversion)</h2>
19
20 <ul>
21 <li>Typical Initial checkout
22 <pre><b>svn co svn://svn.gnome.org/svn/gedit</b></pre>
23 <li>Updating your tree with the latest changes
24 <pre><b>svn update</b></pre>  
25 <li>Reverting your tree, discarding any local changes
26 <pre><b>svn revert .</b></pre>  
27 <li>Listing the changed files in your tree
28 <pre><b>svn status</b></pre>  
29 <li>Produce a patch showing your local changes
30 <pre><b>svn diff</b></pre>  
31 <li>Show recent commits
32 <pre><b>svn log</b></pre>  
33 </ul>
34
35 <h2>git</h2>
36
37 <ul>
38 <li>Typical Initial checkout
39 <pre><b>git clone git://git.samba.org/tridge/ctdb.git ctdb</b></pre>
40 <li>Updating your tree with the latest changes
41 <pre><b>git pull</b></pre>  
42 <li>Reverting your tree, discarding any local changes
43 <pre><b>git reset --hard; git clean -f</b></pre>  
44 <li>Listing the changed files in your tree
45 <pre><b>git status</b></pre>  
46 <li>Produce a patch showing your local changes
47 <pre><b>git diff</b></pre>  
48 <li>Committing all your changes
49 <pre><b>git commit -a</b></pre>  
50 <li>Show recent commits
51 <pre><b>git log</b></pre>  
52 <li>Show recent commits, with patches
53 <pre><b>git log -p</b></pre>  
54 </ul>
55
56 <h2>cvs</h2>
57
58 <ul>
59 <li>Typical Initial checkout
60 <pre><b>cvs -d :pserver:cvs@pserver.samba.org:/cvsroot co ccache</b></pre>
61 <li>Updating your tree with the latest changes
62 <pre><b>cvs update</b></pre>  
63 <li>Reverting your tree, discarding any local changes
64 <pre><b>rm CHANGEDFILES; cvs update</b></pre>  
65 <li>Listing the changed files in your tree
66 <pre><b>cvs status</b></pre>  
67 <li>Produce a patch showing your local changes
68 <pre><b>cvs diff -up</b></pre>  
69 <li>Show all commits
70 <pre><b>cvs log</b></pre>  
71 </ul>
72
73   
74
75 <p><div align="center">
76   <?php
77     print " Last modified: ";
78     $last_modified = getlastmod();
79     print(date("j/m/Y, H:i", $last_modified));
80   ?>
81 </div><p>
82
83 <?php
84 include "8440tail.php";
85 ?>
86
87
88