I would like to understand if I am missing anything here, and if not, this is a feature request for RStudio.
I was wondering if there is an option to add all untracked files to the index, and/or to commit all changed files, through the UI, without having to go through the shell, or without having to individually check all the boxes.
As in the image, I have created two new files, and would like to stage both of them in one go, exactly akin to git add --all
. Is there a way to do this from the UI without going through the shell.
The easiest way to add all files to your Git repository is to use the “git add” command followed by the “-A” option for “all”. In this case, the new (or untracked), deleted and modified files will be added to your Git staging area. We also say that they will be staged.
Git is used to keep track of how files change. The changes to files in your project can be in one of two states: unstaged: changes that won't be included in the next commit. staged: changes that will be included in the next commit.
The git add command adds a change in the working directory to the staging area. It tells Git that you want to include updates to a particular file in the next commit. However, git add doesn't really affect the repository in any significant way—changes are not actually recorded until you run git commit .
If you want to check all the boxes, while having the focus on one of the files as shown in the picture, you can simply press Ctrl + A
and then Enter
/Space
or Cmd + A
then Enter
/Space
. That will first select all boxes and then check them (or uncheck if checked).
Then you will have to write the commit message an click commit of course.
I am using RStudio Version 0.99.486
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With