additions
This commit is contained in:
parent
4029ac976b
commit
362f12fa3d
3 changed files with 38 additions and 2 deletions
|
@ -1,2 +0,0 @@
|
|||
git remote add upstream https://github.com/Vendicated/Vencord.git
|
||||
git remote set-url --pull upstream DISABLED
|
20
setup.bat
Normal file
20
setup.bat
Normal file
|
@ -0,0 +1,20 @@
|
|||
@echo off
|
||||
|
||||
:: Check if 'upstream' remote exists
|
||||
git remote | findstr upstream >nul
|
||||
if errorlevel 1 (
|
||||
:: Add upstream remote
|
||||
git remote add upstream https://github.com/Vendicated/Vencord.git
|
||||
echo Added upstream remote
|
||||
)
|
||||
|
||||
:: Disable push to upstream by setting push URL to 'no_push'
|
||||
git remote set-url --push upstream no_push
|
||||
echo Disabled push to upstream remote
|
||||
|
||||
:: Add alias for sync: fetch, merge, and push to origin
|
||||
git config alias.sync "!git fetch upstream && git merge upstream/main && git push origin main"
|
||||
echo Configured sync alias
|
||||
|
||||
echo Setup completed!
|
||||
|
18
setup.sh
Normal file
18
setup.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Add upstream remote if it doesn't exist
|
||||
if ! git remote | grep -q 'upstream'; then
|
||||
git remote add upstream https://github.com/Vendicated/Vencord.git
|
||||
echo "Added upstream remote"
|
||||
fi
|
||||
|
||||
# Disable push to upstream by removing its push URL
|
||||
git remote set-url --push upstream no_push
|
||||
echo "Disabled push to upstream remote"
|
||||
|
||||
# Add alias for sync: fetch, merge, and push to origin
|
||||
git config alias.sync '!git fetch upstream && git merge upstream/main && git push origin main'
|
||||
echo "Configured sync alias"
|
||||
|
||||
echo "Setup completed!"
|
||||
|
Loading…
Reference in a new issue