git bisect - это мощный инструмент, который помогает найти точный коммит, где была введена ошибка, используя бинарный поиск.
- Запустите процесс bisect:
git bisect start
| # Sometimes when you run sorry-cypress | |
| # and have misconfigured UI which has | |
| # http://localhost:4000 as baseUrl for API backend | |
| # and need to create new project ASAP | |
| # without digging into docs and sources | |
| curl 'http://<your_ip_address>:4000/' \ | |
| -H 'sec-ch-ua: "Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"' \ | |
| -H 'accept: */*' \ | |
| -H 'Referer: http://<your_ip_address>:8080/' \ |
| import * as fs from 'fs'; | |
| import * as path from 'path'; | |
| const cssDir = 'src'; | |
| const outputFile = 'src/vars.css'; | |
| const hexRegex = /#([a-fA-F0-9]{3,6})/g; | |
| const rgbRegex = /rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)/g; | |
| const rgbaRegex = /rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*\d*\.?\d+\s*\)/g; |