简体   繁体   English

vNext构建过程:更新后如何将文件推送到tfs git?

[英]vNext build process : How to push the file after updating, back to tfs git?

We have vNext build setup for official releases. 我们为正式发行版提供了vNext构建设置。 We are using Tfs 2015 vNext build with git version control. 我们正在使用带有git版本控制的Tfs 2015 vNext构建。 During the automated build process, we update one version file with powershell script. 在自动构建过程中,我们使用powershell脚本更新了一个版本文件。 And we want to push it back to repository after the file being updated with new version. 我们想在文件更新为新版本后将其推回存储库。

Any help in this regards really appreciated. 在这方面的任何帮助都表示赞赏。 Thanks in advance. 提前致谢。

The build server should have git in the path and you just have, in your build process to : 构建服务器的路径中应该有git,而在构建过程中您只有git可以:

  1. git add your_file git添加your_file
  2. git commit -m "update version by the build" git commit -m“通过构建更新版本”
  3. git rebase (in case your build is long and someone already pushed something else) git rebase(以防您的构建很长并且有人已经推送了其他内容)
  4. git push git推

Done. 做完了

Video 2 in this short series (20 min) will show you how to exactly configure what you need and provides hand on examples of changing a file and pushing back to Git. 这个简短系列视频(20分钟)中的视频2将向您展示如何正确配置所需的内容,并提供有关更改文件并推回Git的示例。 Hope this helps https://mva.microsoft.com/en-US/training-courses/enabling-devops-practices-with-visual-studio-online-build-12478?l=Gwpyl6BOB_4305094681 希望这对您有所帮助https://mva.microsoft.com/zh-CN/training-courses/enabling-devops-practices-with-visual-studio-online-build-12478?l=Gwpyl6BOB_4305094681

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM