From bd67d17da946f59a4f8fba9af399a92e8affcbcb Mon Sep 17 00:00:00 2001 From: "Mauro Rosero P." Date: Wed, 12 Mar 2025 20:20:46 -0500 Subject: [PATCH] =?UTF-8?q?[IMPROVED]=20Inicializar=20proyecto=20con=20git?= =?UTF-8?q?=20y=20a=C3=B1adir=20commit=20inicial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Añadir inicialización automática de git al crear nuevo proyecto - Incluir commit inicial con etiqueta [INIT] según estándares del proyecto - Mantener estructura y navegación de directorios durante el proceso 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- bin/project_create.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/project_create.sh b/bin/project_create.sh index 8967ce2..bec2d94 100755 --- a/bin/project_create.sh +++ b/bin/project_create.sh @@ -283,6 +283,10 @@ function create_project_structure() { mkdir -p "$PROJECT_PATH/docs" mkdir -p "$PROJECT_PATH/src" + # Inicializar repositorio git + cd "$PROJECT_PATH" + git init + # Crear archivo setup.md básico cat > "$PROJECT_PATH/docs/setup.md" << EOF # Configuración del Entorno de Desarrollo @@ -767,6 +771,11 @@ EOF # Guardar información de la licencia en un archivo echo "$PROJECT_LICENSE" > "$PROJECT_PATH/.license" + # Hacer commit inicial del proyecto + cd "$PROJECT_PATH" + git add . + git commit -m "[INIT] Proyecto $PROJECT_NAME" + # Mostrar mensaje de éxito dialog_error_box "$head_info" "${proj_011}\n$PROJECT_PATH" }