{"id":110,"date":"2011-05-22T05:29:55","date_gmt":"2011-05-22T05:29:55","guid":{"rendered":"http:\/\/pixert.com\/blog\/?p=110"},"modified":"2011-08-11T06:02:34","modified_gmt":"2011-08-11T06:02:34","slug":"how-to-delete-or-remove-a-local-git-repo-repository","status":"publish","type":"post","link":"https:\/\/pixert.com\/blog\/how-to-delete-or-remove-a-local-git-repo-repository\/","title":{"rendered":"How to delete or remove a local Git repo (repository)"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"88\" data-permalink=\"https:\/\/pixert.com\/blog\/git-lesson-branch\/githeader\/\" data-orig-file=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?fit=71%2C26&amp;ssl=1\" data-orig-size=\"71,26\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Git\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?fit=71%2C26&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?fit=71%2C26&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?resize=71%2C26\" alt=\"\" title=\"Git\" width=\"71\" height=\"26\" class=\"alignright size-full wp-image-88\" \/><\/a>If you want to delete everything (.git folder, files and folders), just delete the whole directory<\/p>\n<p>Mac OSX<br \/>\nOpen Terminal and run the following<\/p>\n<pre class=\"brush: bash; title: Code Block; notranslate\" title=\"Code Block\">\r\nrm -rf directoryname\r\n<\/pre>\n<p>Windows<br \/>\nRight-click the folder and choose Delete. It will goes to Recycle bin<\/p>\n<p>Note: this works for Git Clone and Git Init<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to delete everything (.git folder, files and folders), just delete the whole directory Mac OSX Open Terminal and run the following rm -rf directoryname Windows Right-click the folder and choose Delete. It will goes to Recycle bin Note: this works for Git Clone and Git Init<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[34,35],"tags":[50,53,36,52],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-mac-os","category-windows","tag-git","tag-mac","tag-mac-os-2","tag-windows-2"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1pvi1-1M","jetpack-related-posts":[{"id":82,"url":"https:\/\/pixert.com\/blog\/git-lesson-branch\/","url_meta":{"origin":110,"position":0},"title":"Git lesson : Branch","author":"Pixel Insert \/ Pixert","date":"April 12, 2011","format":false,"excerpt":"What is GIT? Git is... Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":125,"url":"https:\/\/pixert.com\/blog\/git-lesson-branch-is-ahead-by-x-commits\/","url_meta":{"origin":110,"position":1},"title":"Git Lesson : branch is ahead by x commits","author":"Pixel Insert \/ Pixert","date":"July 7, 2011","format":false,"excerpt":"\u00a0\u00a0If Git suddenly popup a warning, \"branch is ahead by x commits\". You can do the following Switch to the branch, e.g it's the Master branch [bash]git checkout master[\/bash] Then, use Git Fetch to\u00a0update the local copy of a remote branch [bash]git fetch[\/bash] Git fetch is similar to pull, except\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/04\/githeader.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":724,"url":"https:\/\/pixert.com\/blog\/discovering-where-obsidian-deletes-notes-on-mac\/","url_meta":{"origin":110,"position":2},"title":"Discovering Where Obsidian Deletes Notes on Mac","author":"Pixel Insert \/ Pixert","date":"July 19, 2025","format":false,"excerpt":"The author shares their experience using the Obsidian application for note-taking on a Mac, highlighting an issue with deleted notes. Deleted files from Obsidian are sent to the trash of the external hard drive where the application is installed, rather than the Mac's main trash. Instructions for accessing the external\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"Context menu of the Obsidian application showing various options including 'Delete file'.","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/07\/Screenshot-2025-07-19-at-16.57.54.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":823,"url":"https:\/\/pixert.com\/blog\/moving-files-and-folders-with-keyboard-in-mac\/","url_meta":{"origin":110,"position":3},"title":"Moving files and folders with Keyboard in Mac","author":"Pixel Insert \/ Pixert","date":"December 28, 2025","format":false,"excerpt":"There's no easy way to move files and folder in Mac. Something that I knew when I migrated from Windows and Mac.After I learned about Keyboard Shortcuts,I found that there are ways to moving files and folder with keyboard in Mac. First, we must open Window where file(s) or folder(s)\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/12\/IMG_20251228_1449372-scaled.jpg?fit=904%2C1200&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/12\/IMG_20251228_1449372-scaled.jpg?fit=904%2C1200&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/12\/IMG_20251228_1449372-scaled.jpg?fit=904%2C1200&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2025\/12\/IMG_20251228_1449372-scaled.jpg?fit=904%2C1200&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":338,"url":"https:\/\/pixert.com\/blog\/show-hidden-files-mac-os-x\/","url_meta":{"origin":110,"position":4},"title":"Show and Hidden Files on Mac OS X","author":"Pixel Insert \/ Pixert","date":"November 2, 2013","format":false,"excerpt":"I often edit. htacces, but when downloading or create files. htacces, the files hidden by Mac OS X, I'm currently using OSX 10.8.5. In Mac OS X, files with names that start with a dot (.) are hidden I'm using Terminal command to reveal the hidden files in OS X\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2013\/11\/macosx1085.jpg?fit=640%2C480&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2013\/11\/macosx1085.jpg?fit=640%2C480&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2013\/11\/macosx1085.jpg?fit=640%2C480&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":145,"url":"https:\/\/pixert.com\/blog\/refresh-local-computer-dns-cache\/","url_meta":{"origin":110,"position":5},"title":"Refresh Local Computer DNS Cache","author":"Pixel Insert \/ Pixert","date":"October 17, 2011","format":false,"excerpt":"We should update DNS records after we had registered a domain name and did setup web hosting for that domain. DNS is heavily cached and changes could take up to 24 hours to take effect. It is recommended you wait this long after the initial set-up before troubleshooting any errors.\u2026","rel":"","context":"In &quot;Mac OS&quot;","block_context":{"text":"Mac OS","link":"https:\/\/pixert.com\/blog\/category\/mac-os\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/pixert.com\/blog\/wp-content\/uploads\/2011\/10\/mac-os-150x150.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":0,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"wp:attachment":[{"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pixert.com\/blog\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}