git & Synology

Setting up Synology with git

A great article here with screenshots – How to install Git Server

Some git commands now to use:

Creating working store:
cd git_repo
mkdir project.git
cd project.git
git --bare init
cd ..
chown -R git:users project.git

Working from remote location:
git clone ssh://git@192.*.*.11/volume1/git_repo/project.git/
cd project
mkdir test
git add test
git commit -m "adding test"
git push -u origin master
git status
git pull origin master
git ls-files
git log -n 10
git help [-a]

git works best bringing in the complete project tree so break projects up where you don’t want to bring down multiple project files.

Reference links:

About Warren Cross

A contract IT professional that has been in the technology industry a number of years at various blue chip companies. During his career he has been a successful application developer, analyst, project manager, IT manager and system administrator, and performed in both global and local roles. For contract opportunities feel free to contact Warren through this site.
This entry was posted in Code, Software and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *