version-control

What is a version control system? How is Git useful?

放肆的年华 提交于 2019-12-29 01:52:07
问题 like for example i am doing ruby on rails and using git for version control. 回答1: I use git as a sole developer an I could not imagine life without it. With git, I always know what I am doing and what I have modified. I can make experimental changes without fear of not remembering what I changed. I can look at old versions of files in case I deleted something that now I want back. I can always go to my terminal and type git status and see what files I have changed. I can type git diff to see

Configuring VisualSVN Server to use _svn instead of .svn

微笑、不失礼 提交于 2019-12-29 01:44:16
问题 We were having a problem with our build server not checking out modifications from source control despite recognizing that there had been changes. It was traced to the control folder (not sure what it's real name is), the existing working builds were using _svn. Clearing the working folder forced a new complete checkout and I noticed that now the control folder is .svn. It looks like originally our integration routines were checking out code using _svn but now it is using .svn. The svn.exe

Config spec in rational clearcase

五迷三道 提交于 2019-12-29 01:31:47
问题 I am so much new to these clear case tool.I am learning because i have a project to work on. i just learned the default config spec is element *CHECKEDOUT element */main/LATEST So the new version is created in the main branch after the previous version. But I have been trying these, and I just changed my config spec to these element *CHECKEDOUT element */main/2 After those settings, when I click the file it says " file not found ": I cannot check in or check out. And then I changed to default

How to Tag a single file in GIT

故事扮演 提交于 2019-12-28 20:35:26
问题 I am very new to git. I am currently trying to get familiarized with it by using it to track changes in some excel files that I am maintaining to track some continuous activity I am involved with. All the files are in a single repository. I want to tag each file separately with their versions. Is this possible? So far what I found was the capability to tag the entire repository. If what I am trying to do is wrong, do advise me on the best practice. Thanks in advance. Edit When I was doing

git reset asks 'more?'

江枫思渺然 提交于 2019-12-28 11:44:17
问题 Git windows command line, version 1.8.0 I have 3 commits so far and when I type git reset --soft HEAD^ new line comes up with More? and flashing cursor for input Then, whatever I type, I always get fatal: ambiguous argument 'HEAD ': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...] All other commands works fine in the same folder. 回答1: see if git log HEAD^ works. If it doesn't, it may be something with your localization

git reset asks 'more?'

自古美人都是妖i 提交于 2019-12-28 11:43:33
问题 Git windows command line, version 1.8.0 I have 3 commits so far and when I type git reset --soft HEAD^ new line comes up with More? and flashing cursor for input Then, whatever I type, I always get fatal: ambiguous argument 'HEAD ': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...] All other commands works fine in the same folder. 回答1: see if git log HEAD^ works. If it doesn't, it may be something with your localization

Why Kiln is based on Mercurial, and not other (D)VCS

守給你的承諾、 提交于 2019-12-28 05:30:47
问题 What were the reason for chosing Mercurial as a basis of FogCreek Kiln, a source control management system with tightly integrated code review, and FogBugz integration? Why Mercurial, and not other (distributed) version control system, like Bazaar, Git or Monotone, or creating own version control system like Fossil (distributed software configuration management, including bug tracking and wiki) did? What were features that make FogCreek choose Mercurial as Kiln engine? 回答1: Here's an answer

git pull all branches from remote repository

故事扮演 提交于 2019-12-28 05:01:23
问题 How do I pull all of the remote branches to my own repository? if I type: git branch -a I get a long list of branches, but if I type: git branch I see only 2 of them. How do I pull ALL branches into my local list? I know I can do: git checkout --track origin/branch-name but that pulls and checks out only one branch at a time. Any way to get it all done at once without that whole tedious work of running git checkout --track origin/branch-name over and over and over again? ps. I tried following

Limiting file size in git repository

為{幸葍}努か 提交于 2019-12-28 03:35:29
问题 I'm currently thinking of changing my VCS (from subversion) to git. Is it possible to limit the file size within a commit in a git repository? For e. g. subversion there is a hook: http://www.davidgrant.ca/limit_size_of_subversion_commits_with_this_hook From my experience people, especially those who are inexperienced, sometimes tend to commit files which should not go into a VCS (e. g. big file system images). 回答1: As I was struggling with it for a while, even with the description, and I

Should I store all projects in one repository or multiple?

情到浓时终转凉″ 提交于 2019-12-28 03:24:07
问题 I am currently using TortoiseSVN to manage a couple of the projects that I have on the go at the moment. When I first moved everything into source control I wasn't really sure how everything should be laid out so I ended up putting each project into its own repository. I was wondering would it be a good idea for me just to move them all into one big repository and have them split into project folders? What does everyone else do? At the moment none of them share common code but they may in the