标签: atlassian-sourcetree

Git流程问题,合并掌握与开发

我目前正在使用 git flow 和 sourcetree。冲刺的工作已达成一致,我创建了开发分支以将代码提交到其中。我将功能分支合并到开发中,然后在冲刺结束时我合并到主分支,代码进入生产。

这工作得很好,但是,如果修复需要推送到 master 或其他工作被购买到 sprint 中,则需要对提交进行排序并挑选到 master 中,这可能会变得非常混乱。

这可能会导致很多阻碍,因为在其他工作可以投入开发之前,需要将工作推向掌握、测试和签署。

有没有办法安全地引入新工作并致力于开发?

git git-flow atlassian-sourcetree

5
推荐指数
1
解决办法
6864
查看次数

致命:找不到远程引用

我正在尝试从我确保存在的远程分支中提取更改,但是当我使用源代码树从中提取更改时,此消息不断弹出“致命:找不到远程引用”,我该如何解决这个问题?

git atlassian-sourcetree

5
推荐指数
1
解决办法
8772
查看次数

Aptana,SourceTree和Git - 初学者

我刚刚开始使用版本控制,我的头在旋转!我试图围绕树枝,结帐,合并和变基础.我相信这些都是愚蠢的问题,但我真的很感激一些帮助.

我的项目是PHP.我正在使用Aptana工作室为我的IDE,Bitbucket和SourceTree用于Git GUI.

所以我想我可能会对这应该如何工作有一个粗略的想法.请告诉我我错在哪里.

说我想添加一个新功能.我有一个主分支.在Aptana中,我可以右键单击文件→ 转到团队,然后创建一个新分支.我可以说出那个分支feature a1bc.我做了我的改变.

完成此功能和所有更改后,我单击TeamCommit,然后TeamMerge branchmaster.这会将我的更改合并回主仓库.

这大致是我将如何进行功能添加等?如果随着时间的推移我有100多个功能,我该怎么办?我是否保留所有这些功能分支或在它们合并后删除它们?

aptana git bitbucket atlassian-sourcetree

4
推荐指数
1
解决办法
5243
查看次数

如何在SourceTree中为多个存储库中的窗口配置"提交文本链接"功能

TL; DR:SourceTree for Windows最近添加了"提交文本链接"功能,但似乎必须为每个存储库设置替换.有没有办法全局应用它们或者可以通过编程方式修改配置文件来设置它们?

长版本:"提交文本链接"功能看起来非常有用,但我有一个问题:我们有大约十几个JIRA项目和超过25个存储库,每个都可能与之相关(它们都不是1到1) 1个映射).虽然我可以设置一个正则表达式来匹配每个JIRA项目,但要求我的所有开发人员通过UI为每个存储库设置它有点多.为了真正利用这一点,我理想情况下需要能够在单个文件上给出指令以进行修改,或者我需要生成一个可以分发给开发人员的安装脚本.

是否有保存此设置的配置文件?我期待看到它像.hg/hgrc,但我找不到任何东西.我也在SourceTree Program Files文件夹中找不到任何相关设置.

或者,是否存在可应用于所有存储库的全局或默认设置?加上正则表达式版本可以使设置显着减少痛苦,如果仍然手动.

谢谢!

(注意:我在SourceTree for Windows的1.3.3.0版本中,我相信它是最新的稳定版本)

configuration atlassian-sourcetree

4
推荐指数
1
解决办法
1269
查看次数

如何使用sourcetree将dll添加到bitbucket

我正在尝试将.net项目上传到bitbucket存储库.为此,我使用的是atlassian SourceTree.首先,当我上传工作目录时,它没有显示工作副本更改或暂存更改中的dll.

但是在更改全局忽略列表(tools-> options-> Git-> EditFile)后,删除了dll条目,它开始显示.但是,分阶段的变化并没有推向存储库.它总是说是最新的.

git dll atlassian-sourcetree

4
推荐指数
1
解决办法
7223
查看次数

远程功能分支未被删除

我在使用git-flow时遇到了问题.不确定这是否是预期的行为所以请为我澄清一下.

我在Bitbucket中创建一个空的repo并将其克隆到我的本地机器上.然后我在repo中创建一个Xcode项目(我做iOS开发),提交它并将其推送到Bitbucket.

然后我继续并初始化我的本地仓库以使用git flow.我顺便使用SourceTree.然后我创建了一个新的功能分支,我们称之为FirstFeature.我将一些文件添加到项目中并再次推送它.现在我的远程仓库中有3个分支:master,develop和FirstFeature.

然后我再次处理该项目并完成该功能.FirstFeature分支被删除并与本地开发合并.然后我继续把它推到Bitbucket.我认为自从FirstFeature的本地分支被删除后,当我推送新的更改时它会被删除,但显然不是.我的Bitbucket回购中仍然存在FirstFeature分支.

这是预期的行为还是我需要做一些额外的事情来取消这些行为?

谢谢.

git bitbucket branching-and-merging git-flow atlassian-sourcetree

4
推荐指数
1
解决办法
404
查看次数

Visual Studio 2015未显示项目文件夹内容

修复了从安装文件修复VS2015.


我已经在Visual Studio 2015中添加了一个VS 2013项目.它按预期编译并运行,但在Solution Explore中我无法看到文件夹的内容.

我已经尝试删除文件夹并再次添加它们,但它没有用.

有任何想法吗?我也使用SourceTree进行项目,但我不认为这是相关的.

[![在此输入图片说明] [1]] [1]

[1]:http://i.stack.imgur.com/Bhm3B.png

编辑1:请注意,这个问题发生在项目中的所有文件夹中(Resourfes,Themes,Sources)

1.)文件存在并在Windows资源管理器中可见

2.)再次删除和添加文件夹,或新创建的文件夹中的单个文件不会改变这种情况.

3.)csproj具有未在文件夹中显示的文件:

     <ItemGroup>
    <ApplicationDefinition Include="App.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </ApplicationDefinition>
    <Compile Include="Sources\LoginViewModel.cs" />
    <Compile Include="Sources\RelayCommand.cs" />
    <Compile Include="Sources\ViewModel.cs" />
    <Compile Include="Login.xaml.cs">
      <DependentUpon>Login.xaml</DependentUpon>
    </Compile>
    <Compile Include="WrongPassword.xaml.cs">
      <DependentUpon>WrongPassword.xaml</DependentUpon>
    </Compile>
    <Page Include="MainWindow.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Compile Include="App.xaml.cs">
      <DependentUpon>App.xaml</DependentUpon>
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="MainWindow.xaml.cs">
      <DependentUpon>MainWindow.xaml</DependentUpon>
      <SubType>Code</SubType>
    </Compile>
    <Page Include="Resources\Icons.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Themes\Metro\Dark\MetroDark.MSControls.Core.Implicit.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Themes\Metro\Dark\MetroDark.MSControls.Toolkit.Implicit.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Themes\Metro\Dark\Styles.Shared.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Themes\Metro\Dark\Styles.WPF.xaml">
      <Generator>MSBuild:Compile</Generator> …
Run Code Online (Sandbox Code Playgroud)

c# atlassian-sourcetree windows-10 visual-studio-2015

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

源代码树如何丢弃未推送的提交并退回去

我正在使用Sourcetree git客户端和git lab.我是版本控制的新手.有没有办法丢弃我的提交并返回.我还没推过那个提交.

git gitlab atlassian-sourcetree

4
推荐指数
2
解决办法
884
查看次数

SourceTree在Windows 10 Fall Creators Update之后无法正常工作

安装Windows 10 Fall Creators Update后,sourcetree停止工作.当我试图打开时没有任何反应.

我已经尝试重新安装但没有成功.

atlassian-sourcetree windows-10

4
推荐指数
1
解决办法
1239
查看次数

Sourcetree无法打开Diffmerge进行合并冲突

最近,我重新安装了macOS。我已经安装了Sourctree和diffmerge并将diffmerge设置为默认合并工具。出于某种原因,每次我选择“解决冲突->打开外部合并工具”时,sourcetree都会打开其等待视图并直接将其关闭。

我在sourcetree中的设置页面:

在此处输入图片说明

这是当sourcetree为我配置diff合并时我的根.gitconfig的样子:

[core]
    excludesfile = /Users/[username]/.gitignore_global
[user] 
    name = ---- -----
    email = -----@-----.--
[commit]
    template = /Users/[username]/.stCommitMsg
[credential]
    helper =  !/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin/java -Ddebug=false -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar

[difftool "DiffMerge"]
[mergetool "DiffMerge"]
[diff]
    tool = diffmerge
[difftool "diffmerge"]
    cmd = /usr/local/bin/diffmerge \"$LOCAL\" \"$REMOTE\"
[merge]
    tool = diffmerge
[mergetool "diffmerge"]
    trustExitCode = true
    cmd = /usr/local/bin/diffmerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
[difftool "sourcetree"]
    cmd = /Applications/DiffMerge.app/Contents/MacOS/DiffMerge/Contents/MacOS/DiffMerge --nosplash \"$LOCAL\" \"$REMOTE\"
path = 
[mergetool "sourcetree"]
    cmd = /Applications/DiffMerge.app/Contents/MacOS/DiffMerge/Contents/MacOS/DiffMerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
    trustExitCode …
Run Code Online (Sandbox Code Playgroud)

diffmerge atlassian-sourcetree

4
推荐指数
1
解决办法
1282
查看次数