Iniciar sesión Registro
Anuncios
Tu espacio publicitario
Reserva este slot exclusivo para el periodo elegido.
Comprar publicidad →
Logotipo de la comunidad de telegram - Node.js Recipes
Añadido 14 jul. 2024

Node.js Recipes

@node_recipes
Número de suscriptores: 3 144
Fotos: 173
Videos: 7
Enlaces: 610
Descripción:
You can view and join @node_recipes right away.
Fuente

Node.js Recipes | Як працює git autocorrect?Сьогодні порада для новачків. Якщо у вас баг...

Logotipo de la comunidad de telegram - Node.js Recipes Node.js Recipes @node_recipes
3 600 Vistas/Alcance 2024-07-04 06:02 Mensaje №747
Як працює git autocorrect?Сьогодні порада для новачків. Якщо у вас багато опечаток у git і ви не використовуєте git alias, рекомендую звернути увагу на help.autocorrect. Якщо є тільки одна схожа команда, git виконує її автоматично. Якщо ж є кілька варіантів, він перераховує їх і зупиняється.Приклади:$ git com -m "Some awesome work"git: 'com' is not a git command. See 'git --help'.The most similar commands are commit column# Immediate autocorrectgit config --global help.autocorrect immediategit sttaus # Runs `git status` immediately# Prompt for confirmation before autocorrectgit config --global help.autocorrect promptgit sttaus # Asks for confirmation before running `git status`# Disable autocorrectgit config --global help.autocorrect nevergit sttaus # Does not autocorrect# Enable autocorrect with a 1 second delaygit config --global help.autocorrect 10git sttaus # Runs `git status` instead, after a 1 second delayПодібна функція є у zsh: CORRECT/CORRECT_ALL з prompt-виправленнями. Автоматичні виправлення на рівні системи, а не окремих команд, дуже ризиковані, тому такого не існує.На завершення нагадаю, що у git tips є багато порад.