Toko wrote:OUR GIT expert solved it:
2. Access Flare project directory, right-click empty > Git Bash:
3. Paste the following into the Git Bash (below credentials must be identical to what appears in Gerrit):
git config --global user.name "<Your User Name>"
git config --global user.email <your email>
Thanks very much for your post @Toko! I implemented this suggestion and am now able to push updates to my remote Git repos, with the
correct user name and e-mail address reflected.
GitCredentialsCorrect.png
I'm still not certain how my Git "user.name" and "user.email" setting values got wiped out (Flare 2019 bug?), but at least am glad to have resolved the issue.
By the way, before implementing the fix, I did a little research on the whole "git config" arena and found some additional information that may be helpful to others. The following instructions assume you have
Git for Windows installed on your local workstation (as do the instructions offered by @Toko), but the same commands can be carried out using the Windows Command Prompt, when pointed to the appropriate Git repo directories:
- To see the "user.name" and/or "user.email" Git config setting value (if one exists) for a specific Flare project repository:
- Navigate to the Flare project directory, right-click in the empty area an choose "Git Bash Here" from the context menu.
- Enter either of the following at the command line prompt, then strike the Enter key:
- If a value exists for "user.name" or "user.email" at the local level (i.e., for the specific project Git repo), the value will display. If it doesn't exist, nothing will display (an empty command line prompt will be returned), but it may exist at the global level, instead (see below).
- To see the "user.name" and/or "user.email" Git config setting value (if one exists) for the current Windows user (you), which applies to any given Flare project repository:
- Navigate to any directory, right-click in the empty area an choose "Git Bash Here" from the context menu.
- Enter either of the following at the command line prompt, then strike the Enter key:
- If a value exists for "user.name" or "user.email" at the global level (i.e., for any project Git repo), the value will display. If it doesn't exist, nothing will display (an empty command line prompt will be returned).
- To view a listing of all existing Git config setting values for a specific Flare project repository:
- Navigate to the Flare project directory, right-click in the empty area an choose "Git Bash Here" from the context menu.
- Enter the following at the command line prompt, then strike the Enter key:
- If values exist for "user.name" and/or "user.email" at the local level (i.e., for the specific project Git repo), you'll see them among other values in the listing. If you don't see them, they may exist at the global level, instead (see below).
- To view a listing of all existing Git config setting values for the current Windows user (you), which apply to any given Flare project repository:
- Navigate to any directory, right-click in the empty area an choose "Git Bash Here" from the context menu.
- Enter the following at the command line prompt, then strike the Enter key:
- If values exist for "user.name" and/or "user.email" at the global level (i.e., for any project Git repo), you'll see them among other values in the listing.
Here's where I gathered the above information:
https://stackoverflow.com/questions/122 ... r-46986031
Final note: The majority of my Git repos are for Flare projects, where I'll be using my name and company e-mail address for commits. However, I also have a couple of Git repos for personal projects, where I use my personal e-mail address. So, for me, it made sense to set my "user.name" and "user.email" Git settings to reflect my company account at the
global level (rather than set them locally for each Flare project). Then, for the handful of personal Git repos, I set the "user.name" and "user.email" settings
locally to reflect my personal account (this overrides the global settings for those select repos).
Hope this makes sense and can help others on the Git journey!