1. 克隆
git clone https://github.com/mingruyue/ethernetPhone.git
2. 修改前
$ git remote -v
origin https://github.com/mingruyue/ethernetPhone.git (fetch)
origin https://github.com/mingruyue/ethernetPhone.git (push)
要把更新提交,下面这句不能少
$ git remote add upstream https://github.com/mingruyue/ethernetPhone.git
再查看
$ git remote -v
origin https://github.com/mingruyue/ethernetPhone.git (fetch)
origin https://github.com/mingruyue/ethernetPhone.git (push)
upstream https://github.com/mingruyue/ethernetPhone.git (fetch)
upstream https://github.com/mingruyue/ethernetPhone.git (push)
3. 修改
......
git add nphone/
git commit -m "add support for openwrt"
4. 提交到github
git push origin master
网友评论