简体   繁体   中英

Editing the content of git repository without `git clone`

I want to update a remote rep by adding more content but am wondering if I can do that without having to clone all its content first.

Is it possible to establish the same kind of connection between the folder on my machine and an existing remote rep without downloading the remote content?

No. Git is a distributed source code repository. You work with a complete copy of the remote repository, then push changes after you've resolved the merge collisions, if there are any. I suspect you don't want to clone a rather large git repository.

Note that my suggestion involves an external system called Gerrit (code review web system) but Gerrit has such a feature:

https://gerrit-review.googlesource.com/Documentation/user-inline-edit.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM