我想查看所有分支的所有提交。所以我尝试了git log,但它给出了一些结果,并如下图所示:
我无法设置 git send-mail 来发送补丁。
os platform: Ubuntu22.04 LTS
linux kernel: 5.15.0-58-generic
git virsion: 2.34.1
我遵循这两个指南。
- git 安装指南
- 微软smtp配置
vishi@striker:~/$ cat ~/.gitconfig [user] name = vishalsinh email = [email protected] [core] autocrlf = false [sendemail] smtpencryption = STARTTLS smtpserver = smtp.office365.com smtpUser = [email protected] smtpServerPort = 587 confirm = auto
以这种方式使用命令。
vishi@striker:~/$ ls outgoing/
0000-cover-letter.patch 0001-PATCH-test.patch
vishi@striker:~/$ git send-email outgoing/* --smtp-debug=1
我收到以下错误。
Net::SMTP>>> Net::SMTP(3.13)
Net::SMTP>>> Net::Cmd(3.13)
Net::SMTP>>> Exporter(5.76)
Net::SMTP>>> IO::Socket::IP(0.41)
Net::SMTP>>> IO::Socket(1.46)
Net::SMTP>>> IO::Handle(1.46)
Net::SMTP=GLOB(0x561947328538)<<< 220 PN2PR01CA0160.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 23 Jan 2023 14:41:27 +0000
Net::SMTP=GLOB(0x561947328538)>>> EHLO striker..
Net::SMTP=GLOB(0x561947328538)<<< 501 5.5.4 Invalid domain name [PN2PR01CA0160.INDPRD01.PROD.OUTLOOK.COM]
Net::SMTP=GLOB(0x561947328538)>>> HELO striker..
Net::SMTP=GLOB(0x561947328538)<<< 501 5.5.4 Invalid domain name [PN2PR01CA0160.INDPRD01.PROD.OUTLOOK.COM]
Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=smtp.office365.com encryption=STARTTLS hello=striker.. port=587 at /usr/lib/git-core/git-send-email line 1648.
请提供我可以参考解决方案的提示或文档。
更新:2023 年 1 月 31 日
今天我通过 bellow 命令专门添加它解决了域名问题。之后出现了加密身份验证未知问题,因为 git send-email 没有“STARTTLS”(git 有 TLS/SSL 加密)。所以将它设置为“tls”
git config --global sendemail.smtpDomain "siliconsignals.io"
git config --global sendemail.smtpencryption tls
现在 Microsoft AAD(Azure Active Directory)的安全默认值禁用 SMTP 验证。所以我得到了波纹管错误。
带有调试日志:
$ git send-email [email protected] outgoing/* --smtp-debug=1
outgoing/0001-biuld-bootloader-host-in-AI-100-so-it-will-work-out-.patch
(mbox) Adding cc: vishalsinh_sisignals <[email protected]> from line 'From: vishalsinh_sisignals <[email protected]>'
From: vishalsinh <[email protected]>
To: [email protected]
Cc: vishalsinh_sisignals <[email protected]>
Subject: [PATCH] biuld bootloader host in AI-100 so it will work out of box
Date: Tue, 31 Jan 2023 15:48:39 +0530
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.34.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
The Cc list above has been expanded by additional
addresses found in the patch commit message. By default
send-email prompts before sending whenever this occurs.
This behavior is controlled by the sendemail.confirm
configuration setting.
For additional information, run 'git send-email --help'.
To retain the current behavior, but squelch this message,
run 'git config --global sendemail.confirm auto'.
Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): y
Net::SMTP>>> Net::SMTP(3.13)
Net::SMTP>>> Net::Cmd(3.13)
Net::SMTP>>> Exporter(5.76)
Net::SMTP>>> IO::Socket::IP(0.41)
Net::SMTP>>> IO::Socket(1.46)
Net::SMTP>>> IO::Handle(1.46)
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 220 BM1PR01CA0158.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 31 Jan 2023 10:18:41 +0000
Net::SMTP=GLOB(0x55f2e33df4e0)>>> EHLO siliconsignals.io
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-BM1PR01CA0158.outlook.office365.com Hello [122.170.105.202]
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-SIZE 157286400
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-PIPELINING
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-DSN
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-STARTTLS
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-8BITMIME
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-BINARYMIME
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250-CHUNKING
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 250 SMTPUTF8
Net::SMTP=GLOB(0x55f2e33df4e0)>>> STARTTLS
Net::SMTP=GLOB(0x55f2e33df4e0)<<< 220 2.0.0 SMTP server ready
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)>>> EHLO siliconsignals.io
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-BM1PR01CA0158.outlook.office365.com Hello [122.170.105.202]
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-SIZE 157286400
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-PIPELINING
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-DSN
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-AUTH LOGIN XOAUTH2
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-8BITMIME
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-BINARYMIME
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-CHUNKING
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250 SMTPUTF8
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)>>> EHLO siliconsignals.io
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-BM1PR01CA0158.outlook.office365.com Hello [122.170.105.202]
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-SIZE 157286400
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-PIPELINING
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-DSN
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-AUTH LOGIN XOAUTH2
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-8BITMIME
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-BINARYMIME
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250-CHUNKING
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 250 SMTPUTF8
Password for 'smtp://[email protected]@smtp-legacy.office365.com:587':
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)>>> AUTH LOGIN
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 334 *********
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< (decoded) Username:
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)>>> (decoded) [email protected]
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)>>> dmlzaGFsc2luaC5wYXJtYXJAc2lsaWNvbnNpZ25hbHMuaW8=
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 334 *********
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< (decoded) Password:
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)>>> (decoded) *********
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)>>> U2hpdmE0dmlzaCM=
Net::SMTP::_SSL=GLOB(0x55f2e33df4e0)<<< 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information. [BM1PR01CA0158.INDPRD01.PROD.OUTLOOK.COM 2023-01-31T10:19:02.295Z 08DB03199EF82C8E]
5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information. [BM1PR01CA0158.INDPRD01.PROD.OUTLOOK.COM 2023-01-31T10:19:02.295Z 08DB03199EF82C8E]
没有调试日志:
$ git send-email [email protected] outgoing/*
outgoing/0001-biuld-bootloader-host-in-AI-100-so-it-will-work-out-.patch
(mbox) Adding cc: vishalsinh_sisignals <[email protected]> from line 'From: vishalsinh_sisignals <[email protected]>'
From: vishalsinh <[email protected]>
To: [email protected]
Cc: vishalsinh_sisignals <[email protected]>
Subject: [PATCH] biuld bootloader host in AI-100 so it will work out of box
Date: Tue, 31 Jan 2023 15:53:39 +0530
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.34.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): y
Password for 'smtp://[email protected]@smtp-legacy.office365.com:587':
5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information. [BMXPR01CA0089.INDPRD01.PROD.OUTLOOK.COM 2023-01-31T10:24:01.016Z 08DB03117D6EB381]
现在从 5.7.139 错误和提供的链接提供 + 这个类似的错误链接我发现唯一剩下的问题是我的默认 outlook 服务器安全默认设置“SMTP AUTH”。管理员需要启用它,但因为我不是管理员。我将在这里停下来,改用个人 Gmail。
我喜欢Micro 文本编辑器。我个人更喜欢它nano
。然而,即使我已经安装了它,Git 默认为nano
. 如何更改文本编辑器git commit
使用的内容?
我无法推送或拉取任何更改,并且每当我尝试这样做时,我都会不断收到此错误
git push origin username
,我尝试了其他命令,例如
git config --system --unset credential.helper
不起作用。
操作系统:Ubuntu 20.04.3 LTS x86_64
这里有人可以帮助我吗?
错误
fatal: Authentication failed for 'https://[company-name].git.beanstalkapp.com/ck5.git/'
当我尝试登录上面的那个 URL 时,它说它Not found
与 beanstalk 上的 repo 上的 URL 相同
一般来说,我是 Ubuntu 或 Linux 的新手。我刚刚从 Windows 切换到 Linux 以保留我的工作。实际上作为网络开发人员工作。
我经常使用 Git 命令,当我克隆一个 repo 时,我没有像在 Windows 上使用 Git Bash 那样获得漂亮的终端,比如当我在文件夹中时给我分支名称,一些自动建议/自动完成。 ..
我正在寻找另一个终端程序,例如超级终端或 Manjaro 附带的终端程序。
我有一个运行 ubuntu 子系统的 Windows 10,对于一个统计类/编码课程(我是一名生物信息学学生),我们将使用 Rstudio 进行一个长期的小组项目,并通过 github 合作来教我们如何遵循适当的协作开发工作流程。我的问题是是否可以在 ubuntu 子系统中运行 Rstudio 终端,以便我可以在该子系统中工作并在 linux 环境中提交并拉入 github?我认为这会更容易,并且会避免相对目录的路径问题。
请让我知道我可能不知道的任何问题,或者我是否应该坚持在 Rstudio 中使用 Windows。
我一个月前安装了 Ubuntu,在设置中,它显示在 youtube 上找不到很好的 wi-fi 适配器我找到了一个解决方案,我需要克隆这个rtlwifi_new.git。但是当我发出命令时
sudo git clone -b extended https://github.com/lwfinger/rtlwifi_new.git
,它要求输入 git 用户名和密码,然后它向我显示错误远程:找不到存储库。致命:未找到存储库“https://github.com/lwfinger/rtlwifi_new.git/”。到现在什么都找不到。这是 youtube 的链接https://www.youtube.com/watch?v=dokG4bCF4GQ&t=176s .... 请帮助
我无法从 github.com 执行 git clone Ubuntu 20.04.1 LTS
,尝试了其他答案的所有解决方案。禁用了ubuntu防火墙,并且在家庭网络上,所以没有其他防火墙。在windows上一切都很好。
我没有使用任何代理服务器。
ramez@ramez-nx:~/lab$ sudo ufw status
Status: inactive
设置 SSL 验证 = false
ramez@ramez-nx:~/lab$ git config --global https.sslVerify false
我不知道还能尝试什么,真的卡了好几天。
ramez@ramez-nx:~/lab$ set -x; GIT_TRACE=2 GIT_CURL_VERBOSE=2 GIT_TRACE_PERFORMANCE=2 GIT_TRACE_PACK_ACCESS=2 GIT_TRACE_PACKET=2 GIT_TRACE_PACKFILE=2 GIT_TRACE_SETUP=2 GIT_TRACE_SHALLOW=2 git clone https://github.com/sqlectron/sqlectron-core.git -v -v; set +x –
+ GIT_TRACE=2
+ GIT_CURL_VERBOSE=2
+ GIT_TRACE_PERFORMANCE=2
+ GIT_TRACE_PACK_ACCESS=2
+ GIT_TRACE_PACKET=2
+ GIT_TRACE_PACKFILE=2
+ GIT_TRACE_SETUP=2
+ GIT_TRACE_SHALLOW=2
+ git clone https://github.com/sqlectron/sqlectron-core.git -v -v
10:03:38.851319 git.c:444 trace: built-in: git clone https://github.com/sqlectron/sqlectron-core.git -v -v
Cloning into 'sqlectron-core'...
10:03:38.856462 run-command.c:663 trace: run_command: git-remote-https origin https://github.com/sqlectron/sqlectron-core.git
10:03:38.863159 http.c:756 == Info: Couldn't find host github.com in the .netrc file; using defaults
10:03:48.877543 http.c:756 == Info: Trying 140.82.118.3:443...
10:03:48.877579 http.c:756 == Info: TCP_NODELAY set
10:03:49.004993 http.c:756 == Info: Connected to github.com (140.82.118.3) port 443 (#0)
10:03:49.029753 http.c:756 == Info: found 383 certificates in /etc/ssl/certs
10:03:49.029809 http.c:756 == Info: ALPN, offering h2
10:03:49.029814 http.c:756 == Info: ALPN, offering http/1.1
10:08:13.018780 http.c:756 == Info: gnutls_handshake() failed: Error in the pull function.
10:08:13.018844 http.c:756 == Info: Closing connection 0
fatal: unable to access 'https://github.com/sqlectron/sqlectron-core.git/': gnutls_handshake() failed: Error in the pull function.
10:08:13.028404 trace.c:487 performance: 274.177112071 s: git command: git clone https://github.com/sqlectron/sqlectron-core.git -v -v
+ set +x –
ramez@ramez-nx:~/lab$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
我会在 lubuntu 20.04 中尝试使用mpv_thumbnail_script 我的配置来制作这个脚本
cat .config/mpv/lua-settings/mpv_thumbnail_script.conf
#Für Vorschaubildchein in mpv
cache_directory=/home/alex/mpv/my_mpv_thumbnails
autogenerate=yes
prefer_mpv=yes
mpv_no_sub=yes
disable_keybinds=yes
thumbnail_width=200
thumbnail_height=200
thumbnail_network=no
thumbnail_count=150
min_delta=5
max_delta=90
我的mpv配置
cat .config/mpv/config
#hwdec=vdpau
#vo=vdpau
fullscreen
sub-scale=1
osc=no
但是当我启动 mpv 时,缩略图是黑色的。
从终端开始
mpv jd2/downloads/Aang\ \&\ Tenzin\ -\ Clip_\ Avatar\ The\ Legend\ of\ Korra/Aang\ \&\ Tenzin\ -\ Clip_\ Avatar\ The\ Legend\ of\ Korra\ \(360p\).mp4
[mpv_thumbnail_script_server] lua-settings/ is deprecated, use directory script-opts/
[mpv_thumbnail_script_client_osc] lua-settings/ is deprecated, use directory script-opts/
(+) Video --vid=1 (*) (h264 624x352 24.000fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
[vaapi] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
Using hardware decoding (vaapi).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 624x352 vaapi[nv12]
AV: 00:00:00 / 00:01:29 (0%) A-V: 0.000
[mpv_thumbnail_script_client_osc] The 'tick' event is deprecated and will be removed.
AV: 00:00:00 / 00:01:29 (0%) A-V: 0.000
[mpv_thumbnail_script_server] Thumbnailing command failed!
[mpv_thumbnail_script_server] mpv process error: nil
[mpv_thumbnail_script_server] Process stdout:
[mpv_thumbnail_script_server] Debug log: /home/alex/mpv/my_mpv_thumbnails/Aang Tenzin - Clip_ Avatar The Legend of Korra 360p-3829920/000000.bgra.log
[mpv_thumbnail_script_server] Output file missing! /home/alex/mpv/my_mpv_thumbnails/Aang Tenzin - Clip_ Avatar The Legend of Korra 360p-3829920/000000.bgra
(Paused) AV: 00:01:29 / 00:01:29 (100%) A-V: 0.000
Exiting... (End of file) # here dies mpv
[mpv_thumbnail_script_client_osc]
[mpv_thumbnail_script_client_osc] stack traceback:
[mpv_thumbnail_script_client_osc] .../.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua:1080: in function 'prop'
[mpv_thumbnail_script_client_osc] mp.defaults:392: in function 'handler'
[mpv_thumbnail_script_client_osc] mp.defaults:486: in function 'call_event_handlers'
[mpv_thumbnail_script_client_osc] mp.defaults:520: in function 'dispatch_events'
[mpv_thumbnail_script_client_osc] mp.defaults:479: in function <mp.defaults:478>
[mpv_thumbnail_script_client_osc] [C]: in ?
[mpv_thumbnail_script_client_osc] [C]: in ?
[mpv_thumbnail_script_client_osc] Lua error: .../.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua:1080: attempt to compare nil with number
我不确定,如果我犯了错误,或者脚本本身有问题。
注意:我不会写脚本。我发现了这个问题并按照答案中的链接进行操作,但我不知道我必须做什么。