A
A
Abejon2017-09-19 05:01:24
git
Abejon, 2017-09-19 05:01:24

Git: how to restore a local repository based on a remote one?

There is Android Studio with BitBucket connected. Created local and remote repositories. In the local "frolic" out of ignorance - the first time I tried to use Git - and deleted some folders and files. Is it possible now to restore them from a remote repository? Ideally, it would be, in general, to get the entire current version from BitBucket, without any . merge'ing.
Can it be done? And if so, how? Just clone again?
PS Simple pull does not help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2017-09-19
@Abejon

git reset --hard

A
Abejon, 2017-09-19
@Abejon

I get the message:
HEAD is now at e8fa964 Accumulative commit
and nothing changes on the disk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question