fatal: You are not currently on a branch. 解决 注:亲试,这种方法会把本地的修改给冲掉,所以事先一定要备份下文档,之后覆盖,重新上传或pull即可;解决方法: 首先git checkout -b temp 其次git checkout master 即可恢复 ...
分类:
其他好文 时间:
2019-02-22 00:47:51
阅读次数:
883
查看所有分支 git branch 切换本地分支 git checkout xxx分支名 切换远程分支 git checkout origin/远程分支名 创建并切换至该本地分支 git checkout -b xxx新建本地分支名 取消本地merge (有冲突) git merge --abort ...
分类:
其他好文 时间:
2019-02-20 17:28:15
阅读次数:
230
本文作者:CODING 用户 廖石荣 持续集成的概念 "持续集成(Continuous integration,简称 CI)是一种软件开发实践,即团队开发成员经常集成他们的工作,通常每个成员每天至少集成一次,也就意味着每天可能会发生多次集成。每次集成都通过自动化的构建(包括编译,发布,自动化测试)来 ...
分类:
编程语言 时间:
2019-02-19 10:18:53
阅读次数:
266
https://blog.csdn.net/DeMonliuhui/article/details/78510678 前言有的时候我们需要跟别人合作进行开发,然后分别使用不同的Git分支,等项目完成时,需要进行代码合并,就需要知道Git如何合并远程分支。 步骤假设你本地在使用的分支为a(master ...
分类:
其他好文 时间:
2019-02-18 23:00:29
阅读次数:
200
git branch :查看分支 git branch +分支名 :创建新分支 git checkout +分支名:切换到该分支上 ...
分类:
其他好文 时间:
2019-02-14 22:29:59
阅读次数:
205
1. sudo执行脚本找不到变量 当普通用户下,设置并export一个变量,然后利用sudo执行echo命令,能得到变量的值,但是如果把echo命令写入脚本,然后再sudo执行脚本,就找不到变量,未能获取到值,如题情况如下: 具体原因还有其他解决方案见http://blog.sina.com.cn/ ...
分类:
系统相关 时间:
2019-02-14 15:10:00
阅读次数:
193
解决办法 运行: git fetch git brance -rgit fetch 命令简介及扩展 默认情况下,git fetch取回所有分支(branch)的更新。如果只想取回特定分支的更新,可以指定分支名。 git fetch <远程主机名> <分支名>比如,取回origin主机的master分 ...
分类:
其他好文 时间:
2019-02-13 15:42:25
阅读次数:
273
hg命令跟git命令大同小异 hg version 查看hg版本 hg clone url 克隆代码仓库 hg branch newBranch 创建分支 hg update otherBranch 切换到其他分支 hg update -r versionNum 切换到指定版本号 hg pull 拉 ...
分类:
其他好文 时间:
2019-02-13 10:40:21
阅读次数:
184
"Prime Distance" Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 25099 Accepted: 6567 Description The branch of mathematics called number t ...
分类:
其他好文 时间:
2019-02-13 00:25:11
阅读次数:
153
execute typical instruction 1/1,000,000,000 sec = 1 nanosec fetch from L1 cache memory 0.5 nanosec branch misprediction 5 nanosec fetch from L2 cache ...
分类:
移动开发 时间:
2019-02-11 21:29:02
阅读次数:
174