! Єдиний аспект для уточнення GIT вимовляється гіт, а не джіт. git diff compares the (i)ndex and the (w)ork tree; git diff HEAD compares a (c)ommit and the (w)ork tree; git diff --cached compares a (c)ommit and the (i)ndex; git diff HEAD:file1 file2 compares an (o)bject and a (w)ork tree entity; git diff --no-index a b compares two non-git things (1) and (2). http://ndpsoftware.com/git-cheatsheet.html#loc=workspace; https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging git-restore git-restore is a tool to revert non-commited changes. Non-commited changes are: a) changes in your working copy, or b) content in your index (a.k.a. staging area). git-restore can be used in three different modes, depending on whether you like to revert work in the working copy, in the index, or both. git restore [--worktree] <file> overwrites <file> in your working copy with the contents in your index. In other words, it reverts your changes in the working copy. Whether you sp...
Comments
Post a Comment