How to Create GitHub Draft Pull Requests
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 means because I didn't realize the feature was available on GitHub. I'll go over some git tips as well as 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 basically means that Git is a content tracker. So Git can be used to store content — it is mostly used to store code due to the other features it provides.
Version Control System: The code which is stored in Git keeps changing as more code is added. Also, many developers can add code in parallel. So Version Control System helps in handling 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 that is stored in a server and a local repository which is stored in the computer of each developer. This means that the code is not just 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 present 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 is a provider of 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 own 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 that 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 option s 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! Isn't that a short procedure? I hope you now have a better understanding of how to create a draft pull request.
See you in my next blog article. Take care!!!