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.
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.
Sean Tilley
•So Folder1/Example1.txt and Folder2/Example2.txt show up at the root as Example 1 and Example 2, no directories?
It almost sounds like you're trying to use git as a non-hierarchial file sync.
Sean Tilley
•Just don't ever git pull, or that directory would get all the repo's content dumped in. But if you're only pushing, I don't see why it wouldn't get the desired result.
Hypolite Petovan
•But it is finicky and introduces complexity. The best course may be to change the workflow if possible.