2019独角兽企业重金招聘Python工程师标准>>>

克隆仓库

[root@localhost test]# cd /home/
[root@localhost home]# git clone git@github.com:aminglinux/lanmp.git
Cloning into 'lanmp'...
Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known hosts.
remote: Counting objects: 32, done.
remote: Total 32 (delta 0), reused 0 (delta 0), pack-reused 32
Receiving objects: 100% (32/32), 5.99 KiB | 0 bytes/s, done.
Resolving deltas: 100% (6/6), done.[root@localhost home]# cd lanmp/
[root@localhost lanmp]# ls -l
total 20
-rw-r--r--. 1 root root 14871 Aug  3 15:40 lanmp.sh
-rw-r--r--. 1 root root    88 Aug  3 15:40 README.md

[root@localhost lanmp]# vi README.md
删除某一行[root@localhost lanmp]# git add README.md
[root@localhost lanmp]# git commit -m "change readme.md"
[master 614a4cf] change readme.mdCommitter: root <root@localhost.localdomain>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:git config --global user.name "Your Name"git config --global user.email you@example.comAfter doing this, you may fix the identity used for this commit with:git commit --amend --reset-author1 file changed, 1 deletion(-)[root@localhost lanmp]# git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:git config --global push.default matchingTo squelch this message and adopt the new behavior now, use:git config --global push.default simpleSee 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)Warning: Permanently added the RSA host key for IP address '52.74.223.119' to the list of known hosts.
ERROR: Permission to aminglinux/lanmp.git denied to hellopasswd.
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.> 这里为需要密钥才可以与服务端同步

使用git pull为更新库

[root@localhost lanmp]# git pull
Already up-to-date. #已经最新的

转载于:https://my.oschina.net/hellopasswd/blog/1922437

克隆远程仓库#180804相关推荐

  1. 86.git使用 建立和克隆远程仓库

    2019独角兽企业重金招聘Python工程师标准>>> 22.5/22.6 单机上使用git 22.7 建立远程仓库 22.8 克隆远程仓库 22.5/22.6 单机上使用git g ...

  2. GIt——怎样克隆远程仓库到本地(敲详细)

      克隆远程仓库,说得容易理解的话就是下载网上的东西到本地.步骤还是比较简单,之前我尝试过用SourceTree,我去那是真的麻烦,用可视化软件还不如自己敲代码,反正代码也不难,就一句话而已! 步骤 ...

  3. Git HTTP方式克隆远程仓库到本地

    操作步骤 Git 通过HTTP方式克隆远程仓库到本地总共需要三步: 登录我们的github 复制我们的github 项目的https 地址. 在我们的本地磁盘下创建文件夹用来保存我们的远程git项目. ...

  4. git安装、使用、建立github远程仓库、克隆远程仓库

    文章目录 安装git 单机上使用git 建立GitHub远程仓库 克隆GitHub远程仓库 安装git [root@linux ~]# yum -y install git 单机上使用git 创建仓库 ...

  5. 通过SSH克隆远程仓库(GitLab)到本地

    由于不是任何用户都能从远程仓库克隆到本地的,也是需要鉴别的,因此本地需要用git bash 创建一个公钥,而远程仓库也要把这个公钥保存下来,进而本地才可以从远程download.主要步骤如下: 1.首 ...

  6. Git配置SSH公钥及创建和克隆远程仓库

    gitbash在本地创建ssh key (1)打开c盘下的用户文件夹,可以找到".ssh"这样一个文件夹,现在这个文件夹下是空的. 执行如下命令 ssh-keygen -t rsa ...

  7. Git SSH方式克隆远程仓库到本地

    操作演示 查看本地是否配置公私密钥 我们直接开始将如何进行配置,在配置前我们要先看一下我们本地是否已经配置公私密钥: 执行上图命令: 如上图所示:表示我本地没有有密钥,或者有.ssh目录但是没有id_ ...

  8. git克隆远程仓库的时候断电了,使用git-fetch断点续传

    今天下载tensorflow serving 模型,但是因为主机电源线太长了,不知是我自己搞的还是同事,断电了都, 网速捉急,下载了挺长时间的,一看,git clone 到中途竟然断电,不过查看,还好 ...

  9. 腾讯云下centos git 克隆远程仓库

    坑爹啊,坑爹 第一次玩centos,git 先升级到2.0以上 git clone 依旧报错 必须使用下面的 git clone https://用户名@gitee.com/xxx/xxx  才能cl ...

最新文章

  1. 2021年大数据Kafka(三):❤️Kafka的集群搭建以及shell启动命令脚本编写❤️
  2. 什么是断点,为什么要设置断点?断点的作用是什么?
  3. Spring Cloud中,Eureka常见问题总结
  4. Linux+Apache2.4+PHP5.6+MySQL5.6源码安装步骤
  5. JAVA入门到精通-第7讲-成员方法-构造方法
  6. azure db 设置时区_关于Azure Cosmos DB(以前称为DocumentDB)的8件事
  7. Jenkins远程调度Shell命令
  8. Java面试题中的Redis大合集,所有你想找的都在这里!
  9. 如何用计算机抽奖,怎么用PPT制作随机点名抽奖
  10. 【论文翻译】Generation of Non-Deterministic Synthetic Face Datasets Guided by Identity Priors(21.12)
  11. 一文读懂Auth0与Azure AD的区别
  12. Wireshark内容过滤方法
  13. joycon手柄拆解_任天堂Switch手柄腕带勿装反 取下需技巧
  14. voip是利用计算机网络,VoIP在无线局域网上的应用
  15. 涨停板打开是不是下跌信号?
  16. ls -al 命令详解
  17. core linux性能,快得没边儿:SNB i5-2500K Linux性能全方位考察
  18. 26参数方程确定的函数的导数
  19. AI赋能,数据驱动业务增长 | Stratifyd亮相全渠道获客增长沙龙
  20. 前端开发实习工作之关于git的每天使用浅谈

热门文章

  1. Java进阶篇设计模式之十二 ---- 备忘录模式和状态模式
  2. C++工程编译链接错误汇总VisualStudio
  3. 技术入股创业注意事项
  4. 温水煮青蛙,我还能活多久
  5. 王者荣耀微信有个服务器叫洛神降临,王者荣耀之洛神降临
  6. linux xilinx,Xilinx-在ZC702上运行Linux(4)-编译和使用U-Boot Linux
  7. 爬虫 抖音用户页 所有无水印视频 批量下载 最新 (2021-3-18 可用--失效我会更新)
  8. git missing change-id解决办法
  9. c语言pow函数精度差,pow()函数结果强制转化为int造成误差的分析
  10. 【女人8大隐私部位越丑越健康】