Knowledge Graph — Coursera NotesAcademic disciplinesInformation Technology / Computer ScienceSoftware DevelopmentVersion ControlGit

Git add

feature · part of Git

Git add stages changes so they are included in the next commit. Git keeps a staging area (the index) separate from the working directory: you edit files, stage exactly what you want with git add, then commit the staged snapshot. 'git add .' stages all new and modified files under the current directory; individual files can be staged by path.

git add notebook.ipynb   # stage one file
git add .                # stage everything in this directory

If a dubious ownership error occurs (the repository directory is owned by another user, common on mounted drives and cloud compute instances), add the safe.directory exception Git suggests, then re-run git add.

This is the text view of an interactive 3D knowledge graph — open this page with JavaScript enabled to explore it visually.

🧠 Knowledge Graph

Select a node

The owner's editing tools — shown here so you can see how the graph is grown, but read-only.

Click a bubble to drill in · click again to collapse · drag to move around