1.环境变量
GIT_HOME D:\GreenSoftware\PortableGit
Path %GIT_HOME%\cmd;git
2.初始化
git config --global user.name "zyx"
git config --global user.email zyx@126.comgithub
3.应用
echo "read me!" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/zyx/test.git
git push -u origin master
git pull origin mastervim
参考
https://blog.csdn.net/u012575819/article/details/50553501.net
----------------------------------------------------------------------------------------------------------------------------------------------------------------blog
git push免输入帐号和密码方法rem
1.建立文件,进入文件,输入内容:
cd ~
touch .git-credentials
vim .git-credentials
https://{username}:{password}@github.comget
2.在终端下输入:
git config --global credential.helper storecmd
3.打开~/.gitconfig文件,会发现多了一项:
[credential]
helper = storeit