|
|
行 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:資訊]] |