User Tools

Site Tools


newdevs:git:commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
newdevs:git:commands [2020/10/20 15:58] – [Git Commands] tmccannanewdevs:git:commands [2020/10/20 15:59] – [Git Commands] tmccanna
Line 45: Line 45:
   * ''git reset <nowiki>--hard HEAD^</nowiki>'' --> remove last commit   * ''git reset <nowiki>--hard HEAD^</nowiki>'' --> remove last commit
   * ''git rm badfile.txt'' --> delete a file (if the file is being tracked, be sure to add a commit message indicating the file has been deleted)   * ''git rm badfile.txt'' --> delete a file (if the file is being tracked, be sure to add a commit message indicating the file has been deleted)
-  * ''git show <hash>'' --> display the commit text and differences+  * ''git show <hash>'' --> display the commit text and differences of the specified commmit
   * ''git show <nowiki>--stat</nowiki>'' --> see what your commit will look like before you push it   * ''git show <nowiki>--stat</nowiki>'' --> see what your commit will look like before you push it
   * ''git status'' --> display status of current branch   * ''git status'' --> display status of current branch
newdevs/git/commands.txt · Last modified: 2024/03/25 16:35 by tmccanna

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.