Git的安装&使用

window 上通过powershell 安装git

安装git,集成到powershell中 - 知乎

LINUX上安装源码安装

git源码文件下载地址:

git安装教程:https://www.cnblogs.com/fuzongle/p/12830572.html

 github文件普通快速下载方法

如何快速从Github下载文件 - 知乎

git配置+代理

参考:Git 安装配置 | 菜鸟教程

个人用户可在目录下直接创建.gitconfig文件

写入相关内容

[user]
	name = gitname
	email = gitemail
[core]
	editor = emacs
[merge]
	tool = vimdiff
[http]
	proxy = 'http://用户名:密码@代理ip地址:端口号'
[https]
	proxy = 'https://用户名:密码@代理ip地址:端口号'

解决github装包使用频率限制

- 操作下面步骤,就能找到github_token

- 打开网页(https://github.com/settings/tokens/new?scopes=repo,user,gist,workflow&description=DESCRIBE THE TOKEN'S USE CASE),翻到最底部,点击generate token,复制ghp_开头的字符串

library(gitcreds)
gitcreds_set()

-> Your current credentials for 'https://github.com':

  protocol: https
  host    : github.com
  username: PersonalAccessToken
  password: <-- hidden -->

-> What would you like to do? 

1: Abort update with error, and keep the existing credentials
2: Replace these credentials
3: See the password / token

输入2

Selection: 2

-> Removing current credentials...

? Enter new password or token: ghp_XXXXXXXXXXXXXXXXXXXXXXX(这里输入刚刚复制的字符串)
-> Adding new credentials...
-> Removing credentials from cache...
-> Done.

镜像配置参考:Git配置代理和取消的两种方法 - 掘金

解决github装包使用频率限制参考:推荐一个实用工具,顺便解决github装包使用频率限制和安装包的问题

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值