「Projects」修訂間的差異

跳至導覽 跳至搜尋
移除 459 位元組 、 2023年9月20日 (三) 20:15
無編輯摘要
行 22: 行 22:


==Personal notes (in Mandarin Chinese)==
==Personal notes (in Mandarin Chinese)==
===在遠端新增repo===
* [[專案相關的筆記|Project-related notes]]
You have to set the ssh key between server and client first.
<pre>
cd /var/www/git;
mkdir repo;
cd repo;
git init --bare;
</pre>
然後在本機端新增:
<pre>
git commit -m "example";
git remote add origin user@example.info:/var/www/git;
git push origin master;
</pre>


'''記得要開啓 .git/hooks''',然後:<code>cp post-update.sample post-update; chmod u+x post-update;</code>
==其他==
* [[Another Taiwanese Tutorial]] is also on the gitweb viewer but without bundle.


[[category:資訊]]
[[category:資訊]]

導覽選單