==install in cgwin
add "git" "ssh"
==go into local project folder
git init
(git add .
git commit)
==add your config
git config --global user.name 'sunxboy'
git config --global user.email sunxboy@gmail.com
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
==create public key
ssh-keygen -C 'sunxboy@gmail.com' -t rsa
enter -> enter -> enter
copy the content of the "id_rsa.pub" file into the github page which
your project is. (admin->deploy keys-> add deploy key)
==test it if it works
cd ~/SmartVoice
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:sunxboy/SmartVoice.git
git push -u origin master
("master" is the branch name)
本文详细介绍了使用Git进行版本控制的全过程,包括安装配置、初始化本地项目、添加配置信息、生成SSH公钥、测试部署等步骤。重点突出如何将本地项目推送到GitHub仓库,实现远程版本控制。
9313

被折叠的 条评论
为什么被折叠?



