blenddd
blenddd

Reputation: 345

How to fetch only specific files on git

I want to save bandwidth and make my fetch/pull run faster, so i want to only update specific files and leave the rest unchanged, i don't care about their status in the project as they don't affect me. So how can i do so? first i want to check for all updated files between my local workspace and between the server/remote repository then choose some files from these to update... I've been looking around a lot and couldn't find something clean that works. I am new to git, i am used to TFS and SVN so try to explain.

Upvotes: 1

Views: 690

Answers (1)

August Lilleaas
August Lilleaas

Reputation: 54603

This is not possible with git. Git requires you to do a complete check-in of the entire tree.

The closest thing you have in git is a shallow clone. That's a clone where you only get the latest files (for the entire tree), and cannot push to other repos.

Upvotes: 1

Related Questions