Equivalent of "Revert before update" for Git?

Hi,

We are moving from Subversion to Git. Our build makes changes to some files so before the next build occurs, we would like to automatically do the equivalent of a Subversion revert. The Subversion VCS settings in TeamCity have this option. Is there an equivalent when using Git VCS?

 

Thanks

Phil

0
2 comments

Hi Phil,

 

when loading new revisions, git should automatically perform that "revert". It won't merge your local changes into a new commit, just simply overwrite them. Should you have any further issue with this please feel free to ask.

 

If you would rather have that be merged/commited before hand, you should do that directly after the changes have been performed. Be aware that in this scenario, teamcity will not pick this change up for further builds within a build chain, as teamcity attempts to keep revisions consistent throughout the chain, and the revisions are decided upon start of the chain entirely.

 

1
Avatar
Permanently deleted user

Great. Thanks Denis.

0

Please sign in to leave a comment.