0

Currently I have a git repo containing 2 directories frontend and backend.

myproject/
├── frontend/
│   ├── styles.css
│   └── frontend.js
├── backend/
│   └── backend.js

Is it possible to add a git repo foo as a third folder

myproject/
├── frontend/
│   ├── styles.css
│   └── frontend.js
├── backend/
│   └── backend.js
├── foo/
│   ├── .git/
│   └── foo.js

such that I am able to commit changes to foo's files to my original git repo, but still able to able to pull in new updates from the original/upstream git repo that foo was cloned from?

I am unsure how to proceed after doing the following:

cd myproject
git clone https://github.com/foo/foo
cd foo
git remote rename origin upstream
Athena Wisdom
  • 5,139
  • 6
  • 23
  • 36

0 Answers0