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,690 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,550 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,550 points
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,300 points
0 votes
1 answer

What does cherry-picking a commit with Git mean?

Hi@akhtar, Git cherry-pick is a powerful command that enables arbitrary Git ...READ MORE

answered Dec 23, 2020 in Git & GitHub by MD
• 95,300 points
–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,320 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 27, 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,550 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,550 points