sh Bitbucket Cloud - 将现有的无版本代码添加到空存储库

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Bitbucket Cloud - 将现有的无版本代码添加到空存储库相关的知识,希望对你有一定的参考价值。

# From your terminal, change to the root directory of your existing code.
# Initialize the directory under source control from the following command:
git init

# Add the existing files to the repository you have initialized:
git add .

# Commit the files:
git commit -m 'initial commit of full repository'

# From the Overview page of the repository you created in Bitbucket, choose I 
# have an existing project. Connect your new local repository to the remote repository on Bitbucket. To 
# do that, copy the git remote path that you see under I have an existing 
# project and enter it in the command line.
git remote add origin git@bitbucket.org:dieinteraktiven/###PROJECT_REPO###.git

# Push all the code in your local repo to Bitbucket with the following command
git push -u origin --all

# Push up any tags if needed
git push origin --tags

以上是关于sh Bitbucket Cloud - 将现有的无版本代码添加到空存储库的主要内容,如果未能解决你的问题,请参考以下文章

sh 如何将远程仓库添加到bitbucket

Google Cloud Build Bitbucket 集成不支持 git 标签

Spring cloud config server ssh to bitbucket问题

sh Bitbucket 5配置(bitbucket.properties)

sh bitbucket-deploy.sh

如何使用 Rest API 在 Bitbucket Cloud 中创建项目?