Tutorial

How to Send a Pull Request using the GitHub Desktop Client

Draft updated on Invalid Date
    Default avatar

    By Noman Ur Rehman

    How to Send a Pull Request using the GitHub Desktop Client

    This tutorial is out of date and no longer maintained.

    Introduction

    In one of my previous posts, I outlined the process of contributing to open-source software with a detailed account of each step.

    One of those steps was sending a pull request to the owner of the repository you forked from.

    I showed you how to send a pull request using GitHub’s web interface.

    In this quick tip, you will be learning to send a pull request but this time, using the GitHub desktop application.

    Installing the GitHub Desktop Client

    A quick word on installing the GitHub desktop application.

    Once you have downloaded the appropriate setup for your operating system, it should be pretty straightforward to execute and go through it.

    If you have already configured the git command-line interface, the desktop application will automatically pick your git configuration.

    If you have not done so, you may have to go through that step first.

    Sending the Pull Request

    Fire up your GitHub desktop application.

    From the menu, click File > Add Local Repository.

    File > Add Local Repository Menu

    Browse to the location of the repository you wish to add, select its directory and click the Add button.

    Add a Repository

    You should now be able to see your repository in the repository list on the left.

    Select your repository from the list(if it’s not already selected) and you should be able to see the changes you made and the difference between your branch and the forked repository’s branch.

    Next, click the Pull Request button at the top-right corner of the user interface.

    Pull Request Button

    You will be asked to add a comment and description for the pull request so do so. A one-liner for what you added to the code is a great candidate for a pull request comment. Similarly, you can add a numbered list of changes you made to the code in the pull request description which would really help the owner of the forked repository to quickly understand what you did.

    Pull Request Comment and Description

    Click the Send Pull Request button.

    You will be notified that the pull request is being sent and that the repositories are being synced. If you have not pushed your code to the remote repository, it will be automatically pushed during this process.

    Syncing

    The owner of the repository will be notified of the pull request.

    You will also be shown the URL of the pull request in case you wish to discuss it further.

    Pull Request URL

    Conclusion

    As if sending the pull request from the GitHub web interface wasn’t simple enough, doing it using the GitHub desktop application is even simpler.

    The GitHub desktop application is not limited to sending pull requests, you can play around and check in on the host of operations you can perform using the application.

    I hope you found this tutorial interesting and knowledgeable. Until my next piece, happy coding!

    Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

    Learn more about us


    About the authors
    Default avatar
    Noman Ur Rehman

    author

    Still looking for an answer?

    Ask a questionSearch for more help

    Was this helpful?
     
    Leave a comment
    

    This textbox defaults to using Markdown to format your answer.

    You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Join the Tech Talk
    Success! Thank you! Please check your email for further details.

    Please complete your information!

    Get our biweekly newsletter

    Sign up for Infrastructure as a Newsletter.

    Hollie's Hub for Good

    Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

    Become a contributor

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    Welcome to the developer cloud

    DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

    Learn more
    DigitalOcean Cloud Control Panel