Skip to content

kimm310/git-with-features-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Installation Guide

Prerequisites

1. Setting up the Repository

  1. Verify Installations for Requirements

    git --version
    python --version

    Note: The actual command for running a python script may vary depending on the system configuration.

    Ensure that versions are displayed to confirm proper installation.

  2. Clone the Repository (if not done already)

    git clone git@github.com:tabeatheunicorn/git-with-features-experiment.git
  3. Run the Python Script

    python -m src.main

    Running the script will not be required during the experiment, but it can help you understand the project's functionality.

2. Setting up the Tool (upload on pipIndex?)

  1. Download the [git_tool] put google drive link here

  2. Install the Tool

    python -m pip install <prefix>/git_tool-<version>-py3-none-any.whl
  3. Test the Installation

    • Display Feature Commands

      Run the following command to see all available feature commands:

      python -m src.main

      You should see an output similar to:

      Branch feature-metadata successfully created.
  4. Set Up Git Hooks

    The hooks are required to ensure that feature information is added before committing files. This step can be skipped if you plan to add feature information only to existing commits using the git feature commit command, bypassing the need for git feature add and its subcommands. Information about the subcommands can be found here.

    • Find the Tool Path

      This will output a path ending with __init__.py

      python -c "import git_tool; print(git_tool.__file)"
    • Locate the Hooks Directory

      Remove __init__.py from the path and append hooks instead. The path should look similar to:

      C:\Users\YourName\AppData\Local\Programs\Python\Python39\Lib\site-packages\git_tool\hooks
    • Set the Hooks Path Replace <path> with the path you found in the previous step.

      git config core.hooksPath <path>
    • Check the Git Hooks Path

      Display the path you set in the previous step using following command:

      git rev-parse --git-path hooks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages