Questions tagged [dvcs]

DVCS stands for Distributed Version Control System. Use this tag for questions about DVCSes in general. If your question is about git, or another DVCS that has its own tag already, then use that tag instead of this one.

Distributed revision control system (DRCS), distributed version control or decentralized version control system (DVCS) keeps track of software revisions and allows many developers to work on a given project without necessarily being connected to a common network.

Most popular DVCS:

911 questions
34
votes
2 answers

Retrieve old version of a file without changing working copy parent

How do you get a copy of an earlier revision of a file in Mercurial without making that the new default working copy of the file in your workspace? I've found the hg revert command and I think it does what I want but I'm not sure. I need to get a…
coriolanus
  • 401
  • 1
  • 5
  • 7
34
votes
6 answers

Good Mercurial repository viewer for Mac

Is there a good, native Mac tool to view Mercurial repositories, similar to gitnub for Git?
Cagatay
  • 1,372
  • 1
  • 12
  • 16
34
votes
1 answer

How do you remove big files from history in mercurial?

I have just created a mercurial repo created from a heterogeneous ecosystems of other repos. Before I publish it to my co-workers, I want to clean it as much as possible. To this end, I'd like to entirely remove a few big old files from history…
static_rtti
  • 53,760
  • 47
  • 136
  • 192
33
votes
7 answers

Is using a central repository going against GIT's purpose?

If you are in a corporate setting with many people working on a particular application, is it going against the grain of a distributed version control system to have an official central repository? Sometimes I struggle to understand the concept of a…
mmcdole
  • 91,488
  • 60
  • 186
  • 222
33
votes
3 answers

Git Submodule to a subfolder

In svn you can link a repository to any folder in another svn repository. I'm wondering if there is a similar feature for git? Basically I want a git submodule inside my repository, but I want the submodule to be a pointer to a subfolder of…
Cory
  • 22,772
  • 19
  • 94
  • 91
32
votes
5 answers

Go back to old revision in Bazaar

I want to go back in my bazaar history (change working tree) to find the commit that introduced a certain bug. I do not want to delete any commits, just change my working tree until I found the bug, and then I want to go back to the latest revision…
knub
  • 3,892
  • 8
  • 38
  • 63
32
votes
3 answers

Mercurial with multiple projects

I have a couple of projects with different release cycles sitting in my SVN repository. Releases are created by using the classic tags structure in SVN. When there are bugs to fix in releases a branch is created from a tag, the bug is fixed and then…
Tobias Hertkorn
  • 2,742
  • 1
  • 21
  • 28
32
votes
8 answers

What's so great about git?

For someone coming from a more conventional VCS background (CVS/SVN), what are the most compelling reasons to learn and migrate to git? Please comment upon a team's required technical ability in order to make git work. I've seen smart people climb…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
32
votes
2 answers

How does the 3 way merge in Mercurial/Meld work?

I'm working on a project where I have a commit that introduced a feature with major problems that weren't discovered immediately. Now I want to completely remove that revision while keeping the work following it but i'm having a hard time wrapping…
Asa Ayers
  • 4,854
  • 6
  • 40
  • 57
32
votes
5 answers

Are DVCS like Git inappropriate for teams using continuous integration?

My team's development processes are based on continuous integration. The only branches we create are maintenance branches when we release, but otherwise developers are expected to commit regularly (daily if not more often) to trunk, so that…
Kief
  • 4,383
  • 4
  • 26
  • 21
31
votes
3 answers

Automatically mirror a git repository

One of the side-effects of using an external Subversion repository was getting automatic offsite backups on every commit. I'd like to achieve the same using Git. i.e. every commit to my local repository automatically commits to an external one so…
Andy Baker
  • 21,158
  • 12
  • 58
  • 71
31
votes
2 answers

Showing renames in hg status?

I know that Mercurial can track renames of files, but how do I get it to show me renames instead of adds/removes when I do hg status? For instance, instead of: A bin/extract-csv-column.pl A bin/find-mirna-binding.pl A…
Ryan C. Thompson
  • 40,856
  • 28
  • 97
  • 159
31
votes
2 answers

How does git track source code moved between files?

Apparently, when you move a function from one source code file to another, the git revision log (for the new file) can show you where that code fragment was originally coming from (see for example the Viewing History section in this tutorial). How…
Thilo
  • 257,207
  • 101
  • 511
  • 656
30
votes
7 answers

How to set up Git bare HTTP-available repository on IIS

My server already runs IIS on TCP ports 80 and 443. I want to make a centralized "push/pull" Git repository available to all my team members over the Internet. So I should use HTTP or HTTPS. But I cannot use Apache because of IIS already hooking up…
Artem Tikhomirov
  • 21,497
  • 10
  • 48
  • 68
30
votes
5 answers

DVCS - How often and when to commit changes

There is another thread here on StackOverflow, dealing wih how often to commit changes to source control. I want to put that in the context of using a DVCS like git or mercurial. How often and when do you commit? Do you only commit changes when…
Johannes Rudolph
  • 35,298
  • 14
  • 114
  • 172