git 适合一个没有服务器的开发人员吗

发布于 2024-08-23 19:22:36 字数 315 浏览 3 评论 0原文

我是一名单身开发人员,没有另一台计算机来备份我的项目。我正在研究源代码控制,并且遇到了 git,但所有设置教程都针对外部服务器。我曾经使用 SourceGear Vault,但是看到 git 受到了很多关注,我可能会这样做很好地熟悉它。我并不总是可以访问互联网。

Git 适合我吗?可以为我指明正确的方向来设置它吗?

  1. Visual Studio 2008。Windows
  2. 7。

I am a single developer without another computer to backup my projects on. I'm looking into source controls and I came across git but all the setup tutorials are targeted to an external server. I used to use SourceGear Vault, but seeing that git is getting alot of attention, I might as well familiarize myself with it. I do not always have internet access.

Is Git suitable for me? Can I be pointed in the right direction to set it up?

  1. Visual Studio 2008.
  2. Windows 7.

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

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

发布评论

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

评论(5

儭儭莪哋寶赑 2024-08-30 19:22:36

那里有免费的私人安全 Git 存储库。我写了一篇关于使用 Project Locker 在 Windows 上进行此设置的教程。请参阅 Windows Git 教程:Cygwin、SSH 和 Projectlocker

DVCS(包括 Git、Mercurial 等)绝对适合一名开发人员使用,因为它们可以轻松保留多个备份存储库,以防万一发生绝对灾难。

如果您想走这条路,还值得一提 Joel 的 Hg Init:Mercurial 教程

There are free private secure Git repositories out there. I wrote a tutorial on getting this set up on Windows with Project Locker. See Windows Git Tutorial: Cygwin, SSH and Projectlocker.

DVCSs (including Git, Mercurial, etc) are absolutely suitable for use by even one developer as they make it easy to keep multiple backup repositories, which you should in the case of absolute disaster.

It's also worth mentioning Joel's Hg Init: a Mercurial tutorial if you want to go that route.

街角卖回忆 2024-08-30 19:22:36

是的。

另一个教程让 git 在 Windows 上运行。

其他可行的选择是 mercurial。有一本关于它的优秀 - 全部可用在线的

Yes.

Another tutorial to get git running on windows.

Other viable option is mercurial. There is an excellent book about it - all available on-line

雄赳赳气昂昂 2024-08-30 19:22:36

我将 git 用于多个私有存储库。太棒了。如果您有 Visual Studio Professional(不是免费的 Express 版本),我推荐免费的 Git Extensions 包将 git 直接集成到 Visual Studio 和 Windows 资源管理器中。它包含 git,因此您无需安装其他任何东西。

如果您有免费的 Visual Studio Express 版本,您仍然可以安装 Git 扩展,但您将无法获得很好的 Visual Studio 插件,因为 Visual Studio Express 不支持扩展。 Windows 资源管理器扩展仍然有效。

如果你是一个 unixy 类型的人,cygwin 很棒,并且有一个命令行版本的包git 的。

I use git for several private repositories. It's wonderful. If you have Visual Studio Professional (not the free Express version), I recommend the free Git Extensions package that integrates git directly into Visual Studio and Windows Explorer. It includes git, so you won't need to install anything else.

If you have the free Express version of Visual Studio, you can still install Git Extensions, but you won't get the nice Visual Studio plugin since Visual Studio Express doesn't support extensions. The Windows Explorer extensions will still work.

If you're a unixy kind of guy, cygwin is great and has a package for the command-line version of git.

神也荒唐 2024-08-30 19:22:36
  1. 您可能知道,您应该始终至少有另一个硬盘来进行备份。
  2. git 非常适合单个开发人员(我一直使用它)。它不仅用于备份,还用于分发、更干净的源代码,此外,当您想与其他人协作时,它会让您变得更容易。
  1. As you probably know, you should always have at least another hard disk to make backups.
  2. git is quite appropriate for a single developer (I use it all the time). It is not only for backup, but for distribution, cleaner source code, plus, it will make it easier when you want to collaborate with someone else.
再可℃爱ぅ一点好了 2024-08-30 19:22:36

当然,源代码控制不仅仅是允许多人参与一个项目。

我所有的个人项目都使用 git。

  • 记录您的更改:这使您可以轻松回滚到某个版本,找出何时引入错误,检查您的进度等。
  • 尝试新想法,而不必担心弄乱代码的状态:你总是可以放弃想法分支并返回到你的主分支

Absolutely, source control is not just about allowing multiple people to work on a project.

I use git for all my personal projects.

  • Keep a record of your changes: this allows you to easily roll back to a certain version, find out when a bug was introduced, check up on your progress, etc.
  • Try new ideas without being afraid of messing up the state of your code: you can always discard the idea branch and go back to your master branch
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文