I have commited to repository 3 times and each time attached new tag to each commit like version 1, version 2, version 3.
If I delete data from my local repository can I pull data from hosted server like Stash based on version 2 or other ?
Yes you can, deleting branches or tags locally does not effect data on the server, unless you explicity delete it from the server using git push <remote> :<tag or branch>. Even if you delete a tag on the server the data it referenced will be kept in the repository for at least thirty days (by default, see the documentation on gc.reflogExpireUnreachable for more details).
To re-checkout a tag that you've deleted locally, you can just run git pull to re-retrieve the tag and git checkout <tag> to check it out again.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot