three layers of git username and useremail can be set (more with the right config settings)
git config --local user.name "local-user-name"
git config --global user.name "global-user-name"
git config --system user.name "system-user-name"
you will see a user.name
and user.email
entries when you do
git config --list
this most likely is the global setting, especially if you haven’t set these to a local value before. set them specifically for the local repository using
git config --local user.name "repo-specific-user-name"
git config --local user.email "repo-specific-login-email"
git config --local --unset user.email
navigate to app’s root directory and review current config settings
git config --list
git checkout --orphan newBranch
git add -A # Add all files and commit them
git commit
git branch -D master # Deletes the master branch
git branch -m master # Rename the current branch to master
git push -f origin master # Force push master branch to github
git gc --aggressive --prune=all # remove the old files
remote
named origin
to https://github.com/USERNAME/REPOSITORY.git
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
git push -u origin master
throws an error saying the remote repo doesn’t existgit config --global credential.useHttpPath true
git pull
will over write local changesgit push origin master -f