提交本地代码到github

来源:互联网 发布:windows defender在哪 编辑:程序博客网 时间:2024/06/06 09:48
初始化仓库
git init 
把文件添加进去,把文件修改添加到暂存区
git add README.md
查询状态
git status
提交更改,把暂存区的所有内容提交到当前分支
git commit -m "first commit"
本地仓库与远程库关联 (注:  https://github.com/WLIN534/123.git 是指自己的远程库地址)
git remote add origin https://github.com/WLIN534/123.git
把本地库的所有内容推送到远程库
git push -u origin master
0 0
原创粉丝点击