克隆远程仓库#180804
生活随笔
收集整理的這篇文章主要介紹了
克隆远程仓库#180804
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
2019獨角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
克隆倉庫
[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.> 這里為需要密鑰才可以與服務(wù)端同步使用git pull為更新庫
[root@localhost lanmp]# git pull Already up-to-date. #已經(jīng)最新的轉(zhuǎn)載于:https://my.oschina.net/hellopasswd/blog/1922437
總結(jié)
以上是生活随笔為你收集整理的克隆远程仓库#180804的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 淘宝4位数七段显示器模块 (74HC59
- 下一篇: 北京租房小贴士