I have some code, in which parts are pulled from several other external repositories (e.g., url: http_external_repository). I have made certain changes to these external code.
my question is how I could commit these changes,
1) if I want to commit to the original external repository?
2) if I do not want to disrupt the original external repository, is there something I could do?
Just commit -> it will commit to the external repository automatically. Externals are just a link
You can just build up a copy of the external repository inside your own one (see documentation “Vendor branches” and commit to your repository instead. You will have the overhead of pulling updates from the external repository manually instead of referencing them.
Alternatively for 2) you could just save your patch files against the original repository into some place and apply them for newer versions of the external repository. This is the way I would handle it if there are expected frequent changes to the external repository.