https://github.com/lowzj/github-auto-ops
https://github.com/lowzj/github-auto-ops
authentication github
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lowzj/github-auto-ops
- Owner: lowzj
- Created: 2017-03-24T12:11:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-25T04:42:44.000Z (over 9 years ago)
- Last Synced: 2025-02-17T14:48:08.413Z (over 1 year ago)
- Topics: authentication, github
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github-auto-ops
### GitHub自动认证
HTTPS方式,使用BASIC认证,修改git配置`remote.origin.url`,在url中加入认证信息即可。例子:
```
# 原URL
https://github.com/lowzj/github-auto-ops
# 加入BASIC认证信息的URL:
https://{username}:{password}@github.com/lowzj/github-auto-ops
```
其中`password`可以用`access_token`来代替,以避免泄漏密码。创建`access_token`见[这里](https://github.com/settings/tokens)。
> 提供一个简单的例子 `github-ops.sh`,参数可以直接跟git命令,每个命令用引号括起来。
```sh
sh github-ops.sh 'git status' "git commit -am 'update'"
```