Help on how to add changes


(Juliet Wamalwa) #1

Am working on this issue https://issues.openmrs.org/browse/GCI-238?filter=-1. I have made changes but when type “git add -A” command to add my changes, this is what I get https://pastebin.com/t8SbfXcb. Kindly someone to guide me on the way forward am confused.


(CLIFF GITA) #2

sorry juliet about the dilemma, the “git add -A” added everything in the staging and probably some files you did not need them, try running “git reset” to reverse all files into the untracked mode then run “git add .” to specifically add only files that you have made changes too


(CLIFF GITA) #3

hey juliet, where u able to resolve the error


(Juliet Wamalwa) #4

True. my work was messed up and am trying to put it in order anyway thanks for the help


(tendo kiiza Martyn) #5

@jwnasambu did you consider the hints given by git i.e "git rm --cached openmrs-core " like you said you’re organising your work…You have a repo within a repo …

what do you get with the command "Tree "(assuming you’re usnig Dom-prompt) inside your working folder or rather open power shell enter your working folder and run “ls -a” so we see who is duplicated and deal with them. “ls -a” should work for Git Bash as well because it accepts Unix-like shell commands.

Just in case you’re not yet unblocked :smile:


(Juliet Wamalwa) #6

Thanks @tendomart. I have already cleared the mess.