-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit codes.txt
More file actions
167 lines (123 loc) · 4.81 KB
/
git codes.txt
File metadata and controls
167 lines (123 loc) · 4.81 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma
$ ls
css/ img/ index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma
$ ls -a
./ ../ css/ img/ index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma
$ git init
Initialized empty Git repository in C:/Users/Sam Drade/Documents/reprograma/.git/
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ ls -a
./ ../ .git/ css/ img/ index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ git remote -v
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ git remote add origin https://github.com/samdrade/workshop-reprograma.git
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ git remote -v
origin https://github.com/samdrade/workshop-reprograma.git (fetch)
origin https://github.com/samdrade/workshop-reprograma.git (push)
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$
Novo tudo
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma
$ ls
css/ img/ index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma
$ ls -a
./ ../ css/ img/ index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma
$ git init
Initialized empty Git repository in C:/Users/Sam Drade/Documents/reprograma/.git/
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ ls -a
./ ../ .git/ css/ img/ index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ git remote -v
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ git remote add origin https://github.com/samdrade/workshop-reprograma.git
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ git remote -v
origin https://github.com/samdrade/workshop-reprograma.git (fetch)
origin https://github.com/samdrade/workshop-reprograma.git (push)
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ ^C
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (master)
$ git branch -M main
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git config --global user.name "Samdrade"
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git config --global user.email "samdrades2@gmail.com"
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git config --global user.email
samdrades2@gmail.com
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git config --global user.name
Samdrade
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git status
On branch main
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
css/
git codes.txt
img/
index.html
nothing added to commit but untracked files present (use "git add" to track)
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git add index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: index.html
Untracked files:
(use "git add <file>..." to include in what will be committed)
css/
git codes.txt
img/
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git add .
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: css/style.css
new file: git codes.txt
new file: img/paradise.jpg
new file: index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git commit -m "envia arquivos do workshop reprograma"
[main (root-commit) e16597b] envia arquivos do workshop reprograma
4 files changed, 155 insertions(+)
create mode 100644 css/style.css
create mode 100644 git codes.txt
create mode 100644 img/paradise.jpg
create mode 100644 index.html
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git status
On branch main
nothing to commit, working tree clean
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git push -u origin main
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/samdrade/workshop-reprograma.git/'
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$ git push -u origin main
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 2 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (8/8), 68.95 KiB | 311.00 KiB/s, done.
Total 8 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/samdrade/workshop-reprograma.git
* [new branch] main -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.
Sam Drade@LAPTOP-74A3EJDA MINGW32 ~/Documents/reprograma (main)
$