# Checkout

```
git checkout [commit id] 
belirtilen commit id 'ye geri döneriz. (commitler silinmez).

Bunun üzerine geçmişte gidip commit atarsak,yeni bir branch oluşturmamızı
isteyecektir. Önceki commitler silinmeyecektir.
```

### RESET

```
git reset --hard [commit id] 
belirtilen commit ıd 'ye geri döneriz. (öncekiler silinmez)

git reset --soft [commit id]
belirtilen commite geri döneriz. ancak dosyalar silinmez stage area 'da durur.
git restore --staged [file name] ile dosyayı staged alandan çıkarabiliriz.

git reset --mixed [commit id]
Dosyaları belirtilen commit haline döndürür. dosyalar silinmez staged alandan
kendisi çıkarır. Önceki dosyalar repoda tutulur. commitler silinir.
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://note.onurbolatoglu.com/git-and-github/checkout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
