Instead of selecting files manually when using git add, is there a way to group these files and assign them a name so all I have to do would be something like git add <groupname>. That would then add all files within that group? Does that feature exist?
Edit: Thanks for all your replies. I know about git add <folder>/*, but what if not all files within that folder are needed? I’m asking so a group of files (let’s say 17 files) can be one fork while another group can be from another fork. The thing which bothers me is these files are spread out in different folders so uploading the folder alone won’t work. It has to be by file.
You might consider using a git alias. For example, you can add this to the
.git/configfile in your repository (or in your~/.gitconfig):Then you can run
git add-footo add the filesfoo1,foo2, andfoo3.man git-configfor more details on git aliases.Of course, you could always use shell aliases too.