Support the ongoing development of Laravel.io →
Installation Configuration

I'm deploying my web app using Laravel Forge and BitBucket. Recently I was coding one part of my website, and I noticed that I made small mistake in CSS, since I couldn't use git push because I'm not finished with coding, I changed that CSS using FTP. So after I finished with development, I tried to git push but I got this error (in Laravel Forge logs):

error: Your local changes to the following files would be overwritten by merge:

After I searched internet I found out that stashing would solve the problem so I changed deploy script to this:

cd /home/forge/default
git stash
git pull origin master
git stash apply stash@{0}
composer install
php artisan migrate --force

But now I receive this error:

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <forge@objavi.net>) not allowed
Cannot save the current index state
From bitbucket.org:alenn/objavi
 * branch            master     -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by merge:
    app/models/Post.php
    app/models/User.php
    app/routes.php
    app/views/home.blade.php
    app/views/layouts/partials/top.blade.php
    app/views/main.blade.php
    public/css/main.css
    public/js/script.js
Please, commit your changes or stash them before you can merge.
error: The following untracked working tree files would be overwritten by merge:
    app/views/users/readlater.blade.php
Please move or remove them before you can merge.
Aborting

Can someone help me to fix this?

Last updated 2 years ago.
0

Had al lot of problems with forge yesterday so kinda find out my way there!

You should:

  • ssh into your server with terminal
  • commit your css changes there
  • push them to your repo
  • pull in your repo
Last updated 2 years ago.
0

Eventually I removed all local changes and uploaded again, now it's fine.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

alenn-m alenn-m Joined 5 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.