Articles → GIT → Perform Our First Commit In GitPerform Our First Commit In GitIn this article, we will perform our first commit in git.What does commit means? Committing means sending the files from staging directory to repository.Prerequisite Before you commit it is important to set up your identity. Use the following commandgit config --global user.name "Karan Gupta"
git config --global user.email "firstname.lastname@example.org"Commit operation Use the following command for the commit operationGit commit -m “<message>” Here, -m specifies the message to be displayed once the commit is completed.Click to EnlargeCommit multiple files in one go Two commit multiple files in one go, you can use any of the optionsGit commit *.* -m <message>
Git commit -a -m <message>Posted By - Karan Gupta Posted On - Wednesday, June 26, 2019
Your Email Id
Characters remaining 250
git config --global user.name "Karan Gupta"
git config --global user.email "email@example.com"
Git commit -m “<message>”
Git commit *.* -m <message>
Git commit -a -m <message>