GithubHelp home page GithubHelp logo

guochengfeng.github.io's Introduction

guochengfeng.github.io

乘风破浪——一个前端小白的长修路。。。

Hexo + Github的个人博客。。

guochengfeng.github.io's People

Contributors

guochengfeng avatar

Watchers

 avatar

guochengfeng.github.io's Issues

同时访问内外网

网线连接内网网口

用于访问内网

设置固定IP地址

IP地址、子网掩码、DNS,默认网关为空;

img

无线网连接有外网的WIFI

用于访问外网

为内网添加路由

管理员身份执行下面语句或.bat文件

toDCN.bat里语句:

C:\WINDOWS\system32\ROUTE.EXE  ADD  132.0.0.0  MASK  255.0.0.0  132.XXX.XXX.1 -p

Git分支合并忽略某个文件

由于生产master和测试分支test的环境配置文件会存在不同,且两者需要单独独立存在,所以两分支合并时不能将相关文件合并。

比如,同一个配置文件application.ymlmaster分支使用productiontest分支使用test

  1. 创建自定义merge driver
git config --global merge.ours.driver true
  1. 创建.gitattributes文件

test分支上创建.gitattributes文件,并且在文件中写上不merge的文件全路径名。

echo 'XXXX/application.yml merge=ours' >> .gitattributes
  1. 提交.gitattributes
git add .gitattributes
git commit -m '合并test分支到master时忽略XXXX/application.yml' 

然后就可以在test分支修改文件了。

  1. 合并merge

避坑:
.gitattribute生效是有条件的,需要test分支的XXXX/application.yml文件修改时间早于master分支的相同文件修改时间。
所以修改完test分支的文件后需要切换到master分支也修改下相同文件,然后再执行merge操作。

切换到master,执行merge:

git merge test

test分支上的XXXX/application.yml就不会被合并了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.