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,280 points
35 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,250 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,360 points
60 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
873 views
+13 votes
2 answers
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,250 points
23 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.