日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

在阿里云的Ubuntu ECS instance 使用Apt-get安装git

發(fā)布時間:2024/4/15 Ubuntu 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 在阿里云的Ubuntu ECS instance 使用Apt-get安装git 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

高級包裝工具(英語:Advanced Packaging Tools,簡稱:APT)是Debian及其衍生發(fā)行版(如:ubuntu)的軟件包管理器。APT可以自動下載,配置,安裝二進制或者源代碼格式的軟 件包,因此簡化了 Unix系統(tǒng)上管理軟件的過程,apt-get命令一般需要root權(quán)限執(zhí)行,所以一般跟著sudo命令。

在阿里的云服務(wù)器上想要安裝git,先運行apt-get update去更新鏡像,然后使用apt-get install git去安裝git.

?

root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local# apt-get update
Ign http://mirrors.cloud.aliyuncs.com precise InRelease
Get:1 http://mirrors.cloud.aliyuncs.com precise-security InRelease [55.7 kB]
Get:2 http://mirrors.cloud.aliyuncs.com precise-updates InRelease [55.7 kB]
Get:3 http://mirrors.cloud.aliyuncs.com precise-proposed InRelease [55.7 kB]
Get:4 http://mirrors.cloud.aliyuncs.com precise-backports InRelease [55.7 kB]

root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local# apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-
gui gitk gitweb
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 235 not upgraded.
Need to get 6,759 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB]
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu/ precise-security/main git-man all 1:1.7.9.5-
1ubuntu0.3 [632 kB]
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu/ precise-security/main git amd64 1:1.7.9.5-
1ubuntu0.3 [6,103 kB]
Fetched 6,759 kB in 1s (4,334 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 54216 files and directories currently installed.)
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.7.9.5-1ubuntu0.3_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.7.9.5-1ubuntu0.3_amd64.deb) ...
Processing triggers for man-db ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.7.9.5-1ubuntu0.3)

?

root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local/GitRepo/HelloWorld# touch test.txt
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local/GitRepo/HelloWorld# git add test.txt
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local/GitRepo/HelloWorld# git commit -m 'deliver new test file'
[master 01bbaa1] deliver new test file
0 files changed
create mode 100644 test.txt
root@iZ2ze40ubs5g1jr3rgylpfZ:/usr/local/GitRepo/HelloWorld# git push origin
Username for 'https://github.com': guoguangzhi
Password for 'https://guoguangzhi@github.com':
To https://github.com/guoguangzhi/HelloWorld.git
b50d8e8..01bbaa1 master -> master

?

轉(zhuǎn)載于:https://www.cnblogs.com/GuoRichard/p/6947243.html

總結(jié)

以上是生活随笔為你收集整理的在阿里云的Ubuntu ECS instance 使用Apt-get安装git的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。