Skip to content

Instantly share code, notes, and snippets.

@kirandash
Last active November 24, 2020 09:11
Show Gist options
  • Save kirandash/9ae15dd8b5a7c28e52f5af72b5ed51df to your computer and use it in GitHub Desktop.
Save kirandash/9ae15dd8b5a7c28e52f5af72b5ed51df to your computer and use it in GitHub Desktop.
git multiple user names for the different projects within the same system
https://stackoverflow.com/questions/9063176/git-multiple-user-names-for-the-different-projects-within-the-same-system
Just use --local instead of --global. In fact, local is the default so you can just do
git config user.email [email protected]
git config user.name "whatf hobbyist"
in one repo, and
git config user.email [email protected]
git config user.name "whatf at work"
in another repo
How do I delete a Git branch locally and remotely?
git push -d <remote_name> <branch_name>
git branch -d <branch_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment