This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cvs2git [2013-04-20 11:59] glen reformat to something readable |
cvs2git [2014-03-29 18:56] (current) glen fix double slash issues |
||
---|---|---|---|
Line 5: | Line 5: | ||
First you should get yourself git based tools: | First you should get yourself git based tools: | ||
<code> | <code> | ||
- | poldek --up -u rpm-build-tools git-core | + | poldek --up -u rpm-build-tools |
mv rpm rpm.cvs | mv rpm rpm.cvs | ||
builder --init-rpm-dir | builder --init-rpm-dir | ||
Line 31: | Line 31: | ||
* CVS: ''cvs up'' | * CVS: ''cvs up'' | ||
- | * GIT: ''git pull --rebase'' | + | * GIT: ''%%git pull --rebase%%'' |
==== checkin single file ==== | ==== checkin single file ==== | ||
Line 57: | Line 57: | ||
* CVS: look into ''Attic/'' in cvsweb | * CVS: look into ''Attic/'' in cvsweb | ||
- | * GIT: ''git log --pretty=format: --name-only --diff-filter=D'' | + | * GIT: ''%%git log --pretty=format: --name-only --diff-filter=D%%'' |
==== restore old removed file ==== | ==== restore old removed file ==== | ||
Line 63: | Line 63: | ||
* CVS: look into ''Attic/'' in cvsweb and \\ ''cvs up -jHEAD -j$DEAD_REV'' and commit | * CVS: look into ''Attic/'' in cvsweb and \\ ''cvs up -jHEAD -j$DEAD_REV'' and commit | ||
* GIT: | * GIT: | ||
- | - get sha: ''git log -- FILE'' | + | - get sha: ''%%git log -- FILE%%'' |
- get contents: ''git show HASH:FILE'' | - get contents: ''git show HASH:FILE'' | ||