Git

Sunday, Jan 18, 2026 | 1 minute read | Updated at Sunday, Jan 18, 2026

Emmanuel Decena

Using git submodules if you want to depend on other repositories git submodule add <>

You need to clone the original repo to your local clone You need to change the origin so that you can push your own changes

  • you can also just rename the origin to upstream using:
    • git remote rename origin upstream
  • then add your actual local clone as the origin using:
    • git remote add origin git@.git
    • git branch -M main
    • git push -u origin main

If you need to rename/add/delete the submodules, do not directly delete the file There are git indices that you need to modify

  • git submodule deinit -f
  • git rm -f
  • then rm -rf .git/modules/

If using amplify to deploy, it needs https and needs application permision to clone the submodule repo if it is private

© 2025 - 2026 Blog

All rights reserved

About

I created this blog to monitor my curiosity, writing about concepts that interest me.

I write about personal projects, ideas, and the things I learn along the way. Hand-crafted and LLM-free.

Occasionally, a travel story or food review sneaks in.

If my writing resonates with you, feel free to connect with me at ecdecena [@] gmail.com.

I’m currently based in Cebu City, PH 🏖️.

Disclaimer

The contents on this site reflect my thoughts and opinions only. It does not represent the views of any organization, employer, or institution I am affiliated with.

Social Links