setup remote in push command

This commit is contained in:
Georges-Antoine Assi 2025-02-06 19:52:28 -05:00
parent 3e3c321ac1
commit f5bb7e40cf
No known key found for this signature in database
GPG Key ID: 30F6E9865ABBA06E
2 changed files with 6 additions and 8 deletions

View File

@ -2,14 +2,9 @@
## Pushing to romm.wiki
First add the wiki as a remote:
Install [just](https://github.com/casey/just#installation) and run the `push` command:
```bash
git remote add wiki git@github.com:rommapp/romm.wiki.git
```
Then run this command from the project root:
```bash
git push wiki main:master
chmod +x push_wiki.sh
just push
```

View File

@ -3,6 +3,9 @@
# Navigate to the /romm.wiki directory
cd "$(dirname "$0")/romm.wiki" || exit 1
# Check if the origin remote exists, if not add it
git remote | grep -q "^origin$" || git remote add origin git@github.com:rommapp/romm.wiki.git
# Add all files to git
git add .