# Commits and history

A commit is a snapshot of files with a message, an author and a time. The branch history is on the commits page; a commit shows its files and a line-by-line diff.

## Where commits come from

* Saving a file in the browser — a commit with your commit message.
* Uploading, renaming and deleting files — commits too.
* `git push` from your computer brings commits made locally.
* Merging a pull request creates a merge commit.

The author of commits made in the browser is your login with the service address
`{id}+{login}@users.noreply.skillok.org`; your real email is never exposed.

## View the history

The address `/{owner}/{name}/commits/{branch}` shows the branch history: message, author, time, short
hash. Clicking a commit opens its page: the changed files and a line-by-line diff.

The **History** link on a file page shows only the commits that changed that file.

## The commit message

The first line says briefly what was done; it is shown in lists. Details go below after an empty
line. You can mention an issue in the message: `Closes #12` in a pull request closes the issue after
the merge.

---

https://skillok.org/docs/en/repositories/branches-and-commits/commits
