- Create a GitHub Account
- Create a Repository
- Install GitHub Desktop
- Create A Development Branch
- Make a Change to the READEME.md file and Create a Pull Request
- Go to Github website (right click on this link to open in new window) and click on "Pricing and signup"
- Enter your email address and click continue
- Create a password and click continue
- Solve the puzzle to continue.
- Click "Create account".
- Click "Just me" and "Student" then click "Continue".
- Click the checkboxes for "Collaborative coding" and "Automation and CI/CD" and continue.
- Click "Continue for free".
- Click "Create repository".
- Select "Public" or "Private" ad a README file and if you want select a license and click "Create repository".
- You should you now be able to see the README.md file.
- Go to GitHub desktop (right click on this link to open in new window) and click on "Download for Windows (64bit)"
- Click the download button for the computer platform you are installing on.
- Click the GitHubDesktop install executable.
- The software installation begins and will launch once completed.
- Select your repository you created in GitHub and click "Clone".
- Select the GitHub.com tab, select your repository, choose your location and click "Clone".
- One of the advantages of using GitHub is the ability to create branches or copies of your project while you are making changes. By default a "main" branch is created when you add a GitHub repository. You can create additional branches like a "dev" or development branch that is a duplicate of your "main" branch. You then make changes to your "dev" branch. Once you have reviewed and tested those changes you can commit those changes to the main branch. Let's now create a "dev" or development branch. Click on "New branch"
- Type "dev" for the name and select "Create branch".
- Type "dev" for the name and select "Create branch".
- Click "Publish branch" so that the branch is created on the remote site. GitHub is using Git to create these branches locally as well as running all of the other Git commands that GitHub Desktop is built upon.
- Now lets edit or README.MD file by clicking on the "Repository" menu then "Show in Explorer".
- The directory where our source files are located is opened.
- Right click on the REAMDE.md file and select "Edit with Notepad++".
- The README.md file is in Markdown format. Markdown is a simplified html format that is the standard for README files on GitHub. Here is a link to the basic syntax for Markdown (right click on this link to open in new window) Make a few changes and click "save".
- In GitHub Desktop you can see the the file has changed. Yuu can also see the text that was changed and how it was changed. You can then add a description of your changes. Now click "Commit to dev".
- Notice that your current branch is the dev branch you created. By clicking "Push origin" the changes you made to your local file will get pushed to GitHub in the cloud.
- Now that your changes have been pushed to GitHub we can create a pull request. By pushing the "Pull Request" button you are submitting a request to have your code reviewed and if approved, your changes will be merged from the dev branch into the main branch.
- Your GitHub repository is then launched in a web browser. GitHub analyzes your code to see if there are any conflicts with other pull requests which may have been made by other developers. That is one of the advantages of GitHub. It will track and manage changes made by multiple developers working on the same code repository.
- Notice that the changes you made in your dev environment will be merged into your main branch. Click "Create pull request".
- Click "Confirm merge".
- You can now see that the merge was successfully completed. If you want you can delete your dev branch. However, if you are going to continue working on your project it's probably best to not delete the dev branch.






























