Skip to content

Instantly share code, notes, and snippets.

View yeungeek's full-sized avatar
:octocat:
Focusing

yeungeek yeungeek

:octocat:
Focusing
View GitHub Profile
@yeungeek
yeungeek / gist:85f81d5e73ff178e0f3a
Created September 15, 2014 09:41
gradle_eclipse
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
apply plugin: 'android-library'
@yeungeek
yeungeek / gist:1024.md
Created June 26, 2014 08:55
国外Android开发者
@yeungeek
yeungeek / multi_accout.md
Last active September 1, 2021 01:34
Git多帐号配置

在使用git,gitlab的时候,会在.ssh目录下生成对应rsa文件,那如果是有多个配置,该怎么处理?

如何生成ssh密钥,可以参考 generating-ssh-keys
##1. 多帐号配置 需要在.ssh目录下,增加config配置,config可以配置多个git的帐号

 #Host myhost(这里是自定义的host简称,以后连接远程服务器就可以用命令ssh myhost)[注意下面有缩进]
     #User 登录用户名(如:git)
     #HostName 主机名可用ip也可以是域名(如:github.com或者bitbucket.org)
     #Port 服务器open-ssh端口(默认:22,默认时一般不写此行