Logo TheBeArsenal

Git | Technical Handbook

How to add and commit specific file changes in Git?

Solution
git add <file_path> followed by git commit -m "your message". For specific lines within a file, use git add -p.