E-mail : support@tech2now.in

GIT ADD

Git Git Hub git commit gir rebase git status git init

GIT ADD COMMAND

The git add command is used to add changes to the staging area in Git. It prepares the changes you want to commit.

$git add filename.txt
$git add directory/
$git add file1.txt file2.txt

If you want to add the changes at staging area run the below command.

$git add .

After running the git add command, the changes are added to the staging area, but they are not yet committed.

$git status (will show you all the files that have been added to the staging area.)

To commit the changes and create a new commit with the added files, you need to use the git commit.

$git commit -m “Add new feature”