本文共 552 字,大约阅读时间需要 1 分钟。
git initgit status查看状态 指定文件的添加,比如:git add test.javagit add . (注:别忘记后面的.,将当前目录所有文件提交本地git仓库)git commit -m "提交信息" (注:“提交信息”里面换成你需要,如“first commit”)//本地的仓库关联到GitHubgit remote add origin https://github.com/idhangge/idhangge.github.io.gitgit pull --rebase origin mastergit push -u origin master
git add *git commit -m "更新说明"git pullgit push -u origin master
把github上面的仓库克隆到本地 git clone https://github.com/idhangge/TestGit.git.git都复制到项目文件夹下面
右键项目(前提先有github仓库)
gitadd git commit git push转载地址:http://ztxab.baihongyu.com/