User Tools

Site Tools


git

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
git [2023/06/21 09:22] – [git] dblumegit [2024/06/12 11:29] (current) dblume
Line 224: Line 224:
 </code> </code>
  
-could've used gitweb but I used GitHub-like [[https://github.com/klaussilveira/gitlist|gitlist]] at http://git.dlma.com.+Options are: 
 + 
 +  * chose GitHub-like [[https://github.com/klaussilveira/gitlist|gitlist]] for https://git.dlma.com, because it works on my shared server. 
 +  * [[https://www.reddit.com/r/selfhosted/comments/13hxnf4/selfhosted_git_services_you_dont_need_a_huge/|cgit]] might work 
 +  * [[https://gogs.io/|gogs]] 
 +  * [[https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb|GitWeb]] (the one built-in.
  
 ====== Limit scope of huge repos ====== ====== Limit scope of huge repos ======
Line 244: Line 250:
  
 The submodule one is an optimization for the more general: The submodule one is an optimization for the more general:
 +<code bash>
 +git submodule update --recursive  # Add --init before --recursive on first time
 +</code>
 +
 +====== Submodules ======
 +
 +[[https://www.cyberdemon.org/2024/03/20/submodules.html|Demystifying git submodules]] is [[https://social.jvns.ca/@b0rk/112604915327918216|summarized by Julia Evans in a 'zine page here]].
 +
 +Cloning a repo doesn't download its submodules. After cloning, run:
 +
 +<code bash>
 +git submodule update --init --recursive
 +</code>
 +
 +Git pull and checkout don't update submodules. To actually update them, you have to run the following every time you switch branches or pull.
 +
 <code bash> <code bash>
 git submodule update --recursive  # Add --init before --recursive on first time git submodule update --recursive  # Add --init before --recursive on first time
git.1687364532.txt.gz · Last modified: 2023/06/21 09:22 by dblume