0% found this document useful (0 votes)
13 views2 pages

Git Commands

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Git Commands

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Git commands

lab@KCSKNC-SYS-50 MINGW64 ~
$ pwd
/c/Users/lab

lab@KCSKNC-SYS-50 MINGW64 ~
$ cd /d

lab@KCSKNC-SYS-50 MINGW64 /d
$ mkdir flower

lab@KCSKNC-SYS-50 MINGW64 /d
$ cd flower

lab@KCSKNC-SYS-50 MINGW64 /d/flower


$ touch [Link]

lab@KCSKNC-SYS-50 MINGW64 /d/flower


$ touch [Link]

lab@KCSKNC-SYS-50 MINGW64 /d/flower


$ touch [Link]

lab@KCSKNC-SYS-50 MINGW64 /d/flower


$ echo " Sunflower "> [Link]

lab@KCSKNC-SYS-50 MINGW64 /d/flower


$ git config -- global [Link] "bca"
fatal: not in a git directory

lab@KCSKNC-SYS-50 MINGW64 /d/flower


$ git config -- global [Link] "bca@[Link]"

lab@KCSKNC-SYS-50 MINGW64 /d/flower


$ git init
Initialized empty Git repository in D:/flower/.git/

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$ git add [Link]
warning: in the working copy of '[Link]', LF will be replaced by CRLF the next time Git touches
it

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$ git add [Link]
lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)
$ git add [Link]

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$ git status
On branch master

No commits yet

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

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$ git status
On branch master
nothing to commit, working tree clean

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$ git commit -m"first commit"
On branch master
nothing to commit, working tree clean

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$ git status
On branch master
nothing to commit, working tree clean

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$ git log --oneline
301a3e8 (HEAD -> master) first commit

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$ git show 301a3e8:[Link]
Sunflower

lab@KCSKNC-SYS-50 MINGW64 /d/flower (master)


$

You might also like