This is a repository for pull request and conflict practice
- You will ONLY edit the file when on your feature branch!
- You will NEVER commit changes when on the main branch!Play the game using these TWO RULE
Setup in Git Bash or use VS Code integrated Terminal
- Open Git Bash
- Clone the repo into a new directory
- Create a new branch, call it sign-in*-yourName* (this will be your feature branch) and check out this new branch using "git checkout -b *your feature branch name*"
- Modify the sign-in.txt code to add your name and the BC email address below my name
- Commit the changes
- Push your feature branch to Github using "git push origin *your feature branch name*"
Using GitHUB
- Make a Pull Request from your branch to main to push changes
- resolve the merge conflicts, if there is any.(Check pull-Merge-Commit-Push details below)
- Be mindful not to delete other people's response.
- You may have to deal with merge conflicts more than once through this process.
(NOTE: you will need to do this several times since the main branch will be changing using other NT's pull requests )
- Be sure you are in the directory for this project
- Type "git status" to make sure you are on your feature branch and it is clean
- Type "git pull --rebase origin main" or git pull origin main to pull the current copy of the main branch from the server and merge it into your feature branch
- Make whatever changes you need to the file so that all of the existing names are included in the list and your name is below all other names
- Finish the changes and Commit your changes
- Type "git status" to be sure you are on your feature branch and it is clean
- Type "git push -u origin *your feature branch name*" to push the updated copy of your feature branch to the server
- Navigate to your Pull request
- Review your pull request to see that it shows that it is able to be merged.
- If yes, complete the merge, otherwise see below
- Review your pull request details to see if your branch has conflicts with the current main branch. (Somebody branch has been merged ahead of you or other changes were made to main, sorry!!)
- Resolve the conflicts using the "Pull-Merge-Commit-Push-Request" steps above (redo the entire process from pulling the main branch to pushing your feature branch and requesting a new review) - notice that the code continue to incorporate new names into main.
- Repeat until you are able to merge your branch and close your pull request.