These are the tasks I need to go through to create a new git repository on my Synology server. I already have the Git server running and a putty client connection setup.
I login to the server using the root user. Go to the directory \volume1\git which was a share I had create earlier.
mkdir newproj
chown me:users newproj
cd newproj
git init –bare
chown –R me:users *
Then logging to new project directory on the development machine and right click and using TortoiseGit leaving the bare option unclicked. You now have a local repository. Now push it to the arbitrary URL using the master branch ssh://me@192.168.1.1/volume1/git/newproj
You will then be prompted for the password as the Putty key has not been set up.
No comments:
Post a Comment