Why is Git commit not functioning with Git Bash

0 votes

After commiting some files , I get the following error:

modified content, untracked content
Aug 7, 2018 in Git & GitHub by Tyrion anex
• 8,700 points
3,572 views

1 answer to this question.

0 votes
This occurs because you might have git directories in other folders as well.

Just do the following steps:

1.Get rid of the .git directories from other folder

2.Next, run git rm -rf --cached on the other folders

3.After that, re-add the directories with a git add -A from above

4.Then perform a commit, git commit -m "commit message"

5.Finally, push your commit remotely, git push origin your-branch-name
answered Aug 7, 2018 by Sophie may
• 10,610 points

Related Questions In Git & GitHub

+2 votes
5 answers

ERROR: 'git' is not recognized as an internal or external command.

You have to set your PATH to ...READ MORE

answered Aug 2, 2018 in Git & GitHub by Sophie may
• 10,610 points
46,704 views
0 votes
1 answer

error: The branch 'dev1' is not fully merged.If you are sure you want to delete it, run 'git branch -D dev1'.

Hi@akhtar, When you create one new branch in ...READ MORE

answered May 10, 2020 in Git & GitHub by MD
• 95,440 points
2,675 views
0 votes
2 answers

What does cherry-picking a commit with Git mean?

To answer your question, Cherry Picking in ...READ MORE

answered Feb 8, 2022 in Git & GitHub by Rahul
• 9,670 points
2,668 views
–1 vote
1 answer

Having problem in Github and remote Git repo with production and development code

I think you could start with this. The ...READ MORE

answered Apr 10, 2018 in Git & GitHub by shubham
• 7,340 points

edited Dec 15, 2023 by Khan Sarfaraz 763 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,520 views
+2 votes
1 answer
0 votes
1 answer

How to forcefully commit a file to Git even if the file is ruled as unchanged?

This is simple, just follow the below ...READ MORE

answered Jul 11, 2018 in Git & GitHub by Sophie may
• 10,610 points
12,573 views
0 votes
1 answer

How do I solve a Git checkout error: updating paths is incompatible with switching branches?

This error occurs when you are checking ...READ MORE

answered Jul 26, 2018 in Git & GitHub by Sophie may
• 10,610 points
9,589 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP