Gitee简单操作

gitee上传代码

  • 第一步:电脑上先安装git:
    下载链接 https://git-scm.com/downloads

    # 如果在桌面鼠标右键,出现下面两个东西,则安装成功
    open Git GUI here
    open Git Bash here
    
  • 第二步:注册gitee/github

  • 第三步:创建项目仓库( 点击右上角+号 )

    img

  • 本地git配置 - 全局( 最开始做一次,后续不需要在操作 )

    # 在桌面进行鼠标右键点击,打开open Git Bash here,然后输入下面两行代码,一行一行输
    git config --global user.name "xxx"
    git config --global user.email "xxx@live.com"···
    

    img

  • 项目配置

    • 进入项目目录
      img
    • 初始化
      git init 
      git remote add origin https://gitee.com/wupeiqi/day06.git  
      
    • 提交代码
      git add .
      git commit -m '第一次提交代码'
      
    • 提交到gitee远程仓库
      git push origin master
      
posted @ 2024-09-30 16:55  tmars  阅读(1)  评论(0编辑  收藏  举报