Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reverting a submodule with Git

I did

git submodule add git://github.com/msanders/snipmate.vim.git bundle/snipmate

and then I deleted the directory. How do I revert it? How do I revert files within it?

like image 408
Neil G Avatar asked Dec 28 '22 22:12

Neil G


1 Answers

You could update the submodule:

git submodule update bundle/snipmate
like image 146
Alan Haggai Alavi Avatar answered Jan 12 '23 21:01

Alan Haggai Alavi