DEV Community

Gunabalan.S
Gunabalan.S

Posted on

1

GIT MERGE Quick Reference

This sequence of commands allows you to merge changes from a feature branch (feature-branch) into the development branch and then delete the feature branch both locally and remotely.

  1. Switch to Branch: example "Development"
git checkout development
Enter fullscreen mode Exit fullscreen mode
  1. Merge Feature Branch to Development:
git merge feature-branch
Enter fullscreen mode Exit fullscreen mode
  1. Delete Feature Branch (from Local):
git branch -d feature-branch
Enter fullscreen mode Exit fullscreen mode
  1. Delete Feature Branch (from Remote):
git push origin --delete feature-branch
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay