PikaRules
6/14/2015 - 11:54 PM

Push up an existing repository

Push up an existing repository

###Push up and existing repository

you have a repo in you local repository but that repo doesn't exists yet in the remote repository

first, you need to create a repo in your remote reposotory to match your local repo,then use the following command to push your local repo to the just created repo in you remote repository

cd /path/to/my/repo
git remote add origin ssh://git@bitbucket.org/user/reponame.git
git push -u origin --all   # to push up the repo for the first time

posted by: Guillermo