, . , . .
, , . - , . , , ( ) , , , .
: , . , , , . , :
:
Initialized empty Git repository in /home/hardaker/tmp/h/test/.git/
[master (root-commit) 9617f27] new file
1 file changed, 1 insertion(+)
create mode 100644 file
:
Switched to a new branch 'new-branch'
:
# (new-branch): echo "file2" > file2
# (new-branch): git add file2
P# (new-branch +): git commit -m "new file2" file2
[new-branch 04f3fdf] new file2
1 file changed, 1 insertion(+)
create mode 100644 file2
:
Switched to branch 'master'
[master 3b3de88] added b
1 file changed, 1 insertion(+)
, :
* 3b3de88 (HEAD, master) added b
| * 04f3fdf (new-branch) new file2
|/
* 9617f27 new file
.
new-branch, ,
:
Switched to branch 'new-branch'
file | 1 +
1 file changed, 1 insertion(+)
First, rewinding head to replay your work on top of it...
Applying: new file2
,
.
# (new-branch): git log --oneline --graph --all --decorate
* d9918d4 (HEAD, new-branch) new file2
* 3b3de88 (master) added b
* 9617f27 new file
, , , ,
, Git
. .