标签: git

git 和 git-core 包之间有什么区别?

为什么有一个git包和一个git-core包?有什么区别吗?

git version-control

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

在 Ubuntu 14.04 上升级 Git 版本

请有人告诉我这有什么问题吗?

我跑

$ sudo apt-get purge git; sudo apt-get autoremove; sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  git-man liberror-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  git* git-core*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 21.0 MB disk space will be freed.
Do you want to continue? [Y/n] …
Run Code Online (Sandbox Code Playgroud)

upgrade apt git 14.04

58
推荐指数
1
解决办法
5万
查看次数

设置 git 服务器

我最近在 Amazon EC2 上设置了 ubuntu-server。我想将它用作我的 git 服务器,这样我就可以将我的存储库存储在那里。

那么,在哪里可以找到有关如何在 ubuntu 服务器上设置 git 的详细说明?所有这些 SSH 密钥和诸如此类的东西、多个用户等。

server git

57
推荐指数
5
解决办法
13万
查看次数

如何启动 git-gui?

我已经git-gui通过sudo apt-get install git-gui. 但是我该如何开始呢?尝试使用搜索或git-gui命令没有找到 Git 的 UI 工具。

command-line git

54
推荐指数
3
解决办法
12万
查看次数

当您尝试推送更改时,如何删除 git 中的违规密钥?

我已经进行了大量搜索并测试了不同的解决方案,但没有成功!

当我想推送我的代码时,我收到以下错误:

Warning: the ECDSA host key for 'git.mywebsite.ir' differs from the key for the IP address '164.138.23.11'
Offending key for IP in /home/alireza/.ssh/known_hosts:10
Matching host key in /home/alireza/.ssh/known_hosts:1
Are you sure you want to continue connecting (yes/no)? yes
Run Code Online (Sandbox Code Playgroud)

每次推送更改时,我应该怎么做才能删除此消息?任何的想法?

关键清单

ssh git

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

在 $home 目录中使用 git init 来跟踪点文件是不好的做法吗?

我想使用 github 备份和同步我的点文件。由于默认情况下所有点文件都驻留在 $home 中,我应该只git init在 $home 文件夹中,还是这是个坏主意?

git init在 $home 中执行后,我的想法是 .gitignore 所有非点文件和非点文件夹。

configuration git home-directory

40
推荐指数
5
解决办法
5167
查看次数

为什么我会从 Xubuntu 的 Gnome 钥匙圈收到这个警告?

我已经在库存 Ubuntu 安装上安装了 xubuntu-desktop。

使用 ssh 或更具体地说是 git 时,我总是收到此警告

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-IVaeDO/pkcs11: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我已经做了大量的谷歌搜索来在启动时禁用/启用正确的服务,但到目前为止我总是以这个错误告终。

任何关于完全删除 gnome-keyring 及其失败的见解,或者将 gnome-keyring 集成到 xubuntu/xfce 中都会很棒。

ssh xubuntu git gnome-keyring

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

如何只从 git 存储库中克隆一些目录?

例如,我想下载 PCL 3d_rec_framework。

这是PCL的git仓库:https : //github.com/PointCloudLibrary/pcl.git

怎么下载这个目录?

https://github.com/PointCloudLibrary/pcl/tree/master/apps

我试过这个,但没有用:

sam@sam:~/code/pcl_standalone$ git clone https://github.com/PointCloudLibrary/pcl/tree/master/apps/3d_rec_framework
Cloning into '3d_rec_framework'...
error: The requested URL returned error: 403 while accessing https://github.com/PointCloudLibrary/pcl/tree/master/apps/3d_rec_framework/info/refs
fatal: HTTP request failed
sam@sam:~/code/pcl_standalone$ 
Run Code Online (Sandbox Code Playgroud)

我不想下载 PCL 的 git 并删除我不想要的所有其他目录。

如何只下载一个目录?

git

35
推荐指数
4
解决办法
20万
查看次数

如何使用 SSH 访问 git 存储库?

我有公钥。我认为这是到 git repo 所在服务器的 SSH 连接所需要的。

现在我不知道如何获得代码。有人可以告诉我我必须做的完整程序,以便我获得代码吗?

  1. 安装git+相关配置
  2. 建立SSH连接
  3. 获取回购

ssh git

35
推荐指数
1
解决办法
12万
查看次数

如何使用 runit 和 git-daemon-run 修复处理

我正在尝试使用安装 Django

sudo apt-get install python-django
Run Code Online (Sandbox Code Playgroud)

但我收到错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-django is already the newest version.
The following packages were automatically installed and are no longer required:
  bacula-common codeblocks-common enscript g++-4.9 g++-4.9-multilib
  geany-common lib32stdc++-4.9-dev libabw-0.1-1 libboost-date-time1.58.0
  libboost-filesystem1.55.0 libboost-iostreams1.55.0 libboost-iostreams1.58.0
  libcdr-0.1-1v5 libcmis-0.5-5v5 libcodeblocks0 libdb5.3-java
  libdb5.3-java-jni libe-book-0.1-1 libeot0 libetonyek-0.1-1 libfreehand-0.1-1
  libhogweed2 libinput0 libjavascriptcoregtk-1.0-0 libmirclient8
  libmirclient8driver-mesa libmircommon2 libmircommon3 libmirprotobuf0
  libmspub-0.1-1 libmwaw-0.3-3 libodfgen-0.1-1 liborcus-0.10-0v5
  libpagemaker-0.0-0 libpoppler46 libqjson0 librevenge-0.0-0
  libspice-client-gtk-2.0-4 libts-0.0-0 libvisio-0.1-1 libwebkitgtk-1.0-0
  libwebkitgtk-1.0-common libwpd-0.10-10 libwpg-0.3-3 libwps-0.3-3 …
Run Code Online (Sandbox Code Playgroud)

apt git process

34
推荐指数
1
解决办法
7万
查看次数