Clean files content

Useful command to clean all files content of a directory without removing it… Use cases: you have an application running and you don’t want to stop you don’t want to think about reset file permission that somebody else has configured in a bad way

Git cherry pic

Sometimes you need to move your develop from a branch to another; in this case the cherry pick command is your friend. Definition: given one or more existing commits, apply the change each one introduces, recording a new commit for each. This requires your working tree to be clean (no Read more…

Backup folders

Rsync, which stands for “remote sync”, is a remote and local file synchronization tool. It uses an algorithm that minimizes the amount of data copied by only moving the portions of files that have changed. Here an example

Git – useful commands

Clone existing repo Align remote changes Align remote changes inside local repo Merge a remote repo inside your local Create new branch Check status Create new branch Push new branch Commit changes List git branches that contain a given commit If you need to know which are the branches that Read more…