mirror of
https://github.com/rommapp/docs.git
synced 2026-04-20 01:04:29 +08:00
setup remote in push command
This commit is contained in:
parent
3e3c321ac1
commit
f5bb7e40cf
11
README.md
11
README.md
@ -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
|
||||
```
|
||||
|
||||
@ -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 .
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user