git提交代码

1、进入本地文件夹
cd /c/wamp/www/weixin-old

2.进入分支,即将该分支切换为活跃分支
git checkout main150921_indexfix

3、拉取远端改变(weixin-old-remote是远端仓库)
git fetch weixin-old-remote

4、保存当前修改
git stash

5、查看状态
git status

6、合并分支
git rebase weixin-old-remote/main150921_indexfix

7、从修改列表中拉取最近一次修改
git stash pop

8、回退到上一个版本
git reset head 。。

9、提交到缓存区
git add .

10、提交到HEAD
git commit -m ""

9、push到远端
git push origin main150921_indexfix

 

posted @ 2015-10-14 16:31  LittlePenguin  阅读(159)  评论(0编辑  收藏  举报