git branch 的問題 - Linux

Olivia avatar
By Olivia
at 2019-01-15T20:58

Table of Contents


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

在這包code中我建立許多branch

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

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

就算是build master的也是有問題

想重新下載一包code來build

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

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

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

再麻煩各位大大了!!

--
Tags: Linux

All Comments

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

autofs沒辦法掛載

Damian avatar
By Damian
at 2019-01-15T10:11
系統是debian 9.6 kernel版本是4.9 以前用debian 9可以掛載autofs 但最近重灌之後,不管怎麼試都沒辦法,設定檔是拿重灌前的 sudo systemctl status autofs.service ● autofs.service - Automounts filesystem ...

kernel panic - not syncing attempted

Lauren avatar
By Lauren
at 2019-01-15T00:33
最近電腦在開機的時候出現了這個訊息 kernel panic - not syncing attempted to kill init 然後硬碟就開不起來了…不知道如何解決,不知道有沒有大大遇過這種問題 全部的訊息如下: Uncompressing Linux... ok, booting the k ...

linux mint 有類似叫出小鍵盤的套件嗎

Dorothy avatar
By Dorothy
at 2019-01-14T07:12
我脊髓損傷 手不靈活 有些像$ at andamp; 需要組合鍵才能完成的 輸入方式 不知有無類似智慧手機的虛擬鍵盤在桌 面右下角叫出小鍵盤,然後用小指滑觸 控板點選切換 謝謝 ---- Sent from BePTT - ...

Debian 套件關係 Depends Recommends Suggests Enhances

Kama avatar
By Kama
at 2019-01-13T14:48
Debian 比較常見的套件相互關係有4種: 1.依賴 dep: depends 2.推薦 rec: recommends 3.建議 sug: suggests 4.增強 enh: enhances 我想要「反向」查詢套件的相互關係: 1. Reverse Depends: 我有找到指令 rdepends ...

用youtube-dl gui轉歌m4a異常肥大

Daniel avatar
By Daniel
at 2019-01-12T11:45
我曾經用youtube-dl GUI 抓歌 五小時的電音結果很肥大的m4a 有點久了忘了多大好像到5,6 百 mega 用手機的tubemate 轉就小很多 有人也是這樣嗎 ---- Sent from BePTT - ...