Skip to content

Instantly share code, notes, and snippets.

@shahab65
Last active November 15, 2020 20:45
Show Gist options
  • Save shahab65/8368c6a68584f04b51c92cc2da3ac260 to your computer and use it in GitHub Desktop.
Save shahab65/8368c6a68584f04b51c92cc2da3ac260 to your computer and use it in GitHub Desktop.

whatching our global git setting in default editor:

git config --global -e

setting default editor:

git config --global diff.tool vscode

setting end of line: in windows:

git config --global core.autocrlf true

in linux

git config --global core.autocrlf input

zsh in windows -> posh-git

git log --oneline

seeing files in staging area:

git ls-files

remove file from staging area(index):

git rm --chached -r bin/

how to delete local changes:

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