在尝试提交存储库时,我收到错误:
$ git commit
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got '[output redacted]')
Run Code Online (Sandbox Code Playgroud)
显而易见的解决方案是git config在输出中运行选项,但我不想这样做.
有问题的计算机不属于特定的人,而是共享计算机.因此,每个提交将是不同的用户.
如何绕过这个并将作者设置为每次提交而不是全局?
我需要一个适合我的Visual Basic等待命令.
我知道:
Declare Sub Sleep Lib "kernel32.dll" (ByVal milliseconds As Long)
sleep 5000
Run Code Online (Sandbox Code Playgroud)
但这使得该计划没有反应.
System.Threading.Thread.Sleep(5000) 'The window doesn't load until the timing is over (useless)
Run Code Online (Sandbox Code Playgroud)
我的代码:
Imports Microsoft.Win32 'To check if is 64Bit or 32Bit
Public Class Loading
Private Sub Loading_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If Registry.LocalMachine.OpenSubKey("Hardware\Description\System\CentralProcessor\0").GetValue("Identifier").ToString.Contains("x86") Then
My.Settings.Is64 = False
Else
My.Settings.Is64 = True
End If
'I need command here
If My.Settings.Is64 = True Then
Form64.Show()
Me.Close()
Else
MsgBox("No version developed for 32-bit computers.")
End …Run Code Online (Sandbox Code Playgroud)