抱歉,我还在学习 git,所以这可能是一个非常基本的问题。但是如何在不克隆的情况下连接到远程存储库,以便我可以提交/推送到存储库。
有人知道如何通过 cURL 从 bitbucket 中删除存储库吗?
目前我已经制作了脚本来通过 curl 在 bitbucket 上创建远程存储库
#!/bin/bash
while read line
do
curl --user user:password https://api.bitbucket.org/1.0/repositories/ --data name=$line --data is_private=true --data owner=OWNER
done<repo_list.txt
Run Code Online (Sandbox Code Playgroud)
但现在我无法通过 curl 从 bitbucket 中删除该存储库
我正在使用
curl -X DELETE --user user:password https://api.bitbucket.org/1.0/repositories/ --data name=$line --data is_private=true --data owner=OWNER
Run Code Online (Sandbox Code Playgroud)
并有错误 {"error": {"message": "'username'", "detail": " File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2. 7/site-packages/piston/resource.py\", line 208, in call\n}
https://bitbucket.org/zhemao/bitbucket-cli仅从用户帐户中删除存储库,但不能选择删除我所属的其他所有者拥有的存储库。
有任何想法吗 ?
我已经在 BitBucket 克隆、拉取并获取了我的远程 git 存储库。但是我只能得到master分支。我在 BitBucket 的 repo 有 4 个分支:

我已经找到了这个和那个的两个问题。我遵循了这些问题中的一些说明。
当我尝试时git branch -a,我看不到其他三个分支。
*master
remotes/origin/HEAD -> origin/master
remotes/origin/master
Run Code Online (Sandbox Code Playgroud)
我试过了git checkout origin/fix/cleanup。我收到一条错误消息。
错误:pathspec 'origin/fix/cleanup` 与 git 已知的任何文件都不匹配。
我试过了checkout -b,但又出现了一个错误。
$ git checkout -b fix/cleanup origin/fix/cleanup
fatal: Cannot update paths and switch to branch 'fix/cleanup' at the same time.
Did you intend to checkout 'origin/fix/cleanup' which can not be resolved as com
mit?
Run Code Online (Sandbox Code Playgroud)
我也尝试执行oneliner。
for remote …Run Code Online (Sandbox Code Playgroud) 我知道这个话题有一些问题,但我没有得到我的问题的答案。
我正在与 Bitbucket 合作,但我不确定我是否总是正确地做所有事情,因为我在 Bitbucket 非常新
我在将分支合并到 master 时有冲突。
// Check if a filter is set
if(filter_id) {
var filter = filter_id;
+<<<<<<< destination:b9a9e6b6e3b21d06f9f726ba8a3b24c221c695f4
}
else {
var filter = -1;
}
+=======
+ }
+ else {
+ var filter = -1;
+ }
+>>>>>>> source:8ab52e4f8401ac8b5b68682d888e7538a7183216
Run Code Online (Sandbox Code Playgroud)
你知道我该如何解决这个错误吗?也许通过修改代码?
这种冲突一般意味着什么?我做错了什么?
谢谢您的回答!
我只是在学习如何使用git.所以,我创建了一个新的存储库,其中包含一个文件"foo.txt".要将其添加到版本控制,我跑了git add foo.txt.然后,我对文件进行了一些更改,然后运行git commit.这似乎更新了存储库.
然后我对文件做了一些进一步的更改.在此之后,我又跑git commit了.但是,这一次,它返回no changes added to commit.但是,如果我git add foo.txt在运行提交之前运行,它确实会进行更改.
为什么我似乎add每次都要访问我的文件?我希望能够git commit在我的更改之后运行,而不必告诉git我更改了哪个文件.
我必须手动指定要提交的文件是否正常?或者我做错了什么?我不能告诉git,每当"foo.txt"发生变化时,我希望它被添加到下一次提交中吗?
我正在制作一个完整的Atlassian套件,jira stash/git和bamboo.
有谁知道是否有办法列出我当前分行的PR?
如果我当前的分支有一个打开的PR,我需要从shell中找到它,如果存在,则找到它的ID.无需创建pr,因为这将由开发人员完成.欢迎任何建议.
在通过Bitbucket 仓库将基于Grav CMS(http://getgrav.org)的网站部署到Azure后,我收到消息"您无权查看此目录或页面".当我尝试浏览网站时.我还没有更改任何配置设置.
当我在办公室时将我的笔记本电脑连接到wifi时,我的git和Bitbucket连接并正常工作.
但当我回到家并将相同的笔记本电脑连接到我的wifi并尝试访问bitbucket时,我得到了443错误.
git pull
fatal: unable to access 'https://xxxxx@bitbucket.org/xxxx/xxxx.git/': Failed to connect to bitbucket.org port 443: Network is unreachable
Run Code Online (Sandbox Code Playgroud) 当托管在私人服务器上时,我找不到有关 bitbucket API 的任何文档。官方一:https : //confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html 我们托管了bitbucket服务器,简单的换个主机也不行,看起来整体API 不同。
我正在更新我的项目,当尝试将其上传到我的存储库时,出现以下错误:
已经做了
git pull --rebase origin master
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://*******/production.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud)
我需要更新我的网站,但无法这样做。
编辑 1:
> git status 给出:
正在变基;到 cda02b2 您当前正在将分支 'master' 重新设置为 'cda02b2'。(修复所有冲突:运行“git rebase --continue”)
无需提交,工作目录干净