Maintaining a Drupal project with Git: Vacating the master branch
If you've already been committing code to master, do this to start a new 7.x branch and kill off the code in the master branch so noone gets confused.
git checkout -b 7.x-1.x
git push origin 7.x-1.x
git checkout master
git rm -r *
echo "Real code is not kept on the master branch, to see the code: git checkout 7.x-1.x" > README.txt
git add README.txt
git commit -m "Add a README explaining that the master branch is empty."
git push origin master
Now get back to development!
git checkout 7.x-1.x