Understanding GIT and Github

If you haven't heard of these terms, then it is good time to grapple the concepts of GIT and Github. Suppose you work in the large team and the project is complex, you need to be in sync with the codebase and the commit that your team is making. That is where we have Git and Github.

What is Git?

Git is a distributed version control system for tracking changes in code during software development. The basic features of Git are -
  • Helps in saving revisions of your project in one directory.
  • Collaboration with your team members without any geographical constraint.
  • Easy to recover old code if a major bug messes up everything.
  • Git can track changes in files in any folder called repository.
  • Stores Key-value pairs
  • Can be used locally without any access to internet, it will still have you access to the files change history.

What is Github?

Github is an online repository where we can host our project, share it with other people.One can easily merge the code with our codebase.

Git Repository -

Git tracks all the changes made in the file and maintains the history in a folder inside your project. It is saved with .git folder.

Basically there are 3 stages in moving the code from your local to Github repository -

  • Modification - Modified the fees, not committed
  • Staging - Move the file to staging area
  • Committing - Pick the files from staging to commit.
If you are working on windows machine, install Git Bash in your machine.

To learn about the files which is in your staging area, there is a command to be called -
    
               git status 
Which shows the results either in red or green. Green signifies


Comments

Popular posts from this blog

Azure Tutorials Series - Azure Networking

Testing in CI/CD

Azure Tutorials Series - IaaS vs PaaS vs SaaS