It is currently Sat Jan 23, 2021 5:11 am
All times are UTC + 8 hours

How to setup a git repository

Share your awesome tips and tricks here.

How to setup a git repository

Postby segar » Sat Dec 05, 2015 12:24 am

Is that anybody setup a git repository that can be accessed from a local network client. Either using WebDAv og ssh.
segar
 
Posts: 1
Joined: Thu Dec 03, 2015 3:14 am

Re: How to setup a git repository

Postby msa » Tue Feb 16, 2016 2:34 am

I did it based on http://thelucid.com/2008/12/02/git-sett ... tial-push/ , it was actually pretty easy.

I created a new share called "git_repos" on volume1.
Install the git app on the NAS.
Log in to the shell as admin using ssh and execute these commands:
Code: Select all
cd /volume1/git_repos/
mkdir <repo-name>
cd <repo-name>
git init --bare


On your workstation/client, set up the remote server:
Code: Select all
git remote add <your_server_name> ssh://admin@<your_server_name>:<ssh_port>/volume1/git_repos/<repo-name>


Then push up from client to the server:
Code: Select all
git push raidnas1 master
msa
 
Posts: 2
Joined: Wed Jan 06, 2016 4:44 am

Return to Tips & Tricks

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 2 guests