I have two Git branches for my code. oldApp
for the old version and the new version is on the master
branch. I made some changes in the old app code, and now I want to merge them to the new app but when I try to run git merge
it says everything is up to date. What am I doing wrong?
More details:
I am currently on the master
branch. This is the output of git status
:
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
I am running git merge origin/oldApp
and getting Already up-to-date
. The oldApp
branch was forked from the master
branch.
gitk didn't help. When I run it in the master
branch I can't see anything about the oldApp
branch.
I tried pasting the output of git log --all --oneline --decorate --graph but it looks horrible here. How can I do this?
EDIT: git fetch did the trick! I was able to merge after I ran it. thanks.