How to update a file in remote repo, without cloning that repo first?

前端 未结 6 1860
天命终不由人
天命终不由人 2020-12-14 07:39

Is there a way to push a commit to a remote git repo, without first making a local clone of that repo?

I have a valid URL for the remote repo, I know the path of the

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 07:42

    No, I don't think that's possible. You need to clone the whole repository for this to work. Git needs to know about all the files and .git to do its job correctly. This is why you can't just push arbitrary files like that.

提交回复
热议问题