Git CLI Delete History Commit

  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

0 Response to "Git CLI Delete History Commit"

Post a comment

Bila Ada posting yang kurang, atau error atau yang lainnya, silahkan tinggalkan komentar agar artikel/post di perbaiki.
Jangan Lupa Cek Box "Notify Me" agar tahu komentar kamu dibalas oleh saya.

If there are any posts that are missing, or error or anything else, please leave a comment for the article / post to be fixed.
Do not Forget Check Box "Notify Me" to know our comments replied by me.

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel