Skip to content

Instantly share code, notes, and snippets.

View adamberes's full-sized avatar

Adam Beres adamberes

  • Germany
View GitHub Profile
@adamberes
adamberes / windows.md
Created March 13, 2024 09:51
Change Windows 11 password in the cmd line

I am logging in windows generally over the pin. So where is my password next line reset over cmd Line in Admin mode

net user accountname newpassword 
is the account name with space? then as following:
net user "account name" newpassword 
@adamberes
adamberes / git-log.md
Last active March 12, 2024 08:56
Searching for a File in a git Repo over all branches

Here an example for search the file: *pom.xml

git log  --name-only --pretty=%H  *pom.xml

FYI: Created blog post with more details

How to fix ".gitignore not working" issue?

Sometimes git does not exclude files/folders added .gitignore especially if you had commited them before. Here is how to fix it. I am ignoring node_modules from Angular project as an example

  1. Update .gitignore with the folder/file name you want to ignore. You can use anyone of the formats mentioned below (prefer format1)
### Format1  ###
node_modules/