我正在使用 Laravel Forge 和 BitBucket 部署我的网络应用程序。最近我正在编写我网站的一部分,我注意到我在 CSS 中犯了一个小错误,git push
因为我没有完成编码,所以我无法使用,我使用 FTP 更改了那个 CSS。所以在我完成开发后,我尝试了,git push
但我得到了这个错误(在 Laravel Forge 日志中):
error: Your local changes to the following files would be overwritten by merge:
在我搜索互联网后,我发现存储可以解决问题,所以我将部署脚本更改为:
cd /home/forge/default
git stash
git pull origin master
git stash apply stash@{0}
composer install
php artisan migrate --force
但现在我收到此错误:
*** 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
有人可以帮我解决这个问题吗?