Files
seer/notes/README.git
T
2022-03-06 10:29:59 -06:00

37 lines
1.4 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 branch --edit-description <branch> # Give your branch a description.
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$