Suppose I have 2 branches, master
and other
.
I go in the other
branch, add 2 files, commit and push.
Now I go into the master
branch, add files to a different directory, and commit them. Then I merge other
.
The problem is that the files I added in other
are not showing up. Git says it is up-to-date, but its not! Files are missing.
How can I force master
to add the files in other
or somehow manually add them?
Edit for Karl:
I did the following to the best of my knowledge, although the changes that are not showing up are several weeks old. I just realized they weren't there today.
$ git branch
*other
master
$ git add .
$ git commit -m 'cool new features'
$ git push origin other
$ git checkout master
$ git merge other
$ git add .
$ git commit -m 'merged cool new features from other'
$ git push origin master
I go on Github, and the files aren't there. Other files were committed and show up, but two folders do not have matching content. The files exist in other
but not in master
. To clarify, the files were not new. But I thought that merging would at least copy files to master
if they dont exist!