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

  • SEARCH
  • Home
  • 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 7999477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:31:03+00:00 2026-06-04T15:31:03+00:00

Possible Duplicate: git add -A, git commit in one command? If I understand correctly,

  • 0

Possible Duplicate:
git add -A, git commit in one command?

If I understand correctly, when new files are added to a directory when using git, I have to call more than one command to make sure that the files are committed:

git add <directory name>
git commit -m 'commit comment'

This doesn’t sound right because I know I (and many other people) will forget to call git add <directory name> and then end up with a project that is missing all the new files that were created. It seems that I should be able to commit the entire directory, including any and all new files, in one command without having to specify in a previous command to add all new files to the commit. How do I do this?

  • 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-06-04T15:31:05+00:00Added an answer on June 4, 2026 at 3:31 pm

    get G2 at https://github.com/orefalo/g2

    G2 will help you learn the git command line by providing easy to use macros.

    the command is g freeze -m "commit msg".

    It works with additions, deletions and changes. you are freezing a state.. which should have been the way to be from day one.

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

Sidebar

Related Questions

Possible Duplicate: Git - Whitelisting files in a complex directory structure I have a
Possible Duplicate: Git over Email I'm new to Git and am interested in using
Possible Duplicate: Locking binary files using git version control system I am committing a
Possible Duplicate: Using Git how do I find modified files between local and remote
Possible Duplicate: Show the original branch for a commit git version 1.7.4.1 I have
Possible Duplicate: How to quickly set up Git for teams using Xcode? I have
Possible Duplicate: git: command not found how do I add /usr/local/git/bin/ to the PATH
Possible Duplicate: Git undo last commit I have a folder structure like this.. ~/git
Possible Duplicate: How to delete a 'git commit' I am new to git and
Possible Duplicate: View the change history of a file using Git versioning Sometimes I

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.