B
B
BABLGAM2222021-11-17 02:41:46
git
BABLGAM222, 2021-11-17 02:41:46

Why can't I submit a commit?

I have a problem, I want to send a commit, but it doesn't work.
I first write $ git status, gives me:

On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        deleted:    .gitignore
        deleted:    README.md
        deleted:    package-lock.json
        deleted:    package.json
        deleted:    public/favicon.ico
        deleted:    public/image/LIkeCheked.svg
        deleted:    public/image/image1.png
        deleted:    public/image/image10.png
        deleted:    public/image/like.svg
        deleted:    public/image/portfolio.png
        deleted:    public/index.html
        deleted:    src/App.js
        deleted:    src/components/card/Card.js
        deleted:    src/components/card/card.module.scss
        deleted:    src/components/header/Header.js
        deleted:    src/index.js
        deleted:    src/index.scss
        deleted:    src/pages/Blog.js
        deleted:    src/pages/Contacts.js
        deleted:    src/pages/Portfolio.js
        deleted:    src/pages/Profil.js

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        web/

no changes added to commit (use "git add" and/or "git commit -a")

Then I write I git commit -m "nwe commit web"
press enter and issues:
fatal: Unable to create 'D:/.проекты(сайты)/react/nikita/.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.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question