zl程序教程

您现在的位置是:首页 >  工具

当前栏目

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

Git代码 远程 本地 仓库 推送
2023-09-11 14:17:08 时间
【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贡献代码

https://www.cnblogs.com/walblog/articles/9061960.html