Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

commit specific file in git

#Best way to do it is by adding selected files and then committing it
#Use git status to see file list
git status
#Copy path of your desired file and do this
git add [paste_file_path]
#Do it again & again until you have added all the files you want to commit
#Then simply commit with a message
git commit -m "Type_your_message_here"
git push origin [branch_name]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #commit #specific #file #git
ADD COMMENT
Topic
Name
7+9 =