安装r语言是一定要装git吗

Python017

安装r语言是一定要装git吗,第1张

安装r语言是一定要装git

Git(读音为/g_t/)是一个开源的分布式版本控制系统,可以有效、高速地处理从很小到非常大的项目版本管理。也是Linus Torvalds为了帮助管理Linux内核开发而开发的一个开放源码的版本控制软件。

1、首先是进入 Mac 系统,点击左上方的苹果图标,在弹出来的下拉菜单里找到“系统偏好设置”并点击它进行系统偏好设置。

2、在打开的“系统偏好设置”里找到“语言与地区”并点击它。

3、进到“语言与地区”里我们就可以看到“语言与地区”里的“首先语言”里有我们增加的语言了,笔者默认的是简体中文。

这时只有一个语言作为选择,下面我们要给增加我们想要更改的语言,点击左下面的加号。

4、这时就弹出语言列表,这里列出了系统可以修改的语言列表,点击我们想要增加的一种语言以示作为选择,这时我们所选择的语言的这一项的背景就会有蓝色的背景,然后点击右下角的“添加”按钮。

5、这时就会弹出“您想要将‘英文’作为首选语言吗?”的提示,如果是其它的语言就会有相应的文字提示。

如果你马上想把刚刚添加的语言作为首选的语言,就点击“使用‘英文’”这个按钮,如果不想马上用就点击左边的。

6、这时系统又返回到了“语言与地区”的界面,看到“首选语言”里多出了我们刚刚添加的语言,并且是放在了第一个位置。

温馨提示:如果在前一步我们没有选择“使用‘英文’”,在这里放在第一位的还是原来系统里的。

点击左上角的返回箭头,或者点击“全部显示”。

7、当我们点击返回时,就会提示我们系统将要进行重新启动来以使用刚刚修改的语言,点击“立即重新启动”吧。

之后系统就开始进行重新启动了,启动之后系统就更改成了刚刚修改的语言了。

参考文章链接:

https://www.jianshu.com/p/38b345846dfc

https://www.jianshu.com/p/1d3b06b2b8ce

http://www.360doc.com/content/16/0509/10/12278201_557483906.shtml

安装 brew和git

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

http://t.zoukankan.com/liyuzhao-p-4394474.html

git 常用指令:

https://www.cnblogs.com/jeesezhang/p/4350313.html

permission denied解决方法:

https://blog.csdn.net/u011978079/article/details/89784971

sudo git --bare init

cd ..

sudo chmod -R 777 gitService

cd gitService

sudo vim config

插入:

[receive]denyCurrentBranch = ignore, 记得属性换行!不能有多余的空格,否则报错。

Shift + G, 再输入o, w保存,q退出,冒号:是指令开头, :q! 是不保存退出,:wq是保存后退出编辑。

新建文件夹,测试

cd /Users/yellow/Downloads/gitClient

sudo git clone [email protected]:/Users/yellow/Documents/gitService

测试可以再客户端输入:

git status

yellow@yellowdeMacBook-Pro ~ % cd /Users/yellow/Documents/gitService 

yellow@yellowdeMacBook-Pro gitService % sudo git --bare init

Password:

hint: Using 'master' as the name for the initial branch. This default branch name

hint: is subject to change. To configure the initial branch name to use in all

hint: of your new repositories, which will suppress this warning, call:

hint: 

hint: git config --global init.defaultBranch

hint: 

hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and

hint: 'development'. The just-created branch can be renamed via this command:

hint: 

hint: git branch -m

Initialized empty Git repository in /Users/yellow/Documents/gitService/

yellow@yellowdeMacBook-Pro gitService % cd ..

yellow@yellowdeMacBook-Pro Documents % sudo chmod -R 777 gitService

yellow@yellowdeMacBook-Pro Documents % cd gitService

yellow@yellowdeMacBook-Pro gitService % sudo vim config

yellow@yellowdeMacBook-Pro gitService % sudo vim config

yellow@yellowdeMacBook-Pro gitService % cd /Users/yellow/Downloads/gitClient 

yellow@yellowdeMacBook-Pro gitClient % sudo git clone [email protected]:/Users/yellow/Documents/gitService

Cloning into 'gitService'...

The authenticity of host '192.168.0.249 (192.168.0.249)' can't be established.

ED25519 key fingerprint is SHA256:LGsMk9lSnyB4hrTyDDdy8CO8dfttrhb38Hm7aT+znys.

This host key is known by the following other names/addresses:

    /var/root/.ssh/known_hosts:1: 172.20.10.5

    /var/root/.ssh/known_hosts:4: 169.254.60.168

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added '192.168.0.249' (ED25519) to the list of known hosts.

([email protected]) Password:

warning: You appear to have cloned an empty repository.

yellow@yellowdeMacBook-Pro gitClient % cd /Users/yellow/Documents/gitService 

yellow@yellowdeMacBook-Pro gitService % git pull

fatal: this operation must be run in a work tree

yellow@yellowdeMacBook-Pro gitService % git status

fatal: this operation must be run in a work tree