Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
software:rcs [2010/04/12 10:57] cyril diff -w |
— (current) |
====== Revision Control Systems ====== | |
| |
:!: **Warning:** This is only a memo, don't use this table if you don't know what these commands will do. These RCS don't have the same philosophy and don't behave the same way, these equivalences are approximations. | |
| |
Common tasks: | |
^ Task ^ GIT ^ SVN ^ CVS ^ | |
| //Get Repository// | ''git clone <url> [<rep-name>]'' | ''svn co <url> [<rep-name>]'' | ''export CVSROOT=<url>;''<html><br/></html>''mkdir <rep-name>; cd <rep-name>;''<html><br/></html>''cvs checkout .'' | | |
| //Update// | ''git pull'' | ''svn up'' | ''cvs update'' | | |
| //Commit// | ''git commit -a; git push'' | ''svn commit'' | ''cvs commit'' | | |
| //Add files// | ''git add <file>'' | ''svn add <file>'' | ''cvs add <file>'' | | |
| //Diff// | ''git diff [a7a57d0390 b7d15a91c7]'' | ''svn diff [-r r4042:r4043] | less'' | ''cvs diff [-r 1.42 -r 1.43] | less'' | | |
| //Diff -w// | ''git diff -w'' | ''svn diff -x -w | less'' | ''cvs diff -w | less'' | | |
| //Log// | ''git log'' | ''svn log | less'' | ''cvs log | less'' | | |
| //Status// | ''git status'' | ''svn status'' | ''cvs -q status | grep '^[?F]' | grep -v 'to-date' '' | | |
| |
Less common tasks: | |
^ Task ^ GIT ^ SVN ^ CVS ^ | |
| |
| |