Git Product home page Git Product logo

Comments (2)

serenzhiyan avatar serenzhiyan commented on August 24, 2024

ddpom: 在虚拟机 ganx@vm 上,推荐使用这个方法,而非#7 (comment)

以下是操作步骤:
1、首先打开终端,逐条运行以下代码:

cd ~/.df/dotfiles-local
git checkout .
git pull --rebase
git submodule update --remote
 ./install

2、接下来输入:

cd ~ && rm .gitconfig_local

这个gitconfig_local文件有可能存在也有可能告诉你没有此文件,无论有无都可执行下面这条(即新建一个此文件):

touch .gitconfig_local

3、接下来进入这个文件,可使用该命令进入文件:

vim .gitconfig_local

然后输入以下内容:

[user]
 name = 你的账户名
 email = 你的邮箱

[github]
 user = 你的账户名

4、保存好退出即可!

from toolsres.

serenzhiyan avatar serenzhiyan commented on August 24, 2024

ddpom begin:

下面这个方法,对使用 toolsRes 项目中推荐使用的虚拟机 ganx@vm 上不适用,因为下面这种方式,会修改 dotfiles 里面的 gitconfig 文件,对以后自动更新 dotfiles 有影响。如果不在虚拟机而在其它机器上,这个方法适用,上面的方法不能直接用,还需要更改 dotfiles 里的 gitconfig 文件,加上以下内容:

[include]
path = ~/.gitconfig_local

ddpom end.

还有一个方法,可以试试:
以下是操作步骤:
1、进入你的某一个本地项目,然后右键open in terminal
2、输入git gui,下图为git的图形用户界面:
在这里插入图片描述3、依次点击Edit、Options,出来的页面分为左右两部分,左边是你当前项目的所有者,右边则是一个全局的所有者,接下来把他们修改成你自己的账户即可。
在这里插入图片描述4、进行一次push可以测试下commit的账户名是否已经修改成功。

from toolsres.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.