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 revision Previous revision
newdevs:git:commands [2020/10/20 15:58]
tmccanna [Git Commands]
newdevs:git:commands [2020/10/20 15:59] (current)
tmccanna [Git Commands]
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: 2020/10/20 15:59 by tmccanna

© 2008-2017 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a member of Software Freedom Conservancy.