Editing Git commit

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  
Steps: <code>[[git add]]</code> -> <code>[[git commit]]</code> -> <code>[[git push]]</code>
+
  touch README.md
 
 
* <code>[[git commit --help]]</code>
 
 
 
== Basic example ==
 
  [[touch]] README[[.md]]
 
 
  [[git add]] README.md
 
  [[git add]] README.md
 
  git commit -m "Creating README"
 
  git commit -m "Creating README"
  [[git push -u origin master]]
+
  [[git push]] -u origin master
[[git commit -a]]
 
[[git commit --no-verify]]
 
  
== Examples ==
 
 
  git commit -m "your message"
 
  git commit -m "your message"
 
  [master (root-commit) 07e1897] PATH
 
  [master (root-commit) 07e1897] PATH
Line 21: Line 13:
 
  create mode 100644 file3.txt
 
  create mode 100644 file3.txt
  
git commit -m "test"
 
On branch main
 
[[nothing to commit]], working tree clean
 
 
[[git commit --amend --reset-author]]
 
 
=== git status===
 
 
  [[git status]]
 
  [[git status]]
 
  On branch master
 
  On branch master
Line 55: Line 40:
 
   
 
   
 
  nothing to commit, working tree clean
 
  nothing to commit, working tree clean
 +
  
 
== Related terms ==
 
== Related terms ==
 +
* [[Make Local Changes and Update remote Repositories]]
 
* <code>[[git config --global --edit]]</code>
 
* <code>[[git config --global --edit]]</code>
 
* <code>[[aws codepipeline]]</code>
 
* <code>[[aws codepipeline]]</code>
* <code>[[git cz]]</code>
+
* [[git cz]]
* <code>[[git remote add]]</code>
 
* <code>[[git commit --help]]</code>
 
* [[git commit -an]]
 
* <code>[[pre-commit]]</code>
 
 
 
== Activities ==
 
* [[Make Local Changes and Update remote Repositories]]
 
  
 
== See also ==
 
== See also ==
 
* <code>[[docker container]] commit</code>
 
* <code>[[docker container]] commit</code>
* {{git commit}}
 
 
* {{git}}
 
* {{git}}
  
 
[[Category:git]]
 
[[Category:git]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: