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/02 07:20] 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:
 +
 +  find .git -type d | xargs chmod 755
 +  find .git/objects -type f | xargs chmod 444
 +  find .git -type f | grep -v /objects/ | xargs chmod 644
 +  
 +Set the default editor
 +
 +  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]].
  
- --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2019/01/13 12:24// 
  
  
 + --- //[[oemb1905@jonathanhaack.com|oemb1905]] 2019/11/09 16:00//
computing/gitserver.1572679244.txt.gz · Last modified: 2019/11/02 07:20 by oemb1905