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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
~> ssh-keygen -t ed25519 -C "stmxl@naver.com"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/c/Users/chm61/.ssh/id_ed25519):
Created directory '/c/Users/chm61/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/chm61/.ssh/id_ed25519
Your public key has been saved in /c/Users/chm61/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:0V+n4r1k8MHnP3BS+K0GrGtcDIv3qbrDIps6FSrT0SU stmxl@naver.com
The key's randomart image is:
+--[ED25519 256]--+
| |
| E . . |
| . o . . o .|
| . o ... + + |
| . o . S. =+ * o|
|o o . . o.=B *.|
| o . . o +.oO..|
| . ... o + oooo.|
| .ooo .o=oo .. o|
+----[SHA256]-----+
~> eval "$(ssh-agent -s)"
Agent pid 1630
~> ssh-add ~/.ssh/id_ed22519
/c/Users/chm61/.ssh/id_ed22519: No such file or directory
~> ssh-add ~/.ssh/id_ed22519
/c/Users/chm61/.ssh/id_ed22519: No such file or directory
~> ssh-add ~/.ssh/id_ed22519
/c/Users/chm61/.ssh/id_ed22519: No such file or directory
~> ^C
~> ssh-add ~/.ssh/id_ed22519^C
~> ssh-add ~/.ssh/id_ed22519.pub
/c/Users/chm61/.ssh/id_ed22519.pub: No such file or directory
~> ssh-add c/Users/chm61/.ssh/id_ed22519
c/Users/chm61/.ssh/id_ed22519: No such file or directory
~> cat id_ed22519
cat: id_ed22519: No such file or directory
~> cat c/Users/chm61/.ssh/id_ed22519
cat: c/Users/chm61/.ssh/id_ed22519: No such file or directory
~> cat c/Users/chm61/.ssh/id_ed22519.pub
cat: c/Users/chm61/.ssh/id_ed22519.pub: No such file or directory
~> cat c/Users/chm61/.ssh
cat: c/Users/chm61/.ssh: No such file or directory
~> ssh-add ~/.ssh/id_ed25519
Identity added: /c/Users/chm61/.ssh/id_ed25519 (stmxl@naver.com)
~> git push
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin main
~> git remote remove origin
~> git remote add origin git@github.com:HyeamCha/bit_vs.git
~> git push
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin main
~> git push --set-upstream origin main
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
~> git remote remove origin
~> git remote add origin git@github.com:HyemCha/bit_vs.git
~> git push
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin main
~> git push --set-upstream origin main
To github.com:HyemCha/bit_vs.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'github.com:HyemCha/bit_vs.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
~> ^C
~> git pull
remote: Enumerating objects: 309, done.
remote: Counting objects: 100% (309/309), done.
remote: Compressing objects: 100% (290/290), done.
remote: Total 309 (delta 15), reused 304 (delta 15), pack-reused 0
Receiving objects: 100% (309/309), 26.79 MiB | 8.17 MiB/s, done.
Resolving deltas: 100% (15/15), done.
From github.com:HyemCha/bit_vs
* [new branch] main -> origin/main
* [new branch] master -> origin/master
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Enumerating objects: 3991, done.
Nothing new to pack.
Checking connectivity: 13872, done.
warning: There are too many unreachable loose objects; run 'git prune' to remove them.
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> main
~> ^C
~> ^C
~> ^C
~> ^C
~> git branch --set-upstream-to=origin/<^C
~> git prune
~> git help gc
~> git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> main
~> git branch
* main
~> git checkout master
error: Your local changes to the following files would be overwritten by checkout:
.cache/tooling/gradle/versions.json
.eclipse/org.eclipse.oomph.setup/cache/https___www.eclipse.org_setups_setups.zip
.eclipse/org.eclipse.oomph.setup/cache/https___www.eclipse.org_setups_setups.zip.etag
.gitconfig
Please commit your changes or stash them before you switch branches.
Aborting
~> git branch --set-upstream-to=origin/main main
branch 'main' set up to track 'origin/main'.
~> git pull
fatal: refusing to merge unrelated histories
~> git pull remote mIN
fatal: 'remote' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
~> git pull remote main
fatal: 'remote' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
~> git pull main
fatal: 'main' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
~> git remote -v
origin git@github.com:HyemCha/bit_vs.git (fetch)
origin git@github.com:HyemCha/bit_vs.git (push)
~> git push origin main
To github.com:HyemCha/bit_vs.git
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'github.com:HyemCha/bit_vs.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
~> git pull origin main
From github.com:HyemCha/bit_vs
* branch main -> FETCH_HEAD
fatal: refusing to merge unrelated histories
~> git push origin main
To github.com:HyemCha/bit_vs.git
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'github.com:HyemCha/bit_vs.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
~> git pull --allow-unrelated-histories
Merge made by the 'ort' strategy.
~> git push origin main
Enumerating objects: 3999, done.
Counting objects: 100% (3999/3999), done.
Delta compression using up to 8 threads
Compressing objects: 100% (1753/1753), done.
Writing objects: 100% (3998/3998), 257.80 MiB | 3.37 MiB/s, done.
Total 3998 (delta 1043), reused 3997 (delta 1043), pack-reused 0
remote: Resolving deltas: 100% (1043/1043), done.
remote: warning: See http://git.io/iEPt8g for more information.
remote: warning: File .IdeaIC2019.3/config/plugins/Kotlin/lib/kotlin-plugin.jar is 55.79 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To github.com:HyemCha/bit_vs.git
44a5b2c..9ed6ce0 main -> main
~>
|
cs |
이거 하느라 힘들어 뒤지는 줄..계속 구글에 검색하고 명령어 입력하고 검색하고 입력하고 반복함ㅋㅅㅋㅅㅋㅋㅎㅁㅋ
휴 어쨌든 연결하긴 했는데;; 원하는 파일들이 안 올라가고 이상한 파일들이 올라감..다시 수정해야지 ㅅㅂ..
깃이랑 깃허브 연결 처음해보는 사람들은 아래 영상 보는 걸 추천
'컴퓨럴 > 웹 개발' 카테고리의 다른 글
jsp (0) | 2022.04.15 |
---|---|
MySQL 권한 부여하고 DB만들기 (0) | 2021.07.18 |
id 와 class의 차이 (0) | 2021.06.06 |
댓글