简体   繁体   中英

Github - Making pull requests on a repository that I own

I am new to Git and GitHub. I was wondering if I should be making pull requests on a repository that I own, or I should just commit my changes to it.

I think you should. It is a good practice to use different feature branches while you develop a project. As you finish developing a feature, you pull the changes from that branch to another.

Pull requests are mostly about reviewing work with collaborators when adding code changes to a shared repository. If you're the only person working on a repository, then there's no need to open a pull request.

  • Only you work on the repository, use different branch to add features, bug fix and so on, and then merge to master when your jobs done. Keep master branch deployable.
  • If you work on other's repository as a collaborator, use Pull Request and submit request to owner when you jobs done. If owner accept your request, your jobs will be merge to the repository.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM