Posts

  • Create a new empty branch in Git

    $ git checkout --orphan NEWBRANCH $ git rm -rf .
  • Reset local git repo

    git remote add origin https://github.com/nuzulul/nuzulul.github.io git fetch --all git reset --hard origin/main
  • Git - Clear All Git History

    Clear Git history by removing all commits git checkout --orphan temp_branch git add -A git commit -am "The first commit" git branch -D main git branch -m main git push -f origin main Referensi : https://www.shellhacks.com/git-remove-all-commits-clear-git-history-local-remote/
  • Unable to load the EventMachine C extension; To use the pure-ruby reactor, requi re 'em/pure_ruby'

    Masalah : Setelah melakukan perintah “bundle update” jekyll tidak bisa dijalankan dan muncul error EventMachine seperti dibawah ini : E:\data\github\nuzulul.github.io>bundle exec jekyll serve --future --livereload Configuration file: E:/data/github/nuzulul.github.io/_config.yml Source: E:/data/github/nuzulul.github.io Destination: E:/data/github/nuzulul.github.io/_site Incremental build: disabled. Enable with --incremental Generating... Jekyll Feed: Generating feed for posts done in 1.441 seconds. Auto-regeneration:...

subscribe via RSS