标签:直接 atl branch pull git head and 分支 mingw
常用命令:
1:jh55692@APACCNSHZJW3442 MINGW64 ~/redition/rendition (feature/June_09_2017/floatLeftMenu)
$ git add WebApps/rendition/eppublic/akpublic/documents/views/shareTabPane.html
2:jh55692@APACCNSHZJW3442 MINGW64 ~/redition/rendition (feature/June_09_2017/floatLeftMenu)
$ git commit -m "change left float menu base on shilei‘s code"
3:jh55692@APACCNSHZJW3442 MINGW64 ~/redition/rendition (feature/June_09_2017/floatLeftMenu)
$ git push origin feature/June_09_2017/floatLeftMenu
Jira新建一个分支并拉到本地
jh55692@APACCNSHZJW3442 MINGW32 ~/redition/rendition (release/June_09_2017)
$ git checkout bugfix/June_09_2017/C163778-10322-print-tab-doesn-t-show-well
远端没有此分支,push:
jh55692@APACCNSHZJW3442 MINGW32 ~/redition/rendition (jim_change_9534_9724)
本地有没有新分支均可,直接push到远端,并在远端新建一个分支:
$ git push origin jim_change_9534_9724:feature/June_09_2017/jim_change_9534_9724
本地必须有新分支,远端没有新分支,直接push到远端:
$ git push origin HEAD
Push不上去,先去主分支git pull更新下然后再在要push的分支merge下主分支
jh55692@APACCNSHZJW3442 MINGW32 ~/redition/rendition (bugfix/June_09_2017/C163778-9737-cv-app-android-top-menu-is-not)
$ git merge release/June_09_2017
察看所有分支
git branch -a
察看所有代码
gitk --all&
创建本地分支
git branch 分支名
新建一个分支并同时切换到那个分支上
$ git checkout -b
察看改动:
jh55692@APACCNSHZJW3442 MINGW32 ~/redition/rendition (feature/June_09_2017/C163544-9185-rendition-re-design-price-chart)
$ gitk --all&
jh55692@APACCNSHZJW3442 MINGW32 ~/rendition (release/Aug_10_2018)
$ git diff --cached 已经add了的文件的改动
$ git diff 没有add了的文件的改动
jh55692@APACCNSHZJW3442 MINGW32 ~/rendition (release/Aug_10_2018)
$ git reset 取消add
标签:直接 atl branch pull git head and 分支 mingw
原文地址:https://www.cnblogs.com/jimaww/p/9766847.html