Create a new BitBucket repository for existing files from Ubuntu

泪湿孤枕 提交于 2019-12-03 07:28:54
Number8

More detail on Bruce's comment:

When you create a repo at BitBucket, you are offered two links:

  • "I'm starting from scratch"
  • "I have an existing project to push up"

Click on the 2nd, and you will be given the commands to run in your local repo. These would look like:

> cd /path/to/my/repo
> git remote add origin https://me@bitbucket.org/me/test.git
> git push -u origin --all # pushes up the repo and its refs for the first time
> git push -u origin --tags # pushes up any tags
Samitha Chathuranga

You do not need to do a clone anyway. And also the accepted answer is not correct. You need to do a git add . and then git commit before pushing.

This is the complete set of steps to follow, to do what you want: Create a git BitBucket/ Github repository from already locally existing project - samranga.blogspot.com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!