1.在github注册一个账号
2.建立一个repository
3.在git中进入到要上传的文件
4在命令行输入以下代码
git init
git add *
git commit -m "first commit"
git remote add origin +github仓库地址(例如:https://github.com/anruowang/others.git)
git push -u origin master
假如本地仓库已经建立的话,那就直接在命令行输入
git remote add origin +github仓库地址(例如:https://github.com/anruowang/others.git)
git push -u origin master
5.在弹出框中输入用户名、密码
6.完成上传
2.建立一个repository
3.在git中进入到要上传的文件
4在命令行输入以下代码
git init
git add *
git commit -m "first commit"
git remote add origin +github仓库地址(例如:https://github.com/anruowang/others.git)
git push -u origin master
假如本地仓库已经建立的话,那就直接在命令行输入
git remote add origin +github仓库地址(例如:https://github.com/anruowang/others.git)
git push -u origin master
5.在弹出框中输入用户名、密码
6.完成上传