What is ‘git add’ is used for?



What is ‘git add’ is used for?..

Answer / Gaurav Khare

'git add' is used to stage files or directories for the next commit. It tells Git which changes should be included in the upcoming commit, preparing them for a commit message and eventual push to the repository.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Git Interview Questions

What is the difference between the ‘git diff ’and ‘git status’?

1 Answers  


What are the advantages of using GIT?

1 Answers  


What is subgit and why is it used?

1 Answers  


What is git bisect and what is its purpose?

1 Answers  


What is the difference between git vs svn

1 Answers  


Explain the difference between reverting and resetting.

1 Answers  


What is the function of ‘git stash apply’?

1 Answers  


What is git and why do we use it?

1 Answers  


What are git stash and git stash drop?

1 Answers  


How can you fix a broken commit?

1 Answers  


What is git cherry-pick?

1 Answers  


what is git fork? What is difference between fork and branch? How to create tag?

1 Answers  


Categories