代码不通过源代码树合并和提交

code not merge and commit through source tree

我是 git 和源代码树的新手。我在

中遇到问题

我正在尝试在存储中提交我的更改我通过源代码树提交但无法推送它出现此错误

! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'http://dh.s@dummy.it:7990/scm/ddn/mytrainer.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

我试图拉取拉动标签上的更改,但它显示错误

error: Your local changes to the following files would be overwritten by merge: grails-app/conf/BuildConfig.groovy
Please, commit your changes or stash them before you can merge. Aborting

如何在不影响其他团队成员通过源代码树完成的提交的情况下提交更改。

谢谢

据我了解,这应该适合您。
1) 按照 here 中的说明存储更改。
2)从master分支拉取
3) 按照源代码树 link 中的说明弹出隐藏的更改。

一般来说,
存储和提交是两个不同的东西,

存储 - 临时存储您正在处理的更改。

命令行:

git stash

Sourcetree,存储您所做的更改,阅读[this]

提交 - 用于使您的更改永久化。

git commit

在提交之前,您必须暂存更改,这可以通过

完成

git add * to add all file
git add filename

希望这对您有所帮助。