Is it possible to work with two independent git projects, one within another in the directory tree and separate them using only gitignore (without submodules or subtrees)?
Here is the folder structure:
repo_a <-- repository A folder
/.git
/folder_1
/folder_2
/repo_b <-- repository B folder (to be ignored by repository A)
/.git
/folder_3
/folder_4