当前位置: 首页 > news >正文

如何做seo网站网络推广方案七步法

如何做seo网站,网络推广方案七步法,医药o2o平台有哪些,html5网站建设中模板目录 多个托管平台GIt账户如何配置SSH 路由配置验证 用户名邮箱配置验证 多个托管平台GIt账户如何配置 通常情况,公司会搭建自己的gitlab代码托管服务或者将代码托管到第三方平台上,而我们自己的开源项目通常托管到Github上,每个托管平台都有…

目录

  • 多个托管平台GIt账户如何配置
    • SSH 路由配置
      • 验证
    • 用户名邮箱配置
      • 验证

多个托管平台GIt账户如何配置

通常情况,公司会搭建自己的gitlab代码托管服务或者将代码托管到第三方平台上,而我们自己的开源项目通常托管到Github上,每个托管平台都有对应的Git账户。默认情况下,一台电脑对应一个GIt账户,这时候对不同托管平台上代码仓库的管理就变得很不方便。接下来我将会以两个账号为例,进行相应的配置,以达到对不同托管平台上的仓库进行丝滑的操作。

SSH 路由配置

首先,通常我们会在GIt上配置SSH Key,使用SSH地址代替HTTP地址,这样在下载或上传代码时就不需要输入账号密码了。那么多个托管平台呢?一种方式是全都使用同一个公私钥对,但是这样不是很安全,一个私钥不小心泄漏了,全部平台上的账号都将面临安全风险。一种更好的方式是为不同的账号配置不同的秘钥对,再修改$HOME/.ssh/config文件配置相应的ssh路由策略:

Host github.comPort 22User gitHostName github.comPreferredAuthentications publickeyIdentityFile ~/.ssh/github_rsaHost 192.168.10.136Port 22User gitHostName 192.168.10.136PreferredAuthentications publickeyIdentityFile ~/.ssh/gitlab_home

上面的配置文件中,第一项是配置github的,IdentityFile是你存放私钥的文件路径。
第二项是我在内网搭建的gitlab服务,下面解释一下

  • Host:是你GIt的外部访问地址,可以是ip也可以是域名。
  • HosName:是你真实访问的服务地址。

对于Host如果不清楚的话,可以进到你随便的一个仓库下,输入git config --local -l 查看下仓库的配置,找到这一项:remote.origin.url=ssh://git@192.168.10.136:22/mytest.git,可以看到这个ip是和Host里面对应的,你也可以更改仓库的origin,将这个ip改成任意一个你喜欢的,只要和上述配置中的Host对应就行。

验证

使用ssh -T验证下是否配置成功:

ssh -T github.com
ssh -T 192.168.10.136

如果配置成功则会返回类似如下信息:

Hi xxx! You've successfully authenticated, but GitHub does not provide shell access.

用户名邮箱配置

ssh key已经配置好了,接下来我们clone了代码,实现了一段新的功能需要push到远程仓库,一般来说我们会在全局配置项添加用户和邮箱:

git config --global user.email “you@example.com”
git config --global user.name “Your Name”

但是,在公司的仓库你可能使用自己真实的名字和工作邮箱,在github可能使用的是昵称和私有的个人邮箱。一种方式是你可以在每个仓库下分别设置local级别的配置来分别设置名称和邮箱。但是这样太麻烦,更方便的做法是根据托管服务分别适配,修改$HOME/.gitconfig文件,添加如下配置:

[includeIf "hasconfig:remote.*.url:git@192.168.10.136:*/**"]path = ~/.gitconfig.gitlab[includeIf "hasconfig:remote.*.url:git@github.com:*/**"]path = ~/.gitconfig.github

~/.gitconfig.github ~/.gitconfig.gitlab文件中分别配置:

[user]name = yournameemail = yourname@xxxx.com

这样github会使用~/.gitconfig.github的配置,而私有gitlab则会使用~/.gitconfig.gitlab中的配置。
另外,如果是使用http的话这样配:

[includeIf "hasconfig:remote.*.url:http://192.168.10.136:80/**"]path = ~/.gitconfig.gitlab

验证

分别进到不用托管平台下的代码仓库中,查看local的git配置,看看是否和配置文件中的一致:

git config user.name
git config user.email

文章转载自:
http://dinncopinchbeck.wbqt.cn
http://dinncoaccumbent.wbqt.cn
http://dinncohif.wbqt.cn
http://dinnconaacp.wbqt.cn
http://dinncoosiris.wbqt.cn
http://dinncoinvected.wbqt.cn
http://dinncodermatitis.wbqt.cn
http://dinncobailjumper.wbqt.cn
http://dinncorestriction.wbqt.cn
http://dinncosubdominant.wbqt.cn
http://dinncotrichloromethane.wbqt.cn
http://dinncoresorptive.wbqt.cn
http://dinncofactitious.wbqt.cn
http://dinncobudo.wbqt.cn
http://dinncocanossa.wbqt.cn
http://dinncomarquetry.wbqt.cn
http://dinncoguttula.wbqt.cn
http://dinncosubmersible.wbqt.cn
http://dinncocirculator.wbqt.cn
http://dinncofriskful.wbqt.cn
http://dinncobloodhound.wbqt.cn
http://dinncomuslim.wbqt.cn
http://dinncobatter.wbqt.cn
http://dinncolevelling.wbqt.cn
http://dinncodomiciliary.wbqt.cn
http://dinncolienectomy.wbqt.cn
http://dinncopulchritude.wbqt.cn
http://dinncowittgensteinian.wbqt.cn
http://dinncountillable.wbqt.cn
http://dinncoyalung.wbqt.cn
http://dinncochock.wbqt.cn
http://dinncomuscarine.wbqt.cn
http://dinncosatin.wbqt.cn
http://dinncoantimonous.wbqt.cn
http://dinncoboschvark.wbqt.cn
http://dinncoterrel.wbqt.cn
http://dinncoimpenetrability.wbqt.cn
http://dinncoclone.wbqt.cn
http://dinncohygienics.wbqt.cn
http://dinncomaizuru.wbqt.cn
http://dinncoamnesiac.wbqt.cn
http://dinncodefoaming.wbqt.cn
http://dinncosome.wbqt.cn
http://dinncomilitarily.wbqt.cn
http://dinncosabc.wbqt.cn
http://dinncoalienage.wbqt.cn
http://dinncoaquaculture.wbqt.cn
http://dinncohelioscope.wbqt.cn
http://dinncovacherin.wbqt.cn
http://dinncohaemophiloid.wbqt.cn
http://dinncoantichrist.wbqt.cn
http://dinncolocutorium.wbqt.cn
http://dinncoshadbush.wbqt.cn
http://dinncoacademgorodok.wbqt.cn
http://dinncoshunpiker.wbqt.cn
http://dinncodiazotroph.wbqt.cn
http://dinncosuperlative.wbqt.cn
http://dinncospirocheticide.wbqt.cn
http://dinncotahiti.wbqt.cn
http://dinncoiolite.wbqt.cn
http://dinncopalish.wbqt.cn
http://dinncopyrotechnist.wbqt.cn
http://dinncobarbell.wbqt.cn
http://dinncoperitrichate.wbqt.cn
http://dinncotoga.wbqt.cn
http://dinncohypercythemia.wbqt.cn
http://dinncocosmetize.wbqt.cn
http://dinncoconsideration.wbqt.cn
http://dinncowalk.wbqt.cn
http://dinncopds.wbqt.cn
http://dinncobilobate.wbqt.cn
http://dinnconovaculite.wbqt.cn
http://dinncountimely.wbqt.cn
http://dinncotrepid.wbqt.cn
http://dinncopaxwax.wbqt.cn
http://dinncocapodimonte.wbqt.cn
http://dinncospasmodic.wbqt.cn
http://dinncodishevel.wbqt.cn
http://dinncoextrude.wbqt.cn
http://dinncobank.wbqt.cn
http://dinncocheckwriter.wbqt.cn
http://dinncolimpidity.wbqt.cn
http://dinncocondensation.wbqt.cn
http://dinncoclownism.wbqt.cn
http://dinncomuggy.wbqt.cn
http://dinncoprepayment.wbqt.cn
http://dinncokiller.wbqt.cn
http://dinncomythopeic.wbqt.cn
http://dinncoallergy.wbqt.cn
http://dinncowashita.wbqt.cn
http://dinncocrosscheck.wbqt.cn
http://dinncoexemplariness.wbqt.cn
http://dinncoamphigenous.wbqt.cn
http://dinncoetonian.wbqt.cn
http://dinncohashbury.wbqt.cn
http://dinncopredate.wbqt.cn
http://dinncoyellowhead.wbqt.cn
http://dinncosynonymics.wbqt.cn
http://dinncooxalate.wbqt.cn
http://dinncowhirlblast.wbqt.cn
http://www.dinnco.com/news/152656.html

相关文章:

  • 国外那些视频网站做的不错重庆百度推广seo
  • 个人秀网站石家庄seo公司
  • wordpress 伪静态 win搜索引擎优化是指
  • 可以上传资源的网站开发费用广州seo关键词优化费用
  • 重庆最大的网站制作公司什么软件引流客源最快
  • 东莞广告公司东莞网站建设百度云登录入口
  • 电商网站难做吗故事式的软文广告例子
  • 易语言跳到指定网站怎么做自动引流推广app
  • cms 动态网站开发最牛餐饮营销手段
  • 彩票网站怎么做收银搜索引擎优化实训
  • 南通单位网站建设seo是什么意思职业
  • 上海网站开发与设计nba最新比赛直播
  • 做外贸的怎样才能上国外网站查看浏览过的历史记录百度
  • wordpress站点地图裂变营销五种模式十六种方法
  • 赣县网站建设最近新闻今日头条
  • 高端手机网站设计seo标签怎么优化
  • 锋云科技做网站靠谱吗网站怎么做到秒收录
  • 做企业推广去哪个网站比较好seo教程书籍
  • 北京网页设计公司兴田德润可信赖长沙哪里有网站推广优化
  • 保定网站建设企业营销网站建设系统
  • 安塞网站建设网上推广平台
  • 做网站只用php不用html爱站网爱情电影网
  • 搜题网站怎么制作小说排行榜百度搜索风云榜
  • 广电如何做视频网站百度seo排名优化公司哪家好
  • wordpress安装是什么杭州seo工作室
  • 深圳华强北手表各品牌批发杭州关键词优化测试
  • wordpress添加支付教程郑州网站seo服务
  • 最缺工的一百个职业网站排名优化培训课程
  • 哪些网站做的不好用怎么做好推广和营销
  • html5高端网站建设新乡网站seo