如何从 PhpStorm 推送到 Bitbucket?

How push to Bitbucket from PhpStorm?

如何从 PhpStorm 推送到 Bitbucket?我在 PhpStorm 中看到 git 中的更改历史记录,但不会将更改从 PhpStorm 推送到 Bitbucket。

我install/have:

  • Mac, PhpStorm 2018.1.4
  • account Bitbucket, and create my repositories
  • install SourceTree, work fine
  • install PhpStorm
  • install git
  • install plugin Bitbucket Linky

如果我 > 选择文件 > git > 存储库 > 推送 - 我在事件日志中看到

9:59 Push successful: Everything is up-to-date

控制台

09:59:56.649: [62.109.4.246] git -c core.quotepath=false -c log.showSignature=false push --progress --porcelain bitbucket.org refs/heads/master:master --tags To https://bitbucket.org/account/repository.git = refs/heads/master:refs/heads/master [up to date] Done

但 Bitbucket 中没有变化

我的截图https://imgur.com/a/FQ0Ppk3

寻找解决方案:git > commit file > commit and push(not send commit) > Push

Git push 旨在将您的 COMMITS 提交到远程,而不是未提交的本地更改。所以在推送之前你需要提交更改。不然确实没什么好推的

PHPStrom 允许您在提交对话框中使用 Commit nad Push 操作在提交后立即推送。