HostOnNet Blog

Category Archives: Git

GIT fatal: Unable to find remote helper for ‘https’

On a CentOS 6 server, when cloning repo from GIT, i got following error root@server48 [~]# git clone ~/.vim/bundle/vundle Cloning into /root/.vim/bundle/vundle… fatal: Unable to find remote helper for ‘https’ root@server48 [~]# This is because git was installed from

GIT Disable accidental commit on master branch

To disable accidental commit on master branch, create file In your git repository root directory with following content Make this file executable Now commit on master branch won’t be allowed.

Better git log

Better Git Log To get better git log, run command Git Alias You can make an alias with command Now to view git log in new format, run

How to discard local commits in Git without local directory deletion or redownload

I have modified something in my local branch and but the changes not looking good. So I just tried by pulling the files from remote server using following command git pull origin master Nothing has happend and my local branch

Install GitWeb to work with Gitosis Installation

First create a virtual host for gitweb in apache DocumentRoot /home/ ServerName CustomLog /var/log/httpd/ combined AddHandler cgi-script .cgi DirectoryIndex gitweb.cgi AllowOverride All Options All Order allow,deny Allow from all RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*

Symfony 2 Migration to Git

Symfony is a PHP RAD framework like Zend Framework, CakePHP, etc… They have been using subversion for version control. Today while checking language section of, i found Symfony version 2 is using git for source control. See the announcement

Pro Git

Pro Git is git book, that is available in print and online. Online version is free to use, can be found at

git: ‘svn’ is not a git-command. See ‘git –help’.

On ubuntu , when i run git svn, i get following error root@hostonnet:/usr/local/zend/share# git svn clone git: ‘svn’ is not a git-command. See ‘git –help’. root@hostonnet:/usr/local/zend/share# This is fixed by installing git-svn sudo apt-get install git-svn

Linus Torvalds on git

Linus Torvalds talk about git in google teach talk. Every subversion and CVS users must watch this video. we have switched from subversion to git as it allow partial commit (that is you commit part of changes in a file)

git svn error Can’t locate SVN/

When i try to clone a svn project to git, i got error root@server70 [~/lxlabs/git]# git svn clone Can’t locate SVN/ in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8