Git

Sep 14, 2022
seed

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

CommandNew FilesModified FilesDeleted FilesDescription
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

CommandNew FilesModified FilesDeleted FilesDescription
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.

# Tools

# Aliases