Source: medium.com

Git with Practical way

Category: github

Git is source code management system.To know basic of how git works see my previous blog https://medium.com/@ommore524/introduction-to-git-version-control-system-686d7c35b7b0 .In this blog we will learn implementations of git through linux command . Type command ‘git init ’ which initialize git into the directory folder.

To commit the files simply command write ‘ git commit -m “ this is my first commit ” ’.Now your code it in local repository stage. git push and pull :- These commands are used to send your code to the server repository (exp-Github) so other developer can pull it from his system ,change it ,add it commit it and push it on server repository again.Each time commit id is created will be unique.So anyone can easily know that who and what the changes are done in files.

git reset ’ command is useful when you have added something in staging area and now you want to remove it from there and come back to workspace.

Related Articles