We are moving our repositories from Bitbucket to our local environment in Stash. I am able to import the latest version of our repositories but not the details of previous commits and versions.
Can you please guide me what I should do to import our repositories with all branches, commits and version details?
This is how we are importing our repositories:
- Create a folder on local, using Tortise Git, clone it.
- Open Git Bash, go to this folder(directoary) by changing path using CD command
Run the following commands: git init
git add --all git commit -m "Initial Commit" git remote add origin http://User@localhost:7990/scm/PROJECT/repo.git git push -u origin master
As I'm new to Git, these may not be the correct way to do it.