# Simple rollback or discard of un-commited changes

2 messages from 2009-05-16 to 2009-05-16. Participants: Peter CHARRON, Brandon Casey.
Thread: https://gitlist.dev/t/19366

## Peter CHARRON, 2009-05-16 02:00

Subject: Simple rollback or discard of un-commited changes
Message-ID: <025F1C6D-1CAE-42BD-986B-1B53238882DE@itelliseek.com>
URL: https://gitlist.dev/e/025F1C6D-1CAE-42BD-986B-1B53238882DE%40itelliseek.com

```
I've used a lot of Source Code Control systems, but I can't figure out  
how to do a simple discard (aka rollback) of one file using GIT.

What am I missing?

```

## Brandon Casey, 2009-05-16 02:21

Subject: Re: Simple rollback or discard of un-commited changes
Message-ID: <e9_YdDV8acmQN1LWtgANyk7np-p4Fge6aCPHlAGEpeaAUqaNBK9i8Q@cipher.nrlssc.navy.mil>
URL: https://gitlist.dev/e/e9_YdDV8acmQN1LWtgANyk7np-p4Fge6aCPHlAGEpeaAUqaNBK9i8Q%40cipher.nrlssc.navy.mil
In-Reply-To: <025F1C6D-1CAE-42BD-986B-1B53238882DE@itelliseek.com>

```
Peter CHARRON wrote:
> I've used a lot of Source Code Control systems, but I can't figure out
> how to do a simple discard (aka rollback) of one file using GIT.

git checkout -- $file

```
