Reputation: 621
I have made a small change to code of a certain page which is held on github. It doesn't seem like the change that I made is big enough for git to pick this change up, so I can not commit the change (the change was so small, it was only changing InsertLinkCircularLoopCheckTemplate to InsertLinkCircularLoopCheck on one line in filename modifyobservation.aspx.vb). Is there anyway to force my file over the one on git with this change?
Upvotes: 2
Views: 1063
Reputation: 1324258
Srinivas's answer will overwrite (in that it will as a new version to) the file on GitHub.
Should you want the reverse, ie leave the version on GitHub unchanged, but have a local version (in your working tree) which will always overwrite the GitHub version even after a git pull, then you can ask for your local file to have its modifications ignored (while still being versioned).
git update-index --assume-unchanged -- /path/to/your/file
Upvotes: 2
Reputation: 11155
you can do like this way,
git add yourfilename
git commit -m "message"
Upvotes: 3