zl程序教程

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

当前栏目

github 推送代码

GitHub代码 推送
2023-09-27 14:23:51 时间

一.所有更新一起推送

1.git init //初始化本地仓库

2. git add .  //添加全部文件

3. git commit -m "init commit"   //提交修改创建时间点

4.git status //查看是否还有未提交的

5.git remote add origin 你的仓库地址  //江远程仓库关联到origin名称上 

6.git push origin master //将添加的内容推送到远程仓库
7. 如果步骤六 不可以 可以尝试 git push -f origin master 推送

 

 

git init    #初始化本地文件
git add .    #添加全部文件(git  add  -A)
git commit -m 'add all the file'    #提交修改
git status    #查看是否还有未提交
git remote  add  origin  你的仓库地址    #远程仓库关联到origin名称上
git push origin master    #将add内容推送到远程仓库