Git & GitHub for DevOps Engineers(part-1)
Hetvi Shah
MS in Computer Science @ UAB || Teaching assistant of CS 685 foundation of Data science || SWE UAB member
Today, we're going to take a deep dive into Git and GitHub, two of the most essential tools for modern software development and collaboration.
What is Git & Why is it Important?
Git is a distributed version control system that allows developers to track changes to their codebase. It's vital for a few reasons:
Branching and Merging: Git enables the creation of branches for developing features, and these branches can later be merged back into the main project.
What is Github?
GitHub is a web-based platform that provides hosting for version control using Git. It is a subsidiary of Microsoft, and it offers all of the distributed version control and source code management (SCM) functionality of Git as well as adding its own features. GitHub is a very popular platform for developers to share and collaborate on projects, and it is also used for hosting open-source projects.
What is Version Control? How many types of version controls we have?
Version control is a system that tracks changes to a file or set of files over time so that you can recall specific versions later. It allows you to revert files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more.
There are two main types of version control systems: centralized version control systems and distributed version control systems.
Why we use distributed version control over centralized version control?
Overall, the decentralized nature of a DVCS allows for greater collaboration, flexibility, and security, making it a popular choice for many teams.
领英推荐
What is the difference Between the Main Branch and the Master Branch??
In Git, the main branch and the master branch essentially refer to the same thing: the default branch of your repository. Historically, "master" was used, but many projects are now switching to "main" due to potential connotations of the term "master." The choice between the two largely depends on your project's naming convention, and both are widely accepted.
How do you create a new repository on GitHub?
Exercises solution
hetvi@20 Desktop % git clone https://github.com/hetvi20/github-test-repo.git
3. Push the changes back to the repository on GitHub :
Thank you for reading I hope you like it!!
For Advance Git & GitHub for DevOps Engineers : Part 2 Click here
Stay in the loop with my latest insights and articles on DevOps by following me on LinkedIn (https://www.dhirubhai.net/in/imhetvishah).
Thank you for reading! Your support means the world to me. Let’s keep learning, growing, and making a positive impact in the tech world together.