644

  • Bash
  • Database
  • Java
  • Js,Ts,Css
  • Server
  • All

Git merge branch excluding file

Published by Tito on 21 December 202221 December 2022

Here a simple snippet to merge a local branch excluding a file.

This is case “myfile.txt”

git merge --no-ff --no-commit <merge-branch>
git reset HEAD myfile.txt
git checkout -- myfile.txt
git commit -m "merged <merge-branch>"
Categories: Bash

0 Comments

Leave a Reply Cancel reply

Avatar placeholder

You must be logged in to post a comment.

Recent Posts
  • Node multithread
  • Kong timeout management
  • Flameshot
  • Setup OpenVPN in 10 minutes
  • nc – netcat

Related Posts

Bash

Flameshot

Flameshot is a powerful and simple-to-use screenshot software Here a mini guide to install and setup in ubuntu 24.04 LTS, XDG wayland Install Flameshot on startup go to startup application select flameshot and press edit Read more…

Bash

Setup OpenVPN in 10 minutes

Few steps to setup in 10 minutes a OpenVPN server inside a Docker in your VPS. Requirements Docker Docker compose Docker compose setup note: static-network is optional, just in case you would like to access Read more…

Bash

nc – netcat

The nc (or netcat) utility is used for just about anything under the sun involving TCP, UDP, or UNIX-domain sockets. It can open TCP connections, send UDP packets, listen on arbitrary TCP and UDP ports, Read more…

  • Bash
  • Database
  • Java
  • Js,Ts,Css
  • Server
  • Privacy Policy
644.ovh | Developed by ielpo.net
Welcome to 644 blog
This website uses cookies, also from third parties, to ensure you get the best experience on our website: Read More
ACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
SAVE & ACCEPT