git branch --merged
git clone ../remote_repo.git .
git reset / git reset HEAD / git reset HEAD . / git restore --staged .
Remove index.html
from staging areagit reset index.html / git reset HEAD index.html / git restore --staged index.html
-n
option before running the commandgit clean -n / git clean -fX -n / git clean -fx -n
Deletes untracked files that are not stagedgit clean -f
Deletes ignored files onlygit clean -f -X / git clean -fX
Deletes ignored and non-ignored (untracked files that are not staged) filesgit clean -f -x / git clean -fx
does not work on windows
add
commandgit help add / git add --help
git config --list
git mergetool
git config --global merge.tool "meld"
git config --global mergetool.prompt false
git config --global mergetool.keepBackup false
git config --global mergetool.meld.path "C:\Program Files (x86)\Meld\Meld.exe"
Using .gitconfig
configuration file located at C:\Users\Username\.gitconfig
[merge]
tool = meld
[mergetool]
prompt = false
keepBackup = false
[mergetool "meld"]
path = C:\\Program Files (x86)\\Meld\\Meld.exe