Monthly Archives: February 2012

0

MySQL DUMP – Include Binary Files in DUMP as well

February 24th, 2012 / / categories: MySQL /

You need to use –quick flag for the dump

mysqldump -h host.com -u dbuser -ppassword dbname tabe1 > table1.sql

0

PTY allocation request failed on channel 0

February 23rd, 2012 / / categories: Bash, Git /

So if you are facing this issue, their can be many reasons, if you are using fedora 16 + git with key based login, its likely that you will come accross this issue.

So before creating pts dev, you may wana do following things.

I faced this issue while I was using gitolite to use git and also sshing into that system.

to use gitolite on fedora 16, I had to add ssh key and run ssh-agent

ssh-add /path/to/key.pem

ssh-agent

After sometime i was not able to ssh into gitolite server. Fix is pretty simple, you need to run following command

ssh-add -D

this will clear all keys.

BINGO!!

0

Very Old Master to Latest Branch

February 21st, 2012 / / categories: Git /

Hey guys, what if you are following a bad practice and not keeping your master Synced up. What if its been 4, 5 months and you have not updated your master to latest code base. Here is how you can do it

 

Suppose you are on branch called branchNew

1. git checkout master

2. rm -r ./*

3. git rm -r .

4. git push origin master

5. git merge –no-ff origin/branchNew

6. git push origin master

 

0

Git Add Interactively

February 21st, 2012 / / categories: Git /

Use following command to add files to git Interactively

git add -i

 

 

0

Creating a new Commit with Merge

February 21st, 2012 / / categories: Git /

Hey Guys, to achive new commit while merge, do following.

git merge --no-ff origin/theBranch