.bash_profile vs .bashrc
.bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells.
References
- http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
Categories :
Programming
How to delete a Git branch both locally and remotely?
To delete the local branch use:
$ git branch -d branch_name
To delete the remote branch use:
$ git push origin --delete <branch_name>
References
- http://stackoverflow.com/questions/2003505/how-to-delete-a-git-branch-both-locally-and-remotely
Categories :
Programming
Git
What is the difference between CSS word-break vs word-wrap?
overflow-wrap (word-wrap) and word-break behave very similarly and can be used to solve similar problems. word-break is best used with non-English content that require specific word-breaking rules. overflow-wrap can be used regardless of language used.
References
- https://css-tricks.com/almanac/properties/w/word-break/
- https://css-tricks.com/almanac/properties/w/word-break/
- https://css-tricks.com/almanac/properties/w/whitespace/
- http://stackoverflow.com/questions/1795109/what-is-the-difference-between-word-break-break-all-versus-word-wrap-break/
Categories :
CSS
How to do undo in Git?
References
- https://github.com/blog/2019-how-to-undo-almost-anything-with-git
Categories :
Git
What is Git commit squash?
Git commit squash allows to take a series of commits and squash them down into a single commit with the interactive rebasing tool.
References
- https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
- https://github.com/ginatrapani/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit
Categories :
Programming
Git