Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7678473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:39:22+00:00 2026-05-31T17:39:22+00:00

Instead of selecting files manually when using git add , is there a way

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:39:23+00:00Added an answer on May 31, 2026 at 5:39 pm

    You might consider using a git alias. For example, you can add this to the .git/config file in your repository (or in your ~/.gitconfig):

    [alias]
            add-foo = add foo1 foo2 foo3
            add-bar = add bar1 bar2 bar3
    

    Then you can run git add-foo to add the files foo1, foo2, and foo3.

    man git-config for more details on git aliases.

    Of course, you could always use shell aliases too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using primefaces 3.0.M2 with backing bean to add files arranged in folders (modules)
Instead of using an interface like this: public interface IStartable { void Start(); void
Instead of just using urllib does anyone know of the most efficient package for
Instead of having an add() method in the repository, I would like to overload
Instead of going through each (+) sign at the left and clicking them to
Instead of using an external web-based Mercurial host, I want to set one up
Is there any way to select the Excel sheet used range via OLEDB Command
While using Vim, in visual mode, selecting text and then calling a colon command
I have a csv files with some special characters such as 'è' instead of
Few facts first: 1. I can only use ActionScript 2. 2. All files are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.