一.Github使用
-
注册github
https://github.com/dkwangxfzhang -
环境配置
#!/bin/bash
ssh-keygen -t rsa -C "注册邮箱"
-
copy公钥到github Account settings/SSH and GPG keys
-
git config --global user.name “username”
git config --global user.email mail -
git clone “http://…”
cd project
git push -
输入账号密码
Username for ‘https://github.com’: xxx
Password for ‘https://xxx@github.com’: aaa
二.git常用命令
- git add ./file
- git commit -m “”
- git commit -am “”
- git push origin main
- git checkout -b dev //创建选择dev分支
- git push origin dev //push dev分支
- git checkout main //选择分支
- git branch -d test //删除分支
- git branch -a //分支列表
- git push origin :test //删除GitHub上面的远程分支
306

被折叠的 条评论
为什么被折叠?



