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 17c6cf2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions programming/tools/git/gitBasicNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,31 @@ 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
```

```bash
git submodule update --init --force --remote
```

### 检查与比较

#### git show
Expand Down

0 comments on commit 17c6cf2

Please sign in to comment.