简体   繁体   English

SourceTree 拉取错误

[英]SourceTree pull error

I get an error when I do a pull to my local repository.当我pull我的本地存储库时出现错误。 Here is the error log:这是错误日志:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin

git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit origin master
From https://bitbucket.org/svalecillos/sistemanomastattut
 * branch            master     -> FETCH_HEAD

error: Your local changes to the following files would be overwritten by merge:
    app/Http/Controllers/Auth/AuthController.php
    config/app.php
    resources/views/auth/login.blade.php
    resources/views/auth/register.blade.php
Please commit your changes or stash them before you merge.



error: The following untracked working tree files would be overwritten by merge:
    resources/views/emails/password.blade.php
Please move or remove them before you merge.
Aborting



Completed with errors, see above.

Everything you need to know is in the error log you provided.您需要知道的一切都在您提供的错误日志中。

1. Modified local files 1.修改本地文件

error: Your local changes to the following files would be overwritten by merge:
    (...)
Please commit your changes or stash them before you merge.

2. New local files not yet in git 2. git 中还没有新的本地文件

error: The following untracked working tree files would be overwritten by merge:
    (...)
Please move or remove them before you merge.

Suggestions建议

  1. What I usually do in this situation is to stash my local changes, do the pull, and then apply the stash and merge any conflicts.在这种情况下,我通常做的是隐藏我的本地更改,进行拉取,然后应用存储并合并任何冲突。

  2. For local new / untracked files, make a backup of your file, delete it locally, and then after the pull you can compare it with the pulled file.对于本地新的/未跟踪的文件,请备份您的文件,在本地删除它,然后在拉取后您可以将其与拉取的文件进行比较。 (TIP: If you stage an untracked file before you stash, it will become part of the stashed files.) (提示:如果您在存储之前暂存未跟踪的文件,它将成为隐藏文件的一部分。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM