This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:gitserver [2019/11/02 07:20] – oemb1905 | computing:gitserver [2019/11/09 23:08] (current) – oemb1905 | ||
---|---|---|---|
Line 60: | 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 " | ||
- | --- // | ||
+ | --- // |