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.
Practice questions
What is the maximum size of a single file uploaded through the GitHub web interface?
- 25 MiB
- 10 MiB
- 100 MiB
- 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.
Which statements about uploading files through the browser are correct?
- Up to 100 files can be uploaded at once
- Each file can be at most 25 MiB
- Rules in .gitattributes are ignored
- Line endings are converted according to .gitattributes
- 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: 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.
