Gitの使い方

本番環境Git

$ cd ~/
$ mkdir local_git
$ cd local_git
$ git init
$ touch test.txt
$ git add test.txt
$ git commit -m 'first commit'

更新管理用Gitの作成

$ cd ~/
$ mkdir remote_git
$ cd remote_git
$ git clone --bare ~/local_git/ .

本番環境Git

$ cd ~/local_git
$ touch test2.txt
$ git add test2.txt
$ git commit -m 'first commit'
$ git remote add origin ~/remote_git/
$ git push origin master

テスト環境Git

$ cd ~/
$ mkdir test_git
$ cd test_git
$ git clone ssh://git@192.168.0.24/~/remote_git/ test_git/

コマンド早見表
https://qiita.com/kohga/items/dccf135b0af395f69144