๐ ๋ด ์ฝ๋ ์ํ
1. github repository๋ฅผ ๋ด ์ปดํจํฐ์ cloneํ์ฌ vscode๋ก ์ด๊ณ update๋ ๋๋ง๋ค commit ๋ฒํผ์ ๋๋ฌ์ commit์ ํ๋ ๋์ค,
2. ํฐ๋ฏธ๋์ command๋ก git add. git commit ๋ฑ์ ์ ๋ ฅํ๋ ์๋ฌ๊ฐ ๋จ.
![]() |
![]() ์ปค๋ฐ ๋ฒํผ์ ๋๋ฅด๋ ์ด๊ฒ ๋ธ |
๐ ๋ด๊ฐ ํด๋ณธ ์๋ ๋ฐฉ๋ฒ
๐ก 1. ๋ค๋ฅธ ํ์ผ์ ์งํ์ค์ผ ์ ์๋ค๊ณ ํด์ ๋ชจ๋ ์ฐฝ ์ง์ฐ๊ณ ์ปดํฐ ๊ป๋ค๊ฐ ํด (x)
์๋จ..
๐ก 2. ์์ git์์ ํด๋ก ํ repository ํด๋๋ฅผ ๋ค ์ง์ฐ๊ณ ๋ค์ cloneํ ํ์ ๋ค์ git commitํ๋ฉด ๋๋ค๊ณ ํ๋๋ฐ
(์ ์ด๊ฑฐ๋ ๋๊ฒ ์ง… ๊ทผ๋ฐ ๋ด๊ฐ updateํ ์ฝ๋๋ ๋ค์ ๋ถ์ฌ๋ฃ์ด์ผ ํ์์…)
I can't push or commit files to github with visual studio code
I tried to solve this issue using the duplicates of this question, but so far nothing has worked. Git Status yields these results $ git status On branch main Your branch and 'origin/main' have dive...
stackoverflow.com
โ ํด๊ฒฐ๋ฐฉ๋ฒ
๐ก 3. lock ํ์ผ์ ์ง์๋ณด๊ธฐ (ํด๊ฒฐ)
- git add .๋ถํฐ ๋ค์ ํจ
$ git add .
fatal: Unable to create 'C:/Users/User/Documents/GitHub/Self_Projects/Login_backendBeginner/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
์ด๋ฐ ์๋ฌ๊ฐ ๋จ
rm -f .git/index.lock
ํฐ๋ฏธ๋์ ์์ ๋ช ๋ น์ ์คํํ๊ณ ๋ค์ commit ๋ฒํผ์ ๋๋ฅด๋ ์ ๋๋ก commit๋๊ณ github์๋ ์ฌ๋ผ๊ฐ!!
Another Git process seems to be running in this repository
I'm trying to learn how to use Git and have created a small project with an HTML, CSS, and JavaScript file. I made a branch from my basically empty project and then made some changes to my code. I ...
stackoverflow.com


