Next: , Up: get   [Contents][Index]


3.5.1 Basic Usage for get

There are very few common basic usage patterns for get. Below, s.foo.c denotes the name of any existing SCCS file.

get s.foo.c

Get a copy of the most recent trunk revision of s.foo.c into the file foo.c.

get -Gbar s.foo.c

Get a version from s.foo.c, into bar rather than the default foo.c. The file produced by get is often referred to as the “g-file”.

get -r1.3 s.foo.c

Get revision 1.3 from s.foo.c into foo.c. The -G option can be used to set the name of the gotten file.

get -p s.foo.c

Get the most recent trunk revision, and print it on standard output. The -r option could also be used to specify some other revision.

Unless you specify the -k or -e option, the retrieved file will be created read-only.