码迷,mamicode.com
首页 > 其他好文 > 详细

Git Statsh

时间:2018-08-13 23:57:56      阅读:542      评论:0      收藏:0      [点我收藏+]

标签:source   app   checkout   odi   The   following   car   ini   mod   

git statsh:

 

save the local change, and back to the state of your last commit  

e.g before the change

bsc@ubuntu:~/Desktop/rcom_code/rcom/rcom$ git status
On branch rcom-669-write-deconfigure-message-to-cache-while-bcmapp-init

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: stack/link/source/bcmapp/code/bcmapp_fsm.c
modified: stack/link/source/bcmapp/code/bcmapp_fsm.h
modified: stack/link/source/bcmapp/code/bcmapp_fsm_entry.c

 

bsc@ubuntu:~/Desktop/rcom_code/rcom/rcom$ git stash
Saved working directory and index state WIP on rcom-669-write-deconfigure-message-to-cache-while-bcmapp-init: ffea477 Squashed commit of the following:
HEAD is now at ffea477 Squashed commit of the following:
bsc@ubuntu:~/Desktop/rcom_code/rcom/rcom$ git status
On branch rcom-669-write-deconfigure-message-to-cache-while-bcmapp-init  up-to-date

 

You can reapply the stashed change to another branch by git stash apply (in the target branch)

Git Statsh

标签:source   app   checkout   odi   The   following   car   ini   mod   

原文地址:https://www.cnblogs.com/anyu686/p/9471653.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!