github - How to push to a folder within a folder on a private Git Repo -


there's repo granted access it's not own.

i want push changes folder within folder:

privaterepo/folder1/folder2

i've got local git setup ready push,

i set origin url leading 'folder2' (i've removed private information in master i'm using proper url:

https://github.com/[group]/[privaterepo]/tree/master/[folder1]/[folder2]

but error:

fatal: repository 'https://github.com/[group]/[privaterepo]/tree/master/[folder1]/[folder2]' not found 

so how can add local folder files , sub folders private repo's sub folders?

git repositories work whole. since git tracks full contents of working directory single unit, can push full repository, not subfolder of project.

so make work, still have clone full repository, , work full project. comes down “discipline” edit files within 1 subfolder if that’s required.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -