Bhanu Prakash Korthiwada
  • Home
Subscribe

git

A collection of 1 post
Git retrieve a single file from old commit
git

Git retrieve a single file from old commit

Many times we wanted to retrieve a single file from old commit, below is the simple command to get the job done. git checkout We can also use HEAD reference in place of hash value: * HEAD  will get file from last commit * HEAD^ : Last Commit - 1 * HEAD^^ : Last Commit
Jan 9, 2018
Bhanu Prakash Korthiwada © 2023
  • Twitter
  • LinkedIn
Powered by Ghost