This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:gitserver [2019/02/01 21:00] – oemb1905 | computing:gitserver [2019/11/09 23:08] (current) – oemb1905 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| * **Jonathan Haack** | * **Jonathan Haack** | ||
| * **Haack' | * **Haack' | ||
| - | * **netcmnd@jonathanhaack.com** | + | * **netcmnd@jonathanhaack.com** |
| ------------------------------------------- | ------------------------------------------- | ||
| Line 50: | Line 50: | ||
| git remote set-url origin ssh:// | git remote set-url origin ssh:// | ||
| git remote set-url origin ssh:// | git remote set-url origin ssh:// | ||
| + | git remote set-url origin ssh:// | ||
| | | ||
| Of course, to clone the repository: | Of course, to clone the repository: | ||
| Line 59: | Line 60: | ||
| git: | git: | ||
| | | ||
| + | Accessing the new server ... first, create your public/ | ||
| + | |||
| + | cd ~ | ||
| + | ssh-keygen | ||
| + | cat ~/ | ||
| + | |||
| + | Then, ssh into your vps and/or simply do this on your localhost and clone the repo and make your first commit. | ||
| + | |||
| + | cd ~ | ||
| + | mkdir git | ||
| + | cd git/ | ||
| + | git clone git@hc.jonathanhaack.com: | ||
| + | cd haackingclub | ||
| + | touch yourname.notes | ||
| + | nano yourname.notes | ||
| + | git add yourname.notes | ||
| + | git commit -am" | ||
| + | git pull | ||
| + | git push | ||
| + | |||
| + | File and directory permission recommendations for git repository contents: | ||
| + | |||
| + | find .git -type d | xargs chmod 755 | ||
| + | find .git/ | ||
| + | find .git -type f | grep -v /objects/ | xargs chmod 644 | ||
| + | | ||
| + | Set the default editor | ||
| + | |||
| + | git config --global core.editor " | ||
| + | |||
| This tutorial is a designated " | This tutorial is a designated " | ||
| - | --- // | ||
| + | --- // | ||