问题描述
我正在与其他开发人员一起开发iOS应用程序,现在他不和我们一起工作,我正在使用他的电脑,但问题是当我推我的代码时,我看到他的名字出现在github中。我如何改变这一点,并把我的名字出现在github上。感谢您的回答。
您的项目目录中是否有.gitconfig文件? > cd 到项目目录中,然后运行以下命令将其设置为项目的.gitconfig文件中的名称和电子邮件。
<$ p $ git config user.nameYour Name
git config [email protected]
如果您的项目目录中没有.gitconfig文件,则可能使用位于主目录中的全局.gitconfig文件(〜/ )。只需添加 - global 标志以便在全球范围内为所有项目设置它(注意,如果项目目录中有.gitconfig文件,它将使用该标志比主目录中的全局.gitconfig)
$ g $ git config --global user.nameYour name
git config --global [email protected]
i am working with an other developer in developing an iOS application and now he don't work with us and i am working with his computer but the problem is when i push my code i am seeing his name appearing in the github. how i can change this and put my name appearing in the github. thanks for your answers.
Do you have a .gitconfig file in your project directory, if so, cd into the project directory and run the following commands to set it to your name and email in the .gitconfig file of your project
git config user.name "Your Name" git config user.email "[email protected]"
If you do not have a .gitconfig file in your project directory, it could be using the global .gitconfig file located in the Home directory (~/). Simply add the --global flag to set it on a global basis for all projects (note, if there is a .gitconfig file within the project directory, it will use that rather than the global .gitconfig in the home directory)
git config --global user.name "Your name" git config --global user.email "[email protected]"
这篇关于在Xcode中更改提交者的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!