Thursday, January 20, 2022

Some useful Linux commands

How to switch to a remote branch on git:
git branch -a # to list all branches
git fetch
git checkout -t remote/branch
git branch -a # to list all branches
source: https://stackoverflow.com/questions/47630950/how-can-i-switch-to-another-branch-in-git Useful rsync options: https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/ Find large directories: https://www.tecmint.com/find-top-large-directories-and-files-sizes-in-linux/