Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sourcetree and github

When I push commits to github repo from windows github client, I can see my github username and link to my profile in history, like this:

initial commit [username]

But when I push changes from SourceTree, in commits history it looks like:

initial commit [mac_username]

I want my history on github.com looks like the first example (with github username and link to the profile) What settings I should enable in SourceTree to get it?

like image 816
BoJIHa npocmombI Avatar asked Dec 05 '12 07:12

BoJIHa npocmombI


People also ask

Can we use SourceTree with GitHub?

If you do choose to use SourceTree as a GUI Git client, you'll need to add your GitHub credentials to SourceTree. Let's do that now. Open the SourceTree app.

What is difference between GitHub and SourceTree?

Technically speaking, both are great GUI tools that provide a seamless way to contribute to projects on GitHub. Sourcetree provides a wider range of features than the GitHub's own GUI tool, and also gives you more control over your repositories. GitHub Desktop, however, is the best tool, if you are just using GitHub.

Is SourceTree the same as Git?

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency; SourceTree: A free Git GUI client for Windows and macOS. Use the full capability of Git and Mercurial in the SourceTree desktop app.

Does SourceTree need Git?

Yes, Sourcetree comes with an embedded version of Git when you install it. Sourcetree 3.4. 8 for Windows comes with an embedded Git v2.


2 Answers

Check the config in those repos:

git config user.name
git config user.email

Make sure the repo on Mac has the same settings than the one on Windows.

This thread details how to change those settings in SourceTree, but check if "Allow SourceTree to modify your global Git configuration file" is set: that means it would apply to all your local git repo (Github or not).

settings

The "Full name" is a bit misleading, in that you should use your GitHub login name (and GitHub account email), in order to generate the right commit author history on GitHub.

like image 98
VonC Avatar answered Nov 23 '22 19:11

VonC


Go to preferences and on General tab you can see two text fields, one for Full Name and other for email, set the name whatever you want to appear

like image 33
aahsanali Avatar answered Nov 23 '22 19:11

aahsanali