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.
Asked
Active
Viewed 625 times
1
-
I dont think this is possible in GIT. When you checkout a branch you are checking out a copy of that entire branch – Paddyd Aug 11 '14 at 13:38
-
1Although... http://stackoverflow.com/questions/2466735/checkout-only-one-file-from-git – Paddyd Aug 11 '14 at 13:40
-
Git is snapshot-oriented, not file-oriented. If you want to checkout a file as it appears in a given commit, you need to get that entire commit (and its ancestry). – jub0bs Aug 11 '14 at 14:28
1 Answers
1
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.

August Lilleaas
- 54,010
- 13
- 102
- 111
-
1but that would still waste time on downloading files that i don't need, isn't there a way to exclude/ignore such files from the pull/checkout? – blenddd Aug 11 '14 at 13:44
-