Open in app
Praj Basnet
1 Follower
About

Sign in

1 Follower
About
Open in app
Image for post
Image for post

Batch undo git modifications

Praj Basnet

Praj Basnet

·Nov 26, 2020

The following command can be used to find and checkout (undo) all files with modifications:

git checkout $(git ls-files -m)

This is effectively an “undo” of all modifications in the given branch (but it doesn’t impact added or deleted files).

  • Git
  • Software Development
  • Code
  • Version Control

More from Praj Basnet

More From Medium

How to create real time simulator in laravel 7x using pusher.

Maruan Boukhirss

Mortal and immortal symbols in Ruby

Mehdi Farsi in RubyCademy

Measuring unit test coverage in multi-module Android projects using Jacoco: Part 2

Anton Stulnev in The Startup

How to Run Serverless Deployments Inside of Kubernetes

Vivek Sonar in Better Programming

Jenkins Multibranch Parallel Pipeline

Mehmet Ali Baykara in The Startup

How to set up Docker and Windows Subsystem for Linux: A Love Story. 💚

Piotr Gaczkowski in freeCodeCamp.org

Accelerating H264 decoding on iOS with FFMPEG and VideoToolbox

Damiaan Twelker in LIVEOP X Team

3d Game Programming With Java and libGDX — Setting Up a Model With Blender

synapticloop in The Startup

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store