- 博客(6)
- 资源 (3)
- 收藏
- 关注
原创 git删除中间某个commit
1.git log获取commit信息 2.git rebase -i (commit-id) commit-id 为要删除的commit的下一个commit号 3.编辑文件,将要删除的commit之前的单词改为drop 4.保存文件退出大功告成 5.git log查看
2017-01-18 11:30:23 27765 4
原创 golang url parameters中包含array
url parameter中这样定义:arrayname=…&arrayname=…package mainimport ( "fmt" "net/url")func main() { v := url.Values{} v.Set("name", "Ava") v.Add("friend", "Jess") v.Add("friend", "Sar
2017-01-16 14:54:29 3219
转载 .h .lib .dll文件作用和区别
简而言之(1).h是头文件,lib和dll都是库文件。(2)头文件包含声明,库文件则包含实现。(3)lib是静态链接时使用的,如果采用静态链接库,则lib包含了实际执行代码和符号表等,无论你愿不愿意,lib 中的指令都全部被直接包含在最终生成的 EXE 文件中了(因此比较耗费内存)。dll用于动态链接,该 dll 不必被包含在最终 EXE 文件中,EXE 文件执行时
2017-01-12 22:42:18 668
转载 rabbitmq的模型
AMQP 0-9-1 Model in Brief The AMQP 0-9-1 Model has the following view of the world: messages are published to exchanges, which are often compared to post offices or mailboxes. Exchanges then distribut
2017-01-12 18:48:17 939 3
原创 golang noblocking send
// Basic sends and receives on channels are blocking.// However, we can use `select` with a `default` clause to// implement _non-blocking_ sends, receives, and even// non-blocking multi-way `select`
2017-01-06 16:44:35 687
原创 git pull request下有多个commit
如果pull request没有合并,那么每次git commit 都会在该pr下生成一个新的commit,若是git commit --amend那么就是追加在上次的commit下。还有一种可能是本地代码不是最新的,然后提交git commit;git push,发现pr下包含了上次的commit,那么解决方案是拉取最新代码,然后rebase,再git push -f
2017-01-05 15:09:30 3825
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人