1: Modify User.Name and User.email that have submitted N-Times code
Fix me in multiple computers, using different accounts, git config global,system,local configuration ignored changes, and added a number of computer SSH key default submission problem.
# Two copies perform the following two lines
git filter-branch-f--env-filter "git_author_name= ' Wujuguang '; Git_author_email= ' [EMAIL protected] ';
Git_committer_name= ' Wujuguang '; Git_committer_email= ' [EMAIL protected] '; HEAD
# Force Update
Git push Origin master-f
2: A branch commits to another branch
A commit on the local dev branch, how do I put it on a local Ky-dev branch?
Git uses Cherry-pick.
Simple usage: git cherry-pick <commit id>
Apply the changes introduced by some existing commits.
is to apply the existing commit (which is understood to be resubmitted)
Checkout to this dev branch, use git log to get the commit <commit Id>, assume 6211d4912ec6752ee39b1c7b3ef9c76d01c2a49e, and then do the following:
$ git checkout Ky-dev
$ git Cherry-pick 6211d4912ec6752ee39b1c7b3ef9c76d01c2a49e
$ git log
Git very much commands to use notes