Git
Sep 14, 2022 | seedGit is a version control system used in software development.
# Commands
# git add
source: https://stackoverflow.com/questions/572549/difference-between-git-add-a-and-git-add
# Git Version 1.x
Command | New Files | Modified Files | Deleted Files | Description |
---|---|---|---|---|
git add -A | β | β | β | Stage all (new, modified, deleted) files |
git add . | β | β | β | Stage new and modified files only in current folder |
git add - u | β | β | β | Stage modified and deleted files only |
# Git Version 2.x
Command | New Files | Modified Files | Deleted Files | Description |
---|---|---|---|---|
git add -A | β | β | β | Stage all (new, modified, deleted) files |
git add . | β | β | β | Stage new and modified files only in current folder |
git add - u | β | β | β | Stage modified and deleted files only |
git add – ignore-removal . | β | β | β | Stage modified and deleted files only |
# Long-form flags
git add -A
Β is equivalent toΒgit add --all
git add -u
Β is equivalent toΒgit add --update
# Config
In my dotfiles repo you can see the config I am using for dev.