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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay