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