Intro to Git and GitHub

Navigating the World of Version Control and Collaboration

Introduction :

If you are new to programming and software development, You might have heard about the term Git and GitHub. These are the tools that help us in managing and collaborating with new code projects. In this blog post, we'll discuss the common difficulties one faces through the journey of Git and GitHub. I will also be discussing some of my struggles. So let's roll in!!

  1. What is Git?

    Imagine you're writing a story on your computer. Git is like a magic tool that helps you keep track of all the changes you make to your story. It acts as a time machine, allowing you to see how your story evolves. With Git, you can make changes, go back to previous versions, and collaborate with others without losing any work.

    Basically, It helps in having track of all the progress one had made throughout the code.

  2. What is GitHub?

    GitHub is a place where you can share your stories and work with others. It's like a workspace for open collaboration where you can share your stories with friends or even with the whole world. It allows everyone to make notable changes in your project, review, rewrite and enhance your project.

  3. Getting up Git and GitHub:

    • Set up Git on your PC?

      Download GitBash from this link {https://git-scm.com/downloads} and install it on your desktop and you are ready to work.

    • You need to create a GitHub account to access different projects from the web and then you can run them on your PC using GitBash.

  4. Basic Git Commands:

    Git uses Linux commands. A few of them are :

    • git init: This command initializes Git in your project folder.

    • git add: Use this command to tell Git which changes to include in your story.

    • git commit: This command saves a snapshot of your story at a specific point in time.

    • git push: Pushes your story to your GitHub library, making it available to others.

    • git pull: Updates your story with the latest changes made by others.

  5. Collaborating on GitHub:

    GitHub provides a user-friendly web interface where we can create and manage our projects. We can upload your code to GitHub by creating a repository. A repository is like a folder where you store your story and all its chapters. You can invite others to collaborate on your code by giving them access to the repository. One can access your code through <pull requests> and They can make changes, suggest improvements, and even write their new codes.

  6. Early-Stage Difficulties:

    As a beginner, you might face some difficulties when using Git and GitHub. Don't worry; it's normal! Some common challenges include understanding different branches (different storylines) and setting the project on your PC, the other major problem one faces is understanding that huge code base. Fortunately, there are plenty of resources available online, including tutorials, documentation, and helpful communities(personally for me is WeMakeDevs) where you can find answers to your questions and overcome these obstacles.

    Conclusion:

    Getting started with Git and GitHub might seem overwhelming at first, but with a little patience and practice, you'll become more comfortable using these powerful tools. Remember, while using GitHub on any project you have to start with good-first-issue tag as it is easy to start with. Git helps you track changes in your story, and GitHub is a platform where you can collaborate with others. Don't hesitate to seek help from the community, Be active in Public and start Building your value Globally and most importantly, have fun coding and sharing your projects on GitHub!!

Dream.Achieve.Repeat