$ git add .
$ git commit -m "commit message"
$ git push
The code gets pushed to repo as expected. However Forge deployment error message returns
branch master -> FETCH_HEAD error: Your local changes to the following files would be overwritten by merge: // ...files to change... Please, commit your changes or stash them before you can merge. Aborting
How can I resolve this? Are my commits not merged? They are on my repository. Do I need to stash? If so, what next??
Tried following other examples but unwilling to experiment without advanced knowledge of git.
Use
-A
instead of.
withgit add
Now, try
git pull
.N.B:
git add .
stage modified and new files andgit add -A
stage modified, new and deleted files.