Skip to content

Commit 741494c

Browse files
authored
Merge pull request #1 from AztecProtocol/randyquaye-patch-1
Update README with GitHub token usage instructions
2 parents 2578707 + 49d8232 commit 741494c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,18 @@ export GITHUB_TOKEN=$(github-app-util 2>/dev/null)
6565

6666
The `2>/dev/null` suppresses the TTY warning so only the token is captured.
6767

68+
Then you can use the git api normally with the token:
69+
70+
```bash
71+
git pull https://<GITHUB_TOKEN>@github.com/OWNER/REPO.git main
72+
```
73+
74+
Or set it more persistently:
75+
```bash
76+
# Set the remote URL with the token
77+
git remote set-url origin https://<GITHUB_TOKEN>@github.com/OWNER/REPO.git
78+
79+
# Then pull normally
80+
git pull
81+
```
82+

0 commit comments

Comments
 (0)