Version Control
- Lab. de Bases de Dados e Aplicações Web
MIEIC, FEUP 2010/11
Version Control Lab. de Bases de Dados e Aplicaes Web MIEIC, FEUP - - PowerPoint PPT Presentation
Version Control Lab. de Bases de Dados e Aplicaes Web MIEIC, FEUP 2010/11 Srgio Nunes Version Control Version control is about maintaining a history of revisions made to documents. Each revision is associated with a timestamp
MIEIC, FEUP 2010/11
made to documents.
Revisions can be compared, restored and merged.
be embedded in other software (e.g. Word).
server or distributed.
(2000), Mercurial (2005), Git (2005).
Visual SourceSafe (1994), Perforce (1995).
Central Repository User A
Local Copy
User B
Local Copy
User C
Local Copy
checkout modify files commit update Central Repository
svn import <folder> <repository address> svn checkout <repository address> svn add <file> svn commit svn update
Central Repository checkout checkout edit file-1.txt edit file-1.txt commit commit
Obtain prototype archive exemplo-php.tgz: wget http://web.fe.up.pt/~ssn/2010/lbaw/docs/exemplo-php.tgz Uncompress archive: tar xvfz exemplo-php.tgz Import prototype to each group's SVN repository: svn import exemplo http://lbaw.fe.up.pt/svn/lbaw11gxx/exemplo-php -m "Import prototype" Select local development area (e.g. src or public_html): cd ~/public_html svn checkout http://lbaw.fe.up.pt/svn/lbaw11gxx/exemplo-php cd exemplo-php ... change files ... Commit changes to repository: svn commit -m "Config changed"
Visible at http://gnomo.fe.up.pt/~<user login>.
Visible at http://gnomo.fe.up.pt/~lbaw11gxx.