atlassian-sourcetree

SourceTree on Windows: How to connect to SSH?

99封情书 提交于 2019-12-03 04:50:10
问题 I have an SSH access to my web hosting, it works great with PuTTY (I just had to enter my domain, username and password), however it seems much more complicated with SourceTree. While PuTTY has a field for "Host Name", "username" and "password", SourceTree doesn't and requires a special file " .ppk "?! I need to connect SourceTree to my web hosting via SSH for the obvious reason that I want to use it to push to a remote repository located on my web hosting. So how do I get a .ppk file

Git - remote: Repository not found

不想你离开。 提交于 2019-12-03 02:55:37
问题 I have SourceTree with local working copy. And all operations work good, I can simple fetch, push, pull and etc via SourceTree. I just needed to make force push which does not exist in SourceTree. I opened terminal made git push -f remote: Repository not found. fatal: repository 'https://github.com/MyRepo/project.git/' not found I am not sure what can be an issue. 回答1: Remove the all github.com credential details from the system. For mac Delete the github.com password from the Keychain Access

How to ignore existing file in Git?

主宰稳场 提交于 2019-12-03 02:40:59
I need to work on file.txt locally and in Git, with different content. I want Git not to tell me that there have been changes to that file. Is this possible? Tom Auger Actually, you want --skip-worktree , not --assume-unchanged . Here's a good explanation why . So git update-index --skip-worktree file.txt TLDR; --assume-unchanged is for performance, for files that won't change (like SDKs); --skip-worktree is for files that exist on remote but that you want to make local (untracked) changes to. janos Maybe you want to "pretend" that the file hasn't changed when actually it did? You can do that

git rebase using sourcetree

故事扮演 提交于 2019-12-03 02:08:19
问题 I think I am confused on how to use SourceTree GUI to do git rebase. I have two branches "master" and "dev". As seen, the two branch diverged. I want to do a rebase on "dev" branch, using command line, this would be: git checkout dev git rebase master I would have expected to right click "dev", and choose "Rebase current changes onto dev". I assume current changes means "new commits on master". But picking this option seems have no effect whatsoever. What would be the correct steps? 回答1: But

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

为君一笑 提交于 2019-12-03 02:05:06
问题 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 回答1: Use ⌘ (OSX) or CTRL (Windows and Linux) and choose any two commits you like in log view. It does not matter what branch the commits belong to. As a result you will see something like... Displaying all changes between f03a18bf0370c62bb5fb5c6350589ad8def13aea and 4a4b176b852e7c8e83fffe94ea263042c59f0548 ...down below. 回答2: Another way to do

How to do git cherry-pick --continue in SourceTree?

帅比萌擦擦* 提交于 2019-12-03 01:54:21
How do I continue cherry picking using SourceTree after I resolved confilcts. If I am doing rebase and I get conflicts then after resolving them when I click commit SourceTree lets me continue that rebase. But how to continue cherry pick operation? cherry-pick effectively applies the changes from commit A onto the working tree and makes a commit. This means if you get any conflicts during cherry-pick ing you just need to commit after resolving them to finish the cherry-pick . EDIT Edward noted that this is only true when you are cherry-pick ing a single commit. When picking multiple commits

Cloning a repository with SourceTree

社会主义新天地 提交于 2019-12-03 01:08:29
Can someone give me a quick walkthrough on simply cloning a repo with SourceTree? In Bookmarks, I click on Clone Repository. For Source Path I paste in the URL which looks like this: git@codebasehq.com:client/appname/ios-application.git But I get "This is not a valid source path / URL". I'm copying directly from the Repository Browser in codebase so I know the URL is correct. What else do I need to do? Y Zhang My solution was to change the Git version from 'Use Embedded Git' to 'Use System Git'. Because I installed GitHub on my computer earlier, it seems SourceTree chose that Git by default

How to export all changed files between two Git commits in SourceTree?

心已入冬 提交于 2019-12-02 23:48:22
In TortoiseGit and TortoiseSVN it is possible to export all changed files between two revisions, including the directory structure, to an external folder. Is there a way to do so in Atlassian SourceTree (for Windows)? Try this: git archive --output=test_zip.zip HEAD $(git diff --diff-filter=ACMRTUXB --name-only hash1 hash2) Just replace the hash 1 and hash 2 in the example with the desired commits hash and name the zip file where you want your change to be zipped. It works for me Here's a solution using 7zip with a Custom Action ( Tools > Options > Custom Actions > Add ): Menu caption: > dist

Where is git submodule update in SourceTree?

北城余情 提交于 2019-12-02 22:04:53
How can I update git sub modules in SourceTree? I couldn't find the answer myself, so I created a custom action. Go to Preferences, Custom Actions, and enter the following info: (This is on a Mac. Your path to the git executable may vary.) Just double-click on the submodule or left-click and open the module Once in the submodule, the UI is like any git repo , press on pull/fetch to update to the header. And voila. Here is the windows version: This command assumes the location of your sh.exe - depending on how you setup SourceTree it could be somewhere else. /c %LOCALAPPDATA%\Atlassian

Why doesn't the graph display a new branch branching off from the master branch, when I create a new branch in terminal?

牧云@^-^@ 提交于 2019-12-02 21:43:06
Why doesn't the graph in Sourcetree display a new branch branching off from the master branch , when I create a new branch called "testing123" in terminal ? Sourcetree recognises the new branch but it doesn't branch off from the master branch in the graph. Why is this happening ? How can I make Sourcetree graph display the new branch branching off from master? It does: it has one new commit done from master . That means you have checked out the new branch testing123 , done one commit and pushed it (hence origin/ testing123 ). You don't see any "branching" because there is no new commit on