Wednesday, July 1, 2015

How to convert existing non-empty directory into a Git working directory and push files to a remote repository

following command shows how to push a non-empty directory to a remote repo :

cd <localdir>
git init
git add .
git commit -m 'message'
git remote add origin https://xxxxx@bitbucket.org/xxx/xxx.git
git push -u origin master

No comments:

Post a Comment