gitサーバ・クライアントの初期設定(試行錯誤)

1. サーバ側

cd
mkdir git_repos
cd git_repos
mkdir repo1.git
cd repo1.git
git --bare init


2. クライアント側

checkout:
git clone user_name@server.addr:git_repos/repo1.git

update:
git pull

local commit:
git commit -m "Commit message"

remote commit (push):
git push origin master

add new files:
git add -A \*.py
(In this example, python source codes)

revert file
git checkout -- xxx.py
(In this example, a python source code)