作为一个码农,保管好自己的成果很重要,今天一不小心,辛辛苦苦写的android项目飞了,准备把尘封已久的github重新用起来1新建一个分支2.在本地创建一个文件夹3发现错误,删除创建的分支 git remote rm 这里 name=origin4.添加一分支git remote add ori....
分类:
其他好文 时间:
2014-08-29 22:36:28
阅读次数:
347
git 使用:总体分两种情况: 一种是先clone远程库到本地,然后添加要上传的文件到本地库,依次执行,add commit ,push命令。 一种是直接在本地要上传的目录下,执行git init ,然后remote命令建立于远程仓库的关系,在add ,commit,push命令 安装:...
分类:
其他好文 时间:
2014-08-29 17:31:08
阅读次数:
181
场景1:类库独立调试。 方法:可以将类库项目修改成控制台程序,然后增加一个静态的main函数的方式来调试场景2:程序需要连接数据库,本机调试的时候因为权限问题无法连接上数据库,只能放在服务器上跑 方法:在服务器上开启远程,把vs中的Remote Debugger 文件夹拷贝到服务器,然后...
分类:
其他好文 时间:
2014-08-28 23:53:09
阅读次数:
272
LeetCode: Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is...
分类:
其他好文 时间:
2014-08-28 22:41:16
阅读次数:
243
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-08-28 21:01:06
阅读次数:
179
RPC(Remote Procedure Call Protocol)——远程过程调用协议,它是一种通过网络从远程计算机程序上请求服务,而不需要了解底层网络技术的协议。RPC协议假定某些传输协议的存在,如TCP或UDP,为通信程序之间携带信息数据。在OSI网络通信模型中,RPC跨越了传输层和应用层。...
分类:
其他好文 时间:
2014-08-27 10:52:57
阅读次数:
217
git 使用技巧总结说明: 本地repo已经有啦,对应的远程repo 为tiger, 本地分支为master。问题一:当拉取代码的remote repo仓库为tiger, 而现在要将修改push到remote repo的 develop分支该如何?思路:拉取新的remote_develop_repo...
分类:
其他好文 时间:
2014-08-26 11:20:36
阅读次数:
203
Mirror and Light
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 821 Accepted Submission(s): 387
Problem Description
The light trav...
分类:
其他好文 时间:
2014-08-26 09:54:55
阅读次数:
187
Redis 服务器Remote Dictionay Server Redis是一个key-value持久化产品,通常被称为数据结构服务器。Redis的key是string类型;value可以是string、hash、list、set、sorted set等类型;实际上,Redis内部会将key和va...
分类:
其他好文 时间:
2014-08-25 20:46:54
阅读次数:
673
使用scp命令可以实现两台Linux主机之间的文件复制,基本格式是:scp [可选参数] file_source file_target1. 复制文件命令格式:scp local_file remote_username@remote_ip:remote_folderscp local_file r...
分类:
系统相关 时间:
2014-08-25 09:51:04
阅读次数:
247