Basic Git Notes

Posted August 23, 2011 in Git

github_icon

Warning: file_get_contents(/home/content/m/m/o/mmowbiz/html/wp-content/plugins/member-terms-conditions/terms-and-conditions/terms-and-conditions.txt) [function.file-get-contents]: failed to open stream: Permission denied in /home/content/m/m/o/mmowbiz/html/wp-content/plugins/member-terms-conditions/terms-and-conditions.php on line 79

Warning: file_get_contents(/home/content/m/m/o/mmowbiz/html/wp-content/plugins/member-terms-conditions/terms-and-conditions/privacy-policy.txt) [function.file-get-contents]: failed to open stream: Permission denied in /home/content/m/m/o/mmowbiz/html/wp-content/plugins/member-terms-conditions/terms-and-conditions.php on line 83

Saving State About to attempt something drastic? Before you do, take a snapshot of all files in the current directory and manage it with git. $ git init $ git add . $ git commit -m "My git backup" Now [...]

Git Force Overwrite

Posted August 10, 2011 in Git

Git-logo (1)

Warning: file_get_contents(/home/content/m/m/o/mmowbiz/html/wp-content/plugins/member-terms-conditions/terms-and-conditions/terms-and-conditions.txt) [function.file-get-contents]: failed to open stream: Permission denied in /home/content/m/m/o/mmowbiz/html/wp-content/plugins/member-terms-conditions/terms-and-conditions.php on line 79

Warning: file_get_contents(/home/content/m/m/o/mmowbiz/html/wp-content/plugins/member-terms-conditions/terms-and-conditions/privacy-policy.txt) [function.file-get-contents]: failed to open stream: Permission denied in /home/content/m/m/o/mmowbiz/html/wp-content/plugins/member-terms-conditions/terms-and-conditions.php on line 83

This one is hard to find out there so here it is. If you have an uncommitted change (its only in your working copy) that you wish to revert (in SVN terms) to the copy in your latest commit, do [...]