I have 100 files in bitbucket repo. But when i try to clone the single file using ssh i am cloning the entire repo.
Can anyone suggest me how to clone a single file from repo using ssh.
@kondaiah1you need to understand GIT before you do clone operation in BitBucket.
In repository you can't clone single file, clone operation is for whole repository. All other operation like, push, pull, and merge are also for repository.
Albeit, you can download single file from BitBucket. For this,
Go to file which you want download, and do open it in raw format and save it using your browser.
Hello @kondaiah1,
In addition to what @DPKJ said: there's a way to clone not the whole repository but only the last N commits or commits since some date – this is called shallow clone. So you can only fetch the files in their state at the last commit.
Hope this helps.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.