GIT ADD:- Adding files to stage area


git add commands add changed file to working directory to the staging area. It tells Git that you want to include updates to a particular file in the next commit. However, git add doesn’t really affect the repository in any significant way—changes are not actually recorded until you run git commit.

# add a single file
git add file_name

#add directory to repo
git add folder_name

Leave a Reply

Your email address will not be published. Required fields are marked *