deleted directory in Git by mistake -


by mistake have deleted directory in git repo, , commited it.

i have done

git checkout long_sha_id 

where long_sha_id id of previous commit, , have got directory back, have got previous versions of files have fixed in latest commit.

how can deleted directory, latest version of other files?

do this:

git checkout long_sha_id -- /path/of/directory/you/deleted 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -