WMI

Website Management Indonesia

  • Home
  • About
  • privacy
  • tos
  • Archives
  • Sitemap
  • Table of Contents
  • Overview

Dimas Lanjaka

Website Management Indonesia is a blog about scripts, tips and tricks, games, software. Covering php, javascript, jquery, mysql, seo, e-commerce and others.
762 posts
19 categories
71 tags
GitHub E-Mail FB Page
0%

Git CLI Delete History Commit

Posted on 2020-03-08 In uncategorized
Git CLI Delete History Commit - WMI
  1. Checkout
  2. git checkout --orphan latest_branch
  3. Add all the files
  4. git add -A
  5. Commit the changes
  6. git commit -am "commit message"
  7. Delete the branch

  8. git branch -D master
  9. Rename the current branch to master

  10. git branch -m master
  11. Finally, force update your repository

  12. git push -f origin master
# Tips & Tricks
Build Gradle Component Definitions
Android Studio Set Weight Layout Programatically
© 2022 Dimas Lanjaka