Category Archives: /random

git stuff +++ – – –

1. Revert back to previous commit # git checkout <commit> # git checkout -b new_branch_name <commit> 2. Undo add 1. Undo file/directory added # git reset <file or directory name> 2. To undo all the added file # git reset … Continue reading

Posted in /random | Tagged , , | Leave a comment

ubuntu: screen recording as “.gif” using byzanz

On ubuntu machine, sometimes it is required to record set of commands/action in visual form to make the other person understand usage of a tool, or steps to perform in order to get something working or to simply show output … Continue reading

Posted in /random | Tagged , , | Leave a comment

Saving read only file edited using vim

You have opened a file using vi or vim to check some code or text, and found some code/text to be altered. We made change and totally ignored the notification informing that we did not have permission to edit it (Warning: Changing a read only file), … Continue reading

Posted in /random | Tagged , , | Leave a comment