Removed mklink for git
This commit is contained in:
@ -2,11 +2,13 @@
|
||||
type: "topic"
|
||||
assigned: ""
|
||||
created: "2024-01-06T01:25:36.066Z"
|
||||
updated: "2024-01-06T01:25:36.066Z"
|
||||
updated: "2024-07-03T01:18:42.139Z"
|
||||
---
|
||||
|
||||
# Gogs
|
||||
|
||||
## Windows
|
||||
|
||||
```PowerShell
|
||||
# https://gogs.io/docs/installation/run_as_windows_service
|
||||
nssm install gogs
|
||||
@ -84,6 +86,8 @@ INSTALL_LOCK = true
|
||||
SECRET_KEY = JJxp7NE0URIxoak
|
||||
```
|
||||
|
||||
## Debian
|
||||
|
||||
```bash
|
||||
sudo -i
|
||||
cd /home/gogs
|
||||
@ -213,6 +217,8 @@ systemctl restart gogs-daemon
|
||||
# https://github.com/gogs/docs-api/tree/master/Repositories#migrate
|
||||
```
|
||||
|
||||
## Gogs Theme
|
||||
|
||||
```bash
|
||||
# https://github.com/Kos-M/GogsThemes
|
||||
cd /home/gogs
|
||||
@ -225,3 +231,14 @@ cp -r GogsThemes/img/ /home/gogs/gogs/custom/public/
|
||||
rm -r ./GogsThemes
|
||||
systemctl restart gogs-daemon
|
||||
```
|
||||
|
||||
## Backup
|
||||
|
||||
```bash Sun Jun 30 2024 13:30:36 GMT-0700 (Mountain Standard Time)
|
||||
# https://github.com/gogs/gogs/discussions/6876
|
||||
./gogs backup
|
||||
./gogs backup --exclude-repos
|
||||
./gogs backup --config=my/custom/conf/app.ini
|
||||
./gogs backup --database-only
|
||||
./gogs restore --database-only --from="gogs-backup-xxx.zip"
|
||||
```
|
||||
|
Reference in New Issue
Block a user