version-control

“Hiding” things in GIT

我的未来我决定 提交于 2019-12-30 12:24:02
问题 Git noob here. I know this is against the principal of "distributed source control" but I want to "password protect" certain development branches in my GIT repository. That is, I don't want that branch to be available via git branch -r , except to a certain group of developers who need access to that branch, via some sort of password. Possible? 回答1: You can have a separate repository cloned from the public one with its own branches. This repository could be in the filesystem with the right

How do you maintain revision control of your database structure?

牧云@^-^@ 提交于 2019-12-30 11:53:09
问题 What is the simplest way of keeping track of changes to a projects database structure? When I change something about the database (eg, add a new table, add a new field to an existing table, add an index etc), I want that to be propagated to the rest of the team, and ultimately the production server, with the minimal fuss and effort. At the moment, the solution is pretty weak and relies of people remembering to do things, which is an accident waiting to happen. Everything else is managed with

Pull single file on server

社会主义新天地 提交于 2019-12-30 10:39:20
问题 I have committed several files on GitHub but I want to pull only single file on server. How can I do that using PuTTY? 回答1: git fetch git checkout -m revision -- the/file/you/want git add the/file/you/want git commit checkout the file you want and merge it with the current one 回答2: You can grab a single file via this URL: https://raw.github.com/USER/PROJECT/BRANCH/FILE 来源: https://stackoverflow.com/questions/11245424/pull-single-file-on-server

Pull single file on server

痞子三分冷 提交于 2019-12-30 10:39:09
问题 I have committed several files on GitHub but I want to pull only single file on server. How can I do that using PuTTY? 回答1: git fetch git checkout -m revision -- the/file/you/want git add the/file/you/want git commit checkout the file you want and merge it with the current one 回答2: You can grab a single file via this URL: https://raw.github.com/USER/PROJECT/BRANCH/FILE 来源: https://stackoverflow.com/questions/11245424/pull-single-file-on-server

How to set a property in SVN for a single revision of a single file

非 Y 不嫁゛ 提交于 2019-12-30 09:54:23
问题 I've got a Subversion repository, and there are a number of users checking things in and out. However, I also need to frequently check in work for other people. I need to track the original author of the work. I was considering creating a property in SVN, like "originalauthor", which could track this. In cases where it was empty, I could use the author. If it was filled in, I could attribute the changes appropriately. However , I can't see a way to add a property that won't persist through

Linus talk - Git vs. data corruption? [closed]

妖精的绣舞 提交于 2019-12-30 07:51:00
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I watched Linus (creator of git) give a talk on git. At one point he talks about how git is safer. He also said that other SCMs can't

Clearcase: How do I merge in a specific file from one view, into another, to avoid the Evil Twin scenario?

跟風遠走 提交于 2019-12-30 07:35:22
问题 I have a file that needs to be brought into a different branch. How do I do this from the command line. Everything seems to be geared to merging, where the file already exists in both branches. 回答1: I no longer have access to a clearcase environment, so this is from memory, but what you want is to link in a version from another branch into the one that you are working with. Let's assume that you have a file new_file that have been added on the branch new_feature (the latest version is new

Clearcase: How do I merge in a specific file from one view, into another, to avoid the Evil Twin scenario?

两盒软妹~` 提交于 2019-12-30 07:35:11
问题 I have a file that needs to be brought into a different branch. How do I do this from the command line. Everything seems to be geared to merging, where the file already exists in both branches. 回答1: I no longer have access to a clearcase environment, so this is from memory, but what you want is to link in a version from another branch into the one that you are working with. Let's assume that you have a file new_file that have been added on the branch new_feature (the latest version is new

SVN optimizations to keep large repositories responsive

拜拜、爱过 提交于 2019-12-30 07:14:09
问题 We happily use SVN for SCM at work. Currently I've got our binary assets in the same SVN repository as our code. SVN supports very large files (it transmits them 'streamily' to keep memory usage sane), but it makes everything SLOOWWWWW. I'm ok with slow asset versioning, but slow text operations isn't really acceptable. Right now assets are under /trunk/release (side by side with a dozen /trunk/projects). Should we keep them in a separate repository? What other optimizations can we do? We

How to push a new branch non-existing on the remote server without --set-upstream?

江枫思渺然 提交于 2019-12-30 07:09:06
问题 The scenario is that I have no repos on the remote server, just an account. Then, I run locally the following commands, where x is the user name and y is the project name that only exists on my local system. git init git remote add buckety https://x@bitbucket.org/x/y.git git add . git commit --message "Here we go..." git push buckety Now I get the error urging me to set up the remote upstream. I can do that (either --set-upstream or -u ) but according to my googlearching, it's been deprecated