![]() Because obviously nobody would want to look at the content in the SourceTree window behind it to make a decision on what branches to check- that's crazytalk! And obviously nobody would want to make it bigger so the listbox could show more than 8 items at a time- that's wacko-sauce!) (Meaning: it's also not movable or resize-able. WTF is this thing? It's not a dialog, it has no title bar. Oh BTW, ANOTHER BLAKEY WTF I JUST THOUGHT OF: Now if only there were a way to rubber-band selection a listbox without having to click once on every single item. Even though that makes no sense and is visually confusing and jarring. And when you have a checkbox selected and then scroll the list, you can see the checkbox fade-out. MORE BLAKEY-BONUS: SourceTree's GUI framework is so broken, the checkboxes don't scroll with the list, but instead stay in-place and get linked to whatever list item happens to be next to it.īecause they added this "cute" little fade-in animation when you click a checkbox. ("git cleanup-local-branches" is too fucking hard I guess. It's either like a 20-line Bash script, or a 500-line CLI command that'll make your head spin and uses like 27 pipes to accomplish this simple fucking task. Now I'll be here clicking 400 tiny checkboxes for the next half hour, this is now my job.ĪDDED BLAKEY-BONUS: I looked up how to do this on the CLI, and it's even MORE convoluted and idiotic. Remember this next time some moron tells you SourceTree is a "good" UI for Git. once again I am disappointed with the state of modern software development.ĭid the guy who wrote this code never even *use* a computer before? He fucking *went out of his way* to make a multi-select list box, then choked when it came time to wire-up the Delete button. Well the selection bit works, so I'm confident now that the Delete button will do what I want, and the makers of SourceTree aren't retarded idiot-morons who should be put in straightjackets for their own protection.Īnd. Yeah, you must be able to, it would be MUCHO RETARDED for SourceTree to ignore all GUI conventions of the last 30 years of software development and require you to click 300 checkboxes instead of just shift-clicking a few list items! RIGHT? RIGHT!?!?!?!! Can't I just, you know, select the items in the list? Look, SourceTree has a little dialog box where it just lists all the branches and has a Delete button right there. Most are merged already, some are deleted on the server, a good portion I only even pulled in the first place to test some other idiot's pull request. You can undo many other Git operations with this familiar keyboard shortcut.There's like a billion of these annoying local branches just plopped in my Git shit, and I don't wanna see 'em anymore. If you're using the Tower Git client, you can simply press CMD+Z (or CTRL+Z on Windows) - like you would to undo changes in a text editor - to undo the deletion and restore the branch: Learn more about this in our free First Aid Kit for Git video series. If you're working with Git on the Command Line, you should take a look at a Git tool called "Reflog". In most cases, if you don't let too much time pass, you can restore a deleted branch. It goes without saying: please be careful with this command! Can I undo deleting a branch? This will force deletion of the branch, even if it contains unmerged / unpushed commits. because you've programmed yourself into a dead end and produced commits that aren't worth keeping) you can do so with the "-D" flag: $ git branch -D If you want to delete such a branch nonetheless (e.g. This is a very sensible rule that protects you from inadvertently losing commit data. In some cases, Git might refuse to delete your local branch: when it contains commits that haven't been merged into any other local branches or pushed to a remote repository. ![]() Git makes managing branches really easy - and deleting local branches is no exception: $ git branch -d
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |