Branch checking moves the local pointer HEADso that it points to the same commit as the branch reference. For instance:
mybranch (C ):
HEAD
|
V
master mybranch
| |
V V
C1 -------> C2 -------> C3
git checkout master:
HEAD
|
V
master mybranch
| |
V V
C1 -------> C2 -------> C3
, , . , , .
" ", , , C3 . , , master, (C3). master git, , reset SHA1 , master, .
Edit:
. , - git. Committing , Subversion. git add filename , filename - . , git commit.
- git commit -a, . git add. : git commit -a . , , git add.
, git push, . . Subversion, , - .