F
F
froosty2014-08-12 16:44:12
git
froosty, 2014-08-12 16:44:12

How to restore a remote git repository based on a local one?

Good day. There was a following problem. There was a repository on bitbucket. But it so happened that it was removed there. What remains is a local copy of the repository. Here is a question. Is it possible to somehow create a new repository and, based on the local one, bring it to the form that the old one had? Those. so that the history of commits, branches, etc. is preserved. Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-08-12
@froosty

Yes, you can. It is enough to make a new repo on bitbucket. And follow the instructions:
git remote add origin [email protected]:YOURUSER/YOURREPO.git
git push
something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question