git 实战

2016-11-07  本文已影响0人  依哥

git 实战中遇到问题总结!


    git remote add origin git@github.com:wanggaopeng/gaopeng.gitgit 
    push -u origin master

git remote removegit remote rename

git remote rename origin local 把origin修改成local
git remote remove iosw 把iosw删除
git remote rename wang origin 把wang修改成origin
git help remote

2016-11-14_111406.png 2016-11-14_112123.png

git push 有冲突报的错!


1.png
> git pull origin master
Automatic merge failed; fix conflicts and then commit the result.
2016-11-15_114341.png

git 操作

  1. git reset 3628164
  2. git status -s 查看状态
  3. git add . 添加到git仓库
  4. git commit --amend 提交到本次commit
  5. git push origin develop -f 强制推到远程仓库。

git fetch origin feature/wgp/foo:feature/wgp/foo

王高鹏博客

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

**编辑奖品价格区间管理 **

public function editPrize(){                                                
      $id = $this->get('id');                                                
      $where['interval_id'] = $id;                                           
      $orderApi = ANew('order');                                             
      $price_edit = $orderApi->getPriceRange($where);                        
      $this->set('price_edit',$price_edit);                                  
      $this->setView('guanli/orders/order_setting/tpl/add_prize_price.phtml');
}  ```
上一篇下一篇

猜你喜欢

热点阅读