User Tools

Site Tools


computing:gitserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:gitserver [2019/11/09 23:03] oemb1905computing:gitserver [2019/11/09 23:08] (current) oemb1905
Line 60: Line 60:
   git:x:1001:1001:,,,:/var/opt/gitlab:/bin/sh   git:x:1001:1001:,,,:/var/opt/gitlab:/bin/sh
      
 +Accessing the new server ... first, create your public/private keypair first ...
 +
 +  cd ~
 +  ssh-keygen
 +  cat ~/.ssh/id_rs.pub
 +
 +Then, ssh into your vps and/or simply do this on your localhost and clone the repo and make your first commit.  You can also do this with the Haacking Club repo.
 +
 +  cd ~
 +  mkdir git
 +  cd git/
 +  git clone git@hc.jonathanhaack.com:oemb1905/haackingclub.git
 +  cd haackingclub
 +  touch yourname.notes
 +  nano yourname.notes
 +  git add yourname.notes
 +  git commit -am"added my notes file and put my project description in it"
 +  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 "nano"   git config --global core.editor "nano"
-   
  
-   
 This tutorial is a designated "Invariant Section" of the "Technotronic" section of Haack's Wiki as described on the [[https://jonathanhaack.com/dokuwiki/doku.php?id=start|Start Page]]. This tutorial is a designated "Invariant Section" of the "Technotronic" section of Haack's Wiki as described on the [[https://jonathanhaack.com/dokuwiki/doku.php?id=start|Start Page]].
  
computing/gitserver.txt · Last modified: 2019/11/09 23:08 by oemb1905