#git bot interface
History of !checkout
- checkout does two different things! (1) no file/path argument: 'git checkout <ref>' = switches to a branch or commit. Uncommitted changes are carried over; if they don't apply cleanly the whole operation rolls back. (2) 'git checkout [<commit>] -- <path>' = overwrites the given files/paths with different versions, from <commit> or (if not given) from the index.
By jast at 2015-09-02 14:09:14
- checkout does two different things! (1) no file/path argument: 'git checkout <ref>' = switches to a branch or commit, possibly detaching HEAD (see !detached). Uncommitted changes are carried over, if they don't apply cleanly the whole operation rolls back. (2) 'git checkout [<commit>] -- <path>' = overwrites the given files/paths with different versions, from <commit> or (if not given) from the index. Also updates the index accordingly.
By jast at 2015-09-02 14:08:19