# study-java **Repository Path**: aylog/study-java ## Basic Information - **Project Name**: study-java - **Description**: java 学习之路 - **Primary Language**: Java - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-14 - **Last Updated**: 2021-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # study-java #### 介绍 java 学习之路 #### git 常用命令 ![image-20210414223424198](.\images\image-20210414223424198.png) > git clone url > git config [ --gobal / --local ] user.name [value] > > git config [ --gobal / --local ] user.email [value] > git add file... # 添加指定的文件到暂存区 > > git add [dir] # 添加指定的文件夹到暂存区 > > git add . # 添加当前目录下的所有文件到暂存区 > git commit [file1, file2...] -m [msg] # 将暂存区的文件保存到本地仓库 > git diff [file] # 暂存区和本地文件的差异 > > git diff --cached [file] # 暂存区和上一个版本的差异 > git log # 查看提交记录 > > git blame file # 以列表的形式展示文件的历史修改记录 > git pull # 拉去远程仓库的代码并合并到本地 > git push 主机名 分支 > > git push origin master # 将本地仓库的代码推送到远程仓库 > git branch [branch] # 创建新分支 > > git checkout [branch] # 切换分支 > git merge branch # 将指定的分支合并到当前分支