Skip to content

How to proper replicate a version from the past? #3484

Answered by asbjornu
Pyth0ff asked this question in Q&A
Discussion options

You must be logged in to vote

To be able to fully replicate the same version number, you would have to do the following:

  1. Ensure that the same branch is being built on the same commit. This means you need to do git checkout <branch> and git reset --hard <commit-id> to force <branch> back in time to point to <commit-id>.
  2. Ensure that you use the same version of GitVersion as you did back when <commit-id> was built.

Please try that and report back your results.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Pyth0ff
Comment options

Answer selected by HHobeck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants