version-control

How can a mobile student effectively use Dropbox with a source control system?

I got a laptop in preparation for the coming semester, which will see me taking a university programming course while working full time. I will, of course, be using a source control system (probably Subversion) and had the idea of creating my repositories in my Dropbox folder, which would enable me to check out and work on code locally ...

Synchronizing DVCS repositories across multiple machines

What's the best way to keep a DVCS repository synchronized across multiple machines? I'm a solo developer interested in being able to easily move between my work desktop, home desktop and a (Mac) laptop. At the moment I use Dropbox to keep files in sync, but I'd like to be able to use some source control specific features. Is there an...

Best Versioning System for R

I have a plethora of both short and long pieces of R code that I would like to track as they evolve. Does anyone have any recommendation or experience using version-control software with R? ...

Branching with Mercurial SCM

So right now I'm learning Ruby on Rails, and I'm working through the book "Agile Web Development with Rails". I've also decided that I want to give Mercurial a go, because I've read up on distributed SCM's, and it seems like an ideal situation. I still, however, prefer to push my code remotely to my Linux VPS just incase my hard drive ...

When should you branch?

When working with a SCM system, when should you branch? ...

How to undo a commit and commit the changes into the other branch in Git?

The common mistake I make in git is not check on which branch I am commit changes to a wrong branch (on branch B, thinking I'm on A, commiting a change for feature A) How do I get back, and commit the edits to the proper branch? ...

How to purge a huge file from commits history in Git?

Occasionally I dropped a DVD-rip into a website project, then carelessly git commit -a -m ..., and, zap, the repo was bloated by 2.2 gigs. Next time I made some edits, deleted the video file, and commited everything, but the compressed file is still there in the repository, in history. I know I can start branches from those commits and ...

Strange TFS Source Repository Problem

We have a web project we are working on using TFS and we are kind of new to it (TFS). One of my teammates is unable to see a particular page (three associated files) in the IDE. To the rest of us, it looks as though it is checked out to her. When she ran the unlock command through the console, it returned that the files for the page w...

How to update website files in repository with files that have changed in unversioned copy.

I have set up a SVN repository on a development that contains a website. The website files were imported using the svn importa few days ago. I also have the same website in an un-versioned state on the same server which is a mirror or the site on our live production server. This is in-case our live server crashes we can quickly reupload...

Error connecting to online fossil repository after changing password.

I set up a fossil repository on a shared hosting account I have. I created a perl script fossil.pl that points to a cloned repository that I put up on the webspace. I set all the correct permissions (755). When I go to fossil.pl I get the web ui. Everythings cool. However I'm having a problem with pushes and hoping someone could poin...

TeamCity with Github

I downloaded TeamCity 5 and I can see the option for Git under "Edit VCS Root". I have supplied the Clone Url, Branch Authentication Method: Default Private Key But when I test the connection I get the following error: The connection test failed: com.jcraft.jsch.JSchException: UnknownHostKey: github.com. RSA key fingerprint i Any ide...

Recreate subversion repository from svn client checkout

Hello, My first question here. The subversion repository was deleted but there exists a checkout made from that repository. How would I go about rebuilding the repository from the checkout? ...

Migrating from Mercurial to Subversion

Hi. Does anyone know of a relatively painless way to migrate a Mercurial repo to a fresh Subversion repo? Thank you. ...

Is author name in SVN changelog reliable for tracking authorship?

In multi-user environment it's sometimes very useful to know the real author of each changeset in the SVN repository. I see there's "Edit author" in Tortoise SVN. Does this mean that anyone can do whatever and then just change the author name on that changeset so that the change is attributed to another user? Can a real changeset autho...

Git's post-update hook runs when pushing to a remote machine from TortoiseGit, but not from command-line on the same machine!

Hi all. I've got a bare repository on our development server here, and a clone of that elsewhere on the drive. I've written a small post-update script as follows: #!/bin/sh echo Updating vhosts.git at `date` >> /root/vhosts.log cd /usr/local/www echo Updating `pwd` vhosts as `whoami` OLD_GIT_DIR=$GIT_DIR GIT_DIR=.git git pull origin ma...

Git and WordPress (+ managing plugins and media)

I'd like to apply revision control - using git - to my WordPress-based website development. Based on my concerns below, how do I go about? Concern 1: Pushing "granular changes" In this specific case, it is hard to mimic the webserver environment locally. Therefore, I would like to push changes very often. Could I push changes on a "sub...

Is there a way to version a whole development-environment?

I will start building libraries on different operating-systems since they will run on different mobile platforms. Is there a way to version control a whole development environment, containing both the version of the operating system as well as all the development tools, etc.? I need this information to be able to rebuild a Lib from a fr...

So which is better, using git-p4 or just sliding a .git directory into the working directory and having perforce ignore it?

I know this has come up before, but there was little in the way of day to day personal experiences in the posts I saw. Only a couple of responses. I'd love to hear from people that use git-p4, or have used git "under the covers" in a Perforce repo, or preferably both. And for those people who just use git underneath another version contr...

Is this how you normally would use SVN or GIt?

In all the tutorials I see of using SVN or Git, they always show them updating individual files. I may work on 100 files in 1 day, is it normal to work on many files and at the end of the day, just do 1 commit for all the files instead of doing each file individually that I modify? ...

Migrate repository from github to local filesystem?

I have a git repository on github. I would like to migrate the master version of the repository to a local filesystem, and clone from this local filesystem copy. How do I do so? ...