Wednesday, January 23, 2013

Preforming a Git Checkout on a Directory

Description

A script I wrote to to run a checkout on each file the current directory. Not the fastest thing in  the world as I do not know bash all that well , that being said I'd love to hear about ways to improve it.

What does git checkout -- yourfilename.txt do?


Well in short it checks out the file passed.

What does that mean? In git land checkout holds a different meaning than that of other Version Repository Software. In my personal exp in TFS i known checkout to mean something like Tell the server I want to edit this file and mark that file as writeable in my file system.However in git you are essentially saying I want to remove any changes since the last commit.


More Resources