Articles tagged 'git'

  • Git: Removing sensitive data and rewriting history

    April 27, 2012


    This post was originally published in the Rambling Labs Blog on April 27, 2012.


    One thing that tends to happen with Git, is being careless with what you add to your repository. I’ve seen this happen since I began using Git, a couple years ago, and it stays happening over and over again, for various reasons.

    On one of the projects I was a long time ago, we added lots of files with sensitive information, including emails and passwords for some accounts for certain services. We also added a lot of images that weren’t really needed, and some of the ones that were needed, were not in the optimal size either. We were just starting up with Git, and we didn’t know what to include or exclude.

    To avoid making the story any longer, I just have…

    Continue Reading →

  • Deploying on shared servers with git

    November 23, 2011


    This post was originally published in the Rambling Labs Blog on November 23, 2011.


    There’s a project I’m currently working on, which is right now hosted on shared servers. I worked for a little while before on this project, but just to add some tiny features and fix some bugs, so I didn’t have the need back then to have a deployment process all set up.

    But now, I’m probably going to be working for a couple of months on this, so I figured it would be better for my own sanity to just set everything up from the very beginning, to make the deployment process as easy as possible.

    I googled for a while and the people seem to be using git for this. Now, there are a couple of options out there. There’s resmo’s git-ftp which is a git powered…

    Continue Reading →

  • git submodule and the libiconv-2.dll issue

    September 27, 2011


    This post was originally published in the Rambling Labs Blog on September 27, 2011.


    Yesterday, I made a fresh install of the latest msysGit (which is 1.7.6 as of right now).

    I usually set up my vim using the akitaonrails vimfiles. So last night I was trying to do as I usually do, clone the repository with git clone git://github.com/akitaonrails/vimfiles, and then cd into the just cloned repository and run git submodule update --init to get all the bundled plugins.

    This last command failed miserably with a The program can't start because libiconv-2.dll is missing from your computer. Try reinstalling the program to fix this problem message. This didn’t happen to me with version 1.7.4 from msysGit, which I had installed before I formatted…

    Continue Reading →

  • Showing git and mercurial repository information in PowerShell

    June 9, 2011


    This post was originally published in the Rambling Labs Blog on June 9, 2011.


    A while ago, I started getting a little annoyed when pushing my changes. It wasn’t until *then *that I realized that I forgot to add a yet untracked file to the repository or that I was in the wrong branch.

    I made a quick Google search and found that I wasn’t the only one with this problem, and that there are some pretty cool solutions out there.

    Since I’m currently developing in Windows, I found posh-git and posh-hg to be the more adequate ones.

    It’s really easy. Just download them from here and here (or just go to links above and look for Downloads).

    Both posh-git and posh-hg provide a quick inline summary with the current branch name and the number of…

    Continue Reading →