Hi All,
I created two users(user1,user2) with admin. I created repository and shared it to two users.
Now I cloned for user1 and user2 seperately(with seperate folders).
for user1:
in this repository I changed something and pushed to server. I got to know that it pushed with admin@example.com.
So, I ran the below commands in git
git config user.name "user1"
git config user.email "user1@example.com".
similarly I did for user2:
But how to get the user1 email with stash API.??
Thanks&Regards
Anil Kumar
I tried but not able to implement Person properly with Stash User.
So I found the solution which worked for me in this.
https://answers.atlassian.com/questions/13894/how-to-get-a-users-email-address
Thanks
Anil
Changeset.getAuthor().getEmailAddress() gets you the mail address that was given by the user at the time of pushing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Person (and StashUser, which inherits it) has a getEmailAddress method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But
with local machine If I did with this
1) $git config user.email "user1@example.com"
In this case how can I get the git configured email with stash API.
Thanks in advance
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.