crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

How to restore a deleted file in Git?
Question Posted on 20 Oct 2020Home >> Software >> Git >> How to restore a deleted file in Git?

How to restore a deleted file in Git?
There are two steps to restore a deleted file in Git as per given below steps
(1)First we need to find the commit Id where we deleted the file
git rev-list -n 1 HEAD -- filename
(2)In second step we checkout that commit id to get that file
git checkout deleting_commit_id^ -- filename
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

GIT takes care of access control

Which command helps you track the revisions of your revisions in Git?

git bisect is used to identify a commit that has introduced a bug

Which of the following technical benefits can the teams realize by adopting ChatOps?

What is Git






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap