I'll collect some random git tips here, in case I forget how to do something.

  • Revert a file in your working copy to what it is on the current branch; undo changes for this file:
    git checkout filename
    (Git checkout is also used to switch branches; if there is a branch with the same name as filename, you must use git checkout -- filename)

-- JasonDhiaMansour - 2015-11-17


This topic: Sandbox > TWikiUsers > JasonDhiaMansour > JasonDhiaMansourSandbox > GitCheatSheet
Topic revision: r2 - 2015-11-25 - JasonDhiaMansour
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback