sourcetree

.gitignore file in Sourcetree not working

瘦欲@ 提交于 2019-12-20 08:03:02
问题 I am working on a maven project and I want to ignore the files generated and stored in the /target folder of my project (Evaluation) root folder.In the root of my git repository I have a .gitignore file with the following entries (backend is just a folder which contains the eclipse project Evaluation) backend/Evaluation/logs/ backend/Evaluation/target/ For some reason SourceTree does not ignore the files stored in these two folders and when I compile my project there are some uncommitted

Git cannot lock ref 'HEAD': unable to resolve reference HEAD

人走茶凉 提交于 2019-12-19 14:16:19
问题 I'm trying to commit the changes to my repository but I receive the error below: git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\Contronym\AppData\Local\Temp\bkdweixb.mnu fatal: cannot lock ref 'HEAD': unable to resolve reference HEAD: Invalid argument Completed with errors, see above. I'm using bitbucket and SourceTree. What's the reason for this commit failing? I was able to commit just fine the last 3 commits over the past week. Then, all of a sudden, I

SourceTree跳过注册方法

喜夏-厌秋 提交于 2019-12-17 22:58:35
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1)打开C:\Users\ Administrator \AppData\Local\Atlassian\SourceTree ,其中标红的是当前用户,具体根据个人的用户去访问不同的磁盘地址。 2)创建accounts.json文件,内容如下 [ { "$id": "1", "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity", "Authenticate": true, "HostInstance": { "$id": "2", "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount", "Host": { "$id": "3", "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount", "Id": "atlassian account" }, "BaseUrl": "https://id

Sourcetree 出现错误提示git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin

不问归期 提交于 2019-12-17 11:34:44
具体表现为:sourcetree无法和gitlab远程仓库进行交互,但使用本地cmd,可以使用git命令和远程仓库交互 通过各种账户、秘钥等操作,都无法解决该问题 具体信息如下: 解决方式: 点击 工具–>选项 打开如图所示弹窗,将默认的PuTTY/Plink更改为OpenSSH 原文链接:https://blog.csdn.net/u010457943/article/details/80649558 来源: https://www.cnblogs.com/shanghongyun/p/12053431.html

gitlab的仓库迁移到新的gitlab

混江龙づ霸主 提交于 2019-12-16 12:13:08
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 下载原有gitlab源码 git clone http://gitlab.**.com/projectName gitlab地址替换成为新gitlab地址 git remote set-url origin http://gitlab.**.com/newProjectName 本地推送到远程-可以在sourceTree中进行推送 git push origin --all 推送主干和分支 git push --tags 推送标签 查看远程gitlab地址 git remote -v master版本回退 将master分支移除protected分支 git reset --hard 版本号 或者 sourceTree选择’将master重置到本次提交’,选择‘强行合并’ git push -u origin master -f 还可以通过镜像的方式迁移 克隆老项目的镜像 git clone --mirror old.git (old.git 为老项目的git地址) 进入项目目录 cd old.git 老项目的地址替换成新项目 git remote set-url --push origin new.git (new.git 为新项目的git地址) 将镜像推到远程 ---------------------

使用SourceTree克隆git项目

帅比萌擦擦* 提交于 2019-12-16 12:01:10
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 一直以来,使用git都是使用SourceTree的客户端。最近在码云上面开了几个项目,也想使用SourceTree客户端,找了一下配置方法,亲自试验了。可行。记录一下。 SourceTree配置码云 不同的是,我这里验证的时候,出现的是下面的提示。接着往后操作就可以了。 前几天刚配置了码云,最近,因为公司要使用华为提供的DevCloud服务,所以就又存在一个从DevCloud拉取代码的问题。同样该开始如下图所示: 其实就是SSH的问题。接下来的做法: 进入devCloud的“代码”菜单中,设置一下SSH就好了。如果之前你的git已经生成过SSH的秘钥了,就可以用之前那个,如果没有生成过的话,在 SourceTree配置码云 中有描述,照做即可。 来源: oschina 链接: https://my.oschina.net/u/2752931/blog/2245038

How to setup Sourcetree to deploy to Heroku and Bitbucket?

为君一笑 提交于 2019-12-13 07:15:31
问题 I have setup a repository that points to heroku. In the "Optional Extended Integration" I have chosen "Bitbucket Server" as the host type, Host URL is set to "https://bitbucket.org" and the username is set to my username. Now whenever I commit a change to heroku I would like to commit that to Bitbucket as well. Unfortunately this does not seem to work with the setup I mentioned above. Is there anything I am doing wrong here? I am using SourceTree for Mac. 回答1: If you need to get two remotes

sourcetree的使用方法

落爺英雄遲暮 提交于 2019-12-12 13:24:18
之前在协同开发中遇到过这样的一个问题,在使用git合并代码时会覆盖掉其他同事的代码,刚开始接触的时候用的是命令行,后台开始用IDEA自带的git插件,今天第一次用到SourceTree,操作起来挺方便的! 一 、SourceTree简介 SourceTree 是 Windows 和Mac OS X 下免费的 Git 和 Hg 客户端,拥有可视化界面,容易上手操作。同时它也是Mercurial和Subversion版本控制系统工具。支持创建、提交、clone、push、pull 和merge等操作。 二、下载安装SourceTree步骤 1、下载地址: https://www.sourcetreeapp.com/ ,该版本是中文的 下载完成后可以进行安装。 2、安装SourceTree 安装首界面 点击,Next 点击“install”,安装完成后,打开sourcetree,点击“user an existing account”,如图 注意:1使用谷歌帐号登录即可,前提是你必须可以上谷歌才可以。 GOOGLE帐号登录完成之后,如图: 此处无需设置,直接点击“跳过初始设置”即可。 登录注册成功后,弹出设置puttykey的界面,点击“取消”即可。 点击“取消”按钮,弹出如下提示框: 此时进入到sourcetree的主界面,现在就可以使用sourcetree啦。 三、集成文件对比插件

How do you revert with sourcetree?

泪湿孤枕 提交于 2019-12-10 15:57:00
问题 What is the process to revert back to a previous commit if you are using sourcetree? Please no command line help, I understand how you would achieve the same result there but am specifically looking to do it with my friendly atlassian tool. 回答1: What exactly do you mean by revert? You can commit a reverse commit by rightclicking on a commit and selecting Reverse commit . This will effectively create a new commit that negates the changes you made in your selected commit. The commit with the

How to REALLY remove a tag on git / SourceTree

試著忘記壹切 提交于 2019-12-10 13:41:29
问题 I know how to delete a tag from SourceTree. Just right-click, delete, and tick "remove tag from all remotes." It then executes the following (and I'm omitting the flags -c diff.mnemonicprefix=false -c core.quotepath=false for readability): git tag -d my_tag git push -v origin :refs/tags/my_tag This works. Here is the problem. Some time later, one of the other developers will push their feature branch to origin, and SourceTree will automatically push all local tags to the remote server. This