I'm not exactly sure how I managed to do this but I went through my commits today and noticed something interesting.
It looks like GitHub is recognizing me as two separate people?
This is a personal repo and so far I'm the only person who has made any changes to the repo. I would like it to show just one name, I'm pretty new to Git/GitHub so any help would be greatly appreciated!
This happens when your commit is authored by an email address that GitHub does not know about.
You can add this email to your GitHub account
(Click on your avatar > Settings > Email > Add email address)
...Or update your email in ~/.gitconfig to match what you already have in GitHub.
[user]
name = John Sprunger
email = jsprunger#myemail.com
Related
I am using 2 different GitHub accounts to manage 2 different projects. My device is a Pixelbook using the Linux beta terminal for pushing commits. I have the two accounts set up using SSH keys, and there doesn't seem to be a problem there.
When I initially set up the Linux, I set the username as "My-username", which is coincidentally the same username as my GitHub A-account. I looked at the repos on the Github B-account and saw my Linux/A-account listed as the author. The link to the profile is the correct account (as in the link is for github.com/B-Account).
How can I either
A: change the Linux username to something less identifiable
or
B: (preferred) change the author for new commits.
I have seen a few questions on here saying I can change the author with a script or amend command... but I don't think I really care about the existing commits. I just want to make it show the actual GitHub account name as the author instead of my terminal name.
Edit:
The git config --global user.name command shows my full name, and the email is set in the --local for each repo with the appropriate email to the associated account.
I was able to find a solution to my problem!
inside of the .git/config file, I removed the credential.helper = store line that I had previously enabled while using HTTPS connections.
Now my commits are posting with the appropriate account!
I am looking to send out a one time email to the followers of a Github repo to announce the first release.
This is answer is pretty good:
https://www.quora.com/Is-there-a-way-to-send-a-message-or-email-to-all-the-followers-of-GitHub-Repo/answer/PoAn-Baron-Chen-1?srid=Xt2o
The Github API has a way to get the followers of a user -
https://developer.github.com/v3/users/followers/#list-followers-of-a-user
...but ... is there a way to get a list of the followers of a Github repo?
Take a look at github-email-explorer looks like it does what you're trying to do.
First line from the README:
For people who want to create an email marketing plan for particular group on GitHub, github-email-explorer can collect addresses from a repository you want, and then send email content to those email addresses.
For example: Email arrives with subject "Report for domaina.com". It has an attachment. I want to setup the recipe to save domainareport.pdf to Dropbox under /reports/Domaina. I'd then create similar recipes for domainb, domainc, etc. Seems like this is possible, but I'm a total IFTTT nub. Thanks!
Create a trigger on gmail using email from search and typing in this
Create an action using Dropbox and it will have automatically filled
out everything EXCEPT the folder path edit the folder path so it looks like this
Hope this helps :)
I've been using GitLab(version 7.1.0.pre).
I want to receive e-mail when someone adds a comment for my commit.
I read GitLab document, but I couldn't find the sentence written about this.
Is it impossible to send e-mail when comment is added for commit?
(I know that I can add this feature by forking original code and write myself.)
Thanks in advance.
You will get email when someone comment on your commit when both cases true:
commit author email == your gitlab account email
you have at least participating level for notification settings in this project
Im trying to get the commit list from GitHub repo using its API.
I am getting the commit list but its based upon particular user.
I need the list based upon the commit happened.
Below is the url I am using:
https://api.github.com/repos/user_name_here/repo_name_here/commits?access_token=XXXXXXXXXXX&per_page=5
It seems that the commits returns by the API will list all the commits from a particular repo, for all authors (ie not based on a user).
See for instance the commits of GitLabhq repo:
https://api.github.com/repos/gitlabhq/gitlabhq/commits
You will get all commits, without restriction. You will get both the original author and committer name as well.