0
点赞
收藏
分享

微信扫一扫

【git】将本地代码推送到远程git仓库


【git项目上传】在项目根目录下一次执行命令
git remote rm origin
git remote add origin http://ip:port/xxx/xxxxx.git
git add .
git commit -m "init"
git push -u origin master

查看用户名和邮箱地址:

$ git config user.name

$ git config user.email

修改用户名和邮箱地址

$ git config --global user.name "username"

$ git config --global user.email "email"

如何GitHub贡献代码



举报

相关推荐

0 条评论