GIT Commands
In the last article we learned what is git and github and also discussed some of the highly used git commands .So now lets doa deep dive in each one of them
- git add
The git add commands adds new or changed files in your working directory to GIT staging area .So git add command is used when during working if you changed and save a file or multiple files then before you commit you must do git add.Now the question might come up like what acutally is git commit? In Git , commit is a snapshot of your repo at a specific point in time. So the git commit will save all staged changes along with a brief description from the user in a "commit" to local repository.
2.git status
This command displays the state of working directory and the staging area .It lets you see which changes have been staged which havent.
- git log
Git log is a utillity tool to review and read a history of everthing that happened to a repository .So in general git log is the records of the commits .Multiple options can be used with git log to make it more specific.
So these are some from the most importanat git commands and rest will be coverd in the upcoming blogs.