I installed hg-git, and I clone my github repository using it: $ hg clone git+ssh://firstname.lastname@example.org/my/repo.git $ git status fatal: This operation must be run in a work tree $ hg gexport ( now the .git is created ) $ git status fatal: This operation must be run in a work tree I can access the […]
We are a very small team using Oracle Forms / Reports as development tools, and we’re using no version control at the moment. We are considering using Perforce as our version control software. Our current policy is any developer in the team can make changes to any source file, then deploy (manually copy) the generated […]
Say I have a huge Git/Mercurial repository with commit/changeset A and B. Now say that there are two non overlapping sets of files, say set dir1 and set dir2. Set dir1 exists in commit/changeset A, and may exist in B, and vice versa (set dir2 exists in commit/changeset B, and may exist in A). For […]
Here’s a common scenario: You’re working on a project (such as, but not necessarily, a web app) with other developers. I decide we should use a certain open-sourced tool and add it to the project dependencies. Of course, I add it to our package manager, which is in source control. or Tom realizes we can […]
For example, I have 2 files: A and B Both of them are tracked and modified then. What I want to do is to commit one file at one time. In git, I can do it like this: git add A git commit -m “add A” git add B git commit -m “add B” But […]
What is the git equivalent to hg -R? I want to operate on a repository that isn’t rooted in a parent directory of the current working directory. So far I have git –git-dir=”$a/.git” –work-tree=”$a” diff “$a”, where $a is the git repository directory.
Converting a repository from Git to Mercurial results in a load of spurious “committer:” lines in each log message. I can’t figure out a way to not generate these. If I convert a SVN repository, these lines aren’t added. It seems to be a git thing only. This is easy to test. Here’s how on […]
Is there a way where I can send two choices for git/Mercurial commands? I want to search the history of git repository and Mercurial repository for specific word, say “commit”. However, I am not sure how is it written in commit message “commit” or “com-mit”? So, I want to send these options with the command. […]
I really like github‘s “network” view, i.e. an horizontal graph of the commits, without the log informations. It is really useful to see the commit graph in an intuitive way. If there any tool that provides this for mercurial (and/or git)?
So when it comes to re-writing a whole system do you prefer to make a new repo for the re-write or just a new folder in the existing repo? The reason I ask is the new folder method requires some for though for the directory structure as you would need to start with some thing […]