Sei sulla pagina 1di 4

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex

$ git init
Initialized empty Git repository in C:/Users/stavy/Desktop/ex/.git/

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ mkdir ex^C

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ cd ./ex1
bash: cd: ./ex1: No such file or directory

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ cd ./ex
bash: cd: ./ex: No such file or directory

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ touch todolist.txt

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git add todolist.txt

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git status
On branch master

No commits yet

Changes to be committed:
(use "git rm --cached <file>..." to unstage)

new file: todolist.txt

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --global git.name "Stavy"

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.required=true
filter.lfs.process=git-lfs filter-process
credential.helper=manager
git.name=Stavy
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --global git.mail = svenioti@gmail.com

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.required=true
filter.lfs.process=git-lfs filter-process
credential.helper=manager
git.name=Stavy
git.mail==
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --global git.mail = svenioti@gmail.com

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.required=true
filter.lfs.process=git-lfs filter-process
credential.helper=manager
git.name=Stavy
git.mail==
git.mail==
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --global user.mail = svenioti@gmail.com

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.required=true
filter.lfs.process=git-lfs filter-process
credential.helper=manager
git.name=Stavy
git.mail==
git.mail==
user.mail==
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --global user.email = "svenioti@gmail.com"

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.required=true
filter.lfs.process=git-lfs filter-process
credential.helper=manager
git.name=Stavy
git.mail==
git.mail==
user.mail==
user.email==
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config user.email "svenioti@gmail.com"

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.required=true
filter.lfs.process=git-lfs filter-process
credential.helper=manager
git.name=Stavy
git.mail==
git.mail==
user.mail==
user.email==
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
user.email=svenioti@gmail.com

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git config user.email "svenioti@gmail.com"

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git commit -m "morning to-dos"
[master (root-commit) f82230a] morning to-dos
1 file changed, 3 insertions(+)
create mode 100644 todolist.txt

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git log
commit f82230aad64fda9b8f840a09b7c1c6bee95b70c1 (HEAD -> master)
Author: Stavy V <svenioti@gmail.com>
Date: Sat Oct 21 16:23:12 2017 +0300

morning to-dos

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git diff todolist.txt
diff --git a/todolist.txt b/todolist.txt
index e0a2d46..2c50a3d 100644
--- a/todolist.txt
+++ b/todolist.txt
@@ -1,3 +1,3 @@
-make coffee
+make tea
prepare clothes
-feed the fish
+feed Christina

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: todolist.txt

no changes added to commit (use "git add" and/or "git commit -a")

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)


$ git checkout todolist.txt

stavy@DESKTOP-1HVJON1 MINGW64 ~/Desktop/ex (master)

Potrebbero piacerti anche