git-author | easy way to setup multiple authors | Version Control System library
kandi X-RAY | git-author Summary
kandi X-RAY | git-author Summary
An easy way to setup multiple authors based on `git commit --template`. It depends on git-together
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of git-author
git-author Key Features
git-author Examples and Code Snippets
Community Discussions
Trending Discussions on git-author
QUESTION
I had a local repository named a
which had been already associated with a remote repository named A
of GitHub account A-github
,
and I also had a local repository named b
which had not been associated with any remote repository yet.
I created a new remote repository named B
of GitHub account B-github
, and I tried to do the first push to B
from local repository b
.
- The push succeeded and I saw the page of
B
reflected the commits ofb
. - However, the name of the user who had done the first push displayed on the page of
B
was not the name ofb
, but the name of the other GitHub accountA-github
.(The icon image was also the same as set inA-github
page) - And when I clicked the name of the user who first pushed (
A-github
), I went to the page ofA-github
account. - What is weird is that this happening is not recorded on
Contribution activity
on the Overview page ofA-github
.
I'm guessing this was the problem of git config
of the local repository b
. I tried git config -l
and found that user.name
and user.email
were doubled like this:
ANSWER
Answered 2021-Mar-13 at 13:58First, do a git config -l --show-scope --show-origin
in your repository: that way, you will be sure to see what is a local config, which overrides a global config.
Second, you can use git filter-repo
to change the user.name/email of your commits in repoB: yo will then need to git push --force
it (which is not a big issue if you are alone working on that new repository).
QUESTION
I am using Gitkraken for my Github source code control. I have followed this approach but still failed.
But when I type below command and I can get my name shows.
$ git config --global user.name My Name
But, it still shows Unknown in my GitKraken. I know the one with SourceTree can use the git config --global user.name "Name"
trick.
Please help, thanks!
...ANSWER
Answered 2018-Jan-25 at 05:33I suspect the problem is that the global user was not set when GitKraken first created the profile. As described in the GK documentation:
When setting Profiles in
Preferences > Profiles
, GitKraken will automatically use the name and email address in your global.gitconfig
file.
If that wasn't set, however, you might be shown as Unknown
. You can change this by editing your profile either in the aforementioned Preferences > Profiles
screen or by clicking on your profile picture in the top right (next to the magnifying glass), select Edit next to your profile, and provide your name and email in the respective fields.
Note that if Keep my Git config updated with my profile info
is checked in your GK Preferences > Profiles
, changing this in your default GK profile will automatically update your global git config.
QUESTION
The question may seem odd, but I have issues syncing git history after rewriting over 100 commits.
On the machine I did rewrite from, a simple git fetch
synced it all.
On another mac machine, git sync
did not help, but after a random deleting of local .git/
log and refs files and then issuing git pull
, history got refreshed.
However, no matter what I do on the Windows machine, I cannot refresh project history. Tried it all:
git reset --hard HEAD
&git fetch
git fetch --all
git pull
- etc
Each time on Windows machines, I get duplicated entries (I changed Author fields) of the same commit with a different author.
I followed massive history rewrite using this tutorial:
...ANSWER
Answered 2018-Jan-15 at 18:05On the second machine, first run git fetch
, not git pull
. Then for each branch whose history was rewritten, you need to do git reset --hard HEAD
. Note that this command only works with the current branch. So if more than one branch was affected by the history rewrite, you need to checkout and reset each one.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install git-author
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page