What's the best CRLF (carriage return, line feed) handling strategy with Git?

I tried committing files with CRLF-ending lines, but it failed. I spent a whole work day on my Windows computer trying different strategies and was almost drawn to stop trying to use Git and...

How to edit incorrect commit message in Mercurial?

I am currently using TortoiseHg (Mercurial) and accidentally committed an incorrect commit message. How do I go about editing this commit message in the repository?

Can I squash commits in Mercurial?

I have a pair of commits that should really be just one. If I was using git, I would use: git rebase -i <some-commit-before> and then squash them. Can I do that in mercurial? If so, how?

Partial clone with Git and Mercurial

Is it possible to clone only one branch (or from a given commit) in Git and Mercurial? I mean, I want to clone a central repo but since it's huge I'd like to only get part of it and still be able...

Mercurial client error 255 and HTTP error 404 when attempting to push large files to server

#Problem: 19/06/10 Update: More evidence problem is server-side. Receiving this error on Windows 7 command line (see below for full traceback): URLError: <urlopen error [Errno 10054] An existing...

What's a good way to sync in-house JavaScript code among projects?

In my web projects (Django framework) I typically have a few internally developed JavaScript files that are shared among them. These web projects are stored in separate mercurial source code...

How do I customize the 'commit message file' generated by `hg commit`?

When I run hg commit, Mercurial generates a file for my commit message that looks like this : HG: Enter commit message. Lines beginning with 'HG:' are removed. HG: Leave message empty to abort...

Mercurial undo last commit

How can I undo my last accidentally commited (not pushed) change in Mercurial? If possible, a way to do so with TortoiseHg would be prefered. Update In my concrete case I commited a changeset (not...

Working offline with SVN on local machine temporary

I am working on a project currently on SVN. I however will not have access to the internet for a few days, and will be working on my project. Is there any way to make a clone of the repository on...

Cloning github repo with hggit - abort: repository not found

I am trying to clone some github repos locally with hggit. I am following tutorial instructions to do $ hg clone git://github.com/schacon/hg-git.git abort: repository...

How to change revision format in Google Code?

I'm REALLY new to DVCS and am trying out Mercurial with Google Code as I'd like to share some extensions that I recently wrote for Google Chrome. I notice that in Google Code, most projects seem...

Mercurial: how to amend the last commit?

I'm looking for a counter-part of git commit --amend in Mercurial, i.e. a way to modify the commit which my working copy is linked to. I'm only interested in the last commit, not an arbitrary...

How do closed branches affect Mercurial performance?

I've noticed that some answers to questions about branch names quote the Mercurial wiki to indicate that the branch-per-feature or branch-per-bug naming conventions may cause performance...

Amending a "public" changeset in Mercurial

I'd like to amend my last commit, but running hg commit --amend gives me abort: cannot amend public changesets even though I know that it's safe to edit the changeset. How can I change the...

Is there a tool to have git show "detached heads" in a graph?

I often refer to git log --graph --decorate --oneline --all --full-history to see the current state of my branches, but it does not show detached heads/anonymous branches. Is there a way to get...

Using IPython notebooks under version control

What is a good strategy for keeping IPython notebooks under version control? The notebook format is quite amenable for version control: if one wants to version control the notebook and the outputs...

Let Jenkins build project from a Mercurial commit

Is there a way to specify a hook in the single repository? Now we have specified the hook in the "/etc/mercurial/hgrc" file, but every time it builds twice, and it builds for each commit in each...

What is git staging and why does Hg *ostensibly* not support it?

The Hg docs state that hg doesn't support an equivalent to git's index out of the box and suggests using extensions (record or mq) for similar behaviour. First, I have very little field experience...

Recover from "hg update" with uncommitted changes

I run into the following issue all the time with Mercurial, and it's very annoying: I'm at some revision A. I have local changes, which I meant to commit or amend on top of A, but haven't yet. I...

What is the git equivalent of Mercurial revsets?

Mercurial has a domain-specific language called revsets that allows users to specify sets of revisions. For example, you might want to list patches that haven't yet been merged into the branch...

Can you close a Mercurial branch without updating to it first?

I am aware that you can close a Mercurial branch with: hg update rev-number hg commit --close-branch -m "Closing branch." However, some of the repositories I work with a rather large, and after...

hg commit amend creating new branches

While trying to use the 'hg commit --amend' feature for change the commit message in repo ... I have created the new branch named as 'hg_amend' and i have commited some changes and pushed to repo....

Can I use git with .dwg (autocad)?

Version control with .dwg is really a problem. I'm wondering if it is possible to use git to control the version? or just commit my changes in the file? If this is not possible, then what is a...

How to display relative commit number in git log graph?

I'm a Mercurial user, who is exploring some code from a Git repo. In Mercurial, I like to move up and down a commit graph, doing checkout and running the code to test how the code behavior changes...

Git - Squash All Commits in History Before Specific Commit

I have a Mercurial repo that I am converting to Git. The commit history is quite large and I do not need all of the commit history in the new repo. Once I convert the commit history to Git (and...

How can I get the keyring extension working for mercurial in Ubuntu 18.04?

I've tried dozens of guides on installing mercurial and keyring extensions on Ubuntu and have never been able to get the keyring extension to work. It was a snap under Windows. I've installed...

How do you resolve the error "abort uncommitted changes" when trying to "hg merge", when there are no changes?

I did a fresh checkout of my mercurial project and updated to the tip. I am trying to merge with another branch, but get the error abort uncommitted changes. > hg up 0 files updated, 0 files...

"ERROR:root:code for hash md5 was not found" when using any hg mercurial commands

When trying to use any hg Mercurial commands on the console, I keep getting this error. I installed Python using Homebrew and I am running Mac OS Catalina v. 10.15.1. Any reference would be...

Azure Devops Download Artifacts multiple Github Artifacts (Updated with more logs)

I have a Release pipeline (not YAML) that has two Github Artifacts and when I run this pipeline on my self-hosted pool it fails with the message below, but when I run this on Microsoft hosted pool...

codecov fails in github actions

backgrond my setup for codecov has worked well so far you can regular updates with each pr commits here I haven't change my repo settings as I've inadvertently pushed a folder that I wasn't...