简体   繁体   English

最初将所有源代码导入Bitbucket Git

[英]Import all of the source code to Bitbucket Git initially

Is there a way to import all of the code into Bitbucket Git repo that I have? 有没有办法将所有代码导入Bitbucket Git仓库?

I would like to push all of the files in there initially from my local machine then start from there. 我想最初从我的本地机器推送那里的所有文件,然后从那里开始。

I find docs that states importing from Github and others but nothing about existing project that haven't used version control before. 我发现文档说明从Github和其他人导入,但没有关于以前没有使用版本控制的现有项目。

Yes. 是。

  • Create a new repo in bitbucket. 在bitbucket中创建一个新的repo。
  • cd project-root
  • git init
  • git add .
  • git commit -m "Initial commit"
  • git remote add origin url-of-your-bitbucket-remote
  • git push -u origin master

Notice that most of these steps are mentioned when you create the BitBucket repo. 请注意,创建BitBucket存储库时会提到大多数这些步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM