Git
- Git considers files not directories
-
restore comes in two forms
- staged: to move the change from staging area to working tree
- normal: to clear the changes from working tree

- Adding only modified files
git add -u
- Adding all changes to staging area
git add -A
- Adding only chnages w.r.t current directory
git add .
- We want git to explicity ignore some files or folder, We use
.gitignoreRefer Here - Generally for all the popular language combinations we can generate .gitignore file
- Prompt of the day for exploring git command options
As an experienced devops engineer, Guide me all the possible options used frequently with examples for the git command which i would enter.
