Tuesday, July 11, 2017

Commit existing project to gitbucket

Ref: https://stackoverflow.com/questions/17570446/how-to-add-gitbitbucket-to-existing-source-code-folder


1,    cd /path/to/your/repo
2,    git init
3,    git add --all

4,    git remote add origin https://*******@bitbucket.org/******/**project**.git
5,    git commit -m "my first commit"
6,    git push -u origin master

No comments: