Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to commit a specific file in git

if you are in the current directory, add ./ to the front of the path;

git commit -m 'my notes' ./path/to/my/file.ext
git commit -o path/to/myfile -m "the message"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #commit #specific #file #git
ADD COMMENT
Topic
Name
9+3 =