Direkt zum Inhalt
  • Agentur für web development
  • Content Management mit Primer
  • Open Source Leadership mit Drupal
    Sprache
  • Deutsch
  • English
  • Kontakt
Logo der Website
Agentur für Webentwicklung
  • Referenzen
  • Angebot
  • Aktuelles
  • Über uns
  • Agentur für web development
  • Content Management mit Primer
  • Open Source Leadership mit Drupal
close
×

Info message

This content has not been translated to Deutsch yet. You are reading the English version.

Adding something to the last git commit

1. September 2011
Sascha Grossenbacher Porträt
Sascha Grossenbacher

git commit --amend

One way to deal with this is to create a new commit and then merge them together with git rebase -i. That however involves multiple steps, requires editing files and so on.

A much faster way is to use the --amend option for git commit. that automatically updated the most recent commit instead of creating a new one. You will be asked to optionally update the commit message and after confirming that, the commit will be updated.

But just like git rebase -i, remember to only use this before the commit has been pushed to any remote location that might also be used by others.

Hol Dir den Newsletter

Jetzt für unseren Newsletter anmelden und monatlich wichtige Insights aus der Branche und MD Systems erhalten. 

Zur Anmeldung

Über MD Systems

MD Systems mit Firmensitz Zürich ist ein einzigartiges Team von internationalen Open Source Initiative Leadern für das Content Management System Drupal.

Wir begleiten Sie von der Idee und Konzeption über die Realisation bis hin zur Einführung, Betrieb und laufenden Optimierung.

MD Systems GmbH

Hermetschloostrasse 77, CH-8048 Zürich

Schweiz

+41 44 500 45 95

[email protected]

  • Kontakt
  • Impressum
  • Datenschutz
To top

© Copyright 2023 - 2024 MD Systems GmbH. Alle Rechte vorbehalten. Erstellt mit PRIMER - powered by Drupal.