Skip Navigation | ANU Home | Search ANU | Search FEIT | Feedback
The Australian National University
College of Engineering and Computer Science (CECS)
School of Computer Science
Printer Friendly Version of this Document
COMP8440 Free and Open Source Software Development

COMP8440: SCM Tips

SCM Tips

As part of your lab work, you will be using a number of source code management systems. For detailed information on how to use them you should read the documentation of each system, but in case you need to get up to speed quickly, here are some basic pointers.

svn (subversion)

  • Typical Initial checkout
    svn co svn://svn.gnome.org/svn/gedit
  • Updating your tree with the latest changes
    svn update
  • Reverting your tree, discarding any local changes
    svn revert .
  • Listing the changed files in your tree
    svn status
  • Produce a patch showing your local changes
    svn diff
  • Show recent commits
    svn log

git

  • Typical Initial checkout
    git clone git://git.samba.org/tridge/ctdb.git ctdb
  • Updating your tree with the latest changes
    git pull
  • Reverting your tree, discarding any local changes
    git reset --hard; git clean -f
  • Listing the changed files in your tree
    git status
  • Produce a patch showing your local changes
    git diff
  • Committing all your changes
    git commit -a
  • Show recent commits
    git log
  • Show recent commits, with patches
    git log -p

cvs

  • Typical Initial checkout
    cvs -d :pserver:cvs@pserver.samba.org:/cvsroot co ccache
  • Updating your tree with the latest changes
    cvs update
  • Reverting your tree, discarding any local changes
    rm CHANGEDFILES; cvs update
  • Listing the changed files in your tree
    cvs status
  • Produce a patch showing your local changes
    cvs diff -up
  • Show all commits
    cvs log

Last modified: 10/04/2013, 07:56

Copyright | Disclaimer | Privacy | Contact ANU