问题标签 [git-tower]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1342 浏览

macos - Git 存储库图标

Git 存储库图标是否有可接受的路径和/或文件名方案?

我注意到我最常使用的两个应用程序(Mac 版 TowerBitbucket.org)有完全不同的方式来指定存储库图标:Bitbucket.org 需要通过站点的 UI 添加它,而 tower 要求icon.png在 repo 中添加一个文件根。

假设 Git 尚不支持指定图标路径(假设man git-config基于 通过更“标准化”,我的意思是类似于人们.gitkeep用来提交内容不应该提交的空目录的方式。

0 投票
2 回答
22025 浏览

gitignore - 使用 Tower 忽略 gitignore 文件中的 .DS_Store

我有一个新的仓库,在执行第一次提交之前,我想忽略 .DS_Store 文件。

我尝试通过 Tower 将以下内容添加到 .gitignore 文件中:

但只有根目录下的 .DS_Store 文件被忽略,所有其他文件都包含在内以供提交。

有什么技巧可以让这些文件被忽略吗?

0 投票
1 回答
1111 浏览

git - 用 ruby​​ 编写的 Git 提交后挂钩未在 Git Tower 中运行

所以我有一个用 ruby​​ 编写的基本提交后挂钩,并且我已经确认它在我从命令行提交时运行。但是,当我在 Git Tower 中提交时它不会运行,我什至没有看到 Git Tower 出现任何错误。

我的脚本以:开头, #!/usr/bin/env ruby当我从命令行提交时它确实运行正常,所以我知道它不是脚本的问题。我需要做些什么来让我的宝石正确加载吗?

0 投票
1 回答
416 浏览

git - Git Tower 将现有文件添加为分支

我正在开发一个在开始使用 Git 之前就开始开发的 WordPress 插件。有一次,我在不同的文件夹中创建了插件的副本,以尝试另一种编写插件一部分的方法。我最近购买了 Tower 并开始使用 Git 来跟踪我的插件的更改。我使用这个插件的第一个版本创建了一个本地仓库。但是,我想添加我之前创建的第二个版本作为主插件的一个分支。

使用 Tower 作为 OS X Git 客户端,如何将不同文件夹中的现有文件作为分支添加到现有存储库?

我已经尝试过 Refs > Add New Local Branch,但它没有添加第二个版本的文件,也没有办法指向这些文件。如果我将第二个版本的文件夹从 Finder 拖到 Tower 图标,它会创建一个全新的存储库。我需要这样做并以某种方式将其合并为一个分支吗?

作为一个整体,我对 Git 还是很陌生,我相信可能有一种方法可以通过 CLI 轻松完成这项工作,但我很想通过 Tower 完成这项工作。

0 投票
1 回答
506 浏览

git - 向塔添加了 heroku-repo,如何添加分支?

我使用 git tower 来管理我的 repos 和 heroku 来托管。通常我在本地创建 repos 并将它们推送到 heroku。在这种情况下,我想克隆一个现有的heroku。

“克隆远程存储库” - 使用 git-repo-url 的按钮。我可以在 tower 中查看项目,并在本地文件夹中创建一个 git-repo。但是,没有一个远程存储库是可见的。我需要添加它们还是什么?

0 投票
2 回答
832 浏览

git - 尝试在 GitHub 上为每个分支设置 1 个本地文件夹

好的,所以在我的本地文件结构中,我有一个名为“X”的文件夹,在该文件夹中我还有 4 个其他文件夹:“master”、“demo”、“deployer”和“gh-pages”。

我正在尝试对其进行设置,以便每个文件夹负责我拥有的每个同名分支。

编辑

谢谢你到目前为止的答案,他们真的很有见地。我只需要对该主题进行一些深入的报道。我以前从未使用过版本控制系统。

0 投票
1 回答
484 浏览

git - Workflow for git Dev and Live sites, push to remote

Firstly, when it comes to git i'm a bit of a newbie.

I have two website one is used for development the other is the live site. I am just about to move all the files over to git, (and github) as I have been using SVN but think git (after a few weeks of playing) will suit the project better going forward.

What I'm trying to understand is how to get the best workflow for me, having the files uploaded onto remote servers. The sandbox version of the site currently lives locally and also uploaded to the sandbox remote site, any testing is done on here, and once we are happy we move it across to the main site Via checking in any changes flipping over to live site files and updating file then uploading.

I now intend to have the main 'Master' branch and have a 'sandbox' branch version off that. This would give me the option to create new branches for small bugs, merging them to sandbox when done and testing.

In my old way of working as the files were stored in two different places locally (had checked out two version from SVN repository) I could jump into Coda and ftp the files up to the server when ready.

I'm now guessing pushing to remote would be a better option as ftp-ing with the one repository would cause a few headaches?

I'm using Tower that is really helping my workflow, but stuck on how to get the files online. Any help or if my question doesn't make sense please shout...

0 投票
1 回答
248 浏览

git - 使用 Tower.app 推送到 bluehost

我是一个 git 新手,有一个关于将 repo 推送到 bluehost 的问题。

我正在使用 Tower.app 推送到 Github.com,并且我还希望能够将其推送到我在 bluehost.com 中的帐户,而不是同时(我想从 Tower 的下拉选项中选择它。应用程序)。

我需要将我的项目推送到位于http://example.com/sub/y的目录(其中 y 是 anotherdomain.com)。

在过去的 3 个多小时里,我一直在尝试各种事情,但无法让它发挥作用。Bluehost 要么抱怨目录不是 git repo 要么正在更新服务器信息。我尝试用 ssh 然后 http 推送它。

有人可以为此提供分步说明吗?谢谢你!

0 投票
2 回答
737 浏览

git - 集成 Git-Tower 和 Gerrit

我正在尝试将 Git-Tower 与 Gerrit 一起使用,并且难以设置 Git-Tower 并识别正确的推送 refspec。

在我们的工作流程中,我们有两个遥控器:origin,指向一个 github 存储库;并且review,指向我们的 Gerrit 代码审查机器。我已经验证了从命令行推送到 Gerrit 是有效的:

在 Git-Tower 中,我将 push refspec 配置为refs/heads/develop:refs/for/develop并在 git config 文件中验证了此设置。但是,当我尝试从 Git-Tower 内部推送到review/developGit-Tower 时,尝试推送到refs/heads/develop而不是refs/for/develop,并且由于我不是管理员,它失败了(应该如此)。

我应该如何专门配置 Git 本身或 Git-Tower,以便我可以在 Git-Tower 中使用此工作流程?

0 投票
1 回答
301 浏览

git - Git分离头使用Git Tower

我应该如何设置一个 git 子模块来防止头分离?

当我检查我的项目时,它有一个子模块,并且子模块也有一个子模块。现在我希望其他人能够检出根目录并且构建没有错误,但是由于分离的头 - 很多源没有被检出并且构建失败。

所以主项目签出正常,子模块被分离,这意味着子子模块没有被签出!

请问有什么帮助吗?