解决无法登陆github的简单方法

解决办法:

1)站长工具域名解析网址:http://tool.chinaz.com/dns/  

2)输入github的网址寻找DNS服务器,如下图所示:


3)在以下地址中找到TTL值最小的IP,复制


4)如下如所示,打开本机的HOSTS文件(对于不同的系统,寻找方法可能不同)


5)用记事本打开HOSTS文件,然后将刚才的地址和网址写在最后一行,如下图所示


6)保存之后,重新打开github,如果出现乱码,则重复上面的步奏,寻找assets-cdn.github.com的DNS地址,复制粘贴到HOSTS文件里面。如果,打开github时无法加载图片,同理寻找raw.githubusercontent.com的DNS地址,然后复制粘贴到HOSTS文件里面。

7)如果遇到类似的问题,可以打开浏览器工具,查看报错。

文章到此结束,希望对你有一些帮助。


github desktop 无法登陆 求助

11-30

本人第一次使用github,现在遇到这样的一个问题:rngithub可以通过网页端登陆,也可以通过命令行的形式登陆,但是通过官网提供的github desktop应用程序总是告诉我输入的用户名和密码错误,而我确定我输入的用户名和密码应该没有问题,在网页端也是用相同的用户名和密码的。难道github desktop的用户登录是不一样的吗?rn以下是github desktop登录时打印的日志,请有经验的大神帮忙看看rn2015-11-30 17:47:22.0883|INFO|thread: 5|StartupLogging| =====================================================rn2015-11-30 17:47:22.0883|INFO|thread: 5|StartupLogging| DIAGNOSTICS |rn2015-11-30 17:47:22.0883|INFO|thread: 5|StartupLogging| =====================================================rn2015-11-30 17:47:22.0953|INFO|thread: 5|StartupLogging| Git Extracted: 'True:rn2015-11-30 17:47:22.0953|INFO|thread: 5|StartupLogging| PortableGit Dir Exists: 'C:\Users\Ivan\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c'rn2015-11-30 17:47:22.0953|INFO|thread: 5|StartupLogging| Git Executable Exists: 'C:\Users\Ivan\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\cmd\git.exe'rn2015-11-30 17:47:22.0953|INFO|thread: 1|HardwareRenderingHelper|Your video card appears to support hardware rendering. If this isn't the case and you see glitchesrn2015-11-30 17:47:22.0953|INFO|thread: 1|HardwareRenderingHelper|set the GH_FORCE_SW_RENDERING environment variable to 1rn2015-11-30 17:47:22.0953|ERROR|thread: 5|StartupLogging| MISSING PATH!!: 'C:\Program Files (x86)\ATMEL Corporation\AT91-ISP v1.12\SAM-BA v2.8'rn2015-11-30 17:47:22.0953|ERROR|thread: 5|StartupLogging| MISSING PATH!!: 'C:\Program Files (x86)\ATMEL Corporation\AT91-ISP v1.12\Library\'rn2015-11-30 17:47:22.0953|INFO|thread: 5|StartupLogging| ----------------------------------------------------rn2015-11-30 17:47:22.1103|INFO|thread: 5|StartupLogging| PATH: C:\PROGRAMDATA\ORACLE\JAVA\JAVAPATH;C:\PROGRAM FILES (X86)\INTEL\ICLS CLIENT\;C:\PROGRAM FILES\INTEL\ICLS CLIENT\;C:\PROGRAM FILES (X86)\NVIDIA CORPORATION\PHYSX\COMMON;C:\PROGRAM FILES\BROADCOM\BROADCOM 802.11 NETWORK ADAPTER\DRIVER;C:\Windows\SYSTEM32;C:\Windows;C:\Windows\SYSTEM32\WBEM;C:\Windows\SYSTEM32\WINDOWSPOWERSHELL\V1.0\;C:\PROGRAM FILES\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\DAL;C:\PROGRAM FILES\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\IPT;C:\PROGRAM FILES (X86)\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\DAL;C:\PROGRAM FILES (X86)\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\IPT;D:\PROGRAM FILES (X86)\LENOVO\ACCESS CONNECTIONS\;C:\PROGRAM FILES (X86)\INTEL\OPENCL SDK\2.0\BIN\X86;C:\PROGRAM FILES (X86)\INTEL\OPENCL SDK\2.0\BIN\X64;D:\PROGRAM FILES\TORTOISESVN\BIN;;C:\PROGRAM FILES\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\DAL;C:\PROGRAM FILES\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\IPT;C:\PROGRAM FILES (X86)\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\DAL;C:\PROGRAM FILES (X86)\INTEL\INTEL(R) MANAGEMENT ENGINE COMPONENTS\IPT;C:\PROGRAM FILES (X86)\NORDIC SEMICONDUCTOR\NRF51\BIN\;D:\JAVA\JDK1.8.0_60\BIN;D:\JAVA\JRE1.8.0_60\BIN;D:\Program Files\ThinkPad\Bluetooth Software\;D:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\;D:\Program Files (x86)\Altium Designer Summer 08\System;D:\Cadence\SPB_16.5\tools\pcb\bin;D:\Cadence\SPB_16.5\tools\bin;D:\Cadence\SPB_16.5\tools\libutil\bin;D:\Cadence\SPB_16.5\tools\fet\bin;D:\Cadence\SPB_16.5\tools\specctra\bin;D:\Cadence\SPB_16.5\tools\PSpice;D:\Cadence\SPB_16.5\tools\PSpice\Library;D:\Cadence\SPB_16.5\tools\Capture;D:\Cadence\SPB_16.5\OpenAccess\bin\win32\opt;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;C:\Program Files (x86)\ATMEL Corporation\AT91-ISP v1.12\SAM-BA v2.8;C:\Program Files (x86)\ATMEL Corporation\AT91-ISP v1.12\Library\rn2015-11-30 17:47:22.1253|INFO|thread: 1|App|Checking whether application is network deployed: Truern2015-11-30 17:47:22.1253|INFO|thread: 1|App|Shortcut C:\Users\Ivan\AppData\Local\GitHub\GitHub.appref-ms exists? Truern2015-11-30 17:47:22.1523|INFO|thread: 5|StartupLogger|Proxy information: (None)rn2015-11-30 17:47:22.1523|INFO|thread: 5|StartupLogger|Couldn't fetch creds for proxyrn2015-11-30 17:47:22.2073|INFO|thread: 1|ClickOnceAppIconHelper|Updating registry with our application icon 'C:\Users\Ivan\AppData\Local\Apps\2.0\ADT188MC.4PJ\M5L0B9GX.6ZZ\gith..tion_317444273a93ac29_0003.0000_f3a9f44c4e4f6514\Images\App.ico'rn2015-11-30 17:47:23.3973|INFO|thread: 5|PortablePackageManager|Already extracted PortableGit.7z, returning 100%rn2015-11-30 17:47:23.6543|INFO|thread: 5|MsysGitCertificateInstaller|Found certificate cache, loaded 156 certificatesrn2015-11-30 17:47:23.6753|INFO|thread: 5|MsysGitCertificateInstaller|Created certificate bundle with 326 entriesrn2015-11-30 17:47:23.7504|INFO|thread: 5|StartupSequence|Took 381ms to Update certificate bundle from system storern2015-11-30 17:47:24.9034|INFO|thread: 1|CommandLineToolsExtractor|Portable Git and Git LFS are already extractedrn2015-11-30 17:47:24.9034|INFO|thread: 1|GitClient|Installing git lfs filtersrn2015-11-30 17:47:24.9474|INFO|thread: 1|GitEnvironment|Process set up with this SSH Agent info: 6056:/tmp/ssh-LeF03CQC5M5k/agent.6448rn2015-11-30 17:47:24.9474|INFO|thread: 1|GitEnvironment|PATH is C:\Users\Ivan\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\cmd;C:\Users\Ivan\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin;C:\Users\Ivan\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\share\git-tfs;C:\Users\Ivan\AppData\Local\Apps\2.0\ADT188MC.4PJ\M5L0B9GX.6ZZ\gith..tion_317444273a93ac29_0003.0000_f3a9f44c4e4f6514;C:\Users\Ivan\AppData\Local\GitHub\lfs-amd64_1.0.2;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\System32rn2015-11-30 17:47:24.9634|INFO|thread: 1|ProcessWrapper|Starting: Process - FileName: 'C:\Users\Ivan\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\cmd\git.exe', Args: 'lfs init --force ', Working Directory: c:\Temp\rn2015-11-30 17:47:25.0284|INFO|thread: 1|ReactiveScreen|Activating GitHub.ViewModels.ShellViewModel.rn2015-11-30 17:47:25.0284|INFO|thread: 1|ReactiveScreen|Activating GitHub.ViewModels.DashboardViewModel.rn2015-11-30 17:47:26.6605|INFO|thread: 1|PortablePackageManager|Already extracted gitignore.7z, returning 100%rn2015-11-30 17:47:27.7386|WARN|thread: 4|LoginCache|Could not get login for host 'GitHub.HostAddress'rnSystem.Collections.Generic.KeyNotFoundException: The given key 'login:null' was not present in the cache.rn2015-11-30 17:47:29.8867|INFO|thread: 1|ReactiveScreen|Activating GitHub.ViewModels.OptionsViewModel.rn2015-11-30 17:47:31.6968|INFO|thread: 1|ReactiveScreen|Activating GitHub.ViewModels.LoginViewModel.rn2015-11-30 17:47:32.3298|INFO|thread:18|SoftwareUpdateViewModel|Checking for new versionrn2015-11-30 17:49:07.9423|WARN|thread: 1|RepositoryHost|User does not exist in cachernSystem.Collections.Generic.KeyNotFoundException: The given key 'user' was not present in the cache.rn2015-11-30 17:49:08.0253|INFO|thread: 1|RepositoryHost|Log in from cache for login '(null)' to host 'https://api.github.com/' FAILEDrn2015-11-30 17:49:29.5575|INFO|thread: 1|ReactiveScreen|Deactivating GitHub.ViewModels.LoginViewModel.rn2015-11-30 17:49:29.5575|INFO|thread: 1|ReactiveScreen|Closed GitHub.ViewModels.LoginViewModel.rn2015-11-30 17:49:31.4367|INFO|thread: 1|ReactiveScreen|Activating GitHub.ViewModels.AboutViewModel.rn2015-11-30 17:49:31.4367|INFO|thread: 1|SoftwareUpdateViewModel|Checking for new versionrn2015-11-30 17:52:01.5282|INFO|thread: 1|ReactiveScreen|Deactivating GitHub.ViewModels.AboutViewModel.rn2015-11-30 17:52:01.5282|INFO|thread: 1|ReactiveScreen|Closed GitHub.ViewModels.AboutViewModel.rn2015-11-30 17:52:04.2804|INFO|thread: 1|ReactiveScreen|Activating GitHub.ViewModels.LoginViewModel.rn2015-11-30 17:54:01.6801|INFO|thread: 1|ReactiveScreen|Deactivating GitHub.ViewModels.LoginViewModel.rn2015-11-30 17:54:01.6801|INFO|thread: 1|ReactiveScreen|Closed GitHub.ViewModels.LoginViewModel.rn2015-11-30 17:54:04.3403|INFO|thread: 1|ReactiveScreen|Activating GitHub.ViewModels.AboutViewModel.

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试

关闭