Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Preparing Git repository

Create new Git repository on gforge6

  1. Go to http://gforge6.eufus.eu/gf/project
  2. Press "Add New Project" button
  3. Fill project data - in the Temple project section select "Basic project with GIT support"
  4. Press "Submit" button
  5. Wait a moment (max. 10 minutes). Gforge will create a git repository for you

Image Removed

Create a repository git in an existing project (only for project administrators)

  1. Go to existing project on http://gforge6.eufus.eu/gf/project
  2. Open "Admin" tab
  3. Change "scm:" to "GIT"
  4. Press "Submit" button
  5. Wait a moment (max. 10 minutes). Gforge will create an empty git repository
Warning

SVN repository still exists!
You can checkout data or commit changes.

Image Removed

Migrating to Git

The section is based on: https://git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git

...

Code Block
$ git svn clone https://<USERNAME>@gforge6gforge-next.eufus.eu/svn/<SVN_PROJECT_NAME>/ \
      --authors-file=users.txt --no-metadata --prefix "" -s my_project
$ cd my_project


Info

If the above command does not work, it is need to load the patch module for the git svn command:
$ module load git-svn


Info
titleNon-standard SVN layouts

If your SVN repository doesn’t have a standard layout, you need to provide the locations of your trunk, branches, and tags using the --trunk--branches, and --tags command line options. For example, if you have branches stored in both the /branches directory and the /bugfixes directories, you would use the following command:

Code Block
git svn clone --trunk=/trunk --branches=/branches --branches=/bugfixes --tags=/tags --authors-file=users.txt --no-metadata --prefix ""  https://<USERNAME>@gforge6.eufus.eu/svn/<SVN_PROJECT_NAME> my_project

...

Code Block
$ git remote add origin https://<USERNAME>@gforge6gitlab.eufus.eu/git/<GIT_PROJECT_NAME>

...