Tag: mercurial

Doxygen for local repo

Currently I have a code repository which is not well documented, called ”A”, in a remote server. I have a local clone of it, called ”B”. I want to accompany the following two things: add Doxygen-style comments to ”B” to generate documents. push changesets to ”A” without these comments in ”B”. What is the best […]

Same ssh key to different repositories

Is it possible to access git and hg repos with the same ssh public key? The problem is: I can access to my git repo but when I try to access my hg repo it asks me for hg user password instead of ssh key password. The error is in my public config or in […]

How do I find out if I’m in the middle of a histedit with mercurial?

Some mercurial/git commands drop you on the command line if they require your intervention (or if you requested intervention). With mercurial, how do I find out if I am in the middle of a hg rebase or hg histedit? With git a git status reminds you of the current situation.

Mercurial like method for creating git remote repository

When I was using Mercurial, creating a remote repository is one command line: hg clone local remote Where remote is something accessible via ssh. For instance: hg clone /path/to/local/repo.hg ssh://host.name/path/to/new/clone.hg I don’t know if it is a functionality in Mercurial or we have installed something to make that possible. Is there any way to do […]

Git's alternative to .hgrcpath

Does Git have anything like Hg’s HGRCPATH, i.e. an enviromental variable which you can modify to change the location where Hg will search for its global configuration file. In git that can be somewhat accomplished by changing HOME, but that will affect unknown number of other applications, which is why I’m trying to avoid it.

Problem converting git to mercurial

I’m getting an error trying to convert a git repository to mercurial. When I run: hg convert gitdir hgdir I get this: UnboundLocalError: local variable ‘tz’ referenced before assignment Background: I just installed TortoiseHg and enabled the convert extension. It looks like nmercurial convert is having a problem with the git repository. I’ve been managing […]

Working with repos

When working with repos (I have github in mind), should we also commit third party libraries? For example, boost and poco compile to 5G with samples. Should we upload all that to github? If not, then how do we keep the libraries in sync with other people? Sorry about lack of capitalization and grammar. I […]

Multiple users in git, coming from using mercurial

I’m using git for a class project so I can work with my team. I used mercurial last semester for this but have switched to git since msysgit has a portable version. In mercurial, when 2 users made changes from the same changeset, one pushes, and the others commits would become a separate branch that […]

How do I hide a file from a single remote repo in git?

I’ve got a project I’d like to start sharing on github which I’d set up as another remote repo. But I’ve got some sensitive configuration information (amazon s3 account details) that I don’t want to obviously share on github. Is there a way I can get the remote github repos to ignore the settings file, […]

What is the equivalent of hg up -C in git

I want to get the current head of my git repo destroying all changes made and erasing additional files in the working copy.

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