FAQ Database Discussion Community


How do I delete ssh keygen for user?

linux,git,atlassian-sourcetree,ssh-keygen
I have accidentally created a kengen for a user that does not exist. The command was cat ~/.ssh/authorized_keys >> keydir/jpeck.pub but actually... I didn't mean to do that. I have already deleted the file using rm jpeck.pub and it is certainly gone. However, when I try to push a commit...

Keep commit message subject under 50 characters in SourceTree

git,atlassian-sourcetree
While moving from Hg to Git I'm also brushing up on commit-message authoring. I find that the usual bits of advice about line length for Git are: First / subject line of max 50 characters; Subsequent lines max 72 characters. I'm doing most of my current Git work with SourceTree....

Sourcetree with Mercurial. Undo commit that has not been pushed

mercurial,atlassian-sourcetree
I have a Mercurial repository and have made a commit but not pushed it. I want to undo the commit I looked at the help here but the menu option "Reset Master to this commit " does not appear for me. I think the command would be hg rollback. Is...

Recover (reset, return) project files to latest commit in Git

git,atlassian-sourcetree
I've been working on a project and my computer shut down as though I unplugged it. The software that I was using did an auto save, but it created some problems. Since then I tried to fix it, but it is going to get very ugly if I force it....

How can I pull the changes from GitHub without pushing mine?

git,github,git-merge,atlassian-sourcetree
The problem is pretty simple. I use source tree to commit my changes, but I'm really a newbie and I don't want to mess up with the common project. What should I do for keep the files I added WITHOUT committing them and at the same time have the...

GIT: change commit date to author date

git,date,bitbucket,atlassian-sourcetree
Is it possible to change the commit date from my commit to the author date? I adapted some commits and now the dates are all the same. I want to set it back to the old dates (or the author dates). Is this possible? I am using Sourcetree so I...

Is there a way to get a visual diff on two branches in SourceTree?

git,git-branch,atlassian-sourcetree
Does Sourcetree offer a way to visualize differences between git branches? I'm looking for: names of files that have changed diffs between these files ...

Reset a remote branch to a previous commit

git,github,bitbucket,atlassian-sourcetree
I am using SourceTree and am still fairly new to git. I was attempting to merge a version together with another to begin working on the next version on its remote branch but it didn't work as I expected. I was able to get back to the commit I wanted...

Git diff of branches or commits showing file list overview in visual difftool and then selectable single file diff

git,visual-studio-2013,atlassian-sourcetree,git-diff,git-difftool
tl;dr: How can I get my custom difftool to open a directory/file view of a branch or commit diff so I can jump inside of my difftool in single file diffs and back to directory list to select the next pair of files? Using git and Beyond Compare 4. (Jumping...

Source tree unable to index added files to eclipse android project

android,eclipse,atlassian-sourcetree
The problem is when I add .png file into drawable folder, SourceTree cannot see new file in project... Solution?...

SourceTree 1.6.14 cannot find Git 2.4.0 installation on Windows

windows,git,atlassian-sourcetree
After installing Git 2.4.0 on my Windows 7 system, I tried to change the option in SourceTree 1.6.14 to "Use System Git", rather than the embedded version. However, upon clicking "Use System Git", nothing happened and the setting remained set to "Use Embedded Git". How can I make SourceTree use...

Can't find the .pbxproj file in Xcode

ios,xcode,git,atlassian-sourcetree
I have a problem regarding my .pbxproj file. I worked on a Xcode project on one computer and then I cloned it using SourceTree on another computer. But now I can't open the project since the project.pbxproj file is completely gone. I haven't added it to my .gitignore file and...

Local branches are tidy, but all the remote branches are still there… Any suggestions?

git,atlassian-sourcetree,git-flow
I have been happily merging branches locally via the "finish feature" option in "gitflow"... This also deletes the local version of that branch. I have only just realised all of my remotes copies of these branches are still up and running. Should i merge the branches in on the remote...

Merge branch in SourceTree

git,version-control,atlassian-sourcetree
Newbie Question alert ! My requirement is to merge a whole BugFixing branch to the development. On source tree there are two options when you go in to merging . "Merge from Log" and "Merge Fetched" . What's the correct option I should select ? Is merge from log only...

What's the use of Pull Request? And how to use Bitbucket properly?

git,bitbucket,atlassian-sourcetree
I've used BitBucket before but only solo for my own personal projects. I know the basics (the very basic I must say), but for solo developer only. And even then, I did it via Source Tree, not the console. So it's a lot easier for me. My usual workflow is...

Deleting commits with SourceTree

git,atlassian-sourcetree
I'm new on Git, and I undersand it only with SourceTree (a little bit) :-( My branch-graph is this: o Commit E is origin/test and (local) master | | o Commit D is origin/master | | | o Commit C | | | o Commit B |/ o Commit A...

How to organize source control for many subprojects? [duplicate]

git,git-submodules,atlassian-sourcetree,git-subtree
This question already has an answer here: Detach subdirectory into separate Git repository 17 answers I am creating a website with web apps within it. I am now at the stage where I am using phonegap to turn the web apps into mobile apps, but for that I need...

Diff tool in SourceTree

git,version-control,atlassian-sourcetree
I am using SourceTree as a Git client in my windows 7. I faced with a conflict and in order to resolve I click on Launch external merge tool as suggested. A window pops up very shortly and nothing happens then after! I just tried it on my Mac OS...

SourceTree - remove waiting pushes

git,push,commit,git-commit,atlassian-sourcetree
How do I remove commits, waiting to be pushed to remote? My situation is, that those queued commits (changes) been already pushed (more bellow) and now the server refuses to accept those as they are behind the HEAD. I tried resetting to another commit, but when I go back to...

How do I re-apply all of a branch's commits on top of master branch, but keep it in it's own branch?

git,version-control,atlassian-sourcetree
Okay, that may be hard to understand from the title. Basically I have a Wordpress plugin, and I'd like to use the same repository for both the full version and the lite version of the plugin. I got this great idea from a great post about this topic elsewhere on...

What is the difference between stop tracking and discard file in git SourceTree

git,atlassian-sourcetree
I wanted to know what the difference is between discarding a file and and stop tracking a file in git using source-tree. If I deleted a file in my updated code and I want that file deleted on the repository too should I mark it as stop tracking or should...

Merging branches in GIT - What does this message mean

git,merge,atlassian-sourcetree
In my project I currently have two branches a branch called DEMO and another branch called Master. I am attempting to merge DEMO into Master. The branch Demo has some files that Demo does not have along with some other changes.In order to do that I am using Source Tree...

remove waiting push in sourcetree

git,atlassian-sourcetree
I committed files that I don't want to push. I didn't push yet but how can I remove the commit. This is how it looks: This are the options: I don't want to undo any changes to the source code!!...

Source tree commit attempt fails with cannot amend public changesets error

mercurial,atlassian-sourcetree
So that I could learn source tree, I set up a private repository in bitbucket and made 2 clones to my computer. When I try to commit from one of the clones I get the following error. hg commit -y --amend --logfile C:\Users\kirsten\AppData\Local\Temp\n1j0esve.5ce abort: cannot amend public changesets Completed with...

git unmerge a branch

git,atlassian-sourcetree
I am using sourceTree for Mac as my GUI so I would appreciate instructions on using it but obviously I would like to learn the bash commands as my first language. We have a remote repo we call develop, and the practice is, when you develop a feature, you create...

Does cloning a repository using Git creates two copies of it on our local machines?

git,visual-studio,atlassian-sourcetree
I am using Git for version controlling and Source Tree client. I make some changes to file A in Visual Studio and save the changes, but I do not commit those changes to my local repository. So there will be two copies of file A now. So does this mean...

what does “behind” mean in source tree? [duplicate]

git,atlassian-sourcetree
This question already has an answer here: Meaning of Github Ahead/Behind Metrics 4 answers I'm new to git community, and I use source tree to visualize it but I wonder what is the meaning of "behind" as you can see in the picture ...

How to import existing source code with multiple branches into git

git,version-control,bitbucket,atlassian-sourcetree
I have a HTML/PHP website which is currently not in any source control. I have two different folders a development and live folder. The development folder is where I create new features and the live folder is the source which is actually used for real users. I want to represent...