当使用 Atlassian 的 Sourcetree 时,我尝试“刷新 OAuth 令牌”,然后看到此错误:
\nThis site can\xe2\x80\x99t provide a secure connection\nlocalhost sent an invalid response.\nTry running Windows Network Diagnostics.\nERR_SSL_PROTOCOL_ERROR\nRun Code Online (Sandbox Code Playgroud)\n 必须更改我的 GitHub PAT(实际上是从密码切换到 PAT)并且命令行 git 工作正常,但无法让 SourceTree 重新询问密码,尽管遵循标准程序(Sourcetree 菜单 > 首选项 > 帐户)。
当我尝试推送时,sourcetree 显示以下错误。
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags ruling master:master
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/xxxxxxx/ruling.git/'
Run Code Online (Sandbox Code Playgroud)
所以我去了https://bitbucket.org/account/settings/app-passwords/ 创建应用程序密码,添加密码标签,并选择权限。
但推送仍然不起作用,并且出现相同的错误消息。
之后,我不知道该怎么办。请告诉我下一步应该做什么。
当在git存储库中存在冲突时,在标记为已解决的冲突文件之后,在eclipse中我不能仅提交该文件,而是在sourcetree中提交.
当发生冲突时,有没有办法在egit中只提交一个文件?
谢谢!


我正在使用 SourceTree 并且对 git 仍然相当陌生。我试图将一个版本与另一个版本合并以开始在其远程分支上处理下一个版本,但它没有按我预期的那样工作。我能够通过将它拉到我的本地来回到我想要的提交,但是现在它只有一个“HEAD”标签,而“origin/[version]”仍然是大约 5 次提交。无论如何要强制远程分支忘记我所做的一切并跟踪我正在使用的当前提交?谢谢。
我刚刚将SourceTree更新到最新的Windows版本1.8.1.我希望我之前知道我的版本,但我相信这是一个早期的1.7.x版本,因为有几个选项供我选择升级到什么.
以前SourceTree会启动ssh-agent以在每次启动应用程序时询问我的凭据,这很好.现在,升级后,会弹出一个模式错误:
'ssh-agent'代码失败 - 1:System.NullReferenceException:对象引用未设置为对象的实例.()
打开和关闭"选项"菜单也会提示错误模式,工具 - >启动ssh-agent也是如此.我检查了日志(sourcetree.log),看看我是否能找到一条消息,表明这是与此用户在此处相同的问题,而是每次应用程序启动时,都有22或44个条目相同的消息:
ERROR [2016-02-16 14:06:17,785] [1] [SourceTree.Bookmarks.BookmarkManager] [RegisterBookmarkEventHandlers] - RegisterAsRepositoryUpdatedEventHandler called with null repo
Run Code Online (Sandbox Code Playgroud)
每次出现模态时都不会记录该消息,仅在每次打开SourceTree时都会记录.我已浏览了所有已添加书签的存储库,但它们在本地和远程都存在.在工具 - >选项下我设置为使用OpenSSH作为我的SSH客户端,我的SSH密钥设置为正确的文件路径,我设置为使用System Git.
是否有其他日志文件,无论是特定于SourceTree还是来自git甚至OpenSSH,我应该寻找哪些可能会给我更多关于实际给出这个NullReferenceException的详细信息?
我在源树中有 Xamarin.iOS 项目 git 文件。问题是列出调试文件的 xamarin 未暂存文件。我试图忽略调试。文件使用 .gitignore 文件放置在 bin 和 obj 文件夹中。仍然列出调试文件。
这是我使用网站https://www.gitignore.io创建的 gitignore 文件内容
-------------------------
# Created by https://www.gitignore.io/api/macos,visualstudio,xamarinstudio
### macOS ###
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### XamarinStudio ###
bin/
obj/
*.userprefs …Run Code Online (Sandbox Code Playgroud) 我希望能够将 SourceTree 与多个 Git 存储库一起使用。已尝试将两个存储库添加到存储库设置中,这很好,因为它在左侧导航窗格中的 REMOTES 下方显示了远程存储库及其所有远程分支:
BRANCHES
staging
sourcebranchname
REMOTES
> database-oracle
staging
dbbranchname1
> source
staging
sourcebranchname2
Run Code Online (Sandbox Code Playgroud)
但是,它没有显示为两个存储库创建的所有本地分支。在上面的示例中,两个存储库都有一个名为“staging”的分支,但“BRANCHES”下只显示一个。有没有办法处理这个问题?
我使用 Source Tree 作为 GIT 客户端。我一直在尝试 fork 一个开源存储库。我尝试了克隆存储库,但克隆需要很长时间。我有一个 4g 互联网连接,速度也很高。我的问题是我应该克隆存储库还是 Github 中有一个选项可以下载为 .zip。会有什么不同吗?在速度方面。
我有4个分支
1. master
2. develop
3. online_report
4. issue48
Run Code Online (Sandbox Code Playgroud)
开发人员 x 在 中工作online_report,他不小心合并了他的工作develop并推送了它。我想撤消此合并。
我在合并之前点击了我想返回的提交(以蓝色突出显示),reset current branch to this commit然后我选择了“ hard” ,然后我选择了“ ”。develop现在正在提交但我不知道下一步该怎么做?
我想保留develop分支,但我现在不希望online_report分支进入它。