This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:gitserver [2019/11/09 23:03] – 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: | File and directory permission recommendations for git repository contents: | ||
Line 66: | Line 86: | ||
find .git -type f | grep -v /objects/ | xargs chmod 644 | find .git -type f | grep -v /objects/ | xargs chmod 644 | ||
| | ||
- | Make nano default editor | + | Set the default editor |
git config --global core.editor " | git config --global core.editor " | ||
- | | ||
- | | ||
This tutorial is a designated " | This tutorial is a designated " | ||