首页 > 其他分享 >【13.0】路飞项目的Gitee

【13.0】路飞项目的Gitee

时间:2023-08-19 17:11:42浏览次数:48  
标签:create py apps Gitee 路飞 luffyCity mode 100644 13.0

【一】管理路飞项目

  • 忽略一下文件夹及文件

.idea

*.log

__pycache__

*.pyc

scripts

【二】忽视部分文件

初识化仓库

git init 
Initialized empty Git repository in E:/Old Boy/luffy/luffyCity/.git/

查看仓库状态

git status
On branch master

No commits yet

Untracked files:
        .gitignore
        db.sqlite3
        logs/
        luffyCity/

添加管理文件

git add .
(venv) PS E:\Old Boy\luffy\luffyCity> git add .
warning: in the working copy of '.gitignore', LF will be replaced by CRLF the next time Git
 touches it
(venv) PS E:\Old Boy\luffy\luffyCity> git status
On branch master

查看仓库状态

git status
(venv) PS E:\Old Boy\luffy\luffyCity> git status
On branch master

No commits yet

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)
        new file:   .gitignore
        new file:   db.sqlite3
        new file:   logs/__init__.py
        new file:   luffyCity/__init__.py
        new file:   luffyCity/apps/__init__.py
        new file:   luffyCity/apps/home/__init__.py
        new file:   luffyCity/apps/home/admin.py
        new file:   luffyCity/apps/home/apps.py
        new file:   luffyCity/apps/home/migrations/0001_initial.py
        new file:   luffyCity/apps/home/migrations/__init__.py
        new file:   luffyCity/apps/home/models.py
        new file:   luffyCity/apps/home/serializers/Banner_serializer.py
        new file:   luffyCity/apps/home/tests.py
        new file:   luffyCity/apps/home/urls.py
        new file:   luffyCity/apps/home/views.py
        new file:   luffyCity/apps/user/__init__.py
        new file:   luffyCity/apps/user/admin.py
        new file:   luffyCity/apps/user/apps.py
        new file:   luffyCity/apps/user/migrations/0001_initial.py
        new file:   luffyCity/apps/user/migrations/__init__.py
        new file:   luffyCity/apps/user/models.py
        new file:   luffyCity/apps/user/tests.py
        new file:   luffyCity/apps/user/urls.py
        new file:   luffyCity/apps/user/views.py
        new file:   luffyCity/asgi.py
        new file:   luffyCity/db.sqlite3
        new file:   luffyCity/utils/common_middleware.py
        new file:   luffyCity/utils/common_mixin.py
        new file:   luffyCity/utils/common_models.py
        new file:   luffyCity/utils/common_response.py
        new file:   luffyCity/utils/common_settings.py
        new file:   luffyCity/wsgi.py
        new file:   manage.py

提交注释

  • 将所有文件提交到本地仓库
git commit -m '第一次路飞测试'
(venv) PS E:\Old Boy\luffy\luffyCity> git commit -m '第一次路飞测试'
[master (root-commit) beffe8d] 第一次路飞测试                           
 48 files changed, 748 insertions(+)                                    
 create mode 100644 .gitignore                                          
 create mode 100644 db.sqlite3                                          
 create mode 100644 logs/__init__.py                                    
 create mode 100644 luffyCity/__init__.py                               
 create mode 100644 luffyCity/apps/__init__.py                          
 create mode 100644 luffyCity/apps/home/__init__.py                     
 create mode 100644 luffyCity/apps/home/admin.py                        
 create mode 100644 luffyCity/apps/home/apps.py                         
 create mode 100644 luffyCity/apps/home/migrations/0001_initial.py      
 create mode 100644 luffyCity/apps/home/migrations/__init__.py          
 create mode 100644 luffyCity/apps/home/models.py                       
 create mode 100644 luffyCity/apps/home/serializers/Banner_serializer.py
 create mode 100644 luffyCity/apps/home/tests.py                        
 create mode 100644 luffyCity/apps/home/urls.py
 create mode 100644 luffyCity/apps/home/views.py
 create mode 100644 luffyCity/apps/user/__init__.py
 create mode 100644 luffyCity/apps/user/admin.py
 create mode 100644 luffyCity/apps/user/apps.py
 create mode 100644 luffyCity/apps/user/migrations/0001_initial.py
 create mode 100644 luffyCity/apps/user/migrations/__init__.py
 create mode 100644 luffyCity/apps/user/models.py
 create mode 100644 luffyCity/apps/user/tests.py
 create mode 100644 luffyCity/apps/user/urls.py
 create mode 100644 luffyCity/apps/user/views.py
 create mode 100644 luffyCity/asgi.py
 create mode 100644 luffyCity/db.sqlite3
 create mode 100644 luffyCity/libs/__init__.py
 create mode 100644 luffyCity/media/banner/1.jpg
 create mode 100644 luffyCity/media/banner/2.jpg
 create mode 100644 luffyCity/media/banner/banner1.png
 create mode 100644 luffyCity/media/banner/banner2.png
 create mode 100644 luffyCity/media/banner/banner3.png
 create mode 100644 luffyCity/media/banner/banner4.png
 create mode 100644 luffyCity/media/icon/1.jpg
 create mode 100644 luffyCity/settings/__init__.py
 create mode 100644 luffyCity/settings/dev.py
 create mode 100644 luffyCity/settings/prod.py
 create mode 100644 luffyCity/urls.py
 create mode 100644 luffyCity/utils/__init__.py
 create mode 100644 luffyCity/utils/common_exceptions.py
 create mode 100644 luffyCity/utils/common_logger.py
 create mode 100644 luffyCity/utils/common_middleware.py
 create mode 100644 luffyCity/utils/common_mixin.py
 create mode 100644 luffyCity/utils/common_models.py
 create mode 100644 luffyCity/utils/common_response.py
 create mode 100644 luffyCity/utils/common_settings.py
 create mode 100644 luffyCity/wsgi.py
 create mode 100644 manage.py

查看仓库状态

git status
(venv) PS E:\Old Boy\luffy\luffyCity> git status
On branch master
nothing to commit, working tree clean

【三】推送路飞项目至远程仓库

【1】建立远程仓库

【2】添加远程仓库地址

git remote add origin https://gitee.com/chi-meng/luffy-project.git

【3】推送项目

  • 注意这里上面我已经在本地仓库缓存过了
    • 所以直接推上去
git push origin master

【4】远端仓库推送成功

标签:create,py,apps,Gitee,路飞,luffyCity,mode,100644,13.0
From: https://www.cnblogs.com/dream-ze/p/17642711.html

相关文章

  • 【4.0】路飞项目后端搭建
    【一】创建django项目的两种方式创建Django项目有两种常用的方式一种是通过命令行,另一种是通过PyCharm。【1】命令行方式:打开终端或命令提示符,并进入你想要创建项目的目录。在命令行中输入以下命令:django-adminstartproject项目名。其中,项目名是你为项目指定......
  • 自动同步 github 仓库到 gitee
    自动同步github仓库到gitee先上最终效果代码仓库:github2giteeGithubAction同步结果:为什么要同步到gitee将gitee仓库作为备份镜像仓库,以防不测网上的同步方法大致在网上查找了一通,基本都是使用githubaction做到自动同步,也有一些前人封装好的action,所以做起来......
  • 解决Mac 上码云gitee或者github出现The requested URL returned error: 403
    出现场景要把某个项目push到码云上,已经设置了仓库地址,在最后一步直接报错。adodeMacBook-Pro:yimabaoado$gitpush--set-upstreamoriginmasterremote:[session-774b45b9]Accessdeniedfatal:unabletoaccess'https://gitee.com/mzmilk/yimabao.git/':Therequested......
  • 集成gitee第三方登录
    第三方登录的原理所谓第三方登录,实质就是OAuth授权。用户想要登录A网站,A网站让用户提供第三方网站的数据,证明自己的身份。获取第三方网站的身份数据,就需要OAuth授权。举例来说,A网站允许Gitee登录,背后就是下面的流程。A网站让用户跳转到Gitee。Gitee要求用户登录......
  • vue项目部署到gitee
    1、首先本地项目生成静态网页npmrunbuild使用本命令将vue项目打包成静态网页存放到dist文件夹里2、将静态资源推到gitee仓库前提条件:新建了git仓库,然后 gitclone +仓库地址,拉到本地,将dist整个文件夹放到刚才拉下来的项目文件夹中。gitadddistgitcommit-m"部署......
  • gitee仓库创建和操作系统安装流程
    创建Gitee账号和仓库1、官网:https://gitee.com/创建好账号,然后登录账号2、流程点击创建仓库填写仓库信息创建好仓库后点击仓库主页的管理在管理中自行选择是否开源创建好仓库后:点击自己主页设置,配置SSH秘钥点击设置按钮跳转到主页,然后点击红色箭头的SSH秘钥配......
  • 安装Virtualbox Install Virtualbox in Ubuntu 13.10/13.04/12.10/12.04 using PPA
    VirtualBoxisapowerfulOpenSourcevirtualizationsoftwarefromOracle,WhichsupportsLinux,WindowsandMacOS.CurrentstablereleaseisVirtualBox4.3.RecommendedwayofinstallingVirtualboxinUbuntu/LinuxMintisbyaddingPPAtoyourrepositor......
  • gitee教程
    目录1、gitee是什么?2、git网站上的注册登录3、准备工作4、上传文件到gitee5、下载自己的仓库和别人的*6、基本命令汇总:1、gitee是什么?基于git的代码托管协助平台2、git网站上的注册登录打开gitee官网Gitee-基于Git的代码托管和研发协作平台打开注册登录即......
  • 本地项目上传至Gitee指定仓库
    项目上传【gitee版】描述:将本地项目上传至gitee指定仓库一、Git仓库设置【1】创建gitee仓库【2】配置仓库信息将仓库名称及路径完善,剩余配置可默认,完成之后再进行初始化仓库即可。二、本地项目设置【1】git安装安装地址:https://git-scm.com/downloads【默认安装】......
  • x86_64 ubuntu22.04环境下编译版本python3.13.0 alpha 0源码——python3.13.0 alpha 0
      python3.13.0alpha0版本源码编译: 环境——x86_64ubuntu22.04系统: 1.源码下载:gitclonehttps://github.com/python/cpython 2.修改apt源地址:编辑文件:sudovim/etc/apt/sources.list添加内容:deb-srchttp://archive.ubuntu.com/ubuntu/jammymain......