Skip to main content
Fix trivial typos
Source Link
Jonathan Leffler
  • 759.4k
  • 145
  • 961
  • 1.3k

simpleSimple and precise- first a fall

First of all, get a latest stable commit in which you have that file by -

git log 

saySay you find $commitid 12345671234567...

 , then

git checkout <$commitid> $fileName

thisThis will restore the file version which was in that commit.

simple and precise- first a fall get a latest stable commit in which you have that file by -

git log 

say you find $commitid 1234567...

  then

git checkout <$commitid> $fileName

this will restore the file version which was in that commit.

Simple and precise-

First of all, get a latest stable commit in which you have that file by -

git log 

Say you find $commitid 1234567..., then

git checkout <$commitid> $fileName

This will restore the file version which was in that commit.

Source Link
Sudhanshu Jain
  • 3.6k
  • 1
  • 11
  • 4

simple and precise- first a fall get a latest stable commit in which you have that file by -

git log 

say you find $commitid 1234567...

then

git checkout <$commitid> $fileName

this will restore the file version which was in that commit.