如何在没有服务器的情况下使用 tortoise git(本地单用户)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1796049/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 03:57:38  来源:igfitidea点击:

how to use tortoise git without a server (local single user)

gittortoisegit

提问by pastacool

I'm looking for a simple tutorial for how to use tortoisegit without any server? I've tried google but, although a lot of people mention you can use tortoisegit without a server, no one explains how to do it so any help is greatly appreciated!

我正在寻找有关如何在没有任何服务器的情况下使用 tortoisegit 的简单教程?我试过谷歌,但是,虽然很多人提到你可以在没有服务器的情况下使用 tortoisegit,但没有人解释如何做到这一点,因此非常感谢任何帮助!

回答by VonC

Simple:

简单的:

    git init myFirstRepo
    cd myFirstRepo
    echo test> myFirstFile

From here, open a Windows explorer and you will the usual icons from files modified, to be added, to be committed, and so on.

从这里,打开 Windows 资源管理器,您将看到来自已修改、要添加、要提交等文件的常用图标。

TortoiseGit Context Menu

TortoiseGit 上下文菜单

回答by Paddy

It's very much the same as with a server, except that all you are then doing is committing your changes to your local repository - there would be no pushing to a remote source.

这与使用服务器非常相似,只是您所做的只是将更改提交到本地存储库 - 不会推送到远程源。

回答by StefanPapp

I would start with http://www.kernel.org/pub/software/scm/git/docs/gittutorial.htmlbefore going to TortoiseGit. This tutorial explains roughly what git does (not with too much detail, but enough). With this knowledge, you will find it easier to get started with the GUI.

在去 TortoiseGit 之前,我会从http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html开始。本教程大致解释了 git 的作用(没有太多细节,但足够了)。有了这些知识,您会发现开始使用 GUI 会更容易。