git add -u flag
#include <stdio.h>
int main() {
// Assume there are changes in the working directory
// Step 1: Modify existing files or add new files in the working directory
// Step 2: Use the "git add -u" command to stage all changes to tracked files
system("git add -u");
// Step 3: Continue with the next Git commands as needed (e.g., git commit, git push)
return 0;
}