版本控制系统c#

发布于 2024-12-26 14:33:52 字数 225 浏览 1 评论 0原文

我正在开发一个使用 SQL 2008 Express 的 C# 应用程序。有时我在家工作,大部分时间在办公室工作,因此无法在同一网络中工作。每次更改位置时,我都需要将项目保存在 USB 中并更新家庭/办公室计算机中的文件,所以我觉得这有点令人沮丧。

你知道有一个版本控制软件可以让我在不使用 USB 的情况下完成此操作吗?像 SVN 这样我只能更新我的存储库以获得最新版本的东西?数据库发生变化怎么办?有办法保持更新吗?

I'm working on a C# app that uses SQL 2008 express. Sometimes I work at home and the most of the time at my office so there is no way to work in the same network. Everytime I change location, I need to save the project in my USB and update files in my home/office computer, so I find this a little bit frustrating.

Do you know a version control software which could let me do this without using my USB? something like SVN where I could only update my repository to have the most recent version? What about changes in the database? is there a way to keep this updated?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

不美如何 2025-01-02 14:33:52

MercurialGit.您可以使用一些在线存储库来存储您的工作,例如 GitHubBitBucket.无论如何,您应该创建一些自动部署数据库的策略。

The scenario you describe is well covered by Mercurial or Git. You can use some online repository to store your work, like GitHub or BitBucket. In any case you should create some strategy for of automatic deployment of the DB.

没企图 2025-01-02 14:33:52

如果你不关心它是否开源的话,有很多免费的 SVN 托管(例如 google code)。有很多 SVN 客户端可以直接集成到 Visual Studio 中(我使用并建议的一个是 AnkhSVN)。如果您的数据库位于您正在开发的本地计算机上,那么您的运气不会太好——但请考虑移动到远程位置。

There is plenty of free SVN hosting (google code for instance) if you don't care that it's open source. There are plenty of SVN clients that integrate right into visual studio (One that I use and suggest would be AnkhSVN). If you DB is on the local computer you're developing, you won't be much luck--but consider moving to a remote location.

少女的英雄梦 2025-01-02 14:33:52

只有你吗?尝试 dropbox 并在同一文件夹中工作。它免费保存 30 天的历史记录,并自动同步文件...对于一个用户来说,它比源代码控制方便得多。

Just you? Try dropbox and work from the same folder. It holds a 30-day history for free and syncs files automatically... It is much more convenient than source control for one user.

可遇━不可求 2025-01-02 14:33:52

版本控制只是跟踪存储库中的更改(无论如何我建议您使用 GitHub)。对于数据库,如果您为数据库编写脚本,那么您可以将脚本文件放入存储库并将它们推送到源代码管理(您没有)不用多说你的数据库策略)

The version control just keep track of the changes in your repository(I would suggest you GitHub anyway) .For the DataBase if you script your database then you can put the script files into your repository and push them to the source control(you didn't say much about your DataBase strategy)

战皆罪 2025-01-02 14:33:52

您可以将 Dropbox 与 SVN 结合起来。在您经常工作的位置创建 SVN 存储库,然后将代码签出到您的 Dropbox 文件夹中。然后,您可以在办公室和家里工作,而无需随身携带文件,并且可以将代码置于源代码管理中。

您将无法从异地提交或获取最新文件,但这应该不是问题,因为 Dropbox 会自动为您备份文件。只要确保到达主要位置后首先进行提交即可。

You could combine dropbox with SVN. Create your SVN repository at whichever location you work at more, then check the code out to your dropbox folder. You can then work from both work and home without having to carry your files with you, and you can keep your code in source control.

You won't be able to commit or get latest from your off-location, but that shouldn't be a problem given that dropbox is going to automatically back-up your files for you. Just make sure to do your commit first thing when you get to your main location.

琴流音 2025-01-02 14:33:52

某种公共托管的源代码控制(如 Github 或 Bitbucket)可能会起作用,但老实说,对于我只是在几个不同的地方进行黑客攻击的东西,我只使用 DropBox。将您的项目工作副本存储在 DropBox 文件夹中,当您回到家时,它会自动同步。

Some sort of publicly hosted source control like Github or Bitbucket may work, but honestly for things that I'm just hacking on in a few differnet places, I just use DropBox. Store your working copy of hte project in a DropBox folder, and when you get home it's automagically synced.

明月夜 2025-01-02 14:33:52

您可能希望在工作中或通过家里的 dyndns 托管您自己的 gitolite - 并拥有您的开发分支在那一个上。也许您已经拥有一台正在使用的 Team Foundation Server,那么您就可以使用该服务器。

You may wish to host your own gitolite - at work or via dyndns at home - and have your develop branch on that one. Maybe you already have a Team Foundation Server at work already, then you could use that one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文