多人开发,git版本控制,我发现有一个人经常会提交这样的目录上来,因为对方修改了a/index.js,提交上来后,在a文件夹下多出来一个dist/index.dev.js,内容如下:
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.numberB0 = numberB0;
exports.getSevenDays = getSevenDays;
exports.getSevenDays2 = getSevenDays2;
exports.dateChange = dateChange;
exports.monthChange = monthChange;
exports.timeChange = timeChange;
exports.timeHMChange = timeHMChange;
exports.dateTimeChange = dateTimeChange;
exports.getNowTime = getNowTime;
exports.dateQjChange = dateQjChange;
exports.getNowTime2 = getNowTime2;
exports.getNewNum = getNewNum;
exports.getPageHeight = getPageHeight;
exports.getPageWidth = getPageWidth;
exports.cascaderBugRepair = cascaderBugRepair;
exports.cascaderShowName = cascaderShowName;
exports.getMd5 = getMd5;
exports.getPower = getPower;
exports.getPower2 = getPower2;
exports.fileIPChange = fileIPChange;
exports.passwordHx = passwordHx;
exports.getMonthDays = getMonthDays;
exports.antModalIco = antModalIco;
exports.NumberMul = NumberMul;
exports.getStr = getStr;
exports.filterOption = filterOption;
exports["default"] = void 0;
var _config = _interopRequireDefault(require("../../../api/config"));
var _crypto = _interopRequireDefault(require("crypto"));
var _power = _interopRequireDefault(require("../config/power"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
....
怎么能阻止这种情况发生。
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…