开心博客
首页
后端开发
php
java
python
Go
前端开发
vuejs
JavaScript
运维
linux
windows
Nginx
数据库
git
干货文章
推荐干货
个人随笔
后端开发
php
java
python
Go
前端开发
vuejs
JavaScript
运维
linux
windows
Nginx
数据库
git
干货文章
推荐干货
个人随笔
首页
/
服务运维
git fetch底层运行原理解析
git fetch 底层运行原理解析*重要的概念 FETCH_HEAD *FETCH_HEAD指的是: 某个 branch 在服务器上的最新状态, 每一个执行过 fetch 操作的项目都会存在一个 FETCH_HEAD 列表, 这个列表保存在 .git/FETCH_HEAD 文件中,其中每一行对应于远程服务器的一个分支。当前分支指向的 FETCH_HEAD ,就是这个文件第一行对应的那个分支。一般来说, 存在两种情况:如果没有显式的指定远程分支, 则远程分支的master将作为默认的FETCH_HEAD.如果指定了
2019-08-14
git
git
合并
fetch
git恢复某个文件到指定版本
git恢复某个文件到指定的版本号*命令 git checkout [hash] [path] * Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql # hash:版本号hash值 # path:要恢复的文件路径 git checkout ba2683d
2019-08-13
git
git
版本
恢复
本地分支关联远端分支
本地分支关联远端分支方法当git pull或git push时,会提示 “There is no tracking information for the current branch.” 需要显式提交/拉取或做本地关联。命令如下 Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql
2019-08-13
git
git
分支
Git分支合并到master的相关命令
Git分支合并到master的相关命令先把修改提到dev Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql git add -A git commit -m 'dev' git pull git push 切换到本地master
2019-07-30
git
git
版本
分支
合并
Top
Linux报 “Cannot allocate memory” 内存不足的解决办法
增加虚拟内存的方法报错:“Cannot allocate memory”虚拟机安装时没有设置swap或者设置内存太小。 Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql dd if=/dev/zero of=/opt/swap bs=1024 coun
2019-07-30
linux
内存
linux
Top
Linux生成SSH密钥对
Linux生成ssh密钥对SSH key 可以让你在你的电脑和Code服务器之间建立安全的加密连接。 先执行以下语句来判断是否已经存在本地公钥:若存在,确保安全的情况下可以继续使用;或删除重新生成。如果你看到一长串以 ssh-rsa或 ssh-dsa开头的字符串, 你可以跳过 ssh-keygen的步骤。 Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinsca
2019-07-30
linux
git
ssh
密钥
总共
32
个记录,当前第
4
页
首页
上一页
下一页
尾页
跳到
页
确定
i#kxblog.com