我是 git 新手,所以很可能有一个简单的答案。
我有一个用于抓取站点的 git 命令
git clone git@devel.foobar.com:foob.com.git
Run Code Online (Sandbox Code Playgroud)
现在,当我运行它时,系统会提示我通过 GUI 输入密码。(输入密码以解锁私钥)我的本地 root 和用户密码不起作用。
这是怎么回事?我需要从 git 存储库管理器获取密码吗?
编辑 - 抱歉,这是为了获取 drupal 站点。我认为这可能是这里其他人中的一个常见问题。
我想知道如何在 ubuntu 上设置 gitorious 服务器并让它在本地工作。我正在运行 12.04 并希望获得最新版本
我停止使用 Ubuntu 一段时间(从 12.10 开始),最近又回到了它。据我所知,它过去只为终端会话(对于 sudo 命令)询问一次 root 密码。现在每次我想 sudo 时它都会问我。有没有办法来解决这个问题?或者这是故意的?
同样的事情发生在 git 上。每次我想提交时,我都输入了我的凭据。我知道我在 mac 上的朋友不需要这样做。这两个问题有关联吗?
任何帮助,将不胜感激。提前致谢!
我对 Linux/命令行的东西非常陌生,所以请原谅我的无知。
每次我尝试使用安装任何东西时sudo apt-get install ...都会出现依赖错误。我正在尝试在我的机器上安装 OpenSSH Server 和 GitLab,每当我输入命令时,我似乎都会收到这样的依赖错误:
sudo apt-get install openssh-server
reading package lists... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
openssh-server : Depends: libwrap0 (>= 7.6-4~) …Run Code Online (Sandbox Code Playgroud) 我使用以下方法克隆了 OpenCV:
git clone https://github.com/Itseez/opencv.git
Run Code Online (Sandbox Code Playgroud)
现在我想知道在哪里下载以便解压。我所知道的是:dpkg -L git 引导我到这个目录:/usr/lib/
我在 Ubuntu 15.4 上使用git-aware-prompt,.bash_profile如下所示:
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh
Run Code Online (Sandbox Code Playgroud)
当我在我的主要存储库目录之一中时,这很好地在我的提示中显示了 git 分支。但是,几天后(我不经常重新启动我的盒子),我运行命令后需要很长时间才能返回提示。
特别是当我运行类似git add foo或类似的命令时。下一行提示出现需要一秒钟的时间。即使我打开一个新的终端窗口,它仍然很慢。
如果我导航到不同的 git 存储库,则不会发生这种情况。在没有 git 的目录中也可以。
我不认为它与 git-aware-prompt 相关,而是与存储库相关。可能有一些我不知道的奇怪缓存。
我该怎么做才能让它再次快速运行?
我有一个文件夹,其中包含我正在处理的存储库。在我的存储库中,我有一个名为 README.md 的文件,就像大多数存储库一样。
然而,Ubuntu 随机创建了一个名为 的文件README.md~,它会在我下次推送时推送到我在 github 上的存储库。然后在我的公共仓库中我有两个README文件,这有点令人困惑和奇怪。
为什么会发生这种情况,我该如何阻止?
我有 git 权限问题。当我从控制台运行 git 时,我必须在它前面添加 sudo 才能使其工作,但是当我使用 NetBeans GUI 时,脚本在没有“sudo”命令的情况下运行,结果我收到了以下错误消息:
[ java.io.IOException: No access ]
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能让它发挥作用?
我的 /var/www/html/apps/blog 目录内容的权限
wiktor@wiktor-VB:/var/www/html/apps/blog$ ls -la
all 140
drwxr-xr-x 9 wiktor wiktor 4096 lis 27 23:28 .
drwxr-xr-x 5 wiktor wiktor 4096 lis 27 21:32 ..
drwxr-xr-x 6 wiktor wiktor 4096 lis 27 21:34 app
drwxr-xr-x 2 wiktor wiktor 4096 lis 27 21:33 bin
-rw-r--r-- 1 wiktor wiktor 2318 lis 23 13:18 composer.json
-rw-r--r-- 1 wiktor wiktor 64050 lis 23 13:18 composer.lock
drwxr-xr-x 8 …Run Code Online (Sandbox Code Playgroud) 当我使用 apt 存储库中的 Git 2.7.4 在 16.04 上发出以下命令时
git commit -sS --status
Run Code Online (Sandbox Code Playgroud)
我得到以下结果:
Aborting commit due to empty commit message.
Run Code Online (Sandbox Code Playgroud)
我已经配置了 Git 全局配置如下:
jonathan@Aristotle:~/EclipseWorkspaces/AGI$ git config --global -l
user.name=Jonathan Gossage
user.email=jgossage@gmail.com
core.editor=gedit
Run Code Online (Sandbox Code Playgroud)
鉴于此配置,我希望 Git 启动 gedit 编辑器以允许我输入提交消息。这是对空存储库的第一次提交。git status 作为附件包含在内。
根据BuildYourOwnKernel有两种方法可以获取源代码:
apt-get
混帐
Git 源代码未签名。
git ×10
apt ×2
command-line ×2
12.04 ×1
bash ×1
dependencies ×1
files ×1
github ×1
kernel ×1
password ×1
permissions ×1
server ×1
source-code ×1
ssh ×1
sudo ×1