I have a project (pipeline
) that is also included as a part of a larger project (aws_pipeline
). For both I have two different github
accounts set up. I want to work on the pipeline
project from within the aws_pipeline
and then push it to the pipeline
git
account. Could anyone describe a step-by-step
procedure of how to do basic push to the pipeline
remote (from within aws_pipeline)
? I added pipeline
remote and can see it now when I do git branch -a
in aws_pipeline
. Now I need to somehow add some files that I modify, commit and push without pushing anything else in the large aws_pipeline
. Pretty much I want a subfolder of the aws_pipeline
to work as a separate git
project attached to pipeline
. I need the separation but want to have also synchronization of the pipeline
between itself and the aws_pipeline
. Any suggestions would be greatly appreciated.
Update
To clarify more. I want to find a way to merge two folders instead of deleting - add submodule
set of actions described here: Issue with adding common code as git submodule: "already exists in the index"
Update
I solved it in my case by removing the folder, adding git submodule, then manually copy-pasting the modified files into the submodule. It does seem though too clumsy way of resolving this issue. If anyone has a better solution, would be awesome to see.