- Fork this workbook to your account by clicking the "Fork" button
- On your forked repository, click the "Clone or download" button and copy the url
- On your computer create a folder that will contain your repository
- Open Git Bash and navigate to the folder created above
- Use git clone command to download the repository into your computer, replace
"url"with the url from step 2.git clone "url" - Navigate into the directory and leave the Git Bash open, we will use it later
cd git-workbook
cdinto yourcsharp-workbook- Open your workbook in VSCode
code . - The first time, you should be prompted to install the C# extension, click Install
- Open your integrated terminal by clicking
View->Integrated Terminalor pressingcontrol+`
- Navigate into your first project
cd ./01Week/HelloWorld - Run the project in the integrated terminal
dotnet run - You should see
Hello World! - Go to the file in the file in the Explorer and change the text to say
Hello <Your Name>! - You should see
Hello <Your Name>!
This steps setup needs to be done only once. For future projects all you need to do is push you changes to the branch.
- Get back on Git Bash and check the status of your repository - You should see the file(s) you changed appear in red
git status - Stage the file(s) using:
git add -A - Commit that staged file
git commit -m "Saying hello to myself" - Push your changes up to your remote repository
git push - Head to your remote repository in GitHub
- Click on
new pull requestbutton and name it using your full name
If you are having some trouble with the steps watch this video here