GitHub Desktop 3.2: Preview your pull request
github.blog
github.blog
It's just `git commit -p` (and `git checkout -p`). It's not exactly a deep cut, but I encourage people who are familiar but don't use it to give it a try.
Thanks for pointing this out, I feel like git is the thing I should know best by now yet I'm missing so much of what it can do. It's great to see others' workflows.
I wrote https://github.com/brasic/fixdown to make this easier to use.
git gui
which you probably already have if you use Linux also has this functionality.There's a stackoverflow discussion [1] that suggests it was fixed in 2018, but for many years it was a terrible experience that pushed me to use other frontends just for reliable partial staging.
1: https://stackoverflow.com/questions/58133092/git-gui-error-f...
A lot of times people don't even understand how powerful the staging area is; they're just used to saying git add && git commit without realizing that it can be an incredible way to take a day of chaotic fixes and turn it into a set of commits you can be proud of!
It also provides an incredible tree view of commit parentage, perfect for when you need to instantly understand what happened with this weird merge/rebase that broke things, and to screenshare it to teach colleagues who might not have developed an internal understanding of the tree structure that Git is based on.
The software is now 9 years old and abandoned, but I've used this specific fork at least weekly - often daily - for every one of those years, across Intel and M1 Macs, and it's never let me down!
In Fugitive, open it with :Git , select the unstaged file then press = . Select the desired range with visual mode, then press s and commit as normal.
In VS Code, select a hunk, press Ctrl+P, then type "Stage Selected Range." Repeat this process and commit as normal.
Edit: formatting and typo.
The website is being neglected, (especially on mobile) which is the primary value the service has for me. If I have `git` I really don't need GitHub except to view comments.
Ironically, notifications and comment management is still pretty bad.
Don't get me wrong, I still think GitHub is the best at what they do, but like many incumbents, I feel like they are losing a bit of what makes them so great.
Polish up the features you have, we don't need endless feature releases, we need smooth features we know and love.
There’s a subset of your users who aren’t going to invest in learning your existing tools but you still want them to use your product.
You can’t write more documentation because the more documentation there is, the less people will read it. You can’t tell them to ask for support because they’ll just flood you and eventually give up.
So you build a GUI for these users and they’re happy and you’re happy. Your expert users won’t understand, will complain that you’re wasting your time, but that’s a price worth paying.
Using git on the command line can be hard to learn and unintuitive for people - the desktop client makes things easier and that's a good thing (kind of like how the GUI made computers accessible to more people and ended up benefiting everyone in software...)
Other than those, when I need something I don't typically use, I have google. And most of those instances where it's not one of the commands above, the UI is usually pretty bad anyway. I do like the preiew/diff in VS Code a lot though on the git tab.
I do wish there was a way to post-operate on the most recent commit (uncommit) via the gui though. I tend to work in a branch, regularly squashing and rebasing against upstream branch... then would prefer to be able to (via gui) uncommit the most recent commit, just so I can preview/edit a final pass at once. That is about the only workflow that I sometimes want/need that isn't really in the box, or otherwise more of a pain in the UI anyway.
Mind sharing where I can get this?
On the website, the Notification Center has gotten better, linked methods is very helpful, code spaces are very cool (though I haven’t gone deep on them), repo redesign is great … IMHO, only gotten better.
You can neglect something's foundation while strapping new bells and whistles on.
I think github looks fairly nice/modern given it's age and I'm not having issues or feeling like anything is "abandoned". All I'm hearing is hyperbole.
I actually understand git better because of Merge. It's great because it provides a great interface into git, but it doesn't _hide_ git from you; it explains it quite a well.
I suppose a newcomer to git might find Merge intimidating, but for anyone with a bit of experience I think it's quite an awesome power tool with a rare balance of handy abstraction and transparency around git itself.
Just my 2c
Also git reflog?
I don't love most of the GUI tools for git, but I use Sourcetree for 10,000 ft visualization and can't really parse CLI git --log graphs, even if they're heavily decorated.
Much easier to read and browse than a terminal.
Personally, I spend a lot of time reviewing other's code ad also going through my own PR's in Github. I'm very familiar with that view. I think it helps my brain that I use the same diff view when I'm working locally and when I'm reviewing code on Github.
> One thing I do like a lot is that the diff I see is exactly what my code reviewers will see.
What will they see in the diff that you can see using Github Desktop that you wouldn't see by running git diff master?
SourceTree has the same problems. I'm fond of just using the CLI but I'd like to be able to recommend a UI tool for other Devs. Haven't found one that works for Windows and WSL2 together.
might fit your needs