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"
Related Content
Git view commit history
Git view commit history
SceDev | Feb 09, 2024
How to initialize a new git repo
How to initialize a new git repo
SceDev | Feb 06, 2024
Delete a file from a git repository
Delete a file from a git repository
SceDev | Feb 08, 2024