mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
|
|
% git branch better_refresh # Create a branch.
|
|
% git branch # List branches.
|
|
|
|
% git checkout better_refresh # Switch to a branch.
|
|
% git checkout master # Switch back to the mainline.
|
|
% git merge better_refresh # Merge a branch back with the mainline.
|
|
|
|
|
|
Git token refreshing.
|
|
|
|
On github
|
|
https://github.com/settings/tokens
|
|
https://github.com/settings/tokens/new
|
|
|
|
Selected scopes:
|
|
repo
|
|
workflow
|
|
admin:org
|
|
|
|
|
|
On Client.
|
|
|
|
erniep@gracie:/peak/src/seer$ gh auth login
|
|
? What account do you want to log into? <Select 'GitHub.com'>
|
|
? What is your preferred protocol for Git operations? <Select 'HTTPS'>
|
|
? How would you like to authenticate GitHub CLI? <Select 'Paste an authentication token'>
|
|
Tip: you can generate a Personal Access Token here https://github.com/settings/tokens
|
|
The minimum required scopes are 'repo', 'read:org', 'workflow'.
|
|
? Paste your authentication token: <Enter ****************************************>
|
|
- gh config set -h github.com git_protocol https
|
|
✓ Configured git protocol
|
|
✓ Logged in as epasveer
|
|
erniep@gracie:/peak/src/seer$
|
|
|