# Docker学习 **Repository Path**: wx_ee266dee80/docker-learning ## Basic Information - **Project Name**: Docker学习 - **Description**: docker 学习笔记 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-28 - **Last Updated**: 2021-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Git使用记录 #### 介绍 本项目用于docker的学习,在学习途中随手记录git的使用方法。 #### 问题记录 1. 如何查看本地和远程代码的差异内容? ```sh # 查看本地仓库对应的远程仓库 git remote -v origin https://gitee.com/wx_ee266dee80/docker-learning.git (fetch) origin https://gitee.com/wx_ee266dee80/docker-learning.git (push) # 从远程获取远程仓库最新版本到本地 git fetch origin master:temp From https://gitee.com/wx_ee266dee80/docker-learning * [new branch] master -> temp #查看分支之间的差异 git diff temp # 更新本地仓库 git merge temp # 删除分支,没有完全合并的分支在删除时会报错 git branch -d temp ``` 2.