[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-cvs] [UsingGit] (edit)
From: |
rocky |
Subject: |
[Savannah-cvs] [UsingGit] (edit) |
Date: |
Sat, 29 Nov 2008 05:31:06 +0000 |
??changed:
-Git comes with the a tool, git-cvsimport which will import a CVS repository
into a new git project. You may want to use this for converting your existing
CVS repository to a new git repository.
Git comes with the tool, git-cvsimport which will import a CVS repository into
a new git project. You may want to use this for converting your existing CVS
repository to a new git repository.
++added:
$ myrepository='pserver:address@hidden' # Or whatever you usually use for CVS
??changed:
- $ cd $myproject # Note: that this is new directory. It is not git yet.
$ cd $myproject # Note: that this is new directory. It is not git yet.
??changed:
- $ git-cvsimport -A ../authors.txt -p x -v -d
:pserver:address@hidden:/sources/$project $module
-
-If your project is old, git-cvsimport may take a long time.
$ git-cvsimport -A ../authors.txt -p x -v -d:${myrepository}:/sources/$project
$module
Adjust the -d to be whatever you use to checkout CVS; the nongnu address won't
be correct if your project is a gnu project. If your project is old or has lots
of commits, git-cvsimport may take a long time.
??changed:
-On your project page, activate `git`. For example the libcdio project the URL
for the project page is:
On your project page, activate `git`. For example the libcdio project the URL
for the project page is::
??changed:
-"activated" is in the second column and the "git" row is midway down the page.
"activated" is in the second column and the "git" row is midway down the page.
If you forget to do this or git is not active, you may get a message like this::
Pushing to address@hidden:/srv/git/libcdio.git
fatal: '/srv/git/libcdio.git': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly
??changed:
- git push --tags -v address@hidden:/srv/git/project.git
-
-Similarly remember to use the '--all' flags to push all branches, not just the
'master' one.
$ login='mylogin'
$ project='myproject'
$ git push --tags -v address@hidden:/srv/git/${project}.git
Similarly remember to use the '--all' flags to push all branches, not just the
'master' one:
$ git push --all -v address@hidden:/srv/git/${project}.git
If you have branches and you don't push all branches when you do a git-clone
you may get error messages like the one below::
$ git clone git://git.savannah.gnu.org/libcdio.git
Initialized empty Git repository in /src/external-vcs/libcdio/.git/
remote: Counting objects: 15471, done.
remote: Compressing objects: 100% (3223/3223), done.
....
Receiving objects: 100% (15471/15471), 16.56 MiB | 231 KiB/s, done.
Resolving deltas: 99% (12089/12208) Resolving deltas: 100% (12208/12208)
Resolving deltas: 100% (12208/12208), done.
cd: 491: can't cd to /src/external-vcs/libcdio/.git/refs/remotes/origin
Warning: Remote HEAD refers to nonexistent ref, unable to checkout.
??changed:
-
* http://ktown.kde.org/~zrusin/git/git-cheat-sheet-medium.png - Git Cheat Sheet
--
forwarded from
https://savannah.gnu.org/maintenance/address@hidden://savannah.gnu.org/maintenance