git 常用命令

来源:互联网 发布:好莱坞故事版软件 编辑:程序博客网 时间:2024/04/25 10:06

1   从线上下载整个  git clone    data@ip:project


2  建立分制 

     git branch branch_name 


3  切换到分枝

    git   checkout 


4  把分支中的修改合并到主线上 

     我们首先切换到主线  git checkout maste

     合并   git merge  branch_name 


5  提交   git  commit  -m  "message" -a   


6  上传到服务器   git push 

原创粉丝点击