總結一下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 查看分支的文件:
新聞熱點
疑難解答