Bitzu

GH-900 ยท Repositories

Adding and managing files

Adding, uploading, editing, renaming and deleting files through the web interface versus committing from a local clone.

Key points

  • On the web you can create, upload, edit, rename and delete files, and every save becomes a commit.
  • Browser uploads allow up to 25 MiB per file and 100 files at once and ignore .gitattributes.
  • From a local clone you use git add, git commit and git push, with files up to 100 MiB; bigger ones need Git LFS.

Source: https://docs.github.com/en/repositories/working-with-files/managing-files/adding-a-file-to-a-repository

Practice questions

Single choice

What is the maximum size of a single file uploaded through the GitHub web interface?

  1. 25 MiB
  2. 10 MiB
  3. 100 MiB
  4. 1 GiB
Show answer

Answer: A. 25 MiB

Browser uploads allow up to 25 MiB per file. The 100 MiB limit applies to files pushed from the command line.

Select all that apply

Which statements about uploading files through the browser are correct?

  1. Up to 100 files can be uploaded at once
  2. Each file can be at most 25 MiB
  3. Rules in .gitattributes are ignored
  4. Line endings are converted according to .gitattributes
  5. No commit is created
Show answer

Answer: A. Up to 100 files can be uploaded at once, B. Each file can be at most 25 MiB, C. Rules in .gitattributes are ignored

Browser uploads accept up to 100 files at a time, cap each file at 25 MiB and ignore .gitattributes rules such as line-ending conversion. A commit message is still part of the flow.

True or false

True or false: editing a file in the web editor changes nothing permanently until you later push from a local clone.

Show answer

Answer: False

False. Saving a web edit creates a commit directly on the chosen branch (or a new branch); no local clone is involved.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module