Comments (2)
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.
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)
- 如何设置上游,以方便更新fork的项目? HOT 1
- 编译出错 HOT 1
- \mathbb{}报错 HOT 2
- 参考文献是问号 HOT 1
- \subfloat排列子图时错误 HOT 1
- Latex 导入图片的时候,图片说明为什么会显示 ”图 1 “呢? HOT 1
- 您好,请问一下我的Latex为什么在导入图片后的标题总会有一个中文图1呢? HOT 1
- 为何\text{if A\geq B}不能编译? HOT 1
- 请问如何把本地的工作上传到远程的github上? HOT 1
- latex中涉及写入伪代码需要引入不同宏包的问题 HOT 1
- 打开GVim时报错:E484 HOT 1
- 怎么给命令起别名? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolsres.