1.

What are the different ways to add/stage files/changes to the git repository?

Answer»

There are two ways to ADD or stage the files or the CHANGES to the git repository.

Using 'git add' command, this will add the file to staging Using 'git commit -am <your CUSTOM message>', the '-a' option with commit command will add the files to staging(not to 'newly added files' but only that have been MODIFIED and DELETED) and commit too. basically 2 in 1, it adds then commit the files. '-m' options for providing the custom commit message.



Discussion

No Comment Found