1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
% 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$
|