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. [...]
Archive for the ‘Git’ Category
Use following command to add files to git Interactively git add -i
Hey Guys, to achive new commit while merge, do following. git merge –no-ff origin/theBranch
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 symbolic-ref HEAD refs/heads/newbranch rm .git/index git clean -fdx git add your files git commit -m 'Initial commit'