Saturday, September 21, 2013

How to make a directory as git repository


Many a times we have  non directory and we want to make them as git repository.In such a situation open git bash and follow following steps
git init

git add .

git commit -m 'message'

git remote add origin <url of remote repository>

git push -u origin master

No comments :

Post a Comment