Everyday git

1. What is git

Git is a version control system, that is used for source code management in software development. A version control, also referred to as source control, is the practice of tracking and managing changes to software code over time in the software development process. Version control helps to track any changes made in the code and in a special kind of database. Any mistake that is made, developers can turn back the clock and compare ealier versions of the code to help fix the mistake while at the same time minimizing disruption to the other developers.

In this blog, my focus will be on Git and Github as a control version.

2. Installing git

3. Configuring Git

4. Intializing a Git repository

    Steps on how to initialize a git repository.

  1. Create a folder in your local disk for storing project files.

  2. Open the command prompt from the folder.

  3. Check if the folder is already inintialized for git. Type the command git status in the command prompt as shown below.

  4. Checking if a folder has been initialized to be a git repository.
    fig:- How to check the status of a repository, if it is already a git repository or not.
  5. If it show the message No commits yet, initialize enter the command git init to initialize the folder as a git repository. All the files involved in the project should be stored in this folder for tracking changes and errors made.

  6. Initializing a folder to be a git repository.
    fig:- Command to initialize a git repository.

5. Adding files to the staging area

What is a staging area?

6. Commiting changes.

Guideliness on how to write a good commit messages.

  1. Obey the 50-character limit for the subject line.
  2. Capitalize just the first letter in the subject line.
  3. Do not place a period at the end of the subject line.
  4. Place a blank line between the subject line and the body of the message.
  5. Limit the message body width to 72 characters.
  6. Explain what was done and why it was done, but not how it was done.

7. Branches

8. Creating a branch

9. Viewing all branches

10. Switching active branches

11. Merging a branch

12. Deleting a branch

Recommendation.

I higly appreciate you for the dedication of your time to read through my blog. I hope it was informative and of help to you. If there is a concept that I might have left out, or you need some more clarification on a concept, I would recommend you to visit Git documentation for more guidance. I would also recommend you to interact with other control version I had listed above to have some deeper insights and understanding on version control and the tools used to achieve this.
Thank you.




Thank you for reading through.