Vlad
Vlad

Reputation: 511

How to force git to update single file

I have a file which should be updated on github. Although when i try to update this file with command

$ git commit -m 'update' package.json

I recieve nothing to commit, working three clean.

Can i force git to update this file any way?

Upvotes: 0

Views: 658

Answers (1)

Přemysl Šťastný
Přemysl Šťastný

Reputation: 1832

Try

git add package.json; git commit -m 'update'

Upvotes: 1

Related Questions