Git 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 |
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.
# Aliases