Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C course
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • comp8440
  • course
  • Wiki
  • scmtips

scmtips · Changes

Page history
u8909374 created page: scmtips authored Apr 11, 2016 by Robert Edwards's avatar Robert Edwards
Hide whitespace changes
Inline Side-by-side
scmtips.md 0 → 100644
View page @ 58d8279b
# COMP8440: 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.
## 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
```
## 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
```
## 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
```
Clone repository
  • Project Topics
  • assessment
  • building
  • Home
  • lab2
  • lab3_8
  • labsetup
  • labwork
  • lecture pdfs
  • overview
  • schedule
  • scmtips
  • tuxpaint
  • useful links