Replace Git URL with the new one (#17321)

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
This commit is contained in:
Takuya N 2022-04-19 11:12:51 +09:00 committed by GitHub
parent c36ba7b6de
commit da06427cb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
#!/bin/sh
set -e
# clean up the fork and restart from upstream
git remote add upstream https://github.com/thepracticaldev/dev.to
git remote add upstream https://github.com/forem/forem.git
git fetch upstream
git checkout main
git reset --hard upstream/main
git push origin main --force
git reset --hard upstream/main
git push origin main --force

View file

@ -2,7 +2,7 @@
set -e
# sync this fork with upstream to get the latest changes
URL="https://github.com/thepracticaldev/dev.to";
URL="https://github.com/forem/forem.git";
if ! git config remote.upstream.url > /dev/null; then
echo "Adding remote ${URL}"
git remote add upstream $URL