- Add "Lightweight OMS for Letzshop Sellers" positioning strategy - Add back-office vs marketing positioning comparison - Update pricing tiers for OMS model (Essential/Professional/Business) - Add VAT invoice feature technical specification - Add comprehensive OMS feature implementation plan - Fix code block formatting in synology doc New docs: - docs/marketing/strategy/back-office-positioning.md - docs/marketing/strategy/customer-marketing-positioning.md - docs/implementation/vat-invoice-feature.md - docs/implementation/oms-feature-plan.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3.4 KiB
Source: https://kb.synology.com/tr-tr/DSM/help/Git/git?version=7
Git Server – Synology DSM 7
Git is an open-source, distributed version control system that helps you manage programming code, documents, or other files in an organized and efficient manner. It also allows for easy collaboration with multiple groups of people.
🛠️ Create a Git Repository
-
Sign in to DSM using an account with administrative privileges.
-
Go to:
Control Panel > Terminal & SNMP > Terminal
→ Enable SSH service. -
Go to:
Control Panel > Shared Folder
→ Create a shared folder for Git repositories. -
On your computer, access Synology NAS via SSH:
ssh [admin_user]@[NAS_IP_or_hostname] -p [SSH_port]Example:
ssh myadminuser@192.168.1.2 -p 22 -
Change to the shared folder:
cd /[Volume]/[SharedFolder]/Example:
cd /volume1/mysharefolder/ -
Create a folder for the Git repository:
mkdir [FolderName] cd [FolderName] -
Initialize a bare Git repository:
git init --bare
Adding new repository on NAS DS223J
> ssh boulaht1@DS223J
> sudo -i
> cd /volume1/git-repos/
> git --bare init my-repo.git
> chown -R git-boulaht1:users my-repo.git
> cd my-repo.git/
✅ Steps to Push Local Git Repo to Synology NAS
-
Ensure your Synology Git repo is initialized as a bare repo: On the NAS (via SSH or File Station), the repo should have been created like this:
git init --bare /volume1/git-repos/myproject.git -
On your local machine, navigate to your existing Git repo:
cd /path/to/your/local/repo -
Add the Synology NAS as a remote:
git remote add origin ssh://youruser@your-nas-ip:/volume1/git-repos/myproject.gitReplace:
youruserwith your DSM usernameyour-nas-ipwith the IP address or hostname of your NAS/volume1/git-repos/myproject.gitwith the full path to your bare repo
-
Push your local repo to the NAS:
git push -u origin master
If error message fatal: detected dubious ownership in repository at '/volume1/git-repos/my-repo.git' - Execute:
git config --global --add safe.directory /volume1/git-repos/test-repo.git
Go on the Synology and right click on the folder and select Properties and then Permission and then tick boxes apply to sub folder and files (git-boulaht1 should be read write on the folder)
⚠️ Note:
Do not perform the above commands with root permissions.
Git Server no longer supportsgit-shellcommands due to security concerns.
Forgit-shellaccess, consider using container-based Git services.
🔄 Clone Git Repositories from DSM
-
Install Git on your computer.
-
Ensure the following:
- SSH service is enabled on DSM.
- Your user account has access permissions to the repository.
- Your user account has Read/Write permissions for the shared folder.
-
Clone the repository:
git clone ssh://[username]@[NAS_IP_or_hostname]:[repository_path]Example:
git clone ssh://mygituser@192.168.1.2:/volume1/myreposfolder/myrepo1 -
Access the cloned repository:
cd [repository_path]Example:
cd /volume1/mysharefolder/myrepo1