Skip to main content

Site links

  • Agency for web development
  • Content Management with Primer
  • Open Source Leadership with Drupal
Language
DeutschEnglish

Secondary navigation

  • Contact
Agentur für Webentwicklung

Hauptnavigation

  • References
  • Services
  • Blog
  • About us

Site links

  • Agency for web development
  • Content Management with Primer
  • Open Source Leadership with Drupal
close

Breadcrumb

  1. Home
  2. Blog
  3. Techblog Archive

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.

About MD Systems

MD Systems, headquartered in Zurich, is a unique team of international open source initiative leaders for the Drupal content management system.

With our experts for software architecture and design and our industry solutions, you digitize your organization successfully and efficiently.

MD Systems GmbH

Hermetschloostrasse 77, CH-8048 Zürich

Schweiz

+41 44 500 45 95

[email protected]

Fußzeile

  • Contact
  • Impressum
  • Data protection
To top

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