Announcement

Collapse
No announcement yet.

How to get one file from Git repo without clone whole repository to local?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get one file from Git repo without clone whole repository to local?

    Hi, I am new to Git. I have a repository in Bitbucket Repository. There contains of few folders and thousand of files. I don't want to clone the whole repository to my local, because I only need to do a minor changes to only one file. Is there any git command to do that? And the changed I made can be checkin back to Bitbucket Repository which should included in the version control. Is that support in git?

  • #2
    I am by no means a BitBucket expert but in general, in order to make changes to anything inside of a git repository you will need to clone the repository. I know that BitBucket will enable you to obtain a copy of the file without cloning it (via their UI), but that's not the same thing as making a change. If their UI has such a feature I didn't find it in my quick googling/check.

    Comment

    Working...
    X