Useful git commands that every developer should know

Git

is a open source version control system to manage large scale or small scale projects. If your team is using Git, you do not have to train new hires on your workflow, because they’ll already be familiar with distributed development. Unlike SVN, Git is distributed version control system which generated local copy of remote repository into local for each developer. Merging and managing multiple branches is quite easy. Here are some useful git commands each developer need to know before using git.

git init

git init is used to initialise repository in local system. It’s very first command to start working with git.

git pull

It updates change to local repository from remote repository.

git commit

git commit command is used to save changes in your local system with note.

Syntax:git commit -m "[Your message]"

git add

This command is used to add files to commit changes on local repository. It also allows you to add multiple files at a time.

Categories

Sgeek is how to blog maintained by Gopal Joshi. Gopal is Software Engineer and Blogger by passion and love to building web applications. Sgeek will share How To Technology Stuff, Tutorials of various technologies such as PHP, Symfony, Python, NodeJS, Frameworks and more.