Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent command in SourceTree GUI of 'git add .'?

I am trying to use SourceTree GUI. I've successfully created a local repo, committed some adds, removes, and mods, also successfully pushed to my remote.

My problem is, everytime I try to commit, the 'Staged Changes' file list in my commit window is empty, and I must manually drag and drop the content of 'Working Copy Changes' filelist to the 'Staged Changes'.

I figured out, if I issue the 'git add .' command in my terminal, then the very same thing happen.

Is there any way not to do this allways before my commits?

like image 582
g.pickardou Avatar asked Sep 20 '15 09:09

g.pickardou


People also ask

Is Sourcetree the same as Git?

Git is a linux program, Sourcetree is a git GUI, Github is host for software repositories that can be managed/downloaded via git.

Is Sourcetree a version control?

Atlassian Sourcetree is an example of of a Git GUI that can be used to visualize the Git workflow and use version control without touching the command line.


1 Answers

According to this answer from Atlassian, you can multi-select files (Cmd-A to select all) in the File Status View and once you've selected them, click 'Add' or press Cmd-+ (Shift-Cmd-=)

Alternatively, once you have pushed the Commit button, the commit dialog has a checkbox to the left of the text Unstaged files. If you check it, you will immediately stage all files that are currently listed as unstaged:

Unstaged files part of commit dialog

like image 179
Klas Mellbourn Avatar answered Sep 21 '22 06:09

Klas Mellbourn