Replace Git URL with the new one (#17321)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
This commit is contained in:
parent
c36ba7b6de
commit
da06427cb6
2 changed files with 4 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
# clean up the fork and restart from upstream
|
# 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 fetch upstream
|
||||||
git checkout main
|
git checkout main
|
||||||
git reset --hard upstream/main
|
git reset --hard upstream/main
|
||||||
git push origin main --force
|
git push origin main --force
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# sync this fork with upstream to get the latest changes
|
# 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
|
if ! git config remote.upstream.url > /dev/null; then
|
||||||
echo "Adding remote ${URL}"
|
echo "Adding remote ${URL}"
|
||||||
git remote add upstream $URL
|
git remote add upstream $URL
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue