将 Git 回购推送到 Bitbucket
Pushing Git repo to Bitbucket
我很难将 git 存储库推送到我的 bitbucket。我做了一个本地仓库并在里面放了一个文件夹。我已经跟踪并提交了整个文件夹。现在我不确定从这里开始做什么。
1- 在 Bitbucket 上创建一个远程仓库并将其设置为 public
2-获取远程仓库 https 或 ssh 并将其添加到本地仓库
3- 添加 https/ssh url 使用
git remote add origin <url goes here>```` 4-
git push -u origin ```
I tried that. It returned an error that said: Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes
你create a remote BitBucket repository,确保你创建的是空,没有任何file/commit。
这样一来,你先按 (git push -u origin main
) 就可以了。
我很难将 git 存储库推送到我的 bitbucket。我做了一个本地仓库并在里面放了一个文件夹。我已经跟踪并提交了整个文件夹。现在我不确定从这里开始做什么。
1- 在 Bitbucket 上创建一个远程仓库并将其设置为 public
2-获取远程仓库 https 或 ssh 并将其添加到本地仓库
3- 添加 https/ssh url 使用
git remote add origin <url goes here>```` 4-
git push -u origin ```
I tried that. It returned an error that said: Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes
你create a remote BitBucket repository,确保你创建的是空,没有任何file/commit。
这样一来,你先按 (git push -u origin main
) 就可以了。