Git版本控制 - Charles-Charmless/Charles-Charmless.github.io GitHub Wiki
ssh-keygen.exe -t rsa -C "[email protected]"
git config --global user.name "charles"
git config --global user.email "
[email protected]"
切换到目录
git init
!Notion/首页/理论学习成长/Github/初始化/Picture/Untitled.png
git branch 查看分支
git branch -a 查看所用分支
git branch -d local-branch-name 删除本地分支
git chechout -b branchname 创建并切换分支
git push origin branch 推送到具体分支
git push origin --delete [branch_name]
git config --global coresafe.crlf false # 允许提交包含混合换行符的文件
~/Documents/github/Charles-Charmless.github.io.wiki on master ●
❯ git push
Username for 'https://github.com': [email protected]
Password for 'https://[email protected]@github.com': <<------------- Personal Access token
Enumerating objects: 288, done.
Counting objects: 100% (288/288), done.
Delta compression using up to 12 threads
Compressing objects: 100% (268/268), done.
Writing objects: 100% (286/286), 19.02 MiB | 783.00 KiB/s, done.
Total 286 (delta 1), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/Charles-Charmless/Charles-Charmless.github.io.wiki.git
2fabf6d..3ce8c8c master -> master
Path to Personal Access Token :
Account -> Setting -> Developer Setting -> Personal Access Token -> Token (Classic)