我正在尝试为 GitHub 设置我的 SSH 密钥,并为此创建了一个新的 SSH 密钥。我已经设法设置了 SSH 密钥,但我希望保留这些设置并将它们保存在~/.ssh/config不可用的配置文件中。我在哪里可以添加这个关键路径来保留配置?
git add *命令之间和git add .我输入参数时*有什么区别.?在这两种情况下,文件系统返回什么列表?
我创建了一个目录/var/www来存储我的网络应用程序克隆。当我最初从 GitHub 克隆应用程序时,它要求我使用 sudo,而每次我执行git pull它都需要 sudo。因为这个,我遇到了一些问题。例如,我的 ssh 密钥不匹配。因此,当我执行我的git pull.. 如何配置它以便每次使用 git 时都不必使用 sudo?
当我尝试在 Ubuntu 11.04 的服务器分发版上安装 git 时,出现错误。我使用了以下命令:
sudo apt-get install git
Run Code Online (Sandbox Code Playgroud)
这产生了这个错误:
(Reading database ...
dpkg: warning: files list file for package `git' missing, assuming package has no files currently installed.
(Reading database ... 20310 files and directories currently installed.)
Preparing to replace git 1:1.7.4.1-3 (using .../git_1%3a1.7.4.1-3_i386.deb) ...
/var/lib/dpkg/tmp.ci/preinst: 12: dpkg-maintscript-helper: not found
dpkg: error processing /var/cache/apt/archives/git_1%3a1.7.4.1-3_i386.deb (--unpack):
subprocess new pre-installation script returned error exit status 127
/var/lib/dpkg/tmp.ci/postrm: 14: dpkg-maintscript-helper: not found
dpkg: error while cleaning up:
subprocess new post-removal script …Run Code Online (Sandbox Code Playgroud) 我有与这里描述的完全相同的问题:https : //stackoverflow.com/questions/12849986/connection-timeout-when-accessing-github
所以我只是复制并粘贴:
我有一些奇怪的问题。当我尝试登录我的Github 帐户时,出现“net:: ERR_EMPTY_RESPONSE ”错误。
我尝试过 Chrome、Firefox 和 Opera。在 Firefox 中,如果清理缓存和离线数据,它会工作一段时间。然后就可以登录了,但是还是不能创建Github仓库,即使我再次清除缓存。
我的朋友,在同一个网络,用Windows,可以在Github的网站上为所欲为,但我不能。我尝试了很多 DNS服务器,我尝试不设置它(我的朋友没有),但它仍然无法正常工作。
我的操作系统:Ubuntu x64 12.04
想法,请。谢谢。
另外,我可以克隆任何 repo,但我不能推送。由于这个问题,我不得不更改为https://codeplane.com/,但我想了解它为什么会发生。
编辑:我可以克隆一个回购,但另一个只是挂在这一点上:
felipelalli@felipelalli-Studio-XPS-8100:~/wa$ git clone git@github.com:felipelalli/micaroni.git
Cloning into 'micaroni'...
remote: Counting objects: 5238, done.
remote: Compressing objects: 100% (3257/3257), done.
Receiving objects: 92% (4839/5238), 43.29 MiB | 902 KiB/s
Run Code Online (Sandbox Code Playgroud)
任何推送都像这样挂起:
master!fml.eti.br> push
Counting objects: 23, done.
Delta compression …Run Code Online (Sandbox Code Playgroud) 我无法升级我的 lucid lynx 10.04 LTS,因为较新的 ubuntu 发行版无法在该计算机上运行。我需要安装一个 git 版本 1.7.10 来进行凭证管理。Git 版本是 10.04 LTS 上的 1.7.0.4:
$ dpkg -l *git*
+++-==============-==============-============================================
ii git-core 1:1.7.0.4-1ubu fast, scalable, distributed revision control
Run Code Online (Sandbox Code Playgroud)
有没有办法或向后移植安装 git 1.7.10 或更新版本?
当我尝试登录 Github 时,出现以下错误:"The name org.freedesktop.secrets was not provided by any .service files"。
我该如何解决我的问题?
操作系统:Kubuntu 20.04 LTS
我写了一个命令来删除所有 git 分支,而不需要手动全部写入,目前是这样的:
git branch -d $(git branch)
Run Code Online (Sandbox Code Playgroud)
它执行我想要的操作,但还尝试删除当前目录中名为文件的分支,因此输出如下所示:
error: branch 'angular.json' not found.
error: branch 'assembly.xml' not found.
error: branch 'ci-settings.xml' not found.
error: branch 'coverage' not found.
error: branch 'cypress.json' not found.
error: branch 'Dockerfile.angular' not found.
error: branch 'Dockerfile.spring' not found.
error: branch 'e2e' not found.
error: branch 'examples' not found.
error: branch 'mvnw' not found.
error: branch 'mvnw.cmd' not found.
error: branch 'nginx' not found.
error: branch 'node' not found.
error: branch 'node_modules' not found.
error: …Run Code Online (Sandbox Code Playgroud) 当我使用 Windows 时,shell(甚至是标准的 Windows shell)会在您处于 git 存储库中时显示有关 git 存储库的基本信息。诸如活动分支之类的东西,也许还有一些颜色编码。
有没有办法在 Ubuntu 中使用相同的方法?
当我尝试在 Ubuntu 16.04 上安装 Git 时,出现错误。我用来安装git的命令是:
sudo apt-get install git
Run Code Online (Sandbox Code Playgroud)
我遇到的错误是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not going to be installed
Depends: git-man (> 1:2.7.4) but it is not going to be installed
Depends: git-man (< 1:2.7.4-.) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get …Run Code Online (Sandbox Code Playgroud)