Files

How to add, edit, rename and delete a file in the browser, what markdown can do and what a README is for.

In short#

Anything you can do with a file over git you can also do in the browser: add, upload, edit, rename, delete, look at the history and bring back an old version. Every action is a commit to the selected branch.

In this section

  • Adding a file

    A new file is created with the «Add file» button on the repository page; ready files from your computer are uploaded with the same button, in the «Upload» block.

  • Editing a file in the browser

    A file opens in an editor with highlighting and preview; saving is a commit to the selected branch with a commit message.

  • Markdown, formulas and diagrams

    .md files are rendered: headings, lists, tables, code, LaTeX formulas, mermaid diagrams, links to repository files and wiki links.

  • README

    README.md at the root is shown under the list of files and serves as the repository description; a README in a repository named like you is your profile card.

  • File history and restoring a version

    Every file has a history of commits; any version can be opened, compared with the current one and brought back with a new commit.