Git Pull Requests

Git Tips & Commands

Sharpen your skills in creating and merging pull requests on GitHub and Bitbucket, and learn how to make changes to enhance your pull requests. Also, explore the wide range of coding courses and bootcamps for different levels of proficiency, including web development, Python programming, data science, and web design.

Key Insights

  • GitHub and Bitbucket have distinct processes for creating pull requests.
  • Instructions for creating and merging pull requests on GitHub are available on their website.
  • Bitbucket has consolidated guidelines for creating and merging pull requests, accessible via a tinyurl link.
  • When changes are requested on a pull request, you need to commit and push them to the branch for that pull request.
  • There are a variety of coding courses and bootcamps available for students at different levels of experience.
  • These courses cover a range of subjects including web development, Python programming, data science, and web design.

Git Hygiene Checklist

  • Use the imperative mood: 'Add login form' not 'Added login form'.

  • Avoid divergent histories that need merging.

  • Never commit build artifacts, secrets, or local config.

  • One branch = one PR = one focused change.

Creating & Merging Pull Requests

GitHub and Bitbucket each have different ways to create pull requests, which they have documented on their websites.

  • GitHub
    • Create Pull Request: help.GitHub.com/articles/creating-a-pull-request
    • Merge Pull Request: help.GitHub.com/articles/merging-a-pull-request
  • Bitbucket
    • Create & Merge Pull Request: [tinyurl.com/bitbucket-pull-request](http://tinyurl.com/bitbucket-pull-request)

Adding Commits to a Pull Request

Let's say the person reviewing the pull request wants you to make changes before they accept it. Make the changes, commit them, and push them to the branch for the pull request.

Go Beyond Git

We offer the best coding courses and bootcamps for students at all levels of experience. Classes are hands-on and students receive workbooks with step-by-step instructions through exercises with real-world applications. Check out our programming courses now:

Full-Stack Web Development Certificate: Live & Hands-on, In NYC or Online, 0% Financing, 1-on-1 Mentoring, Free Retake, Job Prep. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

Topics

Learn more in these courses

How to Learn Git

Master Git with hands-on training. Git is a free, open-source version control system that allows developers to track the changes they make to code.

Yelp Facebook LinkedIn YouTube Twitter Instagram