In this lecture, I would like to create another pull request, and after that I'll merge this pull
request into Main Master branch.
And in order to create new pull request, I'll create new branch feature to then make some changes.
Push branch to remote and after that open new pull request.
And let's try to do all of that using GitHub desktop.
And here you see that current repository is my first GitHub repository and the first I need to add a
new pull request repository here.
And after that I'll create new branch here using GitHub desktop, let's add new repository and here
let's choose option, add existing repository, this one and here let's choose folder on a desktop.
This one pull request, let's click open and let's click Add Repository.
This repository was added and feature.
One branch was automatically checked out because now had actually points to this feature.
One branch.
Let's click on this drop down and using this button new branch.
We are able to create new branch directly here using GitHub desktop and now important notice if I'll
create new branch now it will be created from feature one branch from the current branch and that means
that all changes made in feature one branch will be preserved.
But I don't want to do that because at the moment you know that feature one branch wasn't yet merged
into Master Branch and the changes were not yet applied to our main default branch.
That's why before creation of the new branch, I need to check out Master branch like so and you may
go to VS code for example, and ensure that there are no files except readme.md file.
And those files that were previously opened are marked as deleted.
Actually I can close them here like so and leave only readme.md file opened.
And if I'll go back now to GitHub desktop, click on this drop down and click on new branch button and
create new branch.
This branch will be created from Master Branch and that's what I want to do.
Let's give name to this branch feature two like so and click Create branch button.
Now let's go back to VS code and make some changes to the project.
Please notice that here in a corner now feature two branch is selected as current branch and let's add
new folder named feature two like so and let's add new file to this folder.
Another feature dot txt enter and here let's add some text.
This file was added.
In the feature.
Two branch.
Let's save the file and let's go back to GitHub desktop and commit changes here.
Notice that here in the left pane all changes were appeared and there is just a single change.
New file.
Another feature dot txt was added in feature two folder and now I'm able to commit this change.
Let me add here.
Commit message added folder and file in the feature two branch and let's commit to feature two branch.
Let's quickly make another change.
For example, add new line here.
Another line, save the file, go back to GitHub desktop and commit once again.
One more change in feature two branch.
Let's commit to feature two.
And now I have two commits made in this feature.
Two branch.
You can click on history and observe those changes here.
Notice that my GitHub is now out of this commit.
That's because I have configured user name and user email specifically for this project locally and
that's why my GitHub is out of all those commits.
Okay.
That is a history of this feature.
Two branch.
If I'll go back to changes tab, you see that we are now able to publish our branch.
Let's do that.
Let's click on publish branch button.
And now I am prompted to enter username and password for GitHub.
That's because we are using this feature of GitHub desktop for the first time and username and password
were not stored before.
That's why.
Let me type my username, my GitHub and his password.
And click Save and Retry.
Pushing the origin.
Fetching origin.
And now this feature to branch should be pushed to remote server.
Let's verify that.
Let's go to Chrome and here you will see that feature to branch was created less than a minute ago.
I can go to code here and click here on the branches and you'll see that feature to branch was updated
two minutes ago by my GitHub.
And here in this all branches list you'll see three branches master feature two and feature one.
Let's go back to GitHub desktop and let's actually try to create pull request from here.
You can click on branch here and here you'll see option create pull request.
And now this option is inactive and the reason for that is we have not yet actually connected GitHub
desktop to remote GitHub account.
You may notice that if you go to preferences to accounts, there is no account selected here and we
need to click sign in button here and enter username and password at GitHub.
But let's try to do that in the next lecture.
See you soon.
Bye bye.