Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
BitKeeper
Fossil
monotone
CVS
Bazaar
Darcs
Perforce
Veracity
TFS
Pijul
 Easy Git
 :) Hot Jobs
 
 :) Latest Articles


  

 


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

Home >> 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



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


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






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |