# hdc-python-service **Repository Path**: hdc-college/hdc-python-service ## Basic Information - **Project Name**: hdc-python-service - **Description**: 实训项目python的api接口 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-05 - **Last Updated**: 2022-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 克隆代码 ```bash git clone https://gitee.com/Liuyilllin/hdc-python-service.git ``` ## 基本使用 ### 下载远程代码并合并 ```bash git pull origin dev ``` 团队开发时,要先下载别人提交到远程仓库的代码,下载后再对代码做修改,防止冲突 使用单独自己分支时 不需要这个操作 ### 添加当前目录下的所有文件到暂存区: ```bash git add . ``` ### 提交暂存区到本地仓库。 ```bash git commit -m "提交信息" ``` ### 查看仓库当前的状态,显示有变更的文件: ```bash git status ``` 确定working tree clean后再上传到远程代码 ### 上传远程代码并合并 ```bash git push origin dev ``` ### 查看历史提交记录 ```bash git log ``` ### 比较文件的不同,即暂存区和工作区的差异。 ```bash git diff ``` ## 分支 ### 创建分支 ```bash git branch dev ``` ### 切换分支 ```bash git checkout dev ``` ### 列出分支 ```bash git branch ``` 没有参数时,会列出你在本地的分支 ### 删除分支 ```bash git branch -d (branchname) ``` ### 分支合并 ```bash git merge ```