Tag: mercurial

How can I work in my repo using Git, and push to a Mercurial repo?

I installed hg-git, and I clone my github repository using it: $ hg clone git+ssh://git@github.com/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 […]

Perforce: how to track file “deployments”

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 […]

Work on one commit while browsing another (Git/Mercurial)

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 […]

How can I alert developers they need to run certain commands after they pull my commit (in version control/git)?

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 […]

How to unstage changes but keep tracking a file in Mercurial?

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 […]

git equivalent to hg -R?

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.

How can I convert to Mercurial without the extra “committer:” line in the log?

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 […]

How can I limit the Git/Mercurial log to commits whose logs contain at least one of two strings?

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. […]

Mercurial Git Network view

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)?

New repo or new folder in repo?

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 […]

Git Baby is a git and github fan, let's start git clone.