server:stagit
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| server:stagit [2025/08/24 07:28] – [stagit (local side)] marlonivo | server:stagit [2025/08/24 07:36] (current) – [Cloning] marlonivo | ||
|---|---|---|---|
| Line 74: | Line 74: | ||
| </ | </ | ||
| - | Set the right permissions for the whole directory, '' | + | Set the right permissions for the complete |
| < | < | ||
| chown -R git: | chown -R git: | ||
| Line 86: | Line 86: | ||
| =====stagit (local side)===== | =====stagit (local side)===== | ||
| - | Then go to your local project directory and initialise a git project, point it to your server' | + | Then go to your local project directory and initialise a git project, point it to your server' |
| < | < | ||
| cd project1 | cd project1 | ||
| Line 93: | Line 93: | ||
| git remote -v | git remote -v | ||
| git config user.name "Your Name" | git config user.name "Your Name" | ||
| + | git config user.email " | ||
| </ | </ | ||
| - | Now inside your freshly generated bare git folder, change the description, | + | Now inside your freshly generated bare git folder |
| < | < | ||
| / | / | ||
| - | ├── description | + | ├── description |
| - | ├── owner - owner name of the repo. | + | ├── owner ← 2. |
| - | ├── url - e.g: git:// | + | ├── url ← 3. |
| - | └── git-daemon-export-ok | + | └── git-daemon-export-ok |
| </ | </ | ||
| - | As well as in your '' | + | As well as in your '' |
| <code bash> | <code bash> | ||
| #!/bin/sh | #!/bin/sh | ||
| Line 135: | Line 136: | ||
| git commit -m " | git commit -m " | ||
| git push stagit master | git push stagit master | ||
| - | # git push aur master | + | # git push aur master |
| - | # git push github master | + | # git push github master |
| } | } | ||
| </ | </ | ||
| Line 155: | Line 156: | ||
| [Service] | [Service] | ||
| - | ExecStart=/ | + | ExecStart=/ |
| --base-path=/ | --base-path=/ | ||
| --export-all \ | --export-all \ | ||
| Line 175: | Line 176: | ||
| </ | </ | ||
| - | Then open port 9418 in your firewall: | + | Then open port 9418 in your firewall |
| < | < | ||
| sudo ufw allow 9418/tcp | sudo ufw allow 9418/tcp | ||