This document outlines the steps to set up two GitHub repositories:
- A personal repository for the generalized CompExtractor tool
- A TPZ-specific fork for the ZoneSight adaptation
- Log in to GitHub with your personal account (fizt656)
- Create a new repository named "compextractor"
- Make it public
- Do not initialize with README, .gitignore, or license (we'll push these from local)
-
Create a new directory for the CompExtractor version:
mkdir -p ~/Documents/repos/compextractor-personal -
Copy the generalized files to the new directory:
cp -r src ~/Documents/repos/compextractor-personal/ cp requirements.txt ~/Documents/repos/compextractor-personal/ cp .env.example ~/Documents/repos/compextractor-personal/ cp tpz-specific/README_GENERAL.md ~/Documents/repos/compextractor-personal/README.md cp tpz-specific/LICENSE_GENERAL ~/Documents/repos/compextractor-personal/LICENSE cp .gitignore ~/Documents/repos/compextractor-personal/ cp Compextractor_Banner_Gus.png ~/Documents/repos/compextractor-personal/banner.jpeg cp sound.mp3 ~/Documents/repos/compextractor-personal/ cp coin.mp3 ~/Documents/repos/compextractor-personal/
-
Initialize the Git repository and push to GitHub:
cd ~/Documents/repos/compextractor-personal git init git add . git commit -m "Initial commit of CompExtractor" git branch -M main git remote add origin https://github.com/fizt656/compextractor.git git push -u origin main
- Log in to GitHub with the TPZ account (TPZgus)
- Create a new organization named "ThePossibleZone"
- Choose the free plan
- Navigate to https://github.com/fizt656/compextractor
- Click the "Fork" button
- Select the "ThePossibleZone" organization as the owner
- Name the repository "zonesight"
- Click "Create fork"
-
Clone the forked repository:
git clone https://github.com/ThePossibleZone/zonesight.git ~/Documents/repos/zonesight cd ~/Documents/repos/zonesight
-
Replace the README.md with the TPZ-specific version:
cp ~/Documents/repos/compextractor\ 2/README.md ~/Documents/repos/zonesight/
-
Replace the LICENSE with the TPZ-specific version:
cp ~/Documents/repos/compextractor\ 2/LICENSE ~/Documents/repos/zonesight/
-
Replace the banner image:
cp ~/Documents/repos/compextractor\ 2/ZoneSight_banner_tpz.png ~/Documents/repos/zonesight/banner.jpeg
-
Copy the TPZ-specific files:
cp ~/Documents/repos/compextractor\ 2/In\ the\ Zone.mp3 ~/Documents/repos/zonesight/
-
Commit and push the changes:
git add . git commit -m "Customize for TPZ-specific use" git push
When you make improvements to the CompExtractor repository that should also be applied to ZoneSight:
-
Add the upstream repository (only needed once):
cd ~/Documents/repos/zonesight git remote add upstream https://github.com/fizt656/compextractor.git
-
Pull changes from upstream:
git fetch upstream git merge upstream/main # Resolve any conflicts git push
When making changes specific to the TPZ version:
- Make the changes directly in the ZoneSight repository
- Commit and push to the TPZ repository:
git add . git commit -m "Add TPZ-specific feature" git push
cd ~/Documents/repos/compextractor-personal
python src/compextractor_gui.pycd ~/Documents/repos/zonesight
python src/zonesight_gui.py