git 仓库的使用

一、仓库的创建git

git --bare init   服务端仓库的创建
服务器

二、检出仓库.net

    本地:
code

git clone /path/to/repositoryget

    远程:同步

git clone username@host :/path/to/repositoryit


三、提交文件:ast

git add <filename>class

git commit  /  git commit -m "提交的log"file

四、同步到服务器仓库

git push origin master

相关文章
相关标签/搜索