※ まとめきれていないので参考程度にしてくださいです。
サーバ側の準備
repos以下に、対象のディレクトリを作る
$ mkdir /path/repos/hoge.git
$ cd /path/repos/hoge.git
$ git init --bare
www以下の設置したいディレクトリに移動
$ cd www
$ git clone /path/repos/hoge.git
クライアント側
プロジェクト用のディレクトリを作る
$ mkdir hoge.git
$ cd hoge.git
$ git init
$ git remote add hoge git@192.168.11.1:/fullpath/hoge.git
$ git remote -v
まちがえたとき
$ git remote rm hoge
$ git remote add hoge git@192.168.11.1:/fullpath/hoge.git
$ git remote -v
こみっと
$ git add .
$ git commit
リモートにpush
$ git push hoge master
-
スキルのフリマ【ココナラ】
-
ココナラでイラストを発注
-
現役エンジニアのオンライン家庭教師CodeCamp
-
プログラミングのオンラインスクールのCodeCamp
-
現役エンジニアから学ぶならテックアカデミー
-
はじめてのプログラミングコース
-
テックアカデミー無料体験