博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
克隆远程仓库#180804
阅读量:6080 次
发布时间:2019-06-20

本文共 2232 字,大约阅读时间需要 7 分钟。

hot3.png

克隆仓库

[root@localhost test]# cd /home/[root@localhost home]# git clone git@github.com:aminglinux/lanmp.gitCloning 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 32Receiving 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 -ltotal 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.md Committer: root 
Your name and email address were configured automatically basedon 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-author 1 file changed, 1 deletion(-)[root@localhost lanmp]# git pushwarning: push.default is unset; its implicit value is changing inGit 2.0 from 'matching' to 'simple'. To squelch this messageand 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 rightsand the repository exists.> 这里为需要密钥才可以与服务端同步

使用git pull为更新库

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

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

你可能感兴趣的文章
可执行文件(ELF)格式之讲解
查看>>
JAVA中获取当前系统时间 - Matrix54 - 博客园
查看>>
C#foreach的用法
查看>>
axure变量的使用
查看>>
PHP创建XML文件讲解
查看>>
CentOS 6.3下搭建Web服务器
查看>>
linux学习历程
查看>>
UIImagePickerController拍照与摄像(转)
查看>>
Android中三种onClick事件的实现与对比
查看>>
python for else
查看>>
Python爬虫示例
查看>>
服务器信息收集
查看>>
SSH Secure Shell Client中文乱码的解决方法
查看>>
[Nagios] Error: Template 'timman' specified in contact definition could not be not found (c
查看>>
iOS开发UI篇—推荐两个好用的Xcode插件(提供下载链接)
查看>>
ios成长之每日一遍(day 8)
查看>>
iOS开发UI篇—UIScrollView控件实现图片轮播
查看>>
jQuery源码分析系列(33) : AJAX中的前置过滤器和请求分发器
查看>>
IP地址的分类——a,b,c 类是怎样划分的
查看>>
编译Boost 详细步骤
查看>>