Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git常用指令 #9

Open
ruanshr opened this issue Feb 22, 2018 · 0 comments
Open

git常用指令 #9

ruanshr opened this issue Feb 22, 2018 · 0 comments

Comments

@ruanshr
Copy link
Owner

ruanshr commented Feb 22, 2018

查看当前用户
git config user.name
git config user.email
设置当前用户
git config --global user.name "username"
git config --global user.email "username@email.com"
设置私钥和公钥
ssh-keygen -t rsa -C “username@email.com"
将生成的*_rsa.pub 的内容粘贴到对应地方
git checkout .
还原当前修改操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant