内容简介:(git push origin test
初始化
Git init
(在本地工程目录下),生成.git 文件夹,如果已经生成过就不需要初始化了
Git init
提交文件
git add *
( 可替换成具体要上传的文件名, 表示提交所有有变化的文件)
添加上传文件的描述
git commit -m "本次提交描述"
创建分支
git branch test
切换分支
git checkout test
与远程分支相关联
git remote add origin https://github.com/stormsha/blog.git
上传分支
git push origin test
常用命令
- git remote add origin https://github.com/stormsha/blog.git (关联远程仓库)
- git add . (提交文件)
- git commit -m "test" (提交描述)
- git branch test(创建分支)
- git checkout test (切换分支)
- git push origin test (上传文件)
- git pull --rebase origin master(合并远程仓库)
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Data Structures and Algorithm Analysis in Java
Mark A. Weiss / Pearson / 2006-3-3 / USD 143.00
As the speed and power of computers increases, so does the need for effective programming and algorithm analysis. By approaching these skills in tandem, Mark Allen Weiss teaches readers to develop wel......一起来看看 《Data Structures and Algorithm Analysis in Java》 这本书的介绍吧!