Home >php教程 >PHP开发 >git common commands

git common commands

高洛峰
高洛峰Original
2016-11-30 15:43:311270browse

Download the project

git clone https://git.oschina.net/jianqingwang/jianblog.git

Note that clone is following the project address

View branch (that is, version)

git branch

Download new update data (each time you submit code to git, you need to synchronize the data and then submit it again. This is similar to svn)

git pull origin master (master is my branch name)

Submit data to git (updated, you need to submit your own version)

第一条语句:git add . 
第二条语句:git commit -m "这里写备注的更新记录"
第三天语句:git push   
 第三条是上传库


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:ajax design planNext article:ajax design plan