标签: git

设置 git 错误时遇到问题:无法锁定配置文件

尝试设置全局配置时出现此错误:

$ git config --global user.name "Your Name Here"
error: could not lock config file /pathto/file/.gitconfig: No such file or directory
Run Code Online (Sandbox Code Playgroud)

并且文件 .gitconfig 已经存在,有人有任何想法吗??

git 12.10

18
推荐指数
2
解决办法
12万
查看次数

在 Ubuntu 10.04 (Lucid Lynx) 上升级 git

我目前安装了 Git 1.7.1.0,但需要升级到 1.7.1.1(至少)。我尝试运行:

sudo apt-get update
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)

也试过了

sudo apt-get install git-core
Run Code Online (Sandbox Code Playgroud)

但每次我收到一条消息,表明没有更高版本的 git 可用。我配置了以下软件源/etc/apt/sources.list

deb http://ubunturepo.de.bonial.lan lucid main restricted multiverse universe
deb http://ubunturepo.de.bonial.lan lucid-security main restricted multiverse universe
deb http://ubunturepo.de.bonial.lan lucid-updates main restricted multiverse universe
deb http://archive.canonical.com/ lucid partner
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu lucid main
deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu lucid main
deb http://archive.ubuntu.com/ubuntu lucid multiverse universe
Run Code Online (Sandbox Code Playgroud)

apt git

18
推荐指数
1
解决办法
2万
查看次数

Intellij 无法从 git 中获取

我已经克隆了一个现有的 git 存储库。当我使用命令行拉取时,Git 工作正常。但是,当我尝试从 Intellij 执行相同操作时,它说

Fetch failed. Fatal : Could not read from remote repository.
Run Code Online (Sandbox Code Playgroud)

VCS 控制台日志显示:

git fetch --progress --prune origin
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
    at org.jetbrains.git4idea.ssh.GitSSHXmlRpcClient.askPassword(GitSSHXmlRpcClient.java:176)
    at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:265)
    at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:157)
    at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
Caused by: java.io.IOException: Server returned invalid Response.
    at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:243)
    at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
    at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
    at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
    at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
    at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
    at org.jetbrains.git4idea.ssh.GitSSHXmlRpcClient.askPassword(GitSSHXmlRpcClient.java:170)
    ... 3 more
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the …
Run Code Online (Sandbox Code Playgroud)

ssh git intellij

18
推荐指数
1
解决办法
3万
查看次数

哪个是 Linux 上最好的 git 客户端?

我正在搬出使用Tortoise Git的 Windows 环境。我听说 linux git 客户端很差……你们能帮我找到一个好的吗?

programming development git version-control github

17
推荐指数
2
解决办法
4万
查看次数

无法安装 GitKraken

我刚刚通过从网站下载它安装了 GitKraken(一个 Git GUI)。当我尝试通过“发现中心”安装它时,它不起作用。所以我在网上的某个地方找到了命令dpkg -i [filename],在 gitkraken .deb 上使用了它,andddd MAGIC!有用!

然后我尝试运行 GitKraken(通过在gitkraken终端中输入),这给了我一个美丽的错误:

Node started time: 1489531028950
libcurl.so.4: cannot open shared object file: No such file or directory
Error: libcurl.so.4: cannot open shared object file: No such file or directory
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:158:20)
    at Object.Module._extensions..node (module.js:568:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:169:18)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/share/gitkraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:11:12)
    at …
Run Code Online (Sandbox Code Playgroud)

kde apt dpkg git

17
推荐指数
2
解决办法
1万
查看次数

如何“快速”使用 Git?

如何快速使用 Git 作为其默认版本控制而不是 Bazaar?

git quickly application-development

16
推荐指数
1
解决办法
473
查看次数

如何从 Github 执行 Bash 脚本?

说这个,我my_cool_file.shGithub(或BitBucket)的 Git 存储库中有以下文件名为my_cool_repo. 该文件是用于安装 ConfigServer 著名的 CSF-LFD 软件的脚本:

#!/bin/bash
cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
sed -i "s/TESTING = "1"/TESTING = "0"/g" /etc/csf/csf.conf
csf -r
perl /usr/local/csf/bin/csftest.pl
# sh /etc/csf/uninstall.sh
Run Code Online (Sandbox Code Playgroud)

如何.sh通过命令行直接从 Github执行这个 Bash 脚本(一个文件)?

command-line bash scripts downloads git

15
推荐指数
2
解决办法
2万
查看次数

如何将 bzr 分支导入 git?

我很习惯使用 git,有没有一种简单的方法可以在我提交后从 bzr 导入/导出到 git 并返回 bzr?

bazaar git

14
推荐指数
2
解决办法
3377
查看次数

ubuntu 的 tortoisegit

对于 Ubuntu,是否有 ToroiseGIT 的替代品?

我正在寻找将 GIT 与上下文菜单中的 nautilus 集成的东西。

像 TortoiseHG 过去那样(替换为HG 脚本

gnome nautilus unity git software-recommendation

14
推荐指数
1
解决办法
6万
查看次数

永久存储 git 凭据并使用 Ubuntu 中的密钥库加密

使用以下命令存储 git 凭据:

git config credential.helper store
Run Code Online (Sandbox Code Playgroud)

将它们以纯文本未加密的形式存储在~/.git-credentials.

MacOSWindows 中GitHub Help建议使用分别使用osxkeychain和加密您的凭据的密钥库wincred。然而,在 Linux 中没有提及如何加密您的 git 凭据。你知道如何做到这一点吗?

encryption password git

14
推荐指数
0
解决办法
3万
查看次数