Hello, everybody! We'll talk about Git, GitHub, and how to make a draft pull request today.
I was told to create a "draft PR," but I had no idea what that meant because I didn't realize the feature was available on GitHub. I'll go over some git tips and how to make a draft pull request.
Table of Content
- Introduction to Git
- what is GitHub
- How to make a draft pull request
Introduction to Git
Git is a distributed version control system that is open source.
Let me dissect it and clarify the terminology:
Control System: This means that Git is a content tracker. So Git can be used to store content — it is mainly used to store code due to the other features.
Version Control System: The code stored in Git keeps changing as more code is added. Also, many developers can add code in parallel. So Version Control System helps handle this by maintaining a history of what changes have happened. Also, Git provides features like branches and merges, which I will be covering later.
Distributed Version Control System: Git has a remote repository stored in a server and a local repository stored in the developer's computer. This means that the code is stored in a central server, but the full copy of the code is present in all the developers’ computers. Git is a Distributed Version Control System since the code is currently in every developer’s computer. I will explain the concept of remote and local repositories later in this article. by "Aditya Sridhar."
What is GitHub
According to Wiki, GitHub provides Internet hosting for software development and version control using Git. It offers the distributed version control and source code management (SCM) functionality of Git, plus its features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, continuous integration, and wikis for every project.
I hope this has given you a good understanding of Git and GitHub.
You should be familiar with git, GitHub, and PRs to get the most out of this post.
How to make a draft pull request
Pull requests allow you to notify others about improvements you've made to a branch of a GitHub repository.
a) Go to the repository where you want to make a pull request.
I will be using 👆 the repository.
b) Navigate to Pull Request Tab, then select the options shown below
That is how simple it is.
Draft pull requests are ready for your code in public and open source repositories, as well as in private repositories for groups using GitHub Team and Enterprise Cloud.
Yes, indeed! I hope you now have a better understanding of how to create a draft pull request. Isn't that a short procedure?
See you in my next blog article. Take care!!!