git add [filename]
This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit.
Continue“To stage file(if not yet tracked)”
git add [filename]
This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit.
Continue“To stage file(if not yet tracked)”
git diff
Show changes between the working tree and the index or a tree, changes between the index and a tree, changes between two trees, changes between two blob objects, or changes between two files on disk.
git status
Displays paths that have differences between the index file and the current HEAD commit, paths that have differences between the working tree and the index file, and paths in the working tree that are not tracked by Git
git init
This command creates an empty Git repository – basically a .git directory with subdirectories.