Git merge squash repeatedly

Starting with X stable / a—b—c—d—e—f—g development You can use the following steps to copy the last commit from your development branch to your stable branch: git checkout development@{0} # get working tree from “development”, detach HEAD git reset –soft stable # reposition detached HEAD on “stable” git commit # enter the appropriate commit message … Read more

Limiting file size in git repository

As I was struggling with it for a while, even with the description, and I think this is relevant for others too, I thought I’d post an implementation of how what J16 SDiZ described could be implemented. So, my take on the server-side update hook preventing too big files to be pushed: #!/bin/bash # Script … Read more

Convert Bitbucket Mercurial repository to Git. Maintain branches and history. Online solution

The only way I found to convert a Mercurial repo to Git, while keeping all the branches, was to use GitHub’s importer. This was also the easiest since it’s all done online. Nothing local to install, no command line stuff. Main idea Use Github’s importer to convert Bitbucket Mercurial repo to GitHub Git repo. Then … Read more

For home projects, can Mercurial or Git (or other DVCS) provide more advantages over Subversion? [closed]

Take a look at part about version control for single developer in my answer to “Difference between GIT and CVS” question here on StackOverflow. Some of those issues do still apply also to Subversion versus Git (or other distributed VCS: Mercurial, Bazaar, or less known: Monotone, Darcs), even if Subversion is improvement over CVS. DISCLAIMER: … Read more

Can we finally move to DVCS in Corporate Software? Is SVN still a ‘must have’ for development? [closed]

On the one hand, SVN integration (with IDE, frameworks, wikis, …) is very mature, as well as its GUIs and code browsers (even though DVCS like Git and Mercurial progress every day). On the other hand, introducing a DVCS in an Enterprise environment is still not a trivial task: Some requirements are not easily met … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)