git — beginners guide

Git was originally authored by Linus Torvalds for development of the Linux kernel, with other kernel developers contributing to its initial development.

It is an opensource software for tracking changes in any set of files, usually used for collaboratively developing source code during software development.

Some useful git command

  1. Check git version

2. GIT global configuration

3. Initialize a directory as git repository

4. Add files to the staging area

5. Commit the changes to git repository

6. view all git commit

7. checkout the file from an older commit

8. Add online remote git repository

9. Clone an online repository

10. Reset to previous commit

11. Overwrite local files with git pull from remote repository



System Administrator and Full stack web developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store