User Tools

Site Tools


general:git

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
general:git [2021/12/20 09:27] sunkangeneral:git [2023/01/30 08:53] (current) sunkan
Line 66: Line 66:
   cat "$patchdir"/*.patch | git am -k   cat "$patchdir"/*.patch | git am -k
 ) )
 +</code>
 +
 +====== Update intermediary bare repo ======
 +Found some good info here. \\
 +[[https://stackoverflow.com/questions/3382679/how-do-i-update-my-bare-repo|How do I update my bare repo]]
 +
 +First fetch from the upstream server
 +<code>
 +git fetch
 +</code>
 +
 +Then you need to update any branches that you want to expose to the downstream repositories. \\
 +Examples for master, 13.0 and all remote branches. \\
 +Avoid *:* if upstream repo is very big and you want to limit the branches used by downstream repositories.
 +<code>
 +git fetch origin master:master
 +git fetch origin 13.0:13.0
 +git fetch origin '*:*'
 </code> </code>
  
general/git.txt · Last modified: 2023/01/30 08:53 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki