Note about Git¶
Github¶
Use Github Personal access token¶
- Create and use token
- Use token to commit:
repo-url=https://[username]:[token]@github.com/[username]/[repository_name].git
git remote set-url origin [repo-url]
- Note:
- If token exist in any file when commit, GitHub can observe, remove token and then notice to email that "This token removed".
- Should keep token in env and add it to remote.