git_subtree

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_subtree [2017/11/07 02:58] – [To manually update subtree] rpjdaygit_subtree [2018/02/13 17:05] (current) – [Links] rpjday
Line 8: Line 8:
   * [[https://www.atlassian.com/blog/git/alternatives-to-git-submodule-git-subtree|Atlassian --    * [[https://www.atlassian.com/blog/git/alternatives-to-git-submodule-git-subtree|Atlassian -- 
 Git subtree: the alternative to Git submodule (2013)]] Git subtree: the alternative to Git submodule (2013)]]
-  * [[https://developer.atlassian.com/blog/2015/05/the-power-of-git-subtree/|The power of Git subtree (2015)]]+  * [[https://hpc.uni.lu/blog/2014/understanding-git-subtree/|Understanding Git subtree (2014)]] 
 +  * [[https://developer.atlassian.com/blog/2015/05/the-power-of-git-subtree/|Atlassian -- The power of Git subtree (2015)]]
   * [[https://medium.com/@porteneuve/mastering-git-subtrees-943d29a798ec|Mastering Git subtrees (2016)]]   * [[https://medium.com/@porteneuve/mastering-git-subtrees-943d29a798ec|Mastering Git subtrees (2016)]]
   * [[https://gist.github.com/kvnsmth/4688345|A real world usage for Git subtrees]]   * [[https://gist.github.com/kvnsmth/4688345|A real world usage for Git subtrees]]
Line 175: Line 176:
 <code> <code>
 $ git subtree add \ $ git subtree add \
 +  --prefix .vim/bundle/tpope-vim-surround \
 +  tpope-vim-surround \
 +  master \
 +  --squash
 +$
 +</code>
 +
 +To update at a later date:
 +
 +<code>
 +$ git fetch tpope-vim-surround master
 +$ git subtree pull \
   --prefix .vim/bundle/tpope-vim-surround \   --prefix .vim/bundle/tpope-vim-surround \
   tpope-vim-surround \   tpope-vim-surround \
  • git_subtree.1510023491.txt.gz
  • Last modified: 2017/11/07 02:58
  • by rpjday