git汇总
1. git账户信息配置
1)首先你要告诉git你的名字
git config --global user.name "Your Name Here" --针对用户
--git config --system user.name "Your Name Here" --针对系统
2)关联邮箱地址:
git config --global user.email "your_email@example.com"
git commit --amend --author='Your Name <you@example.com>'
每次提交时修改提交者信息
git push 时的用户名和密码
git config --global credential.helper store
--file=git_credentails 指定存储的文件名,可选
生成
~/.git-credentials文件存储,下次push不需要密码,但是是明文保存的
清除保存的密码
git credential-manager deleteidea git项目保存的凭证
2. push到云端
git remote add origin https://github.com/username/Hello-World.git
# 创建一个远程命名为“起源”指着你的GitHub库; username:为你的github用户名
Hello-World 这是区分大小写的,重要的是与服务器保持相同
$git push origin master
#发送你的提交的“大师”分支到GitHub
此时会让你输入用户名和密码
git push origin master
http://tomhat.iteye.com/blog/2065707
http://www.cnblogs.com/wanqieddy/archive/2012/08/03/2621027.html

浙公网安备 33010602011771号