Any #Git needs out there? I need your help please...

So, let’s say I have a repo that contains a folder called “example”. There are many other files and folders in this repo too.

Is it possible for me to run a git push command that ONLY pushes the contents of example to the root of the remote git repo?

So after I push /example/test.txt to my remote repo, it would be test.txt world be in the root of the repo, not /example.

@kev one way is sub modules, another is filter-branch on a temp branch and push that

Follow

@kev the latter is only really technically possible for what you want, not practically usable.

Sign in to participate in the conversation
Kernel.org social

Kernel.org after-party social