In your teams:
- 1st team member:
- Create a file
- Add 3 words to start a story
- Stage the file
- Commit the file
- Push the commit
while ( !story.finished ) {
- Next team member:
- Pull the changes
- Add the next 3 words of a story
- Stage the file
- Commit the file
- Push the commit
}
- All team members create a new branch:
- Add a final sentence to the story
- Stage, Commit, Push
- Open a Pull Request
- 1st team member:
- Merge in their PR
- 2nd team member:
- Try and merge in your PR and see what happens 😲
- Pull changes:
git pull - Stage files:
git add <file_name> - Commit files:
git commit -m '<your commit message>' - Push commit:
git push - Checkout an existing branch:
git checkout <branch-name> - Create and checkout a new branch:
git checkout -b <new-branch-name> - Merge commits from another branch to your current branch:
git merge <other_branch_name>
HELLO WORLD!!!
