• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

嘻哈小王

欢迎来到我的乐园
  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

gitee初建项目提交、更新

  • 提交代码
    1、先去github创建一个仓库(Repositories),得到这个仓库地址,如:https://github.com/xxxx/htmlDemo.git
    2、在要上传的文件夹里面打开gitbash,按顺序执行
         ① git init
         ② git remote add origin https://github.com/xxxx/htmlDemo.git
         ③ git add .
         ④ git commit -m ‘备注信息’
         ⑤ git push -u origin master
  • 更新代码
    1、git status 【查看代码状态】
    2、git pull 【拉取代码 更新当前分支的代码,获取最新的代码】
    3、git add -A 【加到本地库】
    4、git commit -m “注释”
    5、git push 【代码推上去】

常见问题处理办法:

git push --force <分支名称>

posted on 2024-11-21 15:52  琅琊小王  阅读(178)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3