到目前为止,我使用git来管理我的乳胶文件.但是git一次管理一个文件夹中的所有乳胶文件.
Up to now I used git to manage my latex-files. However git manages all latex-files in a folder at once.
我想要的是一个版本控制系统,
What I want is a version control system which
- 分别为我提供每个文件的历史记录
- 让我签出单个文件的旧版本而不会影响其他文件
- 让我为每个文件创建分支,而不会影响其他文件
- 为各个文件的版本提供标签
也许可以用git来做,但是我不知道该怎么做.那么,为此目的是否有任何好的,方便的版本控制系统?
Perhaps it is possible to do it with git, but I don't know how to do it. So is there any good, handy version control system for this purpose?
也许我应该补充一点,我将linux用作操作系统,并将emacs用作乳胶编辑器.
Perhaps I should add that I use linux as os and emacs as latex-editor.
推荐答案我同意@BasileStarynkevitch-Git是您所需要的.
I agree with @BasileStarynkevitch -- Git is all you need .
您可能只需要一个漂亮的Git GUI即可,因此您可以更轻松地查看正在发生的情况.
You probably only need a nice GUI for Git , so you can more easily see what's going on.
Git是为程序员设计的,可以处理分布在多个子目录中的大量源文件. 您的用例略有不同,但是您仍然可以很好地使用Git.
Git is made for programmers, to handle large amounts of source files, spread over multiple sub-directories. Your use-case is slightly different, but you can still use Git nicely for it.
早期的版本控制系统(RCS,SCCS)完成了您在问题中所描述的操作-但事实证明这是一团糟,因为任何实际项目通常都只包含一个文件;-)而且很容易忘记检入文件是否每个文件都由其自己的版本控制处理. (不要这样做)
Early version control systems (RCS, SCCS) did what you just described in your question -- but it proved to be a mess, because any real project has typically more than just one file ;-) and it's easy to forget to check in a file if each one is handled by it's own version control. (don't do this)
因此,与其考虑我需要获得文件A的先前版本,还需要获取文件B的另一个版本",不如考虑使用Git时为整个项目及时制作快照.例如项目的迷你版本".如果您的项目是LATEX,那么您正在写书或出版物-也许每次完成更新后都签入您的更改,并将其视为迷你版本" ..
So instead of thinking "I need to get the previous version of file A, and another version of file B" , try to think of making snapshots in time of your complete project when you use Git. e.g. "mini-releases" of your project. If your project is LATEX, then you are writing a book or publication - maybe check-in your changes every time you're done with an update, and think of this as a 'mini-release' ..
为Git使用图形用户界面将帮助您查看文件,分支,标签等之间的差异. Git具有将文件早期版本中的内容合并到当前文件中的功能-因此Git没问题.还有一些用于查看和编辑并排差异的工具.
Using a Graphical User Interface for Git will help you see the differences between files, branches, tags, etc.. Git has features for merging-in content from earlier versions of a file into the current file -- so that is not a problem with Git. There are also tools for viewing and editing side-by-side diffs.
更多推荐
版本控制系统,可跟踪单个文件
发布评论