# Showing commit logs with Git

[`🇻🇪 Spanish`](https://crisprogramando.hashnode.dev/visualizar-historial-de-los-cambios-con-git)

1.- You can see a history of changes of a branch using `git log` command. This command shows us all previous commits with their structure (Reference number of the commit, author, date and time, commit message, etc).

```javascript
git log
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1678896829357/f386f391-3f6c-4756-94de-47e4419f86b5.png?auto=compress,format&format=webp align="center")

2.- Another way to see the historical changes is using `git log --oneline` command.

```javascript
git log --oneline
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1678896940746/8606bdff-e822-480d-92b9-11e68daf9084.png?auto=compress,format&format=webp align="left")

3.- If you want to see the differences between the files use `git log -p` command.

```javascript
git log -p
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1678896979090/d234943c-b640-401c-b9a0-6728ed5c84a2.png?auto=compress,format&format=webp align="left")

### **Reference:**

[**git-scm.com/book/es/v2**](http://git-scm.com/book/es/v2)
