4 ms·
> You can only stage all changes in a file If I'm understanding you correctly, this is wrong. You can add individual lines in a file to your commit. That's one
by cheshire137 9y ago
> You can only stage all changes in a file
If I'm understanding you correctly, this is wrong. You can add individual lines in a file to your commit. That's one of the main uses I have for the app: it's easier to split up file changes between commits than on the command line. See this screenshot: http://imgur.com/a/4CQG7 http://imgur.com/a/4CQG7 You have to click on the line numbers to add/remove individual lines.
- IshKebab 9y agoNot a very obvious UI!
- danielsamuels 9y agoSourceTree is much better in this regard.
- leesalminen 9y agoUI is same as Tower. Doesn't seem that far off for me.
- roryokane 9y agoNo, Tower works differently (unless it has changed in the few months since I used it). In Tower, you can select lines by clicking line numbers, but then you must click "Stage" to actually stage those lines. Then your selection is cleared and those lines are moved to a separate "Staged" tab for that file. Whereas with GitHub Desktop, just selecting the lines marks them as lines to be staged. (GitHub Desktop doesn't actually run `git add` on those lines until the moment you click "Commit".)
- gjtorikian 9y agoWell, fortunately it's free and open source: https://github.com/desktop/desktop https://github.com/desktop/desktop You could submit an issue or a pull request with suggestions on what a more obvious UI might be!
- shurcooL 9y agoLooks exactly the same as the previous GitHub Desktop app.
- nailer 9y agoThanks! It took me a while to work out how to do this even reading your description. - First I thought you select lines, like other git apps. No, it's not just that numbered line, it's the actual digits on the left. - Then I selected some digits, expecting a 'stage' button to appear. Then finally I realised just selecting the lines committed only them. Even working out how to do it, it's still weird because lines with blue digits now get committed, lines with green ones don't.