savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] [UsingGit] (edit) Reordered "Converting from CVS to git"


From: hlangos
Subject: [Savannah-cvs] [UsingGit] (edit) Reordered "Converting from CVS to git" chapter and explained removal of obsolete "origin" branch.
Date: Tue, 23 Jun 2009 10:50:42 +0000

++added:
First thing you may want to do is to tag the state of your CVS repository and 
declare it as closed. For example::
  
  $ cd my-checked-out-cvs-repository
  $ cvs tag cvs-repository-moved-to-git


??changed:
-After this done create a local git repository on your computer, using the 
instructions under `Importing from CVS`_. Then push this git repository to your 
savannah project page using the instructions under `Pushing a Newly-Created, 
Existing, or Converted Git Repository`_. Before starting though you may want to 
add a branch or "tag" of the old respository. For example::
-  
-  $ cd my-checked-out-cvs-repository
-  $ cvs tag repository-before-move-to-git
After this done create a local git repository on your computer, using the 
instructions under `Importing from CVS`_.
This will take a while and it will create a local git repository with at least 
two branches::

  $ git show-branch -a
  * [master] Moved from CVS to GIT.
   ! [origin] Moved from CVS to GIT.
  --
  *+ [master] Moved from CVS to GIT.

Before pushing this to your savannah project page you might want to rename or 
remove that "origin" branch. 
It has the same state and history as the master branch so you won't lose any 
information.
(Footnote: Normally the origin branch is used by developers who prefer to use 
git while working on projects that only run a 
central CVS repository. They do their work on "master" but track the changes in 
the CVS repository in the "origin" branch.)
This is not what you are going to do anyway and unfortunately "origin" is also 
the default alias name 
for remote git repositories and thus it may lead to unnecessary confusion. You 
can remove the branch like this::

  $ git branch -d origin

Don't worry! If you ever need to recreate that branch you can always do so by 
branching off at that last CVS commit and 
call the branch "origin", "cvs" or "back-in-the-dark-ages".

Now you are ready to push this git repository to your savannah project page 
using the instructions under `Pushing a Newly-Created, Existing, or Converted 
Git Repository`_. 

--
forwarded from 
https://savannah.gnu.org/maintenance/address@hidden://savannah.gnu.org/maintenance




reply via email to

[Prev in Thread] Current Thread [Next in Thread]