# Updating proto subrepo The [`./proto`](../proto/) subrepository can be updated easily via the [git-subrepo] git extension as follow: ```bash $ git subrepo pull ./proto # .. ``` Note that in case the branch specified in the [`.gitrepo`][gitrepo-file] file does not correspond to your intended target, you can always use the `--branch` option to specify another branch (e.g.: `master`) or even a specific git changeset hash. [gitrepo-file]: ../proto/.gitrepo [git-subrepo]: https://github.com/ingydotnet/git-subrepo ## Known issues ### Error "fatal: Not a valid object name" If the latest `subrepo` commit has been rebased, further subrepo commands won't work anymore. If it occurs to you, you need to find the new parent of this commit (once rebased), go to the `.gitrepo` file and replace `parent` with the hash of the new parent. Note that you need to commit this change to repair the `git subrepo` command. #### References - [fatal: Not a valid object name: ''. · Issue #348 · ingydotnet/git-subrepo](https://github.com/ingydotnet/git-subrepo/issues/348)