Knowledge Graph — Coursera Notes › Academic disciplines › Information Technology / Computer Science › Software Development › Version Control › Git
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.