initialize git in existing project and push it to a branch code example Example: pushing to github git add . git commit -m "First commit" git push origin master