【发布时间】:2021-08-05 06:11:26
【问题描述】:
我正在运行以下命令:
git checkout -b testpr
touch test.txt
git add .
git commit -m "minor update"
git push --set-upstream origin testpr
Enumerating objects: 19, done.
Counting objects: 100% (19/19), done.
Delta compression using up to 8 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (11/11), 1.24 KiB | 30.00 KiB/s, done.
Total 11 (delta 6), reused 0 (delta 0), pack-reused 0
remote: Analyzing objects... (11/11) (7 ms)
remote: Checking for credentials and other secrets... (3/3) done (24 ms)
remote: Checking for reserved names in refs, blobs and trees... done (24 ms)
remote: Storing packfile... done (67 ms)
remote: Storing index... done (97 ms)
To https://org.visualstudio.com/DefaultCollection/projectname/_git/reponame
* [new branch] testpr -> testpr
Branch 'testpr' set up to track remote branch 'testpr' from 'origin'.
现在为了创建 PR,我已经尝试过:
git request-pull origin/master testprgit request-pull origin/master origin/testpr
都报错:
fatal: 'testpr' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
warn: Are you sure you pushed 'HEAD' there?
谁能帮我找到解决这个问题的方法? 谢谢!
【问题讨论】:
-
git request-pull不是要使用的命令。拉取请求——这是一种网络托管站点功能——不应与git request-pull混淆,后者不会发出(这类)拉取请求。
标签: git github azure-devops devops