nativeInstallerredmine

Use Git with Redmine

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

Redmine lets users check repository changes and link to cases. Follow the steps below:

  • Load the Bitnami console (Windows, Linux or macOS installers) or log in to the virtual machine console (OS X VM).

  • Clone the remote Git repository, or initialize a new one. Replace the REPO_URL placeholder with the correct repository URL and the REPO placeholder with the correct directory name for the cloned repository.

      $ cd $HOME
      $ mkdir repos
      $ cd repos
      $ sudo git clone REPO_URL --bare
    

    NOTE: Include the --bare option regardless of whether you’re cloning an existing repository or initializing a new one

  • Create a new Redmine project.

  • From the project dashboard, select the “Settings -> Repositories” tab and add a new repository using the settings below. Replace the ID placeholder with a short identifier for the repository, the USER placeholder with the username, and the REPO placeholder with the correct directory name for the cloned repository.

      SCM: Git
      Identifier: ID
      Path to repository: /home/USER/repos/REPO
    

Redmine and Git

Last modification August 31, 2021