100 Días de DevOps: Día 30

Guía para reiniciar el historial de Git con hard reset y push forzado, dejando solo initial commit y add data.txt. Consejos de DevOps y CI/CD en AWS/Azure; descubre cómo Q2BSTUDIO ayuda con software a medida.

3 sept 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

100 Days of DevOps Day 30 Reiniciando el historial de Git

Como parte de una tarea de limpieza para el equipo de desarrollo de la aplicación Nautilus, restablecí el historial de Git del repositorio ubicado en /usr/src/kodekloudrepos/games en el servidor Storage del Stratos DC. El objetivo fue dejar únicamente dos commits válidos: initial commit y add data.txt file, eliminando los commits de prueba tanto en local como en el remoto.

Paso 1 Navegar al repositorio cd /usr/src/kodekloudrepos/games

Paso 2 Revisar el historial para localizar el commit add data.txt file sudo git log --oneline Identifiqué el hash del commit objetivo: 6aea5f3

Paso 3 Resetear con hard reset al commit identificado sudo git reset --hard 6aea5f3

Paso 4 Publicar los cambios en remoto forzando la historia sudo git push origin master --force

Resultado El historial de Git se limpió correctamente y ahora solo contiene los dos commits requeridos: initial commit y add data.txt file. La limpieza se reflejó tanto en el repositorio local como en el remoto.

En Q2BSTUDIO somos una empresa de desarrollo de software que diseña y mantiene aplicaciones a medida y software a medida con foco en calidad, automatización y seguridad. Integramos prácticas de DevOps para flujos de trabajo fiables, auditorías de cambios y despliegues consistentes. Si buscas optimizar tus pipelines, gobernanza de repositorios o escalar tus plataformas, podemos ayudarte con un enfoque integral que cubre inteligencia artificial, ciberseguridad, servicios cloud aws y azure, servicios inteligencia de negocio, ia para empresas, agentes IA y power bi.

Conoce nuestra propuesta para crear productos robustos y escalables en desarrollo de aplicaciones y software a medida y complementa tu estrategia con nuestros servicios cloud en AWS y Azure para una infraestructura preparada para CI CD, observabilidad y alta disponibilidad.

Consejo extra de DevOps Antes de reescribir historia con git reset --hard y push --force, confirma con tu equipo y protege la rama principal con políticas para evitar sobrescrituras no deseadas. Considera usar etiquetas previas al reseteo para recuperación rápida y combina esta práctica con revisiones de seguridad y cumplimiento como parte de tu estrategia de ciberseguridad.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat