Sunday 27 January 2019

Popular Git Cammands

In today's digital modern era, Every IT company wants to use most collaborative form of development technique. Hence keeping that in mind today, i will try to cover most popular git commands which are normally used in project development.

Image result for git image


• git clone: clone a remote repository to your local.
• git add .: add all the changes in repository to staging.
• git pull : pull all branches with latest changes to your local.
• git status : to see what files have been created, modified or deleted.
• git add hello.js : to stage or simply add files.
• git reset HEAD : remove all staged files.
• git commit -m "comments" : commit the staged changes.
• git reset --soft HEAD~1 : undo your most recent commit and put those changes back into staging.
• git push : push your committed changes to a remote repository.
• git stash : save changes that you don’t want to commit immediately.
• git branch : list out all the branches.
• git checkout <branch> : switch to different branches.

Complete tutorial can also be found @ https://git-scm.com/docs/gittutorial

No comments:

Post a Comment