This tool allows you to import and display contributions to private projects without copying the actual code into a single project with a contribution mockup. It has been modified for macOS based on the original
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"brew install python
python3 --version
pip3 --versionbrew install git
git --version`# Virtual environment: Create, Activate, Install, Verify
python3 -m venv venv
source venv/bin/activate
pip install gitpython
python -c "import git; print('GitPython installed successfully!')"# When finished, deactivate the environment and remove the environment folder
deactivate
rm venv- Install GitPython via a virtual environment
python3 -m venv venv
source venv/bin/activate
pip install gitpython
python -c "import git; print('GitPython installed successfully!')"- Set the path to the folder containing the import scripts
Importerat its root, and the launch scriptRunImport.py - Specify the paths to the folders of private projects where git is located
repo1 = git.Repo("Path/PrivateProject1/.git")and list them in the arrayimporter = ImporterFromRepository([repo1, repo2], mock_repo) - Specify the path to the empty git repository used to store the contribution
mock_repo = git.Repo("Path/MockProjects/.git"). If git has not been initialized, run the command
git init- Specify the emails to capture selected commits from
importer.set_author(['work@email.ru', 'personal@email.ru']) - Run the contribution import script
python RunImport.py- Deactivate the virtual environment and remove the folder
deactivate
rm venvAll commands are executed in the terminal. Use python3 and pip3 instead of python/pip to avoid conflicts with older Python versions. If permission errors occur
pip3 install --user gitpython