总结一下git常用的命令,不定期更新. 新加文件:git add hello.java 提交文件:git commit -m ‘提交注释’ 推送到github仓库: git push origin master //推送到主分支 有github后,如果想从本地把代码推送到github仓库中,首先要把仓库clone下来: git clone https://github.com/findingsea/myRepoForBlog.git 然后就可以新加文件,然后推送到github仓库中了. git创建分支:git branch test git 切换分支 git checkout test 创建并切换分支:
ls 查看分支的文件:
新闻热点
疑难解答