kuniga.me > Docs > Blog Cheatsheet

Blog Cheatsheet

Publish new post

Git directions. Suppose the post is being written on a branch named new_post.

git checkout new_post
git reset $(git merge-base master $(git branch --show-current))
git add -A
git commit -m "new post: $(git rev-parse --abbrev-ref HEAD)"
git checkout master
git merge new_post