Beginning August 13, 2021, will no longer accept account passwords when authenticating Git operations and will require the use of token-based authentication. ref
clean up previous configuration
the removal process described is for minimal/portable versions, if you used the complete (installer), please uninstall it from Control Panel and check the locations described below.
delete any .git*.* file, possible you want to backup any customization done in .gitconfig example
go to Control Panel > Credentials Manager > Windows Credentials
remove anything has to do with git
go to Control Panel > Advanced system settings > Advanced > Environment Variables
remove from path variable where the git path is currently exist.
install the new
1-
download MinGit-2.32.0-busybox-64-bit.zip by
https://github.com/git-for-windows/git/releases/tag/v2.32.0.windows.1
2-
extract it to c:\git
3-
go to Control Panel > Advanced system settings > Advanced > Environment Variables
add to path variable the c:\git\cmd.
4-
set the needed for git configuration to %USERPROFILE%\.gitconfig
5-
go to a temp folder, and clone a repo of yours, ex.
alter a file, then try commit & push ex.
6-
choose Personal access token, afterwards will prompt you to enter the token you generate from github account settings.
7-
what happened now (?), at
is only the .gitconfig
at Control Panel > Credentials Manager > Windows Credentials, entry added
if you are behind firewall, white list :
Exclude
Github - A collection of .gitignore templates - https://github.com/github/gitignore
csharp .gitignore
--
you can define .gitignore through three different ways
1-
Add the a .gitignore to your commit (so will available at branch) if you stage it.
2-
In each repository there is a folder named .git
inside there, there is a file called exclude
There you can define the ignore rules as .gitignore.
3-
Put .gitignore for global use, execute
This will result an entry in your .gitconfig
clean up previous configuration
the removal process described is for minimal/portable versions, if you used the complete (installer), please uninstall it from Control Panel and check the locations described below.
JavaScript:
%USERPROFILE%
delete any .git*.* file, possible you want to backup any customization done in .gitconfig example
JavaScript:
[core]
editor = 'C:/Program Files/notepad/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
[init]
defaultBranch = main
go to Control Panel > Credentials Manager > Windows Credentials
remove anything has to do with git
go to Control Panel > Advanced system settings > Advanced > Environment Variables
remove from path variable where the git path is currently exist.
install the new
1-
download MinGit-2.32.0-busybox-64-bit.zip by
https://github.com/git-for-windows/git/releases/tag/v2.32.0.windows.1
2-
extract it to c:\git
3-
go to Control Panel > Advanced system settings > Advanced > Environment Variables
add to path variable the c:\git\cmd.
4-
set the needed for git configuration to %USERPROFILE%\.gitconfig
JavaScript:
git config --global user.email "test@microsoft.com"
git config --global user.name "test"
5-
go to a temp folder, and clone a repo of yours, ex.
JavaScript:
git clone https://github.com/pipiscrew/bootstrap-selector.git
alter a file, then try commit & push ex.
JavaScript:
git add .
git commit -m "test"
//please make sure a branch \main/ exists, possible is \master/ or however you call it the time you create it. Copy the HEAD BRANCH property.
//git remote show origin
git push -u origin main
6-

choose Personal access token, afterwards will prompt you to enter the token you generate from github account settings.
7-
what happened now (?), at
JavaScript:
%USERPROFILE%
is only the .gitconfig
at Control Panel > Credentials Manager > Windows Credentials, entry added

if you are behind firewall, white list :
JavaScript:
git\mingw64\libexec\git-core\git-credential-manager.exe
git\mingw64\bin\git-http-fetch.exe
git\mingw64\bin\git-http-push.exe
git\mingw64\bin\git-remote-https.exe
git\usr\bin\sh.exe
Exclude
Github - A collection of .gitignore templates - https://github.com/github/gitignore
csharp .gitignore
JavaScript:
# 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]
# *~
# User-specific files
*.snk
*.suo
*.user
*.sln
*.dll
*.rar
*.zip
# Build results
[Bb]in/
[Oo]bj/
# Windows image file caches
Thumbs.db
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
**/.vs
**/*-.lock.json
*.nugetreferenceswitcher
dist/
--
you can define .gitignore through three different ways
1-
Add the a .gitignore to your commit (so will available at branch) if you stage it.
2-
In each repository there is a folder named .git
inside there, there is a file called exclude
JavaScript:
.git\info\exclude
There you can define the ignore rules as .gitignore.
3-
Put .gitignore for global use, execute
JavaScript:
git config --global core.excludesfile "%USERPROFILE%\.gitignore"
This will result an entry in your .gitconfig
JavaScript:
[core]
excludesfile = {path-to-home-dir}/.gitignore