Git add and commit files
Posted by SceDev
Last Updated: February 04, 2024

We use the git add command to move files from working directory to staging area.

git add file1 file2 files3

 

We use the git commit command to commit changes from the staging area.

git commit -m "insert comment here"