Introduction to Agile and Git Workflows for Web Developers
This project was created for the Introduction to Agile and Git Workflows for Web Developers training.
Story links
Getting Started
Resources
Create a Feature Branch
-
When starting a issue, use these commands to create an issue feature branch:
git checkout develop
git pull
git checkout -b feature/<github-username>/<issue-number>--<short-description-of-issue>
-
Complete your issue task.
-
When your changes are ready, use the following to review your file changes:
git status
-
Use the following commands to stage your changes:
New files:
git add <path/to/file>
Existing files:
git add -p
Interactive mode with patch subcommands will allow you to review each change and intentionally stage it with patch subcommands.
-
Once everything is staged, run the following command to commit your changes to your feature branch:
git commit -m "<issue-number>: <short-description-of-changes>."
Including the issue number in your commit comes in really handy when a developer needs to track down why particular changes were made. This is also why issue comments and documentation are important.
-
Now that changes are committed, you can push them to GitHub using this command:
git push -u origin <feature-branch>
Create a Pull Request
Pull requests are how you merge your feature branches into the develop
working branch. It also allows your work to be reviewed by a mentor or team member before it merges.
Just be sure to set your "base" to develop
and "compare" to your feature branch.
Request a Review
- Update your issue:
- Remove yourself from "Assignees".
- Assign to your partner or a teammate.
- Set "Status" to "Review".
- Assign the Pull Request to the partner or teammate.
Review a Pull Request
- Verify the target branch is
develop
.
- Verify there are no merge conflicts.
- Click on the "Files changed" tab to review the changes.
- Verify the changes do not violate the event's Code of Conduct.
- Verify the Acceptance Criteria of the issue has been met.
- Verify there are minimal grammatical or syntax errors.
- It is probably helpful to click on the feature branch, navigate to the changed file, and verify it renders as expected.
Review Pass
- Click on the "Review changes" button.
- Leave a positive comment.
- Select "Approve".
- Click on the "Submit review" button.
- Merge the Pull Request.
- Update the related issue:
- Remove yourself from "Assignees".
- Assign back to the original assignee.
- Set "Status" to "Done".
Review Fail
- Leave a comment in the "Files changed", kindly suggesting changes.
- Click on the "Review changes" button.
- Leave a kind comment, indicating you've completed your review and are requesting changes.
- Select "Comment" or "Request changes".
- Click on the "Submit review" button.
- Update the related issue:
- Remove yourself from "Assignees".
- Assign back to the original assignee.
- Set "Status" to "To do".
Resolve Merge Conflicts
-
Checkout the develop
branch.
git checkout develop
-
Pull the latest changes from the remote repository.
git pull
-
Checkout your feature branch.
git checkout <feature-branch>
-
Merge develop
into your feature branch.
git merge develop
- Use your code editor's conflict resolution tool to resolve the conflicts.
-
Verify all of the changes are staged.
git status
-
Commit the merged changes.
git commit --no-edit
-
Push your feature branch to the remote repository.
git push origin <feature-branch>
Story Prompts
- A road trip was just the thing for me and my friends.
- I suddenly found out that I was heir to a throne...
- She opened the letter and it said she’d won $100,000.
- It all started when I accidentally picked up the wrong suitcase at the airport.
- It sounded like piano music and it was coming from my living room...
- She broke open the fortune cookie, but there was a map on the tiny slip of paper.
- Every Tuesday at 3 pm, flowers were delivered to my house.
- I had to go on stage in 15 minutes and my clothes were ripped and muddy.
- When she looked at her cellphone, she was shocked to see she had 33 voicemails.
- When I heard that familiar jingle coming down the street, I assumed it was the ice cream truck; I never knew they had mobile deliveries of those.
- “Don’t look at me, I thought we were going for tacos.”
- Late for work, I throw open the front door and find myself face-to-face with a UPS driver standing next to the biggest box I’ve ever seen.
- Mark’s favorite band is playing a sold-out show tonight but thankfully, he's figured out a way to get in.
- “Pick a number, any number,” she said, her voice a taunt, “And I’ll show you your future self.”
- Though Tom knew the dog was special, he'd never realized he was magical.
- The return address on the gold envelope is in Greenland — had they really tracked me down from the other side of the world?
- “Does this purple shirt make me stand out?” asked the giant one-eyed cat.
- She’d eaten a lot of pie during her career as a restaurant critic, but never before had she tasted one quite like this.
- At first, I had thought telepathy would be a cool superpower, but that was before I knew of the chaos that lives in every person’s mind.
- I had just finished crocheting the small grey elephant for my nephew and was placing it in a gift bag when it let out a little trumpeting noise.
- She was on the hunt for a way to ease her anxiety, and it didn’t take her long to discover that goat yoga was not the answer.
- I had no idea how big a polar bear’s stomach really was until I was inside of one.
- "Surprise!" They cried, leaping out from behind the door...
- Oliver couldn’t believe he was finally here...
- Whatever that object in the sky was, it was becoming increasingly clear that only I could see it...
- People say that dragons aren’t real, but I know better...
- If I’d never learned to time travel, none of this would have happened...
- The day I got my pet cat was also the day the trouble began...
- I woke with a jolt and glanced at the clock. With a groan, I realised I’d overslept again...
- I was tired of living with my name. I decided it was time to change my name to something I really liked…