Skip to content

Instantly share code, notes, and snippets.

View hamza-algohary's full-sized avatar

Hamza Algohary hamza-algohary

View GitHub Profile
@hamza-algohary
hamza-algohary / git.md
Last active October 11, 2025 11:29
Git Notes

Starting

Set user info:

git config --global user.name "<name>"
git config --global user.email "<email>"

You can remove global to apply the configuration to the current repo.

Set default branch name to main: