How to merge the pull request in master branch , Merge Code in git
Автор: Badar Shahzad Khan
Загружено: 2019-02-05
Просмотров: 20
Hi,
In this short video you can quickly view in my editor or in below description I have also included which I used to merge my first pull request.
I can merge code by Merge Pull request button! :) But we are going to do this by commands.
If you want to merge the pull request you have to do this steps
1) Firstly make new branch of pull request with this below command.
git fetch https://github.com/badarshahzad/Scrol... pull/1/head:pr1
You have to carefully write the pull request number like #37, #48, in my case this was first pull request so pull/1 you have to write your pull request number.
You have write the branch name after head: in my case this is first pull reuqest and branch name is pr1.
2) Now using below command shift to the pull request code branch and test
either is this working
git checkout pr1
Although you can do with GitHub Ui interface to make pull request merge.
3) After checking the latest pull request make a tracking branch for your master.
git checkout -t -b upstream_master master
4) Now merge the code with the below command.
git merge pr1
5) Now test the code does the merge code is working in the upstream_master branch. If its working now you have to push on
your repository. Use the below command
git push https://github.com/badarshahzad/Scrol... HEAD:master
Ref: https://gist.github.com/adam-p/15413f...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: