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,550 points

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,100 points

Related Questions In Git & GitHub

+1 vote
5 answers

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

You need to make sure git.exe is ...READ MORE

answered May 7, 2019 in Git & GitHub by Yesha
0 votes
1 answer
–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
• 6,910 points
0 votes
1 answer

Git origin not found

For this to work, you need to ...READ MORE

answered Apr 25, 2018 in Git & GitHub by DragonLord999
• 8,450 points
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+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,100 points
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,100 points