menu 贺大礼(乱丶心)的博客
git初始化项目并推送到GitHub
1142 浏览 | 2020-12-04 | 阅读时间: 约 1 分钟 | 分类: 前端 | 标签: GIT
请注意,本文编写于 1209 天前,最后修改于 1171 天前,其中某些信息可能已经过时。

设置你的名字和邮件地址:

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com  

全局保存提交的账号密码

git config --global credential.helper store

初始化设置(拉取远程代码,可提交代码)

git init
git remote add origin https://github.com/xxx/xxx.git
git pull origin master
git add .
git commit -m "提交备注"
git push origin mastr

克隆代码(不可提交)

git clone https://github.com/xxx/xxx.git
知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

发表评论

email
web

全部评论 (暂无评论)

info 还没有任何评论,你来说两句呐!