サーバー側

mk ~/git/[folder name]
cd ~/git/[folder name]
git --bare init --share

クラアント

mk ~/work
cd ~/work
git init
echo "git test" > read.me
git add .
git commit

git push ssh://[user]@[user].sakura.ne.jp/home/[user]/git/[folder name] master

初回
git remote  add origin ssh://[user]@[user].sakura.ne.jp/home/[user]/git/[folder name]

git push origin master

Clone
git clone ssh://[user]@[user].sakura.ne.jp/home/[user]/git/[folder name]

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha