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,270 points
50 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
• 9,530 points

Related Questions In Git & GitHub

+1 vote
5 answers
0 votes
1 answer
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,380 points
154 views
+1 vote
4 answers

GIT plugin in jenkins not able to connect to GIT repository

This looks like a git configuration issue, ...READ MORE

answered Oct 25, 2018 in Git & GitHub by Alia
1,589 views
+13 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,380 points
150 views
0 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
• 9,530 points
37 views
0 votes
1 answer