Feedback

Chat Icon

Learn Git in a Day

Everything you need, nothing you don't

Code Review and Teamwork
56%

What a Normal Workday Looks Like

To tie everything together, here's what a normal workflow looks like when you're working on a team:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Pull latest  │────>β”‚ Create       │────>β”‚ Work & commit β”‚
β”‚ main         β”‚     β”‚ branch       β”‚     β”‚ on branch     β”‚
β”‚ git pull     β”‚     β”‚ git switch -cβ”‚     β”‚ git add/commitβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                                                  β”‚
                                                  v
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Clean up     β”‚<────│ Merge on     β”‚<────│ Push & open   β”‚
β”‚ git pull     β”‚     β”‚ GitLab after β”‚     β”‚ merge request β”‚
β”‚ delete branchβ”‚     β”‚ review       β”‚     β”‚ git push      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Start your day by pulling the latest changes so your local main is up to date:

git switch main
git pull

Create a branch for the task you're working on:

git switch -c feature/your-task

Make changes, commit as you go:

git add .
git commit -m "Describe what you changed"

Learn Git in a Day

Everything you need, nothing you don't

Enroll now to unlock all content and receive all future updates for free.

Unlock now Β $9.99$7.49

Hurry! This limited time offer ends in:

To redeem this offer, copy the coupon code below and apply it at checkout:

Learn More