Skip to content

Commit

Permalink
update(git-submodule): basic command of git submodule
Browse files Browse the repository at this point in the history
issue #104
  • Loading branch information
sabertazimi committed Nov 21, 2018
1 parent e649d0f commit 0a28597
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions programming/tools/git/gitBasicNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,27 @@ git fetch <repo_name> <branch_name>
享资源上.submodule 命令有几个子命令, 如( add 、 update 、 sync 等等)用来管理这些
资源.

- add submodule

```bash
git submodule add git://github.com/chneukirchen/rack.git rack
cat .gitmodules
```

- get submodule

```bash
git submodule init
git submodule update
```

- sync submodule

```bash
git pull origin/master --rebase
git submodule update
```

### 检查与比较

#### git show
Expand Down

0 comments on commit 0a28597

Please sign in to comment.