Archive for the ‘Git’ Category

Very Old Master to Latest Branch

Posted: 21st February 2012 by admin in 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. [...]

Git Add Interactively

Posted: 21st February 2012 by admin in Git

Use following command to add files to git Interactively git add -i    

Creating a new Commit with Merge

Posted: 21st February 2012 by admin in Git

Hey Guys, to achive new commit while merge, do following. git merge –no-ff origin/theBranch    

GIT Cheat sheet

Posted: 13th February 2012 by admin in Git

http://help.github.com/git-cheat-sheets/ A practical git guide Notes extracted from git screencast at http://www.peepcode.com. Configuration identify yourself to git: email and your name git config –global user.name "David Beckwith" git config –global user.email "dbitsolutions@gmail.com" To view all options: git config –list OR cat .git/config Set up aliases git config –global alias.co checkout View your configuration cat .gitconfig [...]

git create empty branch

Posted: 21st December 2011 by admin in Git

  git symbolic-ref HEAD refs/heads/newbranch rm .git/index git clean -fdx git add your files git commit -m 'Initial commit'