This repository uses a fork-based workflow to prevent accidental pushes to the upstream repository.
After cloning your fork, run the setup script:
./setup-git-remotes.shThis script will:
- Disable direct pushes to
upstream(you can still fetch/pull) - Configure safe push defaults
- Ensure all feature branches push to your fork by default
# Fetch latest from upstream
git fetch upstream
# Create feature branch from upstream/dev
git checkout -b feature/my-feature upstream/dev
# Set tracking to YOUR fork (important!)
git push -u origin feature/my-feature# Make changes and commit
git add .
git commit -m "Your commit message"
# Push to YOUR fork
git pushWhen ready, create a PR from your fork to upstream:
From: scyto/Multi-SendSpin-Player-Container:feature/my-feature
To: chrisuthe/Multi-SendSpin-Player-Container:dev
This is expected! It means the protection is working - you tried to push to upstream directly. Push to your fork instead:
git push origin your-branch-namegit remote -vShould show:
origin https://github.com/YOUR-USERNAME/Multi-SendSpin-Player-Container.git (fetch)
origin https://github.com/YOUR-USERNAME/Multi-SendSpin-Player-Container.git (push)
upstream https://github.com/chrisuthe/Multi-SendSpin-Player-Container.git (fetch)
upstream no_push (push)
git branch -vvFeature branches should track origin/feature-name, not upstream/dev.
If you prefer not to use the script, run these commands:
# Disable push to upstream
git remote set-url --push upstream no_push
# Set safe push behavior
git config push.default simple