git add's Examples

This command is used to add one or more files to staging (Index) area.

To add one file :- git add Filename | To add more than one file :- git add*

Testing

 

$ git add .

Prepares the file for commit by logically moving it to the staged area

$ git add [file]

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us