File: comparison.swim

package info (click to toggle)
git-subrepo 0.4.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,552 kB
  • sloc: sh: 7,074; makefile: 273; perl: 226
file content (35 lines) | stat: -rw-r--r-- 903 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
= Comparing `submodule` and `subrepo`

This document compares Git's `submodule` command to the new `subrepo` command,
with examples and discussion of all the common operations. I'll use the term
"External" to mean the general concept of an external repo that might be used
as a submodule or a subrepo.

= Overview



= Adding a new External

As an owner or collaborator, you have decided to add a new External to your
repo:

- Submodule :: `git submodule add git@github.com/user/external`
- Subtree :: `git subtree --squash --prefix=external git@github.com/user/external`
- Subrepo :: `git subrepo clone git@github.com/user/external`

/…to be completed…/

= Updating from a changed External

= Pushing External changes upstream

= Moving/Renaming an External

= Making an External on a branch

= Changing the tracking branch of an External

= Removing an External

= Migration from One to the Other