Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RStudio: git add --all from the UI

Tags:

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.

enter image description here

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.

like image 764
tchakravarty Avatar asked Apr 29 '15 06:04

tchakravarty


People also ask

How do I add all mods to Git?

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.

What is the Git command in RStudio?

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.

What is Git add command?

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 .


1 Answers

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

like image 78
leosz Avatar answered Sep 22 '22 01:09

leosz