hit counter

Timeline

My development logbook

If I Have Removed a File by Accident, and Want to Reinstate the File Form a Source Code Repository, Then...

If I have removed a file by accident, and want to reinstate the file form a source code repository, then,

in subversion I will do

1
2

svn update file

in mercurial I will do

1
2

hg revert file

In git,

1
2

git checkout file

Reference:

http://hgbook.red-bean.com/read/mercurial-in-daily-use.html