Git, Short, Tools

Be yourself on git

Commit signed your username.

Git config command as the name suggests is used to change git settings. By this command, we are able to change our username. It is possible for each repository, or globally for all repositories.

To set/change the username, go to the folder with the repository (root folder) and use the following command::

git config user.name "b00sti"     # Set a new name
git config user.name              # Verify the setting
b00sti

To set a username for all repositories must be used::

git config --global user.name "b00sti"     # Set a new name
git config --global user.name              # Verify the setting
b00sti

GitHub for pairing commits uses locally set email address.

The email associated with our GitHub account can be set in the same way, only instead of using the parameter user.name use user.email.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s