Initializing $ git init
$ git add *.c / $ git add .
$ git add README
$ git commit -m ‘initial project version’
$ git clone git://github.com/schacon/grit.git
branch basics git checkout master
git remote -v
git remote add upstream
git remote set-url origin
git pull –rebase upstream master
git push origin master
git checkout -b new-branch
git commit -am “Worked on new-branch”
git push origin new-branch
$ git branch -D branch-name
git push –force originbranch-name
git push –force origin feature-mongodb-support
Advertisements