version-control

How to delete an ORIG_HEAD branch in git?

余生颓废 提交于 2019-12-21 12:10:09
问题 Possible Duplicate: git delete and recreate branch To be honest I'm not sure ORIG_HEAD can be called a branch, yet it appears in my visual editor as one. I have made a "git reset --hard HEAD~1" and then made some changes, finally committing them. How to get right of that ORIG_HEAD branch? 回答1: See "HEAD and ORIG_HEAD in Git": ORIG_HEAD is previous state of HEAD , set by commands that have possibly dangerous behavior, to be easy to revert them. It is less useful now that Git has reflog: HEAD@

Grails applications and version control

喜夏-厌秋 提交于 2019-12-21 12:08:57
问题 Which directories/files should be excluded when placing a Grails application under version control? I don't want non-source files or artifacts to be carried in SVN for my project. 回答1: here's my .gitignore (it probably contains alot of junk) .idea/ stacktrace.log test/reports/ etc/errors.txt bin-groovy/ .classpath .project *.war web-app/plugins/ web-app/resources/ classes/ test/reports/ Note that this is for grails 1.1.1. (I think before grails 1.1, plugins were stored in /plugins instead of

Limit Access of GitHub or Bitbucket Repository

爷,独闯天下 提交于 2019-12-21 12:00:13
问题 Is there any way to limit the access of bitbucket or Github repository from a specific IP Address. Which means I want to access my organisation repositories only from my office. The another this is that is there any way to block with a time being? Any of the git providers supporting this feature? The SSH key is only useful for the git action without entering passwords and username? Any way to solve this issue? I think many of the IT Companies are using this service for securing their source

Best practices for version control for Lotus Notes/Domino development

不羁岁月 提交于 2019-12-21 10:22:40
问题 Please share how you do version control for Lotus Notes/Domino development. I want to put in our SVN repository all the scripts, views, custom forms, script libraries, etc. Semi-automated methods are accepted as well (i.e. if I find a way to get all the event scripts for a form in one file, and to be able to place it back in Notes Designer as a whole file). 回答1: The openntf project Design Catalog can be used for version control. It uses dxl technique mentioned by kerr. www.openntf.org

Best practices for version control for Lotus Notes/Domino development

泄露秘密 提交于 2019-12-21 10:22:34
问题 Please share how you do version control for Lotus Notes/Domino development. I want to put in our SVN repository all the scripts, views, custom forms, script libraries, etc. Semi-automated methods are accepted as well (i.e. if I find a way to get all the event scripts for a form in one file, and to be able to place it back in Notes Designer as a whole file). 回答1: The openntf project Design Catalog can be used for version control. It uses dxl technique mentioned by kerr. www.openntf.org

How do popular source control systems differentiate binary files from text files

拈花ヽ惹草 提交于 2019-12-21 09:54:45
问题 Looking for articles, documentation or straight head knowledge of how different source control systems differentiate (or detect) the type of file (binary vs. text). Of particular interest is how Git does it vs Mercurial. Do they look at: File extensions? File signatures or content (ie. is this file UTF8)? A mix of things? 回答1: SVN: When you first add or import a file into Subversion, the file is examined to determine if it is a binary file. Currently, Subversion just looks at the first 1024

C++ project source code layout

柔情痞子 提交于 2019-12-21 09:36:57
问题 One of the popular way to organize project directory is more or less like this: MyLib +--mylib_class_a.h mylib_class_a.cpp mylib_library_private_helpers.h mylib_library_private_helpers.cpp MyApp +--other_class.h other_class.cpp app.cpp app.cpp : #include "other_class.h" #include <mylib_class_a.h> // using library MyLib All .h and .cpp files for the same library are in the same directory. To avoid name collision, file names are often prefix with company name and/or library name. MyLib will be

So which is better, using git-p4 or just sliding a .git directory into the working directory and having perforce ignore it?

帅比萌擦擦* 提交于 2019-12-21 09:36:28
问题 I know this has come up before, but there was little in the way of day to day personal experiences in the posts I saw. Only a couple of responses. I'd love to hear from people that use git-p4, or have used git "under the covers" in a Perforce repo, or preferably both. And for those people who just use git underneath another version control, I'd love to hear how you deal with notifying the main version control of changes. Specifically, with git/perforce, when you're done and ready to commit

Does anyone have experience with a private Launchpad instance? [closed]

放肆的年华 提交于 2019-12-21 09:33:10
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 months ago . Has somebody already installed and run launchpad on its own server? I'd like advice as I wasn't able to find any on the web. Besides, the official team gives scary remarks on having its own launchpad. They also say that a lot of administration scripts aren't included in the

Github-like hosting, with private source, public ticketing system [closed]

核能气质少年 提交于 2019-12-21 08:46:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am in need of a site that offers the same services as Github (Git hosting, Ticketing, downloads, etc, etc) but allows me to have my source be private. I don't mind paying if I can find these features, and I've already tried gitorious, unfuddled, and codebase. I also wouldn't mind hosting my own if the