atlassian-sourcetree

Stash the changes made with atlassian sourcetree

 ̄綄美尐妖づ 提交于 2020-06-24 03:07:49
问题 I have a lot of files changed in my project. I want to stash 2 files but i'm a bit afraid to make a mistake since i never did this. If i would stash now, will it only stash the 2 staged files? And if I don't mark the "Keep staged changes", will it then revert to how it was before? This might sound stupid, but better save then sorry. 回答1: This applies to Git in general, not just with SourceTree. When you stash changes, the items that will be stashed are the changes to tracked files in your

GIT: change commit date to author date

扶醉桌前 提交于 2020-06-23 21:24:18
问题 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 have the git command line but I am not a pro at that. My external repository is bitbucket. 回答1: Since git 1.6.3 git rebase has --committer-date-is-author-date for this purpose. git rebase --committer-date-is-author-date Original answer: There's no easy

GIT: change commit date to author date

大憨熊 提交于 2020-06-23 21:23:43
问题 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 have the git command line but I am not a pro at that. My external repository is bitbucket. 回答1: Since git 1.6.3 git rebase has --committer-date-is-author-date for this purpose. git rebase --committer-date-is-author-date Original answer: There's no easy

How to create master branch in remote repositories?

大兔子大兔子 提交于 2020-06-13 06:16:32
问题 I encounter an issue when I create a bare repository. Here is my step: Create a folder named Test in a C:\ as a remote repository Create repository in sourcetree and select C:\Test Input command git init --bare in terminal Clone C:\Test to my local folder D:\Test However, I can't see master branch in both C:\Test and D:\Test . How can I create a master branch? Thanks PS: my C:\Test has hooks, info, objects, refs, config, description, HEAD. Do I need to check in them and make them as master

Can't clone private repo on github from SourceTree

寵の児 提交于 2020-06-10 11:02:48
问题 A similar issue is described here however, my symptoms are a little different and none of the steps there seemed to work. Nor does the suggestion here work. I'm attempting to use SourceTree to clone a private repo belonging to github organization of which I am a part. I have full permissions to view and commit to the repo, I can see it online when I log in, AND I can clone just fine with the command line and also via the github desktop application. It only fails in SourceTree. Further, it is

Can't clone private repo on github from SourceTree

谁说我不能喝 提交于 2020-06-10 11:02:27
问题 A similar issue is described here however, my symptoms are a little different and none of the steps there seemed to work. Nor does the suggestion here work. I'm attempting to use SourceTree to clone a private repo belonging to github organization of which I am a part. I have full permissions to view and commit to the repo, I can see it online when I log in, AND I can clone just fine with the command line and also via the github desktop application. It only fails in SourceTree. Further, it is

Unable to clone/fetch from private repo after creating new GitHub account

为君一笑 提交于 2020-05-28 03:44:29
问题 I'm a freelance developer who uses git and SourceTree. I have been working for the past few months for a particular client who has a private GitHub repo, and I've been using SourceTree during that time to pull and push changes to GitHub. I have another client who wanted me to create an 'Intro to Programming' course, and I (stupidly) just used my normal OS environment/user rather than creating a new OS user. I created a new 'demo' GitHub user and connected it to SourceTree so that I could show

Getting “fatal: Authentication failed” -error when sending git commands in Windows 10

大城市里の小女人 提交于 2020-05-24 08:13:07
问题 After updating domain password, accessing git-repo is no longer possible. VS Code and Source Tree as well as Visual Studio are returning the following error message on pull, push, fetch etc.. fatal: Authentication failed Normally a credentials pop-up should appear however this is not happening. Also the common recommendation... git config --global credential.helper wincred ...is not working. 回答1: The password is stored in windows credential manager and needs to be updated. Open command prompt

How to rebase pushed branches without ruining tree?

一笑奈何 提交于 2020-05-17 06:22:45
问题 I'm the only developer working in a repository, so there's no issue with ruining peoples' flow. However when I rebase locally and then try and push it to Bitbucket, it comes back telling me I need to pull the latest changes. I do that, and the rebase has completely ruined my clean tree. Is there a way to push a rebase to the server without then having an additional "Merge branch" commit as part of it? Thanks! 回答1: Rebase is fundamentally a "copy some commits, then discard the old commits in

How to rebase pushed branches without ruining tree?

久未见 提交于 2020-05-17 06:22:10
问题 I'm the only developer working in a repository, so there's no issue with ruining peoples' flow. However when I rebase locally and then try and push it to Bitbucket, it comes back telling me I need to pull the latest changes. I do that, and the rebase has completely ruined my clean tree. Is there a way to push a rebase to the server without then having an additional "Merge branch" commit as part of it? Thanks! 回答1: Rebase is fundamentally a "copy some commits, then discard the old commits in