简体   繁体   English

我可以像在github上看到Git更改那样查看SVN所做的更改吗?

[英]Can I view changes made with SVN the way you can see Git changes on github?

I have never used SN or Git but I really want to start. 我从未使用过SN或Git,但我真的很想开始。 I have doen some reasearch over the past couple months but it seems really confusing to me. 在过去的几个月中,我已经进行了一些研究,但对我来说确实令人困惑。 I just now watched a tutorial video for using git with github.com and it seems like something I can do. 我现在刚刚观看了在github.com上使用git的教程视频,看来我可以做些。 I have some questions though. 我有一些问题。

1) 1)
The reason I liked the git is because it seems really easy to view my files and changes made on the github site. 我喜欢git的原因是因为在github站点上查看我的文件和所做的更改似乎非常容易。 If I were to learn to use something like TortouseSVN, does it make it really easy to view my files and all changes made like it is on the github site? 如果我要学习使用TortouseSVN之类的东西,是否真的很容易查看我的文件以及所做的所有更改,就像在github站点上一样?

2) 2)
1 thing I do not like about the github site is that I do not want my code to be made public, so is there a way to use git and still be able to view changes made locally somehow? 关于github站点,我不喜欢的一件事是我不想将我的代码公开,所以有没有办法使用git并且仍然能够以某种方式查看本地所做的更改?

3) 3)
Do you know any good resources on how to setup and use TortouseSVN on windows 7, for someone who has never used any sort of source control? 对于从未使用过任何源代码控制的人,您是否知道如何在Windows 7上设置和使用TortouseSVN的任何有用资源?

Ok, you're liable to get flooded with responses but the basics are fairly simple: 好的,您很可能会收到大量响应,但是基础非常简单:

  • Using version control is a seriously good idea for any number of reasons 出于多种原因,使用版本控制是一个非常好的主意
  • Its possible to use most version control systems on a single system - there's no reason why you should have to use github however you will lose a lot of the benefit if you don't have your code stored on at least one other system (but again this doesn't have to be a public system like github). 可以在单个系统上使用大多数版本控制系统-没有理由为什么必须使用github, 但是如果您没有将代码存储在至少一个其他系统上,则将失去很多好处(但是再次这不必是像github这样的公共系统。
  • There are other choices eg Mercurial (for which there is TortoiseHg - which has the advantage of being a complete Mercurial install all in one go). 还有其他选择,例如Mercurial(为此提供了TortoiseHg-优点是可以一次完成一个完整的Mercurial安装)。
  • There is a Tortoise for git: https://tortoisegit.org/ git有一个乌龟: https : //tortoisegit.org/

If you're a solo developer then git or mercurial is probably the way to go, I firmly believe that a "server" equivalent repository is a requirement (its the one you hook your Continuous Integration server into) but you don't need to be server based as SVN is (there are issues with working practices with distributed systems that are inherently avoided with server based systems but the argument is that the benefits outweigh the challenges and I'm beginning to see how that might be the case). 如果您是一个单独的开发人员,那么可能是git或mercurial,我坚信需要一个“服务器”等效存储库(将您的Continuous Integration服务器连接到该存储库中),但是您不需要像SVN一样基于服务器(分布式系统的工作实践存在一些问题,而基于服务器的系统本来可以避免这些问题,但是争论是收益大于挑战,而我开始看到情况如何)。

To explicitly answer your questions: 要明确回答您的问题:

  1. Yes, the various Tortoise implementations (SVN, Hg, I'm assuming git also) give you good tools to play and to view what changes you've made. 是的,各种Tortoise实现(SVN,Hg,我还假设git)都为您提供了很好的工具,可以用来播放和查看所做的更改。 There are other options too. 也有其他选择。
  2. Yes, you can use git or hg or svn and see what you've done locally 是的,您可以使用git或hg或svn并在本地查看已完成的操作
  3. For SVN you more or less require a server (this is about working practices not about system requirements) - by far the easiest way to set one up is using VisualSVN server: http://www.visualsvn.com/ however I think I'd suggest pulling down TortoiseHg - http://tortoisehg.bitbucket.io/ - which will do a complete Mercurial installation for you and having a play with that. 对于SVN,您或多或少都需要一台服务器(这是关于工作习惯,而不是系统要求)-到目前为止,最简单的设置方法是使用VisualSVN服务器: http : //www.visualsvn.com/ 但是我想我是d建议拉下TortoiseHg- http://tortoisehg.bitbucket.io/-这将为您完成一个完整的Mercurial安装并发挥作用。

git is better setup under linux, and it has the gitweb/gitk ready to display the changes in repository. git是在Linux下更好的设置,它已经准备好gitweb / gitk来显示存储库中的更改。

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

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