Git and GitHub

Collaborative Workflows

Forking and Pull Requests

Forking and pull requests are common in open-source and collaborative projects.

Example:

# Fork a repository (done on GitHub)
# Clone your forked repository
git clone <https://github.com/your-username/repo.git>

# Create a new branch and push it
git checkout -b new-feature
git push origin new-feature

# Open a pull request (done on GitHub)

Git Flow

Git Flow is a branching model that defines a strict branching structure.

Example:

# Start a new feature
git flow feature start feature-name

# Finish the feature
git flow feature finish feature-name

GitHub Flow

GitHub Flow is a simpler workflow that is often used for continuous deployment.

Example:

# Create a new branch
git checkout -b feature-branch

# Push the branch to GitHub
git push origin feature-branch

# Open a pull request (done on GitHub)

Managing Contributions

Managing contributions involves code reviews, merging pull requests, and ensuring code quality. Next, we will learn about releasing software with versioning tags from Git and GitHub.

Whenever you're ready

There are 4 ways we can help you become a great backend engineer:

The MB Platform

Join 1000+ backend engineers learning backend engineering. Build real-world backend projects, learn from expert-vetted courses and roadmaps, track your learnings and set schedules, and solve backend engineering tasks, exercises, and challenges.

The MB Academy

The “MB Academy” is a 6-month intensive Advanced Backend Engineering BootCamp to produce great backend engineers.

Join Backend Weekly

If you like post like this, you will absolutely enjoy our exclusive weekly newsletter, Sharing exclusive backend engineering resources to help you become a great Backend Engineer.

Get Backend Jobs

Find over 2,000+ Tailored International Remote Backend Jobs or Reach 50,000+ backend engineers on the #1 Backend Engineering Job Board