atlassian-sourcetree

Edit a commit message in SourceTree Windows (already pushed to remote)

徘徊边缘 提交于 2019-12-17 15:08:11
问题 How do I edit an incorrect commit message in SourceTree without touching the command line? Additional details: This is not the latest commit. Everything was already pushed to Bitbucket. This is a private repository and I am the only collaborator. I don't mind losing any of the previous commits, as I can re-commit them anytime. I don't want however to lose any code modification ever made. Outcome: As it seems impossible at the moment according to your comments and replies, I'm going to create

Changing author/mail on specific commit/s

心不动则不痛 提交于 2019-12-14 03:30:05
问题 I have a repository on bitbucket which is aligned with the online repository (origin), while using Atlassian Sourcetree as tool for managing it. Let's say it has 20 commits. Sourcetree for some reason haves its share of fun changing project settings and I wrongly pushed 2 commits (let's say commit 15 and 16 as some other coworker which uses the machine too. I want to put my name and mail in those commits. Let's imagine the tree like this (without branches, just master) Commit number ->

git tree is broken

一个人想着一个人 提交于 2019-12-14 03:29:18
问题 How do I get my git tree to show correctly on a GUI git viewer? My git tree in all GUI apps has no beginning and actually goes further below than the initial commit. I am the only one facing this problem in my company. I have no idea why but my git tree looks completely different than everyone else in my company. I tried the following two apps to view the tree: gitkraken source tree I with both apps I deleted all my repositories and cloned from a fresh directory. Below are 2 image from the

Bitbucket not showing changes in themes directory

半城伤御伤魂 提交于 2019-12-14 03:25:06
问题 I'm using Sourcetree on OS X. I'm working on a WordPress project. For some reason, changes I make in the 'themes' directory are not being shown as Unstaged files. If I add a test file to /wp-admin/ or /wp-content/ it shows the test file as unstaged. I can't figure out why themes files are not being tracked. I checked .gitignore and it's empty. Any help is appreciated. Thanks! 回答1: To clarify the question. If SourceTree fails to recognize un-tracked files here are some steps you should take.

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

穿精又带淫゛_ 提交于 2019-12-14 02:55:39
问题 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 back and forth from file list to file diff and back is partly a build in feature of the difftools). Details: I have been working myself into Git the last couple of month and it is a great tool. But I was wondering if there is a possibility

Can't connect to git repo on El Capitan with SourceTree

百般思念 提交于 2019-12-13 08:42:30
问题 I'm using a Mac to host our code, which is set up as a git repository, and performing my push, pull, and so on with SourceTree, on Windows 7. Up until recently, this was working fine, however since updating the OS on the Mac to El Capitan, SourceTree no longer wants to push. I use public key/private key authentication, and the repo url is of the format: ssh://user@IPAddress/path If I try to connect using PuTTy, there is no problem - pageant is running, and seems to be doing its thing. When I

Git - preventing a particular commit from ever being pushed

╄→尐↘猪︶ㄣ 提交于 2019-12-13 03:47:23
问题 I am using git with Source Tree. I have made 3-4 changes to some files in a local copy of a branch. I will always need these changes locally but I want to never accidentally push it to remote. I can of course keep these changes uncommitted, but that way I risk losing the changes in case of an accidental discard or clean etc. Is there any way I can mark some files for never being pushed. Alternately is there any better way to achieve my purpose. Some of these are file changes & some of these

Setting up SSH on sourcetree - wont PUSH to GitLab - asks for password

大兔子大兔子 提交于 2019-12-13 02:11:18
问题 I have followed the below instructions to create an SSH key and added it to Gitlab. https://www.sourcetreeapp.com/faq/ (under the heading "How do I set up SSH keys for authentication?") My changes are being tracked in Sourcetree and I am able to commit but I cannot pull or push without it asking for Authentication. Every time I add my password it rejects it but I am able to login direct to Gitlab with the same details. Am I missing something? I thought having set up SSH I wouldn't have to

GIT picking up whitespace changes it shouldn't

ⅰ亾dé卋堺 提交于 2019-12-13 01:26:08
问题 After running our build process, some files are showing up in SourceTree with whitespace-only changes. Leaving aside discussions about whether auto-generated files should be included in source control, my problem is this: Files show up in the uncommitted window. If I attempt to commit them, I get the error below. Ideally I'd like to have SourceTree be smart enough to not display these files as modified in the first place. Is there a good way to accomplish this? git -c diff.mnemonicprefix

can I use SourceTree and a GitHub app at the same time?

烂漫一生 提交于 2019-12-12 10:37:41
问题 As a novice, I prefer the simplicity of the GitHub app itself to work on our GitHub-hosted git project. However, to sync/push-and-pull another remote, I need to try SourceTree. (I am not confident enough to keep everything in the command line.) Can I use the GitHub app for most editing of my (main) local repo and syncing with GitHub.com, and only occasionally fire up SourceTree to sync (my main local repo, as a I cannot sync the github.com remote directly to another remote, can I?) with the