Skip to content

Instantly share code, notes, and snippets.

@SalahHamza
Last active November 6, 2018 00:59
Show Gist options
  • Select an option

  • Save SalahHamza/47c26ba6db1f8ce71dde076bf4209a96 to your computer and use it in GitHub Desktop.

Select an option

Save SalahHamza/47c26ba6db1f8ce71dde076bf4209a96 to your computer and use it in GitHub Desktop.
Some useful bash commands

Useful bash/git Commands

  • Copy folders & exclude some subfolders
rsync -av --progress sourcefolder destinationfolder --exclude thefoldertoexclude

read more here

  • For a list of files to be pushed, run:
git diff --stat --cached [remote/branch]

example:

git diff --stat --cached origin/master

read more here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment