赞
踩
说明,在创建远程仓库时,最好不要初始化,否则会生成一些REDAMW.md等文件,而你本地可能没这个文件而造成冲突,影响关联
step1:初始化本地代码
打开cmd,进入本地代码所在的文件目录,输入
git init
step2:关联远程仓库
使用 git remote add origin 你的远程仓库地址进行关联
step3:将本地代码添加带缓冲区
使用 git add * 将多有代码添加到缓冲区
step4: 接着再提交
输入 git commit -m '你想要输入的备注'
step5: 推送远程仓库
git push origin master
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。