git init 创建工作区 git add . 添加到暂存区 提交到版本区 git commit -m 'init app' 记录远程仓库地址 git branch 查看分支 创建并切换分支 git push -u origin my 推送到远程仓库 git status 查看本地状态 git a ...
分类:
其他好文 时间:
2020-06-25 12:02:44
阅读次数:
76
//distinct使用 public List<String> distinctDutyDate() { String hql="select distinct(dutyDate) from DoctorDuty"; Query query=getSession().createQuery(hql ...
分类:
Web程序 时间:
2020-06-23 12:55:01
阅读次数:
77
Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown(或其他渲染引擎)解析文章,在几秒内,即可利用靓丽的主题生成静态网页。 这里我把个人博客托管在 GitHub Pages 上。GitHub Pages 是一种静态站点托管服务,每个 GitHub 帐户或组织都可以有一个站点。 ...
分类:
其他好文 时间:
2020-06-22 19:36:34
阅读次数:
64
一、问题出现 1.当远程仓库分支上有一个本地仓库没有的分支时 2.本地使用git checkout命令检索这个远程分支 git checkout -b 本地分支名 远程分支名 当出现上述情况时,就会出现报错:fatal:‘XXX' is not a commit and a branch ‘XXX' ...
分类:
其他好文 时间:
2020-06-21 23:11:17
阅读次数:
202
git基础命令(黏贴shift + insert)拷贝项目:git clone <仓库地址> 创建分支:git branch <name>創建並进入分支:git checkout -b <name>切分支:git checkout <name>查看状态:git status添加所有:git add. ...
分类:
其他好文 时间:
2020-06-21 19:54:25
阅读次数:
72
当由多个上游的时候,我们需要合理管理自己的分支的track,进行合作; 拉取上游分支到本地: git pull <remote> <branch> 建立分支track 信息: git branch --set-upstream-to=<remote>/<branch> wip-readahead 查 ...
分类:
其他好文 时间:
2020-06-19 12:16:10
阅读次数:
215
# 查看远程仓库推拉地址,分支信息,分支跟踪情况等 git remote show origin # 拉取远程仓库的变更内容到本地 git fetch origin # 拉取并合并仓库的变更内容到本地 git pull # 添加远程仓库跟踪地址 git remote add # 推送本地的提交到远程 ...
分类:
其他好文 时间:
2020-06-18 19:37:11
阅读次数:
41
1. 显示出branch1和branch2中差异的部分 git diff branch1 branch2 --stat 2. 显示指定文件的详细差异 git diff branch1 branch2 具体文件路径 3. 显示出所有有差异的文件的详细差异 git diff branch1 branch ...
分类:
其他好文 时间:
2020-06-15 17:50:42
阅读次数:
65
1. 在本地创建自己的分支git branch dev_lsw 2. 同步分支到github上面git push origin dev_lsw 3. 本地当前应该是master分支,切换到自己的分支上,然后把本地分支和远程分支做关联git checkout dev_lswgit branch --s ...
分类:
其他好文 时间:
2020-06-12 12:49:27
阅读次数:
219
登录功能概述 token原理分析 登录页面布局 代码编写之前先创建功能开发分支 git status //查看当前工作区是否干净 git checkout -b login //创建新的分支login git branch //查看当前分支是哪一个 git add . git commit -m " ...