| 2020-09-19 |
| ← jstein left | 00:01 |
| → Cabanossi joined | 00:02 |
| → R2robot joined | 00:03 |
| ← thansen left | 00:04 |
| → thansen joined | 00:07 |
| ← greggerz left | 00:08 |
| → Eryn_1983_FL joined | 00:08 |
| ← h3ck left | 00:11 |
| ← tiin57 left | 00:13 |
| ← arcatech left | 00:15 |
| → Xenguy joined | 00:15 |
| → tiin57 joined | 00:16 |
| → octav1a joined | 00:16 |
| ← cliluw left | 00:17 |
| → cliluw joined | 00:17 |
| → mindCrime_ joined | 00:18 |
| ← maxzor left | 00:19 |
| → arcatech joined | 00:22 |
| ← bilb_ono left | 00:32 |
| → tilpner_ joined | 00:33 |
| → cim209 joined | 00:34 |
| ← Isla_de_Muerte left | 00:34 |
| ← tilpner left | 00:36 |
| tilpner_ → tilpner | 00:36 |
| ← kantlivelong left | 00:38 |
| ← lmat left | 00:39 |
| → lmat joined | 00:41 |
| → kantlivelong joined | 00:42 |
| ← tiin57 left | 00:43 |
| ← shokohsc left | 00:43 |
| ← leeN left | 00:45 |
| → h3ck_ joined | 00:46 |
| ← rafasc left | 00:46 |
| → tiin57 joined | 00:46 |
| → bilb_ono joined | 00:52 |
| → mirrorbird joined | 00:55 |
| ← kent\n left | 00:57 |
| ← arcatech left | 00:57 |
| → kent\n joined | 00:58 |
| → shokohsc joined | 00:58 |
| ← cliluw left | 01:00 |
| → Ranhir joined | 01:01 |
| → cliluw joined | 01:01 |
| ← Aki-lucky left | 01:01 |
| ← tiin57 left | 01:13 |
| → vngx joined | 01:14 |
| → kupi joined | 01:14 |
| ← meropyri left | 01:16 |
| → tiin57 joined | 01:17 |
| ← dfee left | 01:20 |
| → init joined | 01:21 |
| ← Case_Of left | 01:23 |
| → Case_Of joined | 01:23 |
| ← F0rTex left | 01:23 |
| → F0rTex joined | 01:25 |
| → dustli joined | 01:28 |
| ← mirrorbird left | 01:30 |
| → justanotheruser joined | 01:32 |
| ← HourGate left | 01:35 |
| ← bilb_ono left | 01:38 |
| ← Betal left | 01:38 |
| → arcatech joined | 01:40 |
| ← mindCrime_ left | 01:40 |
| → HourGate joined | 01:40 |
| → mindCrime_ joined | 01:41 |
| ← bvdw left | 01:42 |
| → bvdw joined | 01:42 |
| ← tiin57 left | 01:43 |
| → tiin57 joined | 01:47 |
| → tavito joined | 01:48 |
| ← gschanuel left | 01:57 |
| → Betal joined | 01:59 |
| → gschanuel joined | 01:59 |
| ← [Brain] left | 02:00 |
| ← Trieste left | 02:04 |
| ← dustli left | 02:05 |
| → dustli joined | 02:09 |
| → meropyri joined | 02:11 |
| lagothrix → Guest51064 | 02:12 |
| ← Guest51064 left | 02:12 |
| → lagothrix joined | 02:13 |
| ← tiin57 left | 02:13 |
| → Trieste joined | 02:15 |
| → tiin57 joined | 02:16 |
| → Argorok joined | 02:18 |
|
Argorok
| I have created a branch for a new feature. Commited and pushed. After a while, master got updated by other things and I merged master into my branch, to keep it updated. But, all of a sudden, all my changes are gone. I can still see them in git logs, but the code isn't there anymore (and, on git, I can't see the commits I made to that branch with the new feature). How can I recover? | 02:19 |
| ← gschanuel left | 02:22 |
| ← arcatech left | 02:22 |
| → gschanuel joined | 02:24 |
| ← vngx left | 02:25 |
| ← miklcct left | 02:27 |
| → Muimi joined | 02:28 |
| ← Phylock left | 02:29 |
| → miklcct joined | 02:32 |
| ← dustli left | 02:33 |
| ← cbreak left | 02:34 |
| → bilb_ono joined | 02:34 |
| → dfee joined | 02:34 |
| ← gschanuel left | 02:35 |
| → gschanuel joined | 02:35 |
| → cbreak joined | 02:35 |
| ← meropyri left | 02:38 |
|
rewt
| Argorok, you may be able to use `git reflog` to see the commits you had checked out, and checkout a "good" one (by hash), and then make your branch there | 02:38 |
|
| Argorok, also a gui tool like gitk (or similar) can also help out to see where you're at | 02:39 |
|
Argorok
| rewt: How? I used git log --authorMyName --all and got all six commits hashes that are missing. I can go to the git page, type their hashes in url and see them | 02:39 |
|
rewt
| `git log` and `git reflog` are different | 02:40 |
|
Argorok
| Reflog gave me nothing interesting | 02:40 |
|
rewt
| it should list the refs you had checked out recently... one of them should be a commit that has what you're missing | 02:41 |
| → meropyri_ joined | 02:42 |
| meropyri_ → meropyri | 02:43 |
| ← tiin57 left | 02:43 |
|
Argorok
| rewt: I am on the feature branch. Can't just revert the 3 last "merge master to featurebranch"? | 02:44 |
|
| (Noob here) | 02:44 |
|
rewt
| you could | 02:45 |
|
Argorok
| Or, maybe, create another branch from the updated master and just apply the 6 commits I did to the destroyed feature branch? | 02:45 |
| → tiin57 joined | 02:46 |
|
rewt
| I suggested gitk, because it is really helpful to find a "good" commit, and reset your branch to it | 02:46 |
| ← bilb_ono left | 02:48 |
| ← tavito left | 02:51 |
| → bilb_ono joined | 02:53 |
| ← Cabanossi left | 02:56 |
| → Cabanossi joined | 02:58 |
| → kleisli_ joined | 02:59 |
| ← kleisli__ left | 03:01 |
| → drbean joined | 03:12 |
| ← bilb_ono left | 03:12 |
| ← tiin57 left | 03:13 |
| → tiin57 joined | 03:16 |
| → EvanCarroll joined | 03:18 |
| ← bn_work left | 03:25 |
| → Goplat joined | 03:26 |
| → mat001 joined | 03:32 |
| ← octav1a left | 03:34 |
| ← ueberall left | 03:37 |
| → oatmealraisin joined | 03:40 |
| ← tiin57 left | 03:43 |
| → tiin57 joined | 03:46 |
| ← EvanCarroll left | 03:48 |
| ← Gurkenglas left | 03:52 |
| ← gast0n left | 03:55 |
| → mat001_ joined | 04:00 |
| → inkbottle joined | 04:00 |
| ← zebrag left | 04:02 |
| ← mat001 left | 04:02 |
| ← clara97 left | 04:02 |
| → zulutango joined | 04:04 |
| ← dfee left | 04:05 |
|
Argorok
| rewt: seems that I managed to fix it through cherry-pick over the updated master. Thanks. Weird that my git log does not show the commits even with --all, only a server that was not updated after merges | 04:05 |
| ← mir100 left | 04:05 |
| → mirrorbird joined | 04:05 |
| ← donofrio_ left | 04:11 |
| ← tiin57 left | 04:13 |
| → a-l-e joined | 04:13 |
| → arcatech joined | 04:15 |
| → tiin57 joined | 04:16 |
| → dfee joined | 04:17 |
| ← arcatech left | 04:19 |
| ← zulutango left | 04:24 |
| → zulutango joined | 04:24 |
| → jaziz joined | 04:28 |
| ← dfee left | 04:32 |
| ← wagle left | 04:41 |
| ← tiin57 left | 04:43 |
| → pspace joined | 04:43 |
| ← kerframil left | 04:43 |
| → wagle joined | 04:44 |
| → tiin57 joined | 04:46 |
| ← fling left | 04:48 |
| ← zulutango left | 04:50 |
| ← justanotheruser left | 04:52 |
| → octav1a joined | 04:56 |
| → ferdna joined | 04:56 |
| ← Jookia left | 04:58 |
| → Jookia joined | 05:01 |
| ← Metalsutton left | 05:03 |
| ← a-l-e left | 05:04 |
| → bocaneri joined | 05:11 |
| ← tiin57 left | 05:13 |
| ← pspace left | 05:14 |
| → fling joined | 05:14 |
| → tiin57 joined | 05:16 |
| → mat001 joined | 05:20 |
| ← mat001_ left | 05:22 |
| → Busterx joined | 05:22 |
| ← mirrorbird left | 05:30 |
| ← nivag left | 05:33 |
| ← Busterx left | 05:34 |
| → darkbit joined | 05:40 |
| ← vicfred left | 05:42 |
| ← tiin57 left | 05:43 |
| → tiin57 joined | 05:46 |
| → fatalhalt joined | 05:47 |
| → mns joined | 05:52 |
| ← oatmealraisin left | 05:54 |
| ← deAtog left | 05:58 |
| ← heyitsrama left | 06:05 |
| → mat001_ joined | 06:10 |
| ← tiin57 left | 06:13 |
| ← mat001 left | 06:14 |
| → hussam joined | 06:16 |
| → tiin57 joined | 06:16 |
| → tarkus joined | 06:18 |
| → Guest20 joined | 06:22 |
| ← Decobus left | 06:26 |
| ← mns left | 06:27 |
| → feriman joined | 06:30 |
| → realtime joined | 06:33 |
| → h3ck joined | 06:33 |
| → h3ck__ joined | 06:33 |
| → vicfred joined | 06:34 |
| ← h3ck_ left | 06:35 |
| ← KnoP left | 06:36 |
| ← h3ck left | 06:37 |
| ← kleisli_ left | 06:37 |
| → h3ck joined | 06:38 |
| ← h3ck__ left | 06:41 |
| ← tiin57 left | 06:43 |
| → htrap joined | 06:46 |
| → tiin57 joined | 06:46 |
| ← Goplat left | 06:48 |
| → mirrorbird joined | 06:49 |
| → matelot joined | 06:50 |
| ← feriman left | 06:51 |
| ← matelot left | 06:52 |
| ← kupi left | 06:53 |
| → zulutango joined | 06:54 |
| → kleisli joined | 06:54 |
| kleisli → dillon | 06:55 |
| dillon → endorphin | 06:57 |
| ← wrksx_ left | 06:57 |
| → wrksx joined | 06:57 |
| ← unluckyshrubbery left | 07:02 |
| ← htrap left | 07:07 |
| Seveas_ → Seveas | 07:08 |
| → Metalsutton joined | 07:08 |
| ← Metalsutton left | 07:10 |
| ← tiin57 left | 07:13 |
| → tiin57 joined | 07:15 |
| ← ferdna left | 07:18 |
| ← FH_thecat left | 07:21 |
| ← zulutango left | 07:24 |
| → zulutango joined | 07:24 |
| ← Nokurn left | 07:24 |
| → ferdna joined | 07:28 |
| ← mindCrime_ left | 07:29 |
| → feriman joined | 07:32 |
| ← fatalhalt left | 07:33 |
| ← irc_user left | 07:37 |
| ← epoll left | 07:38 |
| ← Guest20 left | 07:38 |
| → epoll joined | 07:38 |
| ← epoll left | 07:39 |
| ← feriman left | 07:40 |
| → epoll joined | 07:40 |
| ← tiin57 left | 07:43 |
| → tiin57 joined | 07:46 |
| → wrobinso1 joined | 07:48 |
| ← wrobinson left | 07:51 |
| → PJBoy joined | 07:57 |
| → cosimone joined | 08:05 |
| ← drbean left | 08:06 |
| ← Xenguy left | 08:12 |
| ← tiin57 left | 08:13 |
| → Xenguy joined | 08:13 |
| → tiin57 joined | 08:17 |
| → calcul0n joined | 08:26 |
| → Phylock joined | 08:29 |
| ← sunyibo left | 08:30 |
| → nivag joined | 08:33 |
| → unluckyshrubbery joined | 08:34 |
| ← cliluw left | 08:34 |
| → sunyibo joined | 08:35 |
| ← init left | 08:41 |
| ← cbreak left | 08:41 |
| ← h3ck left | 08:41 |
| → h3ck joined | 08:42 |
| → cbreak joined | 08:42 |
| ← tiin57 left | 08:43 |
| → tiin57 joined | 08:46 |
| ← rgbmt left | 08:48 |
| ← shabius_ left | 08:57 |
| ← cd left | 09:02 |
| → shabius joined | 09:02 |
| ← p-core left | 09:06 |
| → p-core joined | 09:06 |
| → Guest20 joined | 09:08 |
| ← Blukunfando left | 09:09 |
| ← tiin57 left | 09:13 |
| → tiin57 joined | 09:16 |
| ← ferdna left | 09:18 |
| ← PJBoy left | 09:21 |
| ← lagothrix left | 09:22 |
| → lagothrix joined | 09:22 |
| → FH_thecat joined | 09:24 |
| → saveNexit joined | 09:25 |
| ← Betal left | 09:25 |
| ← cbreak left | 09:28 |
| ← p-core left | 09:29 |
| → wootehfoot joined | 09:29 |
| → p-core joined | 09:29 |
| ← p-core left | 09:34 |
| → p-core joined | 09:35 |
| ← Guest20 left | 09:36 |
| ← tiin57 left | 09:43 |
| ← saveNexit left | 09:43 |
| → saveNexit joined | 09:43 |
| → leeN joined | 09:45 |
| ← Muimi left | 09:45 |
| → tiin57 joined | 09:46 |
| ← saveNexit left | 09:46 |
| → kleisli_ joined | 09:50 |
| ← endorphin left | 09:52 |
| → OnkelBlade joined | 09:56 |
| → CoolerX joined | 09:57 |
|
CoolerX
| can git diff diff with a git repo? | 09:57 |
|
| I have 2 local repos that I want to diff | 09:57 |
|
| I could do git fetch but that messes up the graph | 09:57 |
|
j416
| man git-diff | 09:59 |
|
gitinfo
| the git-diff manpage is available at https://gitirc.eu/git-diff.html | 09:59 |
|
osse
| Not directly, no. fetch only messes up the graph if you make git log show the graph. you can also fetch and delete it again. | 09:59 |
| → feriman joined | 09:59 |
| → minhaj-sixbyte joined | 10:01 |
| → sixbyte joined | 10:01 |
| ← minhaj-sixbyte left | 10:01 |
|
CoolerX
| osse, delete what? | 10:02 |
|
| all the commits you fetched? | 10:03 |
|
ikke
| delete the remote | 10:03 |
|
osse
| yes | 10:03 |
|
| git remote add tmp http/whatever; git fetch tmp; git diff master tmp/master (or whatever it is you need); git remote rm tmp | 10:04 |
| ← wootehfoot left | 10:04 |
| → cbreak joined | 10:04 |
|
osse
| you can also only fetch exactly what you want to diff, but unless the repo is huge I wouldn't bother. ACtually, I wouldn't bother in any case, probably. | 10:05 |
|
CoolerX
| that will remove all the commits? | 10:06 |
|
ikke
| Not immediately | 10:06 |
|
CoolerX
| actually I tried it it's not very useful in my case | 10:06 |
|
ikke
| but they won't show up in git log | 10:06 |
|
CoolerX
| the commits have different commiters | 10:06 |
|
| the ids are different | 10:06 |
|
| commit message have a slightly different format | 10:07 |
| ← crose left | 10:07 |
| ← sixbyte left | 10:07 |
|
CoolerX
| the folder diff isn't much better | 10:08 |
|
| all the stuff inside .git shows up first as being different | 10:08 |
|
Jookia
| CoolerX: what are you trying to diff exactly | 10:08 |
| ← leeN left | 10:09 |
| → mrk joined | 10:09 |
| ← OnkelBlade left | 10:09 |
| → benfelin joined | 10:09 |
|
mrk
| hello im not able to fo git push because of remote how to fix it ? | 10:10 |
|
| it showing this ---- "fatal: invalid gitfile format: hello.html | 10:11 |
|
| fatal: Could not read from remote repository. | 10:11 |
|
| Please make sure you have the correct access rights | 10:11 |
|
| and the repository exists. | 10:11 |
|
| " | 10:11 |
| ← bocaneri left | 10:11 |
|
bremner
| ask the server admin? | 10:11 |
|
| also, check your URL | 10:12 |
| ← mirrorbird left | 10:12 |
|
CoolerX
| Jookia, well my repo got recreated | 10:12 |
| → aliss joined | 10:12 |
|
CoolerX
| not my, "our" repo | 10:12 |
|
| the .git folder was deleted and recreated | 10:12 |
|
mrk
| i added ssh key and then removed then thats happend!! | 10:13 |
| ← tiin57 left | 10:13 |
|
CoolerX
| Jookia, I was trying to diff the old repo and the new repo | 10:13 |
|
Jookia
| CoolerX: what do you mean 'deleted and recreated' | 10:13 |
|
CoolerX
| cp -r repo/ newrepo/; rm -rf newrepo/.git/; cd newrepo/; git init | 10:14 |
|
| I tried git diff --no-index repo/ newrepo/ | 10:14 |
|
| the newrepo/ only has the master branch | 10:15 |
|
| I was trying to diff a feature branch in the old repo with the master branch in the newrepo/ | 10:15 |
| → tiin57 joined | 10:16 |
| ← j7k6 left | 10:18 |
|
Jookia
| CoolerX: uh. as osse said, you can add newrepo's commits to the current repo and diff them i guess? but why have a new repo if you care about the old one? | 10:22 |
| → j7k6 joined | 10:24 |
| → bocaneri joined | 10:24 |
| → OnkelBlade joined | 10:24 |
| ← Celelibi left | 10:25 |
| ← mrk left | 10:25 |
| → leeN joined | 10:26 |
|
CoolerX
| Jookia, don't really care about the old one | 10:26 |
|
| we are migrating | 10:26 |
|
| so until that's finished | 10:26 |
| → pinpox joined | 10:27 |
|
Jookia
| CoolerX: why don't you add the feature branch to the new repo? | 10:28 |
|
CoolerX
| Jookia, I am not sure I can | 10:35 |
|
Jookia
| CoolerX: why not? can't you copy the files? | 10:35 |
|
CoolerX
| I did a git fetch inside newrepo/ but looking at the graph it's totally disconnected | 10:35 |
|
| the commit ids are different | 10:35 |
| → Nokurn joined | 10:36 |
|
Jookia
| yeah, it's a new repo | 10:36 |
|
CoolerX
| the committer is different, the parents of the commits have different ids now | 10:36 |
|
| even though it's all the same content | 10:36 |
|
Jookia
| yeah, it's a different git repo | 10:36 |
|
| different history | 10:36 |
|
CoolerX
| yeah so I am not sure how you go about that | 10:36 |
|
osse
| you can still diff as normal | 10:36 |
|
Jookia
| you can copy files | 10:36 |
|
CoolerX
| yeah I am copying files over manually | 10:37 |
|
Jookia
| maybe you could copy them using git checkout and stuff | 10:37 |
|
CoolerX
| I guess git checkout oldrepo/feature; git rebase newrepo/master; | 10:37 |
|
| something like that? | 10:37 |
|
Jookia
| why do you want to preserve history? | 10:38 |
|
CoolerX
| we don't want the old repo's history, etc. so it shouldn't be a merge | 10:38 |
|
Jookia
| rebasing would preserve history, or attempt to | 10:38 |
|
CoolerX
| hmm | 10:38 |
|
Jookia
| you could just checkout oldrepo/feature then git reset and git commit as a single new commit | 10:38 |
|
CoolerX
| Jookia, well forget history, rebase won't preserve the parent right/ | 10:39 |
|
| we are re basing | 10:39 |
|
| so new parent | 10:39 |
|
Jookia
| there's no point in rebasing here | 10:39 |
|
| unless you want to preserve history | 10:39 |
|
CoolerX
| well like I said I am not sure how to go about it | 10:40 |
|
| doing it manually for now | 10:40 |
|
Jookia
| checkout the files, reset branch, commit as single commit | 10:41 |
|
| or manually copy files | 10:41 |
|
| rebasing takes a commit history and puts it on top of another commit history | 10:41 |
| ← tiin57 left | 10:43 |
|
Jookia
| CoolerX: ideally you'd check out a branch in to your working directory + staging tree, then reset HEAD to the new master while preserving those, then commit | 10:43 |
|
| or main, whatever the branch is | 10:43 |
|
CoolerX
| Jookia, reset HEAD? | 10:45 |
|
| to the new master? HEAD of newrepo/ is already at newrepo/master | 10:45 |
|
Jookia
| CoolerX: yeah, like 'git checkout old-branch; git reset --soft new-branch; git status' to see | 10:46 |
| → tiin57 joined | 10:46 |
|
CoolerX
| ah | 10:46 |
| ← g00s left | 10:46 |
|
CoolerX
| yeah that makes sense, and afterwards git remote rm repo/ ? | 10:47 |
|
Jookia
| if you want yeah | 10:47 |
|
CoolerX
| ok | 10:47 |
|
| can reset --soft result in merge conflicts? | 10:48 |
|
Jookia
| i don't think so | 10:49 |
|
CoolerX
| I mean I would want it to result in merge conflicts, if the alternative is overwriting | 10:49 |
|
Jookia
| that will overwrite it | 10:49 |
|
CoolerX
| we are basically pulling changes from a feature branch into master | 10:49 |
|
| although slightly more unsual | 10:50 |
|
Jookia
| your feature branch doesn't exist any more though | 10:50 |
|
CoolerX
| ik | 10:50 |
|
| hmm | 10:50 |
|
Jookia
| you need to remake the feature branch | 10:50 |
|
CoolerX
| so git checkout repo/feature; git checkout -n newrepo/feature; git rebase newrepo/master | 10:51 |
| ← yonder left | 10:51 |
|
CoolerX
| something like that? | 10:51 |
|
Jookia
| no | 10:51 |
|
CoolerX
| checkout -b | 10:51 |
| → Gurkenglas joined | 10:52 |
|
CoolerX
| I guess avoid the rebase and do what you said earlier | 10:52 |
|
Jookia
| why do you want to rebase? | 10:52 |
|
CoolerX
| or maybe git merge? | 10:52 |
|
Jookia
| why do you want to git merge? | 10:52 |
|
CoolerX
| the other thing is I don't want the merge commit really | 10:52 |
|
| I just want the changes from the feature branch | 10:53 |
|
| but with merge conflict resolution so I can see what is happening | 10:53 |
|
| don't just thrash the newrepo/master | 10:53 |
|
Jookia
| you can't use git's merge conflict resolution without a common parent | 10:53 |
|
CoolerX
| yeah | 10:53 |
|
Jookia
| you could rebase to re-apply some commits on top of a branch | 10:54 |
|
CoolerX
| that's why I was thinking of pulling the changes from oldrepo/feature into newrepo/feature | 10:54 |
|
Jookia
| which just turns your commits in to patches that get re-applied | 10:54 |
|
CoolerX
| and the git checkout newrepo/feature; git rebase newrepo/master | 10:54 |
|
Jookia
| what would git rebase do there? | 10:54 |
|
CoolerX
| rebase gives me merge conflict resolution | 10:55 |
|
| if there are conflicts | 10:55 |
|
| instead of just thrashing the newrepo/master | 10:55 |
|
Jookia
| not quite | 10:55 |
|
| rebase doesn't give anything merge-related, it gives patch-related conflicts | 10:55 |
| → uebera|| joined | 10:55 |
|
CoolerX
| sure | 10:56 |
|
| but it atleast tells you there are conflicts and let's you see and resolve them | 10:56 |
| ← Ranhir left | 10:56 |
|
Jookia
| you could try rebasing just the feature branch on to the new master | 10:57 |
| → Ranhir joined | 10:57 |
|
CoolerX
| isn't that what I said? | 10:57 |
|
Jookia
| no, you were going to rebase the entire commit history on to the new repo | 10:57 |
|
| if it would even work at all | 10:58 |
|
| you need to use --onto probably | 10:58 |
|
CoolerX
| ah | 10:59 |
|
| Jookia, ok what about this | 10:59 |
|
| <Jookia> you could just checkout oldrepo/feature then git reset and git commit as a single new commit | 10:59 |
|
| do that | 10:59 |
|
| hmm wait | 11:00 |
|
| I was thinking of pulling all the changes into a branch off of newrepo/master | 11:00 |
|
| then rebase that newrepo/feaure onto newrepo/master | 11:00 |
|
| that way you don't rebase the entire history of the old repo | 11:00 |
|
Jookia
| you can selectively rebase commits. see the git rebase man page | 11:01 |
|
CoolerX
| " pulling all the changes into a single commit on branch off of newrepo/master" | 11:01 |
| → KnoP joined | 11:01 |
|
CoolerX
| Jookia, you mean with rebase -i HEAD~10 ? | 11:01 |
|
Jookia
| git checkout -b oldrepo/feature feature; git rebase --onto newrepo/master oldrepo/master | 11:01 |
|
| CoolerX: or something like that, yes | 11:02 |
|
| with --onto | 11:02 |
|
CoolerX
| Jookia, I am looking at --onto but the example they give is a connected graph | 11:07 |
|
| in my case the graph is disconnected | 11:07 |
|
Jookia
| CoolerX: worth trying anyway | 11:08 |
|
CoolerX
| oldrepo/feature isn't connected in any way to the newrepo/master | 11:08 |
|
| hmm | 11:08 |
|
Jookia
| no real downside to trying things | 11:08 |
|
CoolerX
| git checkout oldrepo/feature; git rebase --onto newrepo/master oldrepo/master oldrepo/feature; | 11:08 |
|
| ? | 11:08 |
|
Jookia
| you don't need to checkout the oldrepo/feature first, but yeah | 11:09 |
|
CoolerX
| oh you can do it from anywhere? | 11:09 |
|
| I guess since git rebase --onto has all the information it needs | 11:10 |
|
Jookia
| it'll check out the branch first | 11:10 |
|
CoolerX
| oh no I screwed up | 11:10 |
|
| I forgot to sign the commit | 11:10 |
|
| what is it git amend -s -S ? | 11:11 |
|
Jookia
| sign using GPG or signed-off | 11:11 |
|
CoolerX
| using GPG | 11:11 |
|
| both actually | 11:11 |
|
Jookia
| then yeah i think | 11:11 |
|
CoolerX
| I did set the thing where it should sign all commits automatically | 11:12 |
| ← tiin57 left | 11:13 |
|
CoolerX
| oh it did sign | 11:13 |
|
| only the signed off is missing | 11:13 |
| ← Gurkenglas left | 11:14 |
|
CoolerX
| so does git amend create a new commit? | 11:14 |
|
Jookia
| yes | 11:15 |
|
| you can't modify existing commits | 11:15 |
| → silverwhitefish joined | 11:15 |
|
CoolerX
| git amend is not a git command | 11:15 |
|
| ? | 11:15 |
|
| is it an extension? | 11:15 |
|
Jookia
| no, git amend creates a new commit | 11:16 |
|
CoolerX
| oh wait it's git commit --amend | 11:16 |
| → tiin57 joined | 11:16 |
| → mirrorbird joined | 11:25 |
| ← cosimone left | 11:28 |
|
CoolerX
| my -s and -S use different emails | 11:31 |
|
| how can I change -s to use a different email? | 11:31 |
|
| just for this repo | 11:31 |
| ← Phylock left | 11:32 |
|
Jookia
| i don't know if you can. maybe ask your boss if it's really worth changing? | 11:32 |
|
CoolerX
| it's a legal problem? | 11:33 |
|
| I would think the signed off message and GPG sign email not matching would be a bigger problem | 11:33 |
|
Jookia
| why? they're separate things | 11:33 |
| ← benfelin left | 11:41 |
| → dionysus69 joined | 11:41 |
| ← tiin57 left | 11:42 |
| → Phylock joined | 11:43 |
|
CoolerX
| unrelated to all that | 11:44 |
|
| what do you think of this fix? | 11:44 |
|
| let | 11:44 |
|
| let's say I am looking at the master branch, I see something that needs to be fixed, I make a change and commit | 11:45 |
|
| now I meant to make the change in a branch but it's already too late | 11:45 |
|
| so what I usually do is git checkout -b bugfix; git checkout master; git reset --hard <previous commit hash>; | 11:46 |
| → tiin57 joined | 11:46 |
|
CoolerX
| probably the first 2 commands could be compressed into one since I just want to create a new branch there | 11:46 |
|
osse
| That is perfectly fine | 11:46 |
|
CoolerX
| now sometimes I also accidentally push | 11:47 |
|
| so origin/master needs to be fixed as well | 11:47 |
|
| so after the above set of command I do git push --force from the master branch | 11:47 |
|
Jookia
| CoolerX: don't commit to master if you're prone to accidentally pushing | 11:47 |
|
| CoolerX: ideally never commit to master, only have stuff merged in | 11:47 |
|
osse
| That is a bit hairy. I sometimes do it if I know anyone else hasn't pulled yet. | 11:48 |
|
| But I try not to | 11:48 |
|
CoolerX
| osse, origin is my fork | 11:48 |
|
| my fork of the upstream open source repo | 11:48 |
|
Jookia
| you don't own the master branch so you shouldn't be comitting on it | 11:48 |
|
osse
| CoolerX: In that case I think that is fine as well | 11:49 |
|
CoolerX
| ok | 11:50 |
|
| Jookia, it's an accidental commit | 11:50 |
|
| I don't usually commit to master | 11:50 |
|
Jookia
| yeah but you're making two accidents that lead to trouble | 11:51 |
|
osse
| It's useful to keep in mind that master, origin/master and upstream/master are three different things | 11:52 |
|
Jookia
| yeah, but if you're prone to make mistakes you want to minimize the impact they can have | 11:52 |
|
osse
| master isn't one global ephemeral thing that magically appears on everone's computers at the same time. | 11:52 |
| → HumanG33k joined | 11:53 |
|
osse
| Since a fork is involved it sounds likely that they don't have push access to the one master that really matters | 11:53 |
|
Jookia
| pushing accidental commits is eventually going to cause problems | 11:53 |
| ← rustyshackleford left | 11:53 |
|
osse
| Some time in the future it might. But going out of one's way with a convoluted workflow to avoid that potential problem is also not very efficient. | 11:55 |
|
| In my mind it's a balance | 11:55 |
|
j416
| osse: that depends a lot on how things are set up though | 11:55 |
|
osse
| of course | 11:55 |
| ← KnoP left | 11:55 |
|
j416
| pushing branch master in our setup means deploy to production | 11:55 |
|
Jookia
| osse: 'dont commit to mater' = convoluted? ;) | 11:55 |
|
| master* | 11:55 |
| → malmalmal joined | 11:55 |
|
osse
| No that's not convoluted | 11:56 |
|
| In isolation that's not. But treating your local master with silk gloves also sounds like a hassle... sometimes | 11:56 |
|
| One way around it is to simple not have a local master at all. | 11:57 |
|
Jookia
| Yeah, that's what I do | 11:57 |
| → PJBoy joined | 11:58 |
|
Jookia
| i find local branches like that more hassle than they're worth | 11:58 |
|
osse
| Agreed | 11:58 |
| → m0viefreak joined | 11:58 |
|
j416
| for larger projects I tend to work on a separate branch as things mature and when ready I squash into a useful commit for master, loop repeat | 12:03 |
|
| I find it helps to have a version of the project in a buildable state at any given time, by simply checking out master | 12:04 |
| ← kleisli_ left | 12:06 |
| → cosimone joined | 12:09 |
| ← tiin57 left | 12:13 |
| → kleisli_ joined | 12:13 |
| → tiin57 joined | 12:16 |
| → drbean joined | 12:20 |
| → wootehfoot joined | 12:22 |
| → h3ck_ joined | 12:31 |
| ← p-core left | 12:33 |
| ← h3ck left | 12:33 |
|
CoolerX
| sure | 12:34 |
| → h3ck joined | 12:35 |
| ← malmalmal left | 12:36 |
| → h3ck__ joined | 12:37 |
| ← h3ck_ left | 12:38 |
| ← h3ck left | 12:40 |
| ← tiin57 left | 12:43 |
| ← jaziz left | 12:46 |
| → tiin57 joined | 12:46 |
| ← PJBoy left | 12:50 |
| ← axsuul left | 12:51 |
| → axsuul joined | 12:53 |
| → EvanCarroll joined | 12:58 |
| ← CoolerX left | 13:01 |
| → magic_ninja joined | 13:12 |
| → KnoP joined | 13:12 |
| ← tiin57 left | 13:13 |
| → tiin57 joined | 13:16 |
| → CoolerX joined | 13:17 |
|
cbreak
| I don't like squashing into a single commit | 13:17 |
|
| I usually commit / commit --fixup / commit --amend during development | 13:17 |
|
| and when I'm happy with a branch, merge --no-ff it into the main dev branch | 13:17 |
| ← feriman left | 13:17 |
| ← osse left | 13:19 |
| ← Thorn left | 13:25 |
| ← bodom left | 13:27 |
| ← tiin57 left | 13:42 |
| → htrap joined | 13:45 |
| → tiin57 joined | 13:46 |
| → CodeSlingerPaul joined | 13:49 |
| ← htrap left | 13:51 |
| → benfelin joined | 13:53 |
| ← drbean left | 13:58 |
| → Gurkenglas joined | 13:58 |
| ← CoolerX left | 14:01 |
| ← aliss left | 14:03 |
| → aliss joined | 14:03 |
|
nikivi
| how can I get root of git project | 14:04 |
|
| `git rev-parse --show-cdup` | 14:04 |
|
| doesnt work | 14:04 |
|
| so as `git rev-parse --show-toplevel` | 14:04 |
|
| https://stackoverflow.com/questions/957928/is-there-a-way-to-get-the-git-root-directory-in-one-command | 14:04 |
|
| `git rev-parse --show-toplevel` just prints current dir | 14:04 |
|
ikke
| nikivi: it should show the root of the project | 14:06 |
|
| are you sure there is no .git in the current dir? | 14:06 |
| ← OnkelBlade left | 14:07 |
| → init joined | 14:08 |
|
nikivi
| not in current dir | 14:10 |
|
| if im in git-repo/src/mutations | 14:10 |
|
| and run git rev-parse --show-toplevel | 14:10 |
|
| I expect to get path to git-repo | 14:10 |
|
| ~/src/git-repo as example | 14:10 |
|
ikke
| that's what it's supposed to do | 14:10 |
|
| what does ls -ld .git return? | 14:11 |
| ← darkbit left | 14:12 |
| ← tiin57 left | 14:12 |
|
nikivi
| `ls: .git: No such file or directory` | 14:13 |
|
| because I run it not in the git root | 14:13 |
|
| I want to go to git root | 14:13 |
|
ikke
| yes, was just verifying | 14:13 |
|
| and what does git rev-parse --show-toplevel actually return? | 14:13 |
|
nedbat
| nikivi: what are the full absolute paths of your current directory, and the directory you want it to show? | 14:14 |
|
nikivi
| https://hastebin.com/hugefunugo.sql | 14:14 |
|
| .git is inside `/Users/nikivi/src/orgs/learn-anything/release` | 14:15 |
|
nedbat
| nikivi: what about: ls -ld /Users/nikivi/src/orgs/learn-anything/release/web/.git | 14:17 |
| → tiin57 joined | 14:17 |
|
nikivi
| oh there is another .git there indeed, my bad | 14:17 |
|
| it was generated folder, I didnt know | 14:17 |
|
| thx | 14:17 |
| ← igemnace left | 14:28 |
| → gast0n joined | 14:31 |
| → mat001 joined | 14:35 |
| ← mat001_ left | 14:36 |
| → Muimi joined | 14:38 |
| → Aki-lucky joined | 14:40 |
| ← Aki-lucky left | 14:40 |
| → Aki-lucky joined | 14:41 |
| → Bluuu joined | 14:42 |
| ← tiin57 left | 14:42 |
| → tiin57 joined | 14:46 |
| → lss joined | 14:49 |
| ← aliss left | 14:50 |
| ← sunyibo left | 14:51 |
| → irc_user joined | 14:52 |
| → Thorn joined | 14:56 |
| ← raymond left | 14:56 |
| → clara97 joined | 14:59 |
| ← Aquazi left | 15:00 |
| → Celelibi joined | 15:02 |
| ← benfelin left | 15:03 |
| → cd joined | 15:03 |
| ← EvanCarroll left | 15:03 |
| ← dionysus69 left | 15:04 |
| ← tiin57 left | 15:13 |
| → chandoo joined | 15:14 |
| ← Bluuu left | 15:14 |
| → p-core joined | 15:16 |
| → tiin57 joined | 15:16 |
| ← KnoP left | 15:22 |
| ← diogenese left | 15:24 |
| → diogenese joined | 15:25 |
| → justanotheruser joined | 15:27 |
| ← p-core left | 15:28 |
| → p-core joined | 15:30 |
| ← Kaisyu7 left | 15:30 |
| ← mat001 left | 15:32 |
| → mat001 joined | 15:33 |
| ← p-core left | 15:35 |
| → p-core joined | 15:36 |
| → benfelin joined | 15:36 |
| ← p-core left | 15:41 |
| → Newami joined | 15:41 |
| → p-core joined | 15:42 |
| ← tiin57 left | 15:42 |
| → tiin57 joined | 15:46 |
| ← Muimi left | 15:50 |
| ← Newami left | 15:59 |
| ← lss left | 16:03 |
| ← cbreak left | 16:04 |
| → cbreak joined | 16:05 |
| → oatmealraisin joined | 16:07 |
| ← mirrorbird left | 16:08 |
| ← tiin57 left | 16:13 |
| → tiin57 joined | 16:16 |
| ← sgn left | 16:18 |
| ← cbreak left | 16:20 |
| → sgn joined | 16:21 |
| → snowkidimd joined | 16:21 |
| → cuppajoeman joined | 16:25 |
| → shtrb joined | 16:27 |
|
shtrb
| Is there a way other then forcing gpg signature on each commit to force users to have proper e-mail in thier commits ? | 16:27 |
|
Marmotte
| even with gpg signature, users could put what they want as email | 16:29 |
|
shtrb
| Shouldn't the signature correspond to the commit e-mail ? | 16:31 |
|
| but at least with signature I could see who had signed it. | 16:31 |
|
ikke
| only if you have verified their public key | 16:32 |
|
shtrb
| Any other suggestions how I can force proper user e-mails (domain based) in commits ? I have dozens of submodules , and I expect people to have some kind of miss configuration and I wish to avoid having commits like user@user being pushed. | 16:33 |
|
Marmotte
| check that in a server-side hook ? | 16:34 |
|
ikke
| shtrb: a pre-receive hook that verifies what people push | 16:34 |
| ← cuppajoeman left | 16:35 |
|
shtrb
| Marmotte, I'm with github, and for what I got I can't have custom server-side hooks | 16:35 |
|
ikke
| Then there is little you can do | 16:35 |
|
shtrb
| *unless I missread their docs | 16:35 |
| ← thebope left | 16:35 |
|
ikke
| No, they do not allow you to implement hooks | 16:38 |
|
| which means, unless it's a built-in feature (which I don't think github provides), anyone can put in any e-mail address | 16:39 |
|
shtrb
| maybe I can somehow have global pre-push (not per repo) to check that ? is there even a thing of a global hooks ? | 16:39 |
|
ikke
| You can either set a hooks dir | 16:40 |
|
shtrb
| ikke, Isn't hooks dir per repository thing ? | 16:40 |
|
ikke
| or you can add the hook to template dir | 16:40 |
|
| You can set that in the global config | 16:41 |
|
shtrb
| Oh nice , it could do the trick , thanks , will see how can I implement such a thing | 16:41 |
| ← m0viefreak left | 16:41 |
| ← tiin57 left | 16:43 |
| → AnAverageHuman joined | 16:44 |
| → tiin57 joined | 16:47 |
| → cbreak joined | 16:47 |
| ← benfelin left | 16:47 |
| ← oatmealraisin left | 16:48 |
| → theoceaniscool joined | 16:49 |
| → mirrorbird joined | 16:52 |
| → kerframil joined | 16:54 |
| ← tpaper left | 16:55 |
| → Goplat joined | 16:55 |
| → rafasc joined | 16:57 |
| → tpaper joined | 16:57 |
| ← vdamewood left | 16:58 |
| → calcul0n_ joined | 17:00 |
| → cuppajoeman joined | 17:01 |
| → Betal joined | 17:03 |
| ← calcul0n left | 17:03 |
| → PJBoy joined | 17:04 |
| → KnoP joined | 17:05 |
| → impermanence joined | 17:07 |
| ← clara97 left | 17:09 |
| ← cuppajoeman left | 17:09 |
| ← tiin57 left | 17:13 |
| → tiin57 joined | 17:16 |
| ← mirrorbird left | 17:18 |
| → mirrorbird joined | 17:19 |
| ← Phylock left | 17:20 |
| → buffal0 joined | 17:21 |
| → matelot joined | 17:32 |
| ← chandoo left | 17:34 |
| ← pinpox left | 17:38 |
| → OnkelBlade joined | 17:39 |
| → pinpox joined | 17:39 |
| → chandoo joined | 17:41 |
| ← tiin57 left | 17:43 |
| ← realtime left | 17:43 |
| → mindCrime_ joined | 17:45 |
| → tiin57 joined | 17:46 |
| → cdown_ joined | 17:47 |
| ← cosimone left | 17:48 |
| ← cdown left | 17:50 |
| cdown_ → cdown | 17:50 |
| ← j7k6 left | 17:52 |
| → j7k6 joined | 17:52 |
| → yonder joined | 17:57 |
|
oprypin
| i see a command being used: `git archive --format=tar --prefix= "$ref" | tar -x -f - -C "$path"`. is there any equivalent to it without using `tar`? | 17:59 |
| ← wootehfoot left | 17:59 |
| ← h3ck__ left | 18:00 |
|
rafasc
| oprypin: there's a zip backend as well. | 18:01 |
|
oprypin
| rafasc, ok also without using `zip` | 18:01 |
|
rafasc
| then using what? | 18:02 |
|
oprypin
| using just `git` ideally to achieve the same result | 18:02 |
|
| as i understand, this might be similar to `git checkout` but not sure about caveats | 18:02 |
|
rafasc
| you could try: git --work-tree=/home/rafasc/github/repo/ checkout HEAD -- :/ ; | 18:04 |
| → oatmealraisin joined | 18:05 |
|
rafasc
| there also ways to do it using 'git checkout-index' | 18:05 |
|
| you can see an example here: https://github.com/git/git/blob/master/Documentation/install-doc-quick.sh#L25 | 18:06 |
| ← tilpner left | 18:06 |
|
rafasc
| but this may be more contrived than you need. | 18:06 |
|
mackerman
| What's the problem with the pipe using tar? | 18:06 |
|
oprypin
| mackerman, it's Windows | 18:06 |
| → tilpner joined | 18:07 |
|
shtrb
| oprypin, pipe work on windows , you can have tar and other tools installed using gnu tools (or even from git-bash ) | 18:07 |
|
oprypin
| rafasc, i am indeed getting the same results from this command. thanks. `git --work-tree="$path" checkout "$ref" -- .` | 18:09 |
|
| wondering about caveats | 18:09 |
| ← OnkelBlade left | 18:10 |
| ← tiin57 left | 18:12 |
| → tiin57 joined | 18:16 |
|
rafasc
| oprypin: !deployy | 18:17 |
|
| !deploy | 18:17 |
|
gitinfo
| Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html | 18:17 |
| ← fflam left | 18:18 |
|
mackerman
| Huh. My Windows 10 box has %WINDIR%\system32\tar installed, and I don't remember where from. | 18:19 |
| → fflam joined | 18:19 |
| ← vicfred left | 18:19 |
| → vicfred joined | 18:21 |
|
mackerman
| Oh that's right it ships with Windows now. https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/ | 18:21 |
| → Khisanth joined | 18:21 |
|
rafasc
| oprypin: you also affect the index with the command, but there's git switch now, so you could probably use that instead to avoid that if necessary. | 18:22 |
| ← chandoo left | 18:29 |
| ← shtrb left | 18:30 |
|
oprypin
| rafasc, wait how does that affect index, and how does `git switch` *not* affect the index? | 18:31 |
|
ikke
| because one command is hardcoded to update the index, while for the other, it's optional | 18:32 |
|
rafasc
| because checkout -- file affects both the worktree and the index. And there's no way to separate the operations. | 18:32 |
|
| That's one of the reasons why they introduced git switch, to allow more granular operations. | 18:32 |
|
ikke
| They could've added an option to checkout to achieve that | 18:34 |
|
rafasc
| I saw a patch that was going to port switch --worktree back to checkout. | 18:35 |
| ← p-core left | 18:35 |
|
ikke
| But they also wanted to split the file operations of git checkout from the switching commits part | 18:35 |
| → p-core joined | 18:35 |
|
rafasc
| oprypin: I said switch, but I meant restore. | 18:35 |
|
| it shows how in my brain the switch and restore operations are still melded together due to how checkout works :D | 18:37 |
| → arcatech joined | 18:38 |
| → chandoo joined | 18:39 |
| ← chandoo left | 18:40 |
| → sozuba joined | 18:40 |
| ← tiin57 left | 18:42 |
| → dfee joined | 18:45 |
| → tiin57 joined | 18:46 |
| ← irc_user left | 18:52 |
| ← PJBoy left | 18:55 |
| ← dfee left | 18:57 |
| → thomasross joined | 19:03 |
| → dfee joined | 19:04 |
| ← Xenguy left | 19:04 |
| ← theoceaniscool left | 19:05 |
| → Xenguy joined | 19:06 |
| ← shored left | 19:07 |
| → jstein joined | 19:07 |
| → shored joined | 19:08 |
| ← wagle left | 19:10 |
| ← stats4647 left | 19:10 |
| → wagle joined | 19:11 |
| ← tiin57 left | 19:12 |
| → irc_user joined | 19:14 |
| → tiin57 joined | 19:16 |
| ← st-gourichon-fid left | 19:20 |
| → chouhoulis joined | 19:23 |
| ← mirrorbird left | 19:25 |
| → clara97 joined | 19:31 |
| → wootehfoot joined | 19:33 |
| → rustyshackleford joined | 19:34 |
| ← DiffieHellman left | 19:35 |
| → DiffieHellman joined | 19:36 |
| → st-gourichon-fid joined | 19:40 |
| ← tiin57 left | 19:42 |
| → Phylock joined | 19:46 |
| → tiin57 joined | 19:46 |
| ← p-core left | 19:48 |
| → p-core joined | 19:49 |
| → feriman joined | 19:51 |
| ← wootehfoot left | 19:55 |
| ← snowkidimd left | 20:01 |
| ← tarkus left | 20:02 |
| ← kleisli_ left | 20:03 |
| ← batrick left | 20:04 |
| → mat001_ joined | 20:04 |
| → braj joined | 20:06 |
| ← mat001 left | 20:06 |
| ← AnAverageHuman left | 20:08 |
| ← barteks2x__ left | 20:11 |
| → barteks2x__ joined | 20:11 |
| ← tiin57 left | 20:12 |
| ← Xenguy left | 20:13 |
| → Xenguy joined | 20:14 |
| → AnAverageHuman joined | 20:14 |
| ← st-gourichon-fid left | 20:14 |
| → st-gourichon-fid joined | 20:15 |
| → tiin57 joined | 20:16 |
| ← dfee left | 20:16 |
| → Xenguy_ joined | 20:18 |
| ← Xenguy left | 20:19 |
| ← hexnewbie left | 20:22 |
| → jaziz joined | 20:24 |
| ← Bilge left | 20:28 |
| ← p-core left | 20:28 |
| → p-core joined | 20:28 |
| Xenguy_ → Xenguy | 20:31 |
| → dfee joined | 20:32 |
| → mat001 joined | 20:36 |
| ← feriman left | 20:38 |
| ← mat001_ left | 20:39 |
| ← tiin57 left | 20:43 |
| → tiin57 joined | 20:46 |
| ← RandomGuy90 left | 20:47 |
| → batrick joined | 20:51 |
| ← batrick left | 20:51 |
| → Lucas_Gray joined | 20:56 |
| → batrick joined | 20:56 |
| → ferdna joined | 20:58 |
| ← nsh left | 20:59 |
| ← Lucas_Gray left | 21:06 |
| → crose joined | 21:06 |
| → theoceaniscool joined | 21:07 |
| DNS777 → DNS | 21:09 |
| → Lucas_Gray joined | 21:12 |
| ← tiin57 left | 21:13 |
| → tiin57 joined | 21:16 |
| ← dfee left | 21:19 |
| ← jstein left | 21:23 |
| ← luke-jr left | 21:24 |
| → kdlv joined | 21:25 |
| → luke-jr joined | 21:25 |
| → dfee joined | 21:27 |
| → PJBoy joined | 21:28 |
| ← dfee left | 21:28 |
| → dfee joined | 21:31 |
| ← dfee left | 21:32 |
| → nsh joined | 21:34 |
| → emmanuelux joined | 21:35 |
| → cosimone joined | 21:36 |
| ← gschanuel left | 21:38 |
| → gschanuel joined | 21:40 |
| ← clara97 left | 21:40 |
| ← init left | 21:42 |
| ← tiin57 left | 21:42 |
| ← j7k6 left | 21:44 |
| → dfee joined | 21:44 |
| ← dfee left | 21:46 |
| → tiin57 joined | 21:46 |
| → mowcat joined | 21:47 |
| ← mowcat left | 21:53 |
| → j7k6 joined | 21:54 |
| → dfee joined | 22:02 |
| ← dfee left | 22:03 |
| → dfee joined | 22:07 |
| ← dfee left | 22:08 |
| ← leah2 left | 22:08 |
| → Kaedenn joined | 22:12 |
| ← tiin57 left | 22:12 |
|
Kaedenn
| I have 311 Github repositories that all have the branches "master", "seed", "dev", "qa", "prod". I'd like to remove the "master" branch and use "prod" instead. Is there a way to do this using the Github Python API? | 22:13 |
|
| In the majority of the repos, the "master" branch is empty. | 22:13 |
|
| It's an artifact of how the repos were created, I believe. | 22:13 |
|
Jookia
| Kaedenn: see #github | 22:14 |
|
Kaedenn
| Thank you. | 22:14 |
|
nedbat
| Kaedenn: you can definitely use the api to delete branches. You might have to change the default branch of the repo first. | 22:14 |
| → tiin57 joined | 22:16 |
| ← leeN left | 22:19 |
| ← Phylock left | 22:19 |
| ← rafasc left | 22:23 |
| → dfee joined | 22:24 |
| → rafasc joined | 22:24 |
| ← meropyri left | 22:25 |
| ← dfee left | 22:25 |
| → meropyri joined | 22:25 |
| → leah2 joined | 22:26 |
| ← sozuba left | 22:35 |
| ← diogenese left | 22:36 |
| ← matelot left | 22:37 |
| ← arcatech left | 22:38 |
| ← tiin57 left | 22:42 |
| → fstd_ joined | 22:42 |
| ← gast0n left | 22:44 |
| ← Atlenohen left | 22:45 |
| → tiin57 joined | 22:46 |
| ← fstd left | 22:47 |
| fstd_ → fstd | 22:47 |
| → EvanCarroll joined | 22:52 |
| → gast0n joined | 22:53 |
| ← Betal left | 22:53 |
| ← theoceaniscool left | 22:53 |
| → dfee joined | 22:58 |
| ← BUSY left | 22:59 |
| ← cosimone left | 23:00 |
| ← dfee left | 23:00 |
| ← justanotheruser left | 23:09 |
| ← calcul0n_ left | 23:09 |
| ← mindCrime_ left | 23:10 |
| → mindCrime_ joined | 23:10 |
| → va5c0 joined | 23:11 |
| ← tiin57 left | 23:12 |
| → dfee joined | 23:14 |
| ← dfee left | 23:15 |
| → tiin57 joined | 23:16 |
| ← ferdna left | 23:21 |
| ← va5c0 left | 23:33 |
| → va5c0 joined | 23:33 |
| → dfee joined | 23:34 |
| ← dfee left | 23:35 |
| → Betal joined | 23:37 |
| ← buffal0 left | 23:42 |
| ← tiin57 left | 23:43 |
| → dedowsdi joined | 23:44 |
| → bearclaw joined | 23:45 |
| → tiin57 joined | 23:46 |
| → Case_Of_ joined | 23:46 |
| ← Case_Of left | 23:46 |
| ← va5c0 left | 23:47 |
| → va5c0 joined | 23:47 |
| Case_Of_ → Case_Of | 23:48 |
| ← va5c0 left | 23:49 |
| → va5c0 joined | 23:50 |
| → cuppajoeman joined | 23:50 |
| → dfee joined | 23:50 |
| ← dfee left | 23:51 |
| ← lankanmon left | 23:52 |
| ← dedowsdi left | 23:52 |
| → justanotheruser joined | 23:53 |
| ← va5c0 left | 23:54 |
| → va5c0 joined | 23:55 |
| ← Case_Of left | 23:57 |
| → Case_Of joined | 23:58 |
| ← va5c0 left | 23:58 |