{"thread":{"id":"19366","subject":"Simple rollback or discard of un-commited changes","startedAt":"2009-05-16T02:00:01Z","lastAt":"2009-05-16T02:21:21Z","messageCount":2,"participants":["Peter CHARRON","Brandon Casey"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"114053","messageId":"025F1C6D-1CAE-42BD-986B-1B53238882DE@itelliseek.com","threadId":"19366","inReplyTo":null,"subject":"Simple rollback or discard of un-commited changes","fromName":"Peter CHARRON","fromEmail":"pcharron@itelliseek.com","sentAt":"2009-05-16T02:00:01Z","receivedAt":"2009-05-16T02:00:01Z","isPatch":false,"sender":{"key":"pcharron@itelliseek.com","avatar":null},"body":"I've used a lot of Source Code Control systems, but I can't figure out  \nhow to do a simple discard (aka rollback) of one file using GIT.\n\nWhat am I missing?\n"},{"id":"114054","messageId":"e9_YdDV8acmQN1LWtgANyk7np-p4Fge6aCPHlAGEpeaAUqaNBK9i8Q@cipher.nrlssc.navy.mil","threadId":"19366","inReplyTo":"025F1C6D-1CAE-42BD-986B-1B53238882DE@itelliseek.com","subject":"Re: Simple rollback or discard of un-commited changes","fromName":"Brandon Casey","fromEmail":"casey@nrlssc.navy.mil","sentAt":"2009-05-16T02:21:21Z","receivedAt":"2009-05-16T02:21:21Z","isPatch":false,"sender":{"key":"drafnel@gmail.com","avatar":"https://avatars.githubusercontent.com/u/921167?v=4"},"body":"Peter CHARRON wrote:\n> I've used a lot of Source Code Control systems, but I can't figure out\n> how to do a simple discard (aka rollback) of one file using GIT.\n\ngit checkout -- $file\n"}]}