$ git init Initialized empty Git repository in C:/labs2/.git/
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ vim labs2.txt
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ git add . warning: LF will be replaced by CRLF in labs2.txt. The file will have its original line endings in your working directory
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ git commit -m " my first commit " labs2.txt warning: LF will be replaced by CRLF in labs2.txt. The file will have its original line endings in your working directory [master (root-commit) d9f8c29] my first commit 1 file changed, 5 insertions(+) create mode 100644 labs2.txt
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ git branch b1
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ git branch b1 * master
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ git checkout b1 Switched to branch 'b1'
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (b1)
$ git branch * b1 master
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (b1)
$ git add .
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (b1)
$ git commit -m "Added line 1 in end of line 1" On branch b1 nothing to commit, working tree clean
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (b1)
$ git checkout master Switched to branch 'master'
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ git branch b1 * master
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ git add .
35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master)
$ git commit -m "Added line 5 in end of line 5" On branch master nothing to commit, working tree clean 35845@LAPTOP-IP8SV8AD MINGW64 /c/labs2 (master) $ git branch b1 * master