-4

I make some changes in my locally file with php extension (myfile.php) and i want to pull my file into server. I already use this command :

  • git commit yourfile.js

but i have an error like this "error: pathspec 'function.php' did not match any file(s) known to git."

I'll be glad for any help. Thanks .

user3942918
  • 25,539
  • 11
  • 55
  • 67

1 Answers1

0

use this command:

git add myfile.php
git commit -m"your message"
git push origin [branch to push]

This is what I understood from your question. Is this what you want to achieve?

Jeffrey Hitosis
  • 325
  • 3
  • 13