(Need help) Can't login with remote login

オープン
#242 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp, git

調査の方向性

src/git_plugin.cpp:GitPlugin::_push#L533 と、issue で説明されている VCS 設定の remote-login コントロールから始めます。プラグインが credential と remote の設定をどのように扱っているか、また Fetch、pull、push、New Remote が何を意味するのかを確認します。これらの質問に答える、maintainer に確認されたドキュメント更新が完了条件です。ドキュメントファイルやテストは指定されていません。

索引モデルが issue の本文から書いたものです。

説明

Apologies if this isn't the right place to ask, but I've reached out on multiple other platforms/communities, and am not getting responses.

I'm trying to make the plugin work.

What I want (that I don't yet have):

I want the plugin to work as intended. And I want to better understand it.
Note: I have used Git before. I would say I understand the basics, but there are some things I don't. I don't think I fully understand the references to "remote".

What happens:

When I click
image
to push, it comes up with the following error message.
core/variant/variant_utility.cpp:1091 - GitPlugin: Could not connect to remote "origin". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -1: too many redirects or authentication replays in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L533

What I don't understand:

Underneath the "VCS settings" I don't understand the "remote login" fields and what I should put in. I try putting in my git username and password, but that doesn't seem to fix it. If I put in my user name and a PAC key I generated, it works. But I don't want be generating a PAC key every 90 days, I'd rather just have my login information.

image
(See image): I assume the left is for selecting a branch to pull from. The middle drop down to select a branch to push to(?). I don't understand the Fetch button (the circle with an arrow). I assume the down arrow will pull from the branch I have selected in the left drop down. And the up arrow pushes to the selected branch in the middle drop down.

I tried creating a "New Remote", but I honestly don't understand it. I'm guessing it is for connecting to a branch to be able to push to it? Cause it then appears in the second drop down.
I named the remote "master" hoping it would connect to the master branch. And put in the url as I found in documentation

[email protected]:organization/repository.git

I replaced the organization with my username, and the repository with the name of the repository as found on github. As mentioned, this works when using a PAC token. While it works, I don't feel I understand what is going on.

Can you help with:

Understanding what is going on. I have read through documentation repeatedly. I have tried watching videos online to do with git. I think my lack of understanding lies around the plugin? If you think I don't understand certain concepts explained elsewhere, feel free to link me to videos/documentation.

Thank you in advance

主要言語
C++
スター
966
フォーク
100
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

godotengine/godot-git-plugin のほかの issue

godotengine/godot-git-plugin の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。