This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:gitserver [2018/06/29 03:30] – 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 47: | Line 47: | ||
| This method has everyone using the user git in order to clone the repository, and unless tweaked will allow users shell access to the server. | This method has everyone using the user git in order to clone the repository, and unless tweaked will allow users shell access to the server. | ||
| - | git remote set-url origin ssh://sexa@10.28.88.2:/ | + | git remote set-url origin ssh://user@10.28.88.2:/ |
| - | git remote set-url origin ssh://sexa@10.28.88.2:/ | + | git remote set-url origin ssh://user@10.28.88.2:/ |
| + | git remote set-url origin ssh:// | ||
| + | git remote set-url origin ssh:// | ||
| | | ||
| + | Of course, to clone the repository: | ||
| | | ||
| + | git clone ssh:// | ||
| + | | ||
| + | The restricted shell for git user may need to be restored to normal log in shell for certain repository servers. | ||
| + | |||
| + | 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 " | ||
| + | |||
| + | --- // | ||