version-control

Xcode stuck on “Loading Revision” and “Scanning for working copies…” when using Source Control

柔情痞子 提交于 2019-12-18 04:33:29
问题 I recently noticed that some of my commits from my current project were being displayed under other projects in the "Organizer - Repositories" window. Additionally, the "Organizer - Repositories" window also displayed other projects in the left panel list that I was not working on, including duplicates of the current project. I therefore removed the unnecessary project listings from the left panel using the (-) key at the bottom left. Now however it appears that the Version editor from within

Git repository lost its remote branches?

情到浓时终转凉″ 提交于 2019-12-18 03:55:09
问题 I have a git repository that has a remote set up ("git fetch" works), but it doesn't have any remote branches: the ".git/refs/remotes" folder doesn't exist, and git branch -r returns nothing (empty list, no branches). Yet the actual remote repository does have a branch. If I re-clone the remote repo, I get another local repo that does have remote branches. I didn't think this state was possible. My questions: How on earth did I get into this state? Is there a command that can be run to put "

How to delete a blob from git repo

拈花ヽ惹草 提交于 2019-12-18 02:49:19
问题 I accidentally added a db dump (over 1 GB) to my repo, pushed it and noticed this few days later. I used git filter-branch to delete the file, expired reflog and run git gc to prune unused objects, but the database dump blob is still in repo. I used Which commit has this blob?, but did find any commit which has a reference to the blob. How can I delete this or how to find out why it didn't get deleted during git gc? 回答1: Which command did you call exactly when running git gc? Note the manpage

Run git commands from a C# function

放肆的年华 提交于 2019-12-18 02:46:09
问题 How can my C# code run git commands when it detects changes in tracked file? I am writing a VisualStudio/C# console project for this purpose. I am new to the the .NET environment and currently working on integrating automated GIT commits to a folder. I need to automatically commit any change/add/delete on a known folder and push that to a git remote. Any guidance appreciated. Thank you. Here is what I have and the last one is the one I need some guidance with: Git repository initially set up

Run git commands from a C# function

…衆ロ難τιáo~ 提交于 2019-12-18 02:46:08
问题 How can my C# code run git commands when it detects changes in tracked file? I am writing a VisualStudio/C# console project for this purpose. I am new to the the .NET environment and currently working on integrating automated GIT commits to a folder. I need to automatically commit any change/add/delete on a known folder and push that to a git remote. Any guidance appreciated. Thank you. Here is what I have and the last one is the one I need some guidance with: Git repository initially set up

When working with Eclipse, should I add the workspace to the source control?

萝らか妹 提交于 2019-12-18 02:42:45
问题 I am the only developer on this project. 回答1: I would not add the complete workspace, but I would add the .classpath and .project files (as well as the source, of course) so that you can recreate the project if needbe. 回答2: I wouldn't commit the whole workspace. But it is worth exporting platform settings and checking them into source control (probably in a separate SCM project as they don't really belong to any individual project) if you've made several changes in case you need to import

Recommended Source Control Directory Structure?

a 夏天 提交于 2019-12-17 23:45:04
问题 I am going to be using Subversion for source control on a new J2EE web application. What directory structure will you recommend for organizing code, tests and documentation? 回答1: I usually have Project Directory src - actual source doc - documentation lib - libraries referenced from source dep - installation files for dependencies that don't fit in lib db - database installation script In work with Visual Studio, I'm not sure if this works the same in the java world. But i usually put stuff

Is there an encrypted version control system?

安稳与你 提交于 2019-12-17 23:30:24
问题 I am looking for an encrypted version control system . Basically I would like to Have all files encrypted locally before sending to the server. The server should never receive any file or data unencrypted. Every other feature should work pretty much the same way as SVN or CVS does today. Can anyone recommend something like this? I did a lot of searches but I cant find anything. 回答1: You should encrypt the data pipe (ssl/ssh) instead, and secure the access to the server. Encrypting the data

git add . vs git commit -a

走远了吗. 提交于 2019-12-17 23:29:08
问题 What's the difference between: git add . git commit -a Should I be doing both, or is that redundant? 回答1: git commit -a means almost[*] the same thing as git add -u && git commit . It's not the same as git add . as this would add untracked files that aren't being ignored, git add -u only stages changes (including deletions) to already tracked files. [*] There's a subtle difference if you're not at the root directory of your repository. git add -u stages updates to files in the current

Visual Studio Website Reference Paths

余生颓废 提交于 2019-12-17 23:28:27
问题 In Visual Studio website projects (in Visual Studio 2005 or later, not web application projects where there is still a .csproj file) how is the reference information stored, and is it possible to source control it without storing compiled binaries in source control? If you right-click on a website project and select Property Pages, the first screen (References) lists all the project references. System.* references are listed as type GAC, and other DLL files can be listed as BIN or Project.