标签: atlassian-sourcetree

Sourcetree - 撤消未提交的提交

我正在使用Sourcetree for Windows作为git-repository,并希望撤消未刷新的提交.

那可能吗?如果我"还原提交",它会创建第二个提交,它会恢复第一个提交,但我不希望第一个提交在我的源代码管理中出现.

我也可以删除我的本地存储库并在没有本地提交的情况下再次将其删除,但也许还有另一种方法?

datasourcecontrol atlassian-sourcetree

197
推荐指数
3
解决办法
14万
查看次数

在SourceTree Windows中编辑提交消息(已推送到远程)

如何在不触及命令行的情况下在SourceTree中编辑不正确的提交消息?

额外细节:

  • 这不是最新的提交.
  • 一切都已被推到了Bitbucket.
  • 这是一个私人存储库,我是唯一的合作者.
  • 我不介意丢失任何先前的提交,因为我可以随时重新提交它们.
  • 但是我不想失去任何代码修改.

结果:

  • 根据您的评论和回复,目前似乎不可能,我将创建一个新的存储库并从头开始.感谢你的帮助!

git atlassian-sourcetree

189
推荐指数
4
解决办法
14万
查看次数

有没有办法在SourceTree中的两个分支上获得视觉差异?

Sourcetree是否提供了一种可视化git分支之间差异的方法?

我在找:

  • 已更改的文件的名称
  • 这些文件之间的差异

git git-branch atlassian-sourcetree

157
推荐指数
3
解决办法
7万
查看次数

如何以交互方式(可视化)解决SourceTree/git中的冲突

我正在为我的git项目使用(Windows)SourceTree.我可以在命令提示符或Linux终端中执行此操作.

但是,我想知道是否有一种交互式和视觉上解决冲突的好方法.例如,如果pull检测到冲突,则弹出基于GUI的冲突工具(例如,P4Merge).可能吗?

我总是在做手动冲突解决,这很痛苦.

例如,这是pull来自SourceTree 的git 消息.

git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit origin master
From W:\repo\
 * branch            master     -> FETCH_HEAD   

Updating 33c07bf..41e0249

error: Your local changes to the following files would be overwritten by merge:
    foo.cpp
    goo.cpp
    goo.hpp
Please, commit your changes or stash them before you can merge.
Aborting    

Completed with errors, see above.
Run Code Online (Sandbox Code Playgroud)

git git-merge merge-conflict-resolution atlassian-sourcetree

117
推荐指数
3
解决办法
17万
查看次数

如何查看远程标签?

在Atlassian SourceTree中,如何知道哪些标签只是本地标签,哪些标签也是远程标签?

创建标签时,您可以选择"将标签推送到:...",但如何在创建标签后知道标签是否已被推送?我可以在本地看到我的所有标签,但我需要确保它们存在于远程中,以便其他开发人员可以将它们拉出来.

git atlassian-sourcetree

109
推荐指数
2
解决办法
7万
查看次数

如何使用SourceTree更新我的分叉仓库?

我正在使用SourceTree(使用BitBucket)来管理我的代码.我已经分配了一个仓库,并且父仓库已经更新了.

如何使用SourceTree将上游代码合并到我的分叉回购中?

git mercurial github bitbucket atlassian-sourcetree

105
推荐指数
1
解决办法
3万
查看次数

当尝试推送SourceTree时,"更新被拒绝,因为标签已经存在"

尝试通过源树推送时,我收到以下错误:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master 
Pushing to https://user@github.com/repo.git
To https://user@github.com/repo.git
 = [up to date]      master -> master
...
 ! [rejected]        example_tag -> example_tag (already exists)
updating local tracking ref 'refs/remotes/origin/master'
error: failed to push some refs to 'https://user@github.com/repo.git'
hint: Updates were rejected because the tag already exists in the remote.
Completed with errors, see above
Run Code Online (Sandbox Code Playgroud)

据我所知,我没有对这个标签做任何改动.我怎样才能解决这个问题?

git push atlassian-sourcetree

93
推荐指数
5
解决办法
5万
查看次数

Sourcetree - 升级到最新版本,缺少git-flow

嘿,我刚刚将Mac上的Sourcetree更新为最新版本(2.2).git-flow去哪儿了?

我该如何重新启用此功能?

我没有它就迷失了自己!

git-flow atlassian-sourcetree

85
推荐指数
3
解决办法
2万
查看次数

如何在SourceTree中忽略具有git存储库的文件夹中的所有文件?

我有一个使用SourceTree管理的Bitbucket Git存储库.

我有2个文件夹要提交,但我需要忽略这些文件夹中的所有文件,因为它们只包含临时文件.

我怎样才能做到这一点?

git gitignore atlassian-sourcetree

82
推荐指数
5
解决办法
16万
查看次数

如何在SourceTree中丢弃未提交的更改?

我是Git环境的新手,我在Mac上使用BitBucket和SourceTree.我现在要做的就是放弃自上次提交以来的更改.我该怎么做?我没有发现任何类似"丢弃更改"的内容,并且直接从最后一次提交中删除似乎不起作用.使用GUI或命令行完成的解决方案将很好.谢谢.

git macos bitbucket atlassian-sourcetree

78
推荐指数
4
解决办法
11万
查看次数