
How to change the author of a commit
4 easy steps to change author name of a commit after push. Learn to use the rebase command and differences between git rebase and git merge.
git config user.name “Your Name”
git config user.email “name@email.com”
With these easy steps you will be able to change the git user name and git user email. Keep in mind that these instructions are used to change the git user name and email for a particular repository.
To change the global git user name and email you have to add the --global
parameter to the commands. Here is an example of how to change git user name and email globally:
git config --global user.name “Your Name”
git config --global user.email “name@email.com”
The git config
command can be used to interact with the configuration of a git repository. You can review all the git configurations by running git config --list
command.
Here are some examples of values that are stored on git’s config object:
As an example, here is how to get the git repository URL in 2 steps:
git config remote.origin.url
4 easy steps to change author name of a commit after push. Learn to use the rebase command and differences between git rebase and git merge.
Github announced its deprecation of user passwords for all Git operations. Git operations that use authentication will require the use of token-based (GitHub User Access Token). The motivation behind this decision from GitHub is to increase user’s security from malicious attackers.
PM2 is a process manager for node.js applications. A powerful tool that will facilitate common system administration tasks for node apps.