how.wtf

Pull latest changes from submodules in Git

· Thomas Taylor

Pulling the latest changes for all submodules in a repository is made easy through Git.

Pull all submodules after checkout

After an initial checkout, the the submodules can be updated using the following command:

1git submodule update --init --recursive

Pull all submodules changes

In Git versions 1.8.2 and higher, a --remote option was added to pull the latest changes from remote branches.

1git submodule update --recursive --remote

In addition, the following commands will work as well:

1git submodule update --recursive

or

1git pull --recurse-submodules

#Git  

Reply to this post by email ↪