-
Notifications
You must be signed in to change notification settings - Fork 0
/
Git.txt
113 lines (81 loc) · 2.88 KB
/
Git.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
https://github.com/Jayanthasb/NumberGameJenkins.git
commands & responses;
>>>>>>install git and config username and email
Jayantha@DESKTOP-5CTMGS3 MINGW64 ~
$ git config --global user.name "jayanthasb"
Jayantha@DESKTOP-5CTMGS3 MINGW64 ~
$ git config user.name
jayanthasb
Jayantha@DESKTOP-5CTMGS3 MINGW64 ~
$ git config --global user.email [email protected]
Jayantha@DESKTOP-5CTMGS3 MINGW64 ~
$ git config user.email
Jayantha@DESKTOP-5CTMGS3 MINGW64 ~
$ git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager-core
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
user.name=jayanthasb
>>>>>>>
create a local repository
Jayantha@DESKTOP-5CTMGS3 MINGW64 ~
$ cd D:
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d
$ pwd
/d
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d
$ cd udemy
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d/udemy
$ cd js
>>>>>>>>>>>stage, tracked and untracked
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d/udemy/js/Exp/05-Guess-My-Number (master)
$ git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
.prettierrc
Git.txt
final/
index.html
script.js
style.css
nothing added to commit but untracked files present (use "git add" to track)
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d/udemy/js/Exp/05-Guess-My-Number (master)
$ git add index.html
warning: in the working copy of 'index.html', LF will be replaced by CRLF the next time Git touches it
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d/udemy/js/Exp/05-Guess-My-Number (master)
$ git add index.html
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d/udemy/js/Exp/05-Guess-My-Number (master)
$ git add script.js
warning: in the working copy of 'script.js', LF will be replaced by CRLF the next time Git touches it
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d/udemy/js/Exp/05-Guess-My-Number (master)
$ git add style.css
warning: in the working copy of 'style.css', LF will be replaced by CRLF the next time Git touches it
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d/udemy/js/Exp/05-Guess-My-Number (master)
$ git add .prettierrc
warning: in the working copy of '.prettierrc', LF will be replaced by CRLF the next time Git touches it
Jayantha@DESKTOP-5CTMGS3 MINGW64 /d/udemy/js/Exp/05-Guess-My-Number (master)
$ git status
On branch master
>>>>>>>>>>>>>
git diff filename
git checout to discard changes to a file
$ git remote -v to check remote repo
to add remote repo
$ git remote add origin "https://github.com/Jayanthasb/NumberGameJenkins.git"
to add local repo to remote repo
$ git push origin master