专业的编程技术博客社区

网站首页 > 博客文章 正文

关于 Git SSH 使用的项目实践(git.ssh)

baijin 2024-10-10 04:22:40 博客文章 6 ℃ 0 评论

Git 是分布式的代码管理工具,远程的代码管理是基于 SSH 的,所以要使用远程的 git 则需要SSH的配置。

简述

访问 Git 仓库可以使用 SSH Key 的方式,首先需要生成 Key.

使用 SSH- Agent 配置公私钥,Windows 下需要安装 Github for Windows 或者 myssgit.

  1. 生成公、私钥

    ssh-keygen -t rsa -b 4096 -c "silence"

  2. 启动 agent

    ssh-agent -s 或者 $(ssh-agent -s)

  3. 添加

    ssh-add 命令后面加上私有的key文件路径

项目

基础知识

Python 基础知识

Web 开发相关基础知识

  • HTML

  • CSS&JS(了解)

  • Bootstrap

Django 基本使用

  • MVC

  • ORM

  • template

  • admin

Markdown

项目创建

第三方安装包

项目创建&APP

配置 APP

代码走读

创建文章 Model 类

定义 View 获取博客列表&博客详情

Template 显示博客列表&博客详情

定义 APP urls 映射

定义项目 url 映射

使用 makemigrateions 生成迁移文件

使用migrate迁移数据库

createsuperuser 创建后台管理员

python manage.py createsuperuser

runserver 命令启动 web 服务器

python manage.py runserver 0.0.0.0:8888

项目链接

https://pan.baidu.com/s/1slsLJjv 密码:nh15

这是本次关于 Git SSH 使用的实践项目的源码。

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表