First let's create a new branch with the following command in the local git repository
git checkout -b "Hour2"
Now following the tutorials in this post Hour 2: Enable ASP.NET Core to Serve Static Files
After you are done open the command line in the folder and type git add .
Then you just commit the new code like normal.
The final step is we need to push the new branch and code into the remote repository with this command git push -u origin Hour2
Now if you log into github you will see that new branch and the code has been pushed to the remote repository
Thanks!
ReplyDelete