Git : 建立自己的本地仓库,并拉取远程代码
- 2020-05-11 13:56:00
- IDO老徐 原創
- 31694
1、新建自己的本地目錄
[root@istester ~]# mkdir -p ~/istester_git
[root@istester ~]# cd istester_git/
2、拉遠程倉庫代碼
[root@istester istester_git]# git clone http://t.istester.com:3000/istester/gittest.git (这个,填自己的仓库地址;查看方法,见 http://istester.com/git/442.html)
Cloning into 'gittest'...
remote: Counting objects: 1769, done.
remote: Compressing objects: 100% (1602/1602), done.
Receiving objects: 5% (89/1769), 1.47 MiB | 115.00 KiB/s
如果看到如下,就是成功了
Receiving objects: 100% (1769/1769), 17.44 MiB | 116.00 KiB/s, done.
Resolving deltas: 100% (95/95), done.
[root@istester istester_git]# ll
total 4
drwxr-xr-x 8 root root 4096 May 11 13:55 gittest
4、確認
[root@istester istester_git]# cd gittest/
[root@istester gittest]# ll
total 31280
drwxr-xr-x 3 root root 4096 May 11 13:55 custom
drwxr-xr-x 4 root root 4096 May 11 13:55 data
-rwxr-xr-x 1 root root 31981159 May 11 13:55 gogs
-rw-r--r-- 1 root root 1054 May 11 13:55 LICENSE
drwxr-xr-x 8 root root 4096 May 11 13:55 public
-rw-r--r-- 1 root root 8226 May 11 13:55 README.md
-rw-r--r-- 1 root root 5329 May 11 13:55 README_ZH.md
drwxr-xr-x 7 root root 4096 May 11 13:55 scripts
-rw-r--r-- 1 root root 36 May 11 13:55 start_ByIdo.sh
drwxr-xr-x 11 root root 4096 May 11 13:55 templates
搞定 ,
更多內容,見後續更新;
IDO老徐
全网同名,个人IP公衆號
日更10年,每天 1 分钟、解决 1 个问题
職場、副業、輕創業、寫作、個人IP
公衆號、視頻號、小红书、知乎
長按/掃碼,關注IDO老徐
關注回複 401 送你「十年原創资料包」
聯系人: | IDO老徐 |
---|---|
Email: | 957863300@qq.com |
QQ: | 957863300 |
微信: | 957863300 |
微博: | isTester |
網址: | idoxu.com |
地址: | 中国 · 广东 · 深圳 |
來源備注:老徐博客