Git bash (linux)
C:\Program Files\Git\git-bash.exe
Git cmd (window)
C:\Program Files\Git\git-cmd.exe
php7
D:\Xampp\php
php8
D:\Xampp8.2\php
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ php -v
PHP 7.4.30 (cli) (built: Jun 7 2022 16:24:55) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v2.8.1, Copyright (c) 2002-2019, by Derick Rethans
Edit
C:\Program Files\Git\etc\profile.d\aliash.sh
|__...
|__alias php8='D:/Xampp8.2/php/php.exe'
|__...
Check php8 command
Mycomputer@ MINGW64 /d/Projects/laravel10 (master)
$ php8 -v
PHP 8.2.4 (cli) (built: Mar 14 2023 17:54:25) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ git --man-path
>>
C:/Program Files/Git/mingw64/share/man
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ git --global --list
>>
$ git config --global --list
user.name=TrueMe
user.email=trueme@gmail.com
safe.directory=D:/Projects/laravel10
safe.directory=*
difftool.sourcetree.cmd=''
mergetool.sourcetree.cmd=''
mergetool.sourcetree.trustexitcode=true
core.autocrlf=input
core.safecrlf=false
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ vi ~/.gitconfig
>>
[user]
name = TrueMe
email = trueme@gmail.com
[safe]
directory = D:/Projects/laravel10
directory = *
[difftool "sourcetree"]
cmd = "'' "
[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true
[core]
autocrlf = input
safecrlf = false
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ git config --global trueme.config "value of trume"
>>
>>>>
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ vi ~/.gitconfig
>>
[user]
name = TrueMe
email = trueme@gmail.com
[safe]
directory = D:/Projects/laravel10
directory = *
[difftool "sourcetree"]
cmd = "'' "
[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true
[core]
autocrlf = input
safecrlf = false
[trueme]
config = value of trueme
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ git config --global --unset trueme.config
>>
>>>>
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ vi ~/.gitconfig
>>
[user]
name = TrueMe
email = trueme@gmail.com
[safe]
directory = D:/Projects/laravel10
directory = *
[difftool "sourcetree"]
cmd = "'' "
[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true
[core]
autocrlf = input
safecrlf = false
[trueme]
config = value of trueme
4.1.1 Check files change git
MyComputer@ MINGW64 /d/Projects/laravel70 (master)
$ git --status
>>
Untracked files:
(use "git add <file>..." to include in what will be committed)
laravel70.sublime-project
laravel70.sublime-workspace
composer.lock
4.1.2 Ignore file git in local project
MyComputer@ MINGW64 /d/Projects/laravel70 (master)
$ vi ./.git/info/exclude
>>
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
vendor
*.php-tmp
*.sublime*
4.1.3 Save file exclude and re-check status git project
MyComputer@ MINGW64 /d/Projects/laravel70 (master)
$ git status
>>
Untracked files:
(use "git add <file>..." to include in what will be committed)
composer.lock
4.2.1 Check global configs
MyComputer@ MINGW64 /d/Projects/laravel70 (master)
$ git config --global core.excludesfile "~/.gitignore
>>
$ vi ~/.gitconfig
>>
MyComputer@ MINGW64 /d/Projects/laravel10 (master)
$ vi ~/.gitconfig
>>
[user]
name = TrueMe
email = trueme@gmail.com
[safe]
directory = D:/Projects/laravel10
directory = *
[difftool "sourcetree"]
cmd = "'' "
[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true
[core]
autocrlf = input
safecrlf = false
excludesfile = ~/.gitignore
4.2.2 Add ignore file into global
MyComputer@ MINGW64 /d/Projects/laravel70 (master)
$ vi ~/.gitignore
>>
~
~
*.sublime*
~
~
~
4..2.2 Save file exclude and re-check status git project
MyComputer@ MINGW64 /d/Projects/laravel70 (master)
$ git status
>>
Untracked files:
(use "git add <file>..." to include in what will be committed)
composer.lock