git branch 的問題 - Linux

Table of Contents


目前所開發的程式是個open source

在這包code中我建立許多branch

有些是自己debug要看的所以沒有上傳到server

但目前這包code不知為何build一直有問題

就算是build master的也是有問題

想重新下載一包code來build

但不知原本的branch怎麼移植到新的一包code中~~??

讓我可以git checkout mybranch~~看我之前的東西

也不知google要搜尋甚麼關鍵字~~

再麻煩各位大大了!!

--

All Comments

Quintina avatarQuintina2019-01-19
先git status跟git pull看看有沒有跟上游同步吧?
Irma avatarIrma2019-01-21
關鍵字就push local branch to remote
Rosalind avatarRosalind2019-01-23
git format-patch
Frederica avatarFrederica2019-01-24
然後題外話,如果用git了還需要再另外clone一份新的
Ula avatarUla2019-01-25
repository才能解決問題的話,那代表你對git實在不夠了解
Quintina avatarQuintina2019-01-27
build 沒改過的東西會有問題,那應該要先做 git clean 吧
Ivy avatarIvy2019-01-28
把之前 build 產生的檔案先清乾淨
Margaret avatarMargaret2019-01-30
cherrypick
Ida avatarIda2019-02-02
你確定上傳前clean build能build?
Steve avatarSteve2019-02-03
個人覺得這是 build 的問題~~與 git 無關。
Ophelia avatarOphelia2019-02-04
先排除 git, 單純抓下來 build 成功後~~再去想 git branch
Hazel avatarHazel2019-02-07
把原本你branch中的全部format-patch出來, 然後再git
am 全部打回去
Ophelia avatarOphelia2019-02-10
還有 原本的也可以直接rm -rf ./* 然後再git checkout
-f
Irma avatarIrma2019-02-14
除非你把弄爛的東西也commit上去
Anonymous avatarAnonymous2019-02-16
若沒有送分支去遠端repo,重抓卻包不了很正常。
Lily avatarLily2019-02-17
這應該跟建議的設定有關。建議檢查所有連結,刪除快取