| 2021-08-26 |
| → Vallenciana joined | 00:00 |
| ← kurtthemaker left | 00:03 |
| → nate1 joined | 00:08 |
| ← christall left | 00:10 |
| ← nate1 left | 00:12 |
| ← natrys left | 00:13 |
| ← batrick left | 00:16 |
| ← jaggz left | 00:20 |
| → batrick joined | 00:21 |
| ← m0viefreak left | 00:36 |
| ← Lord_of_Life left | 00:36 |
| → Lord_of_Life joined | 00:37 |
| ← pretty_dumm_guy left | 00:37 |
| ← Vallenciana left | 00:39 |
| ← plitter left | 00:39 |
| → Vallenciana joined | 00:40 |
| → plitter joined | 00:41 |
| ← plitter left | 00:41 |
| → plitter joined | 00:41 |
| → ferdna joined | 00:42 |
| → christall joined | 00:49 |
| ← Xenguy left | 00:50 |
| ← keypusher left | 00:53 |
| ← SleePy left | 01:00 |
| → SleePy joined | 01:03 |
| → Xenguy joined | 01:08 |
| → odoood joined | 01:14 |
| → clime joined | 01:16 |
| ← chexum left | 01:17 |
| ← christall left | 01:18 |
| → chexum joined | 01:18 |
| ← Vallenciana left | 01:19 |
| → Vallenciana joined | 01:20 |
| → ttree joined | 01:31 |
| ← Vooch left | 01:31 |
| → Vooch joined | 01:31 |
| ← clime left | 01:33 |
| ← odoood left | 01:35 |
| → schmillin_ joined | 01:42 |
| ← schmillin left | 01:42 |
| → christall joined | 01:43 |
| ← FFY00 left | 01:47 |
| → schmillin joined | 01:53 |
| → britho joined | 01:55 |
| → roadie joined | 01:55 |
| ← schmillin_ left | 01:56 |
| ← Vallenciana left | 01:59 |
| → Vallenciana joined | 02:00 |
| → thiago_ joined | 02:01 |
| ← epolanski left | 02:02 |
| ← roadie left | 02:06 |
| ← betelgeuse left | 02:07 |
| → betelgeuse2 joined | 02:08 |
| ← christall left | 02:08 |
| ← xx left | 02:08 |
| → jazzy2 joined | 02:08 |
| ← jazzy left | 02:12 |
| ← thiago_ left | 02:13 |
| → FFY00 joined | 02:17 |
| ← FinnElija left | 02:18 |
| → FinnElija joined | 02:20 |
| ← Drek45 left | 02:31 |
| → nate1 joined | 02:32 |
| ← nate1 left | 02:36 |
| ← Vallenciana left | 02:39 |
| → jaggz joined | 02:39 |
| → Vallenciana joined | 02:40 |
|
codebam
| I did a rebase on staging to fix my merge conflicts before I opened a PR but for some reason github still says there are conflicts, why? | 02:42 |
|
| how do I fix them locally | 02:43 |
|
| if I merge staging it's already up to date | 02:43 |
|
| and I can ff if I try merging into staging so I don't understand | 02:43 |
|
| oh I figured it out | 02:44 |
|
| I forgot to pull | 02:44 |
| → gnoo joined | 02:45 |
|
britho
| :) The joys of Git | 02:45 |
| ← elastic_dog left | 02:52 |
| ← rewrit3 left | 02:52 |
| ← nyah left | 02:53 |
| ← randm left | 02:54 |
| → randm joined | 02:55 |
| → elastic_dog joined | 02:57 |
| ← shailangsa left | 03:01 |
| → roadie joined | 03:05 |
| → Drek45 joined | 03:05 |
| ← Drek45 left | 03:10 |
| → christall joined | 03:12 |
| ← jab416171 left | 03:13 |
| → nate1 joined | 03:15 |
| ← christall left | 03:17 |
| → shailangsa_ joined | 03:17 |
|
codebam
| :) | 03:18 |
| → jab416171 joined | 03:19 |
| ← jab416171 left | 03:19 |
| ← Vallenciana left | 03:19 |
| ← nate1 left | 03:20 |
| → Vallenciana joined | 03:20 |
| → schmillin_ joined | 03:21 |
| → jab416171 joined | 03:24 |
| ← schmillin left | 03:25 |
| → nate1 joined | 03:37 |
| ← hbautista_ left | 03:45 |
| ← skapata left | 03:50 |
| ← pulse left | 03:51 |
| → stkrdknmibalz joined | 03:52 |
| ← ferdna left | 03:54 |
| ← Vallenciana left | 03:59 |
| → Vallenciana joined | 04:00 |
| ← nate1 left | 04:01 |
| → nate1 joined | 04:01 |
| ← Milos left | 04:05 |
| → Milos joined | 04:05 |
| ← roadie left | 04:06 |
| ← linguist left | 04:09 |
| ← Jonno_FTW left | 04:13 |
| → thebombzen joined | 04:14 |
| → ByteHackr joined | 04:18 |
| ← nate1 left | 04:21 |
| ← mutandis left | 04:26 |
| → roadie joined | 04:32 |
| ← gast0n left | 04:33 |
| Crispo → Crispy | 04:34 |
| ← Vallenciana left | 04:39 |
| → Vallenciana joined | 04:40 |
| → tristan__ joined | 04:41 |
| ← cmc left | 04:41 |
| → cmc joined | 04:41 |
| ← subopt left | 04:48 |
| → Jonno_FTW joined | 04:50 |
| ← w0ng left | 04:50 |
| → jstein joined | 04:54 |
| ← zebrag left | 04:55 |
| → w0ng joined | 04:55 |
| ← cmc left | 04:56 |
| ← gnoo left | 04:56 |
| ← chexum left | 04:56 |
| ← ghost43_ left | 04:56 |
| ← tejr left | 04:56 |
| ← gxt_ left | 04:56 |
| ← crabbedhaloablut left | 04:56 |
| ← AnAverageHuman left | 04:56 |
| ← adanwan_ left | 04:56 |
| ← ano left | 04:56 |
| ← TheJollyRoger left | 04:56 |
| ← ninjin left | 04:56 |
| → onizu joined | 05:03 |
| → ninjin joined | 05:04 |
| → ghost43 joined | 05:04 |
| → chexum joined | 05:05 |
| → crabbedhaloablut joined | 05:05 |
| ← ChmEarl left | 05:05 |
| → tejr joined | 05:06 |
| → gnoo joined | 05:07 |
| → gxt_ joined | 05:07 |
| → TheJollyRoger joined | 05:07 |
| → cmc joined | 05:07 |
| → ano joined | 05:07 |
| ← w0ng left | 05:13 |
| → christall joined | 05:14 |
| → w0ng joined | 05:16 |
| ← austin987 left | 05:18 |
| ← Vallenciana left | 05:19 |
| → Vallenciana joined | 05:20 |
| → srinidhi joined | 05:28 |
| ← Xaldafax left | 05:30 |
| → austin987 joined | 05:32 |
| ← thiago left | 05:35 |
| → agowa338 joined | 05:39 |
| → theoceaniscool joined | 05:40 |
| → aniruddha joined | 05:47 |
| ← codebam left | 05:47 |
| → codebam joined | 05:48 |
| ← christall left | 05:50 |
| → makara joined | 05:51 |
| ← codebam left | 05:54 |
| ← Vallenciana left | 05:59 |
| → Vallenciana joined | 06:00 |
| ← roadie left | 06:00 |
| → roadie joined | 06:02 |
| ← roadie left | 06:07 |
| ← cbreak left | 06:07 |
| → ishutin_ joined | 06:07 |
| → cbreak joined | 06:07 |
| ← ishutin left | 06:11 |
| ← EvilDMP left | 06:18 |
| → roadie joined | 06:25 |
| → vysn joined | 06:26 |
| → tmz_ joined | 06:26 |
| ← tmz left | 06:28 |
| ← roadie left | 06:30 |
| ← Peng left | 06:32 |
| → Peng joined | 06:32 |
| → fef joined | 06:32 |
| → EvilDMP joined | 06:36 |
| ← Vallenciana left | 06:39 |
| → Vallenciana joined | 06:40 |
| → meator joined | 06:42 |
| → roadie joined | 06:45 |
| → aidalgol joined | 06:51 |
|
aidalgol
| This is probably a really bad idea, but is it even possible to create a disjoint change history in an existing repository? | 06:52 |
| ← jazzy2 left | 06:52 |
| → palasso joined | 06:53 |
|
aidalgol
| Ah, git-checkout --orphan | 06:55 |
| → furrymcgee joined | 06:55 |
| → OnkelTem joined | 06:56 |
| → rfuentess joined | 07:03 |
| ← unluckyshrubbery left | 07:04 |
| → arunkumar413 joined | 07:14 |
|
arunkumar413
| Hi All | 07:14 |
|
| My feature branch and dev branch are even but some of the commits are not available in dev. I'm trying to get the commit into dev. Can you help? | 07:15 |
| ← ttree left | 07:18 |
| ← Vallenciana left | 07:19 |
| → enoq joined | 07:19 |
| → Vallenciana joined | 07:20 |
|
furrymcgee
| at some point the dev branch hould be deleted | 07:20 |
| → nobody_ joined | 07:22 |
| ← mfiano left | 07:24 |
| → mfiano joined | 07:28 |
| ← roadie left | 07:29 |
|
ikke
| arunkumar413: they cannot be even and not having the same commits at the same time | 07:33 |
|
arunkumar413
| furrymcgee No it's not deleted. | 07:33 |
|
| ikke merge conflicts were resolved and made even, | 07:34 |
|
ikke
| Ok, so you merged one into the other | 07:34 |
|
| !situation | 07:34 |
|
gitinfo
| Please post the url returned by `git log -n 20 --all --graph --format="%h %p %d %s" | curl -F text=@- https://upaste.de/` to give us an idea about what your situation is (increase the -n argument if your problem is more complex than 20 commits can explain) | 07:34 |
| → christall joined | 07:35 |
|
arunkumar413
| ikke shows some error in the command | 07:36 |
|
ikke
| what error? | 07:36 |
|
arunkumar413
| A parameter cannot be found that matches parameter name 'F'. | 07:36 |
|
| I'm on a windows machine | 07:37 |
|
ikke
| ah, then that does not work | 07:37 |
|
| run `git log -n 20 --all --graph --format="%h %p %d %s` and paste the output on https://upaste.de | 07:38 |
| ← christall left | 07:40 |
|
arunkumar413
| This shows an empty command prompt | 07:40 |
|
| okay got it | 07:41 |
|
| ikke here is the output https://upaste.de/nhg | 07:43 |
|
ikke
| Ok, now which branches are you interested in? | 07:43 |
|
arunkumar413
| Here is the more detailed one https://upaste.de/k4o | 07:45 |
|
| ikke this one bc8025cb f21fc963 (tag: tryingtoRestore) search table working as expected | 07:46 |
|
| I'm not sure which branch is this in | 07:47 |
| ← betelgeuse2 left | 07:47 |
| → wender joined | 07:47 |
|
ikke
| In all branches that I can see here | 07:47 |
|
| It was first merged in 2b812557, and then in e29f8d80 | 07:48 |
| → betelgeuse joined | 07:48 |
| ← ano left | 07:49 |
| → ano joined | 07:49 |
| ← computeiro left | 07:50 |
| → elf_fortrez joined | 07:51 |
| ← fef left | 07:52 |
| → christall joined | 07:52 |
| ← ano left | 07:53 |
| → ano joined | 07:55 |
| ← ano left | 07:57 |
| ← sudoforge left | 07:57 |
| → ano joined | 07:58 |
| → Gurkenglas joined | 07:59 |
| ← Vallenciana left | 07:59 |
| → Vallenciana joined | 08:00 |
|
arunkumar413
| ikke I'd like to restore this f9dbdbcc state for a specific file. | 08:00 |
| ← ano left | 08:00 |
|
ikke
| git restore --source=f9dbdbcc path/to/file | 08:02 |
| → fef joined | 08:02 |
| → epolanski joined | 08:06 |
|
arunkumar413
| ikke I'd like to restore this f9dbdbcc state for a specific file. | 08:08 |
|
| ikke I'd like to restore that on top of a new branch created from the dev branch\ | 08:09 |
|
ikke
| Then create + checkout that new branch | 08:09 |
| ← crabbedhaloablut left | 08:10 |
| → crabbedhaloablut joined | 08:10 |
|
arunkumar413
| is path to file relative? | 08:12 |
|
ikke
| yes | 08:13 |
| ← mfiano left | 08:16 |
| → ppang joined | 08:16 |
| ← Betal left | 08:18 |
| → eduardas joined | 08:18 |
| ← hnOsmium0001 left | 08:19 |
| ← christall left | 08:22 |
| → remyabel joined | 08:25 |
| → mfiano joined | 08:26 |
| → ano joined | 08:27 |
| ← meator left | 08:28 |
| ← mfiano left | 08:32 |
| → daoudr joined | 08:33 |
| → pretty_dumm_guy joined | 08:36 |
| ← pretty_dumm_guy left | 08:36 |
| → pretty_dumm_guy joined | 08:36 |
| ← pretty_dumm_guy left | 08:37 |
| ← Vallenciana left | 08:39 |
| ← rkta left | 08:39 |
| → rkta joined | 08:39 |
| → Vallenciana joined | 08:40 |
| → meator joined | 08:40 |
| ← Vonter left | 08:42 |
| → xx joined | 08:44 |
| → milahu joined | 08:45 |
| ← milahu left | 08:47 |
|
arunkumar413
| ikke Thanks a lot | 08:47 |
|
ikke
| yw | 08:48 |
| ← AbleBacon left | 08:49 |
| → pretty_dumm_guy joined | 08:51 |
| → mfiano joined | 09:07 |
| ← jrofd left | 09:08 |
| → jrofd joined | 09:08 |
| → unluckyshrubbery joined | 09:08 |
| → Vonter joined | 09:08 |
| ← jrofd left | 09:09 |
| → jrofd joined | 09:09 |
| ← fef left | 09:15 |
| → fef joined | 09:16 |
| → R2robot joined | 09:17 |
| → pulse joined | 09:17 |
| ← Vallenciana left | 09:19 |
| → Vallenciana joined | 09:20 |
| ← vysn left | 09:27 |
| ← crabbedhaloablut left | 09:27 |
| → crabbedhaloablut joined | 09:27 |
| ← zulutango left | 09:29 |
| → zulutango joined | 09:30 |
| → jazzy joined | 09:32 |
|
arunkumar413
| why is the switching branch command named as 'checkout'? | 09:35 |
|
| Literal meaning of checkout is paying cash at the counter. | 09:36 |
|
ikke
| There are more definitions for checking out things | 09:37 |
| → rsx joined | 09:42 |
| → chexum_ joined | 09:43 |
| ← chexum left | 09:43 |
|
[twisti]
| if im checking out a girl, im definitely not paying for it | 09:45 |
| → oxymoron93 joined | 09:49 |
| ← tristan__ left | 09:49 |
| ← zulutango left | 09:53 |
| ← OnkelTem left | 09:54 |
| → OnkelTem joined | 09:55 |
|
nedbat
| arunkumar413: books are checked out of libraries | 09:55 |
|
| [twisti]: that is clearly not the meaning intended | 09:56 |
| ← arunkumar413 left | 09:56 |
| → PinealGlandOptic joined | 09:56 |
|
[twisti]
| i would argue that its literally and exactly the meaning of checkout in the context of git | 09:57 |
|
| youre not taking something out, your looking closely at something | 09:57 |
| ← PinealGlandOptic left | 09:57 |
| ← Vallenciana left | 09:59 |
| chexum_ → chexum | 09:59 |
| → natrys joined | 09:59 |
| → Vallenciana joined | 10:00 |
| → selckin joined | 10:01 |
| ← shailangsa_ left | 10:04 |
| ← makara left | 10:04 |
|
ikke
| If you look at earlier vcs', it matches more closely with checking out books | 10:06 |
|
| You checked out a file, made changes, and checked it in again | 10:06 |
| → otisolsen70 joined | 10:09 |
| → forgotmynick joined | 10:10 |
| ← Crispy left | 10:10 |
| → Crispy joined | 10:10 |
|
nedbat
| [twisti]: if you want that meaning, at least use "check out a detail" rather than "check out a girl" | 10:12 |
|
[twisti]
| i didnt want to get crude in my example :D | 10:13 |
| → ekathva joined | 10:14 |
| ← ByteHackr left | 10:15 |
| → ByteHackr joined | 10:17 |
| ← ackyshake left | 10:18 |
| ← oxymoron93 left | 10:18 |
| → christall joined | 10:19 |
| → keypusher joined | 10:20 |
| ← elf_fortrez left | 10:20 |
| ← pretty_dumm_guy left | 10:21 |
| ← bn_work left | 10:22 |
| → shailangsa joined | 10:22 |
| → oxymoron93 joined | 10:24 |
| ← keypusher left | 10:24 |
| → keypushe- joined | 10:24 |
| keypushe- → keypusher | 10:27 |
| ← Vallenciana left | 10:39 |
| → Vallenciana joined | 10:40 |
| ← christall left | 10:46 |
| ← eduardas left | 10:47 |
| ← TheJollyRoger left | 10:49 |
| → TheJollyRoger joined | 10:49 |
| → eduardas joined | 10:54 |
| ← nobody_ left | 10:57 |
| ← pulse left | 10:57 |
| ← crabbedhaloablut left | 11:02 |
| → crabbedhaloablut joined | 11:02 |
| → rewrit3 joined | 11:10 |
| ← oxymoron93 left | 11:11 |
| → oxymoron93 joined | 11:12 |
| → oxymoron9325 joined | 11:13 |
| → Dotz0cat_ joined | 11:16 |
| ← Dotz0cat left | 11:16 |
| → gnoo_ joined | 11:16 |
| Dotz0cat_ → Dotz0cat | 11:16 |
| ← oxymoron93 left | 11:17 |
| ← oxymoron9325 left | 11:17 |
| ← Vallenciana left | 11:19 |
| → Vallenciana joined | 11:20 |
| ← gnoo left | 11:20 |
| ← furrymcgee left | 11:26 |
| → nik joined | 11:28 |
| ← Crispy left | 11:29 |
| → Crispy joined | 11:29 |
| ← igemnace left | 11:32 |
| → Pistahh joined | 11:32 |
|
Pistahh
| hello, does anyone know a tool or an easy way to visualize the relationship of a few particular commits? Focusing on how the related branches they are in were created/merged, showing only the commits I'm interested in, but not the many 100 other commits within the related branches? | 11:33 |
| → pretty_dumm_guy joined | 11:35 |
| ← gnoo_ left | 11:36 |
| → gnoo_ joined | 11:36 |
|
ikke
| Pistahh: not sure if it's what you are looking for, but maybe: git log --graph --oneline --simplify-by-decoration branch1 branch2 | 11:36 |
|
Pistahh
| ikke: not really, my issue is that there is a convoluted history with many branches / merges, all branches containing many commits I'm not interested in, so I'd like to see some really simplified graph that would show me how 3-4 commits relate to each other wrt. branches and merges | 11:38 |
|
| i.e. "show me the graph between commits with sha aaaaaaaaaa, bbbbbbbbb, cccccccc, ddddddddd, eeeeeeee" | 11:40 |
| ← stkrdknmibalz left | 11:41 |
| → Samian joined | 11:44 |
| → tristan__ joined | 11:57 |
| → lpapp_ joined | 11:58 |
| ← Vallenciana left | 11:59 |
| → Vallenciana joined | 12:00 |
| → madewokherd` joined | 12:10 |
| → gh34 joined | 12:12 |
| ← madewokherd left | 12:13 |
| ← drogas left | 12:15 |
| ← lpapp_ left | 12:17 |
| → nyah joined | 12:18 |
| ← ninjin left | 12:19 |
| → sudoforge joined | 12:19 |
| → nobody_ joined | 12:22 |
| → ninjin joined | 12:25 |
| ← drew left | 12:28 |
| → odoood joined | 12:29 |
| → pulse joined | 12:29 |
| ← dsrt^ left | 12:29 |
| → christall joined | 12:30 |
| → FH_thecat joined | 12:35 |
| → furrymcgee joined | 12:37 |
| ← jrofd left | 12:37 |
| → Bayes joined | 12:37 |
| ← Bayes left | 12:37 |
| → Bayes joined | 12:37 |
| ← Vallenciana left | 12:39 |
| → Vallenciana joined | 12:40 |
| ← forgotmynick left | 12:42 |
| ← mdk left | 12:43 |
| → mdk joined | 12:43 |
| ← mdk left | 12:46 |
| → mdk joined | 12:47 |
| → jrofd joined | 12:50 |
| ← christall left | 12:53 |
| → christall joined | 12:54 |
| ← mdk left | 12:54 |
| → mdk joined | 12:55 |
| ← mdk left | 12:55 |
| → mdk joined | 12:55 |
|
osse
| Pistahh: maybe something like: base=$(git merge-base --octopus aaa bbb ccc ddd...); git log --graph --oneline --ancestry-path ^$base aaa bbb ccc ddd... | 12:56 |
| ← jrofd left | 12:57 |
| ← Xenguy left | 12:59 |
| → skapata joined | 13:01 |
| ← skapata left | 13:01 |
| → skapata joined | 13:01 |
|
xx
| I want to interactively change things in a past commit. So I do `git rebase -i <hash of commit before the commit I want to change>` and then mark it as 'edit' | 13:01 |
|
| and then I thought I'd do `git reset -p` but it doesn't do anything | 13:02 |
|
| I essentially want to undo hunks in some files | 13:02 |
| → anakimluke joined | 13:02 |
|
osse
| git checkout -p HEAD~1 | 13:02 |
|
| then commit --amend | 13:02 |
|
xx
| I see the HEAD^ is what I was missing | 13:04 |
|
| but what's the difference between `git reset -p` and `git checkout -p` in this case? | 13:04 |
| → linguist joined | 13:04 |
|
osse
| reset will only update the index | 13:05 |
| → jrofd joined | 13:10 |
| ← odoood left | 13:11 |
| ← Vallenciana left | 13:19 |
|
xx
| I don't think I want to use `checkout` because it doesn't let me do a git diff afterwards to see what has been unstaged | 13:19 |
|
| incidentally, `git reset -p` doesn't work that way either - it doesn't show me the difference between staged files and unstaged files afterwards | 13:20 |
| → Vallenciana joined | 13:20 |
| → drogas joined | 13:21 |
|
xx
| I think I get it, the wording is wrong. Where it says "Apply this hunk to index" it *actually* means *Un-apply* | 13:22 |
|
| very counterintuitive | 13:23 |
|
| do I get it right that "Apply this hunk to index" means "Unstage this hunk"? | 13:24 |
| → roadie joined | 13:26 |
| ← Dotz0cat left | 13:28 |
| → cousteau joined | 13:29 |
| ← cousteau left | 13:29 |
|
osse
| xx: isn't the hunk reversed? | 13:30 |
|
xx
| osse: honestly I'm struggling with terminology now | 13:31 |
| → cousteau joined | 13:31 |
|
xx
| because 'reverse' has a different meaning | 13:31 |
|
cousteau
| Sup | 13:31 |
|
xx
| I'm testing to see if I understand it properly | 13:31 |
| → jimklimov joined | 13:31 |
|
osse
| xx: The usecase is that you have *for example* changed a line from AAAA to BBBB in a commit, and you want to remove that change from the commit, right? | 13:32 |
|
xx
| correct | 13:32 |
|
osse
| and you're rebasing and marked that commit as 'edit' right? | 13:32 |
|
xx
| correct | 13:32 |
|
osse
| did you run checkout or reset? | 13:33 |
|
xx
| I tried both, didn't like checkout because it didn't allow me to see afterwards what exactly was unstaged | 13:33 |
|
| I use `git diff` a lot | 13:33 |
| → jwillikers joined | 13:34 |
|
cousteau
| I think I asked this before, but is there a documented flow for how to work when a git repository is not the "main repository" hosting code, but a copy (a "git version") of a non-git repository? | 13:34 |
|
osse
| xx: either way this changes the index, so to see the change you have to git diff --staged | 13:35 |
|
cousteau
| Example: boss gives me a bunch of code, I create a git repo from that, add some changes, eventually boss will grab the files from my last commit and put them back into the non-git repo, and then modify some of them (possibly reverting some changes) | 13:37 |
|
| And I'm somehow able to convince them to tell me which commit exactly they got the code from (which is another issue...) | 13:38 |
| ← gnoo_ left | 13:39 |
| ← pulse left | 13:39 |
|
cousteau
| In an ideal world, they would do the merge using git rather than manually, making both their job and mine easier, but well... | 13:39 |
| ← jwillikers left | 13:40 |
| ← tristan__ left | 13:41 |
|
cousteau
| I was thinking on something involving the use of `git merge -s ours` that will replace all of my files with their edited version (so that all of their post-grab changes look like actual modifications to the eyes of git) | 13:42 |
| ← anakimluke left | 13:49 |
| ← meator left | 13:49 |
|
mackerman
| Some bridges for git to integrate with non-git version control systems exist. But limitations apply. | 13:49 |
|
| Chapter in Pro Git !book is Git and Other Systems | 13:49 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: https://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable | 13:49 |
|
cousteau
| Basically I have a loose idea in mind of what needs to be done, but that idea is s*** and very unclear to me so I'd rather use a guide for what I'm doing, which I bet someone has already had to fight with, rather than reinventing the wheel (which will probably end up being rectangular or something) | 13:50 |
|
| Thanks, I'll check the book | 13:51 |
| → gnoo_ joined | 13:51 |
| → ASDX___ joined | 13:51 |
|
cousteau
| There is `git p4`, but I don't know how easy it is to use (nor if I can use it at all) | 13:51 |
|
mackerman
| You haven't said what the other system is, which makes it hard to find guides even if one existed. | 13:52 |
| → thiago joined | 13:52 |
| ← ppang left | 13:52 |
|
cousteau
| Well, the fact that I mentioned git p4 should be a hint that it was Perforce :P but yeah, I didn't mention it because I was thinking more of a general solution | 13:53 |
|
| Atlassian does have a git p4 guide, which also explains how the whole process works | 13:53 |
| ← ASDXXXXX left | 13:55 |
| ← nik left | 13:55 |
| ← Murr left | 13:56 |
| → Murr joined | 13:56 |
|
cousteau
| Problem with integration tools is that they imply the use of git by the person integrating code TO the non-git repo, but I don't see that happening any time soon. Instead, I'll likely have to be integrating code FROM the non-git repo to the git one | 13:57 |
| → hexology joined | 13:58 |
|
cousteau
| Hm, maybe I'm misinterpreting what git p4 does | 13:59 |
| ← Vallenciana left | 13:59 |
|
mackerman
| man git p4 | 13:59 |
|
gitinfo
| the git manpage is available at https://gitirc.eu/git.html | 13:59 |
|
mackerman
| Hmm. | 13:59 |
|
| man git-p4 | 13:59 |
| ← jimklimov left | 14:00 |
|
mackerman
| https://git-scm.com/docs/git-p4 | 14:00 |
| → Vallenciana joined | 14:00 |
|
cousteau
| I tried that in windows BTW, it told me that I don't have python :( Will try in Linux to see if it works better | 14:00 |
| ← axisys left | 14:00 |
| → jimklimov joined | 14:01 |
|
mackerman
| Python for Windows exists, but I don't know how portable git-p4 is. | 14:02 |
| ← fling left | 14:03 |
| ← FH_thecat left | 14:03 |
|
cousteau
| Anyway, from what I can see in the Atlassian tutorial, the only thing git p4 does is fetch the changes from p4, not fix the mess that the p4 maintainers created by copying my files manually | 14:04 |
|
| So the difference between using git p4 and copying the files manually from the p4 repository is small. The problem is still to fix the commit mess. Guess I can use the Atlassian guide for that, regardless of the type of the non-git repo | 14:05 |
| ← reset left | 14:06 |
| → CSWookie joined | 14:06 |
| → meator joined | 14:08 |
| ← meator left | 14:10 |
| → archie joined | 14:10 |
|
cousteau
| The Atlassian tutorial is horrible :( Not horribly done, just a painful experience in general | 14:10 |
| ← jimklimov left | 14:10 |
|
archie
| hello | 14:10 |
|
cousteau
| Sup | 14:11 |
|
archie
| currently the default git init branch is master | 14:11 |
|
| afaik there's an ongoing discussion about that | 14:11 |
|
cousteau
| I think there are plans to call it "main" | 14:11 |
|
archie
| how it's going? It's likely it will be replaced, or master will remain? | 14:12 |
| → meator joined | 14:12 |
|
cousteau
| (I wanted it to be called "trunk", for historical reasons) | 14:12 |
|
| There might be a thread in some mailing list | 14:13 |
| ← Vonter left | 14:16 |
|
archie
| saw that iirc, forgot the link though | 14:17 |
|
| wanted to know how is going | 14:17 |
|
| wonder if there'll be a switch | 14:18 |
| → hnOsmium0001 joined | 14:18 |
|
mackerman
| Since 2.28, the default name for the initial first branch can be configured with init.defaultBranch | 14:18 |
|
archie
| mackerman I know that | 14:18 |
| ← Crispy left | 14:18 |
| → Crispy joined | 14:19 |
|
cousteau
| There seem to be plans to rename it to "main" indeed | 14:20 |
|
meator
| Hello, is there some git way to send signed commits via email? | 14:21 |
|
Arsen
| no, those would need to get signed by the committer, not the author | 14:22 |
|
| (you're the author, whoever runs git-am is the committer) | 14:22 |
|
cousteau
| archie: https://sfconservancy.org/news/2020/jun/23/gitbranchname/ | 14:23 |
|
meator
| Ok, thanks! | 14:24 |
|
cousteau
| That mentions the change to not-master being discussed "on our mailing list" | 14:24 |
| ← pretty_dumm_guy left | 14:24 |
|
Arsen
| say I have repo A and repo B, and I want to extract a subdir from A into B using git subtrees, is this possible? | 14:25 |
|
| I want to make it possible for me to merge later into the same subtree, but I don't need the entirety of repo A in B, just a component | 14:25 |
|
| this should be possible, technically, as far as I understand | 14:26 |
| → axisys joined | 14:26 |
| → Vonter joined | 14:27 |
|
cousteau
| I am not the expert in subtrees here, but have you considered submodules instead? (at least if you foresee that you're going to use that subdir often in the future) | 14:28 |
|
Arsen
| that subdir would be quite active | 14:29 |
|
| I'm basically trying to strip out many unneeded components out of an upstream | 14:29 |
| → xterm_ joined | 14:33 |
| → Xaldafax joined | 14:34 |
|
archie
| cousteau it says there are discussions in progress, nothing else | 14:35 |
|
cousteau
| Yes, they don't point to any discussion in the mailing list | 14:35 |
|
Arsen
| what are you interested in specifically? | 14:36 |
|
cousteau
| Just mention such discussions exist | 14:36 |
|
Arsen
| https://github.com/git/git/blob/daab8a564f8bbac55f70f8bf86c070e001a9b006/refs.c#L565-L576 does this answer questions? | 14:36 |
|
cousteau
| Wow, they do mention "trunk" as an alternative! | 14:37 |
|
| But, uh... shouldn't "development" be the devel/unstable branch, not the primary/stable one? (Maybe they meant "default", hg style?) | 14:38 |
|
Arsen
| many projects consider master an unstable branch | 14:38 |
|
| there's nothing wrong with that | 14:38 |
|
| tags exist, after all | 14:39 |
| → daoudr_ joined | 14:39 |
| ← Vallenciana left | 14:39 |
|
cousteau
| Arsen: but no, those lines only mention that it's subject to change, nothing about whether they're going to change it | 14:39 |
| ← Vonter left | 14:40 |
|
Arsen
| usually, that means that it's yet to be decided :P | 14:40 |
| → Vallenciana joined | 14:40 |
| → Vonter joined | 14:40 |
|
cousteau
| Indeed, but what archie wanted to knos was how the discussion was going | 14:40 |
| → pulse joined | 14:40 |
| ← daoudr left | 14:42 |
|
Arsen
| right | 14:44 |
|
| I don't have a link to the thread anymore | 14:45 |
|
| sorry :/ | 14:45 |
|
| regardless, if you prefer a name, git config --global init.defaultBranch <whatever> | 14:45 |
|
| cousteau personally thinks of "master" as a positive word, like "teacher" or "expert", and doesn't immediately think of its more offensive meanings when reading it... but I suppose that could be different for people more personally affected by it | 14:45 |
| ← Vallenciana left | 14:47 |
| → brunodOut joined | 14:48 |
| → Vallenciana joined | 14:49 |
| ← linguist left | 14:52 |
| ← axisys left | 14:53 |
| ← fef left | 14:54 |
| ← Vallenciana left | 14:55 |
| → fef joined | 14:55 |
|
cbreak
| whether master is stable or not depends on workflow obviously. But trunk is a dumb name. | 14:58 |
|
| it implies that history is tree-like, which it is not. | 14:58 |
|
| unlike subversion, git actually does support proper merging, so history is not a tree, it's a DAG. | 14:59 |
| → drew joined | 14:59 |
| → subopt joined | 14:59 |
| ← Bayes left | 15:00 |
| ← austin987 left | 15:02 |
| → pyeverything joined | 15:03 |
| → zebrag joined | 15:04 |
|
cousteau
| cbreak: it looks an awful lot like a tree though... but I guess you're right | 15:06 |
|
cbreak
| it looks like a tree until you merge :) | 15:06 |
|
cousteau
| If it were a pure tree it would defeat the purpose of making "branches", which is to merge them later | 15:06 |
| → lpapp_ joined | 15:06 |
|
cbreak
| also, git supports orphan branches | 15:07 |
|
cousteau
| But then again, if "trunk" is a stupid name, then so is "branch" | 15:07 |
|
cbreak
| yeah. | 15:07 |
|
cousteau
| And, using this tree-inspired nomenclature, it makes a lot of sense to refer to the "main branch" as the "trunk" | 15:09 |
|
| And, for some reason, "The Rattling Bog" song is now stuck in my head | 15:11 |
|
Arsen
| master( copy) still makes sense to me, and so does development/unstable | 15:12 |
| ← ByteHackr left | 15:12 |
|
cousteau
| Yeah, that's what "master" probably meant. The "golden reference", not the "thing that rules over other branches". If anything, it's the other way around: branches innovate, master learns from them and follows them | 15:15 |
|
| Unless you're one of those evil people who commit to master | 15:15 |
|
Arsen
| I must be a supervillan then | 15:15 |
|
cousteau
| >:( You monster! | 15:16 |
| ← Vonter left | 15:16 |
| → austin987 joined | 15:16 |
| ← daoudr_ left | 15:16 |
|
Arsen
| it makes sense in my workflows | 15:17 |
|
| tags are releases | 15:18 |
|
cousteau
| Well if there's a single branch then I guess | 15:18 |
|
Arsen
| either that or there's no release and the repo is "rolling": master is the version intended for use | 15:18 |
| ← lpapp_ left | 15:19 |
|
cousteau
| Yeah that'd be the SVN approach, where branches were so awful they'd hardly ever be used, leading to a perfectly linear history with sequential commit numbers | 15:19 |
|
| And for a one-person project, unless you have the (not officially diagnosed) level of ADHD I have, you'd probably be working in one thing at a time, and thus not need branches | 15:21 |
|
Arsen
| linear histories have various advantages | 15:21 |
|
| I only branch when I have reason to conflict with current work, or when merging other peoples concurrent work, and I rarely merge in favor of rebase | 15:22 |
|
cousteau
| I'm easily distracted so I'm likely to move "side quests" to separate branches and then merge them, for the sake of cleanliness. Still makes for a mostly linear history. | 15:23 |
|
| But having the possibility (but not the requirement) to have branches that can be merged painlessly is what makes git and the like great tools. I didn't really appreciate this until I had to use SVN | 15:25 |
|
| I've also seen projects that force --no-ff merges as a way to group multiple commits into a single one (without squashing them) | 15:27 |
| → SuperLag joined | 15:27 |
|
cousteau
| So, to each their own approach | 15:27 |
|
| What is truly evil is to commit to master when you're on a shared repository with other collaborators | 15:28 |
| → Vonter joined | 15:32 |
| → clime joined | 15:32 |
| ← brunodOut left | 15:33 |
|
Ram-Z
| What's so evil about that? | 15:39 |
| → AbleBacon joined | 15:44 |
| ← roadie left | 15:47 |
| → roadie joined | 15:49 |
| ← jazzy left | 15:51 |
| ← roadie left | 15:54 |
| → anakim joined | 15:54 |
| ← archie left | 15:55 |
| → elf_fortrez joined | 15:56 |
| ← Murr left | 15:56 |
| → Murr joined | 15:56 |
|
cousteau
| Ram-Z: well, it can create a confusing mess if everyone commits to master instead of committing to their own branch, push, and then merge those into master | 15:58 |
| ← xterm_ left | 15:58 |
| → Wuzzy joined | 16:04 |
| ← clime left | 16:05 |
| ← eduardas left | 16:08 |
|
Ram-Z
| So creating merge commits is less messy than non-merge commits? I will wholeheartedly disagree to that. | 16:08 |
| ← anakim left | 16:08 |
|
Ram-Z
| Committing patches on the main branch is just as much a valid approach as any other. | 16:09 |
|
imMute
| Ram-Z: let me introduce you to git log --graph --oneline --first-parent | 16:09 |
| ← SuperLag left | 16:09 |
| → ChmEarl joined | 16:09 |
| → SuperLag joined | 16:11 |
| → roadie joined | 16:12 |
| ← joo left | 16:12 |
| → codebam joined | 16:27 |
| → computeiro joined | 16:28 |
| → Drek45 joined | 16:29 |
| → vysn joined | 16:29 |
| ← wender left | 16:30 |
| ← OnkelTem left | 16:36 |
| ← christall left | 16:40 |
| → christall joined | 16:41 |
|
cousteau
| Ram-Z: two people simultaneously committing to master will not avoid a merge commit | 16:41 |
| ← christall left | 16:41 |
| → christall joined | 16:42 |
|
cousteau
| It will create a surprise merge, which is typically an unpleasant surprise because it means you have to do more work than you expected | 16:42 |
|
| Typically when you push a branch you expect that no one else has pushed to that branch since you last pushed/fetched | 16:44 |
|
| Which won't be the case if everyone is pushing to master without control (if you manage to sync all your team members so that that never happens, then good for you, but that's hard to achieve) | 16:45 |
|
furrymcgee
| typically you pull first | 16:45 |
| → supastupid joined | 16:46 |
| ← rsx left | 16:47 |
|
cousteau
| If you pull it's because you intend to merge, and if you merge then the branch you merge into becomes your responsibility, and master is too big a responsibility to be taken lightly (unless it was decided beforehand that you were going to be the one responsible of master) | 16:47 |
|
supastupid
| github makes this weird "main" branch that for some odd reason git does not see?? | 16:47 |
|
cousteau
| I may be wrong though; but my impression/what I heard is that it's usually bad practice to have everyone pushing to master | 16:48 |
| ← cousteau left | 16:48 |
| ← skapata left | 16:51 |
| → Narrat joined | 16:51 |
| → skapata joined | 16:51 |
| ← skapata left | 16:51 |
| → skapata joined | 16:51 |
| → lpapp_ joined | 16:51 |
| → Betal joined | 16:52 |
| ← lpapp_ left | 16:56 |
| vodkra_ → vodkra | 16:56 |
|
gabin
| supastupid: i guess you should be able to see all remote branches from git | 16:57 |
| ← codebam left | 16:58 |
| → fdan joined | 16:59 |
| → anakim1 joined | 17:00 |
| ← christall left | 17:02 |
|
fdan
| Hi there | 17:10 |
| → linguist joined | 17:10 |
|
fdan
| i know an awesome tool i worked 3 years back with github integration on mac | 17:11 |
|
| all i need to do is type some command inside my local repo and that will open a github repo in my chrome | 17:11 |
|
| any one know what's the name of that utility | 17:11 |
| ← mexen left | 17:12 |
| ← elf_fortrez left | 17:13 |
| → brunodOut joined | 17:13 |
| → christall joined | 17:16 |
| ← ekathva left | 17:17 |
| ← linguist left | 17:17 |
|
teddyc
| fdan: firefox $(git config --get remote.origin.url) | 17:17 |
| brunodOut → linguist | 17:17 |
|
fdan
| teddyc i think its hub | 17:17 |
|
teddyc
| in your terminal, might work. If that is the behaviour you want | 17:17 |
| → schmillin__ joined | 17:18 |
|
teddyc
| fdan: github has their own CLI-tool, https://cli.github.com/ it might be that | 17:18 |
| ← christall left | 17:18 |
| → christall joined | 17:18 |
|
fdan
| ok let me try but i got what i wanted | 17:19 |
|
| its hub | 17:19 |
|
teddyc
| nice 👍 | 17:19 |
| → codebam joined | 17:20 |
| ← schmillin_ left | 17:21 |
|
furrymcgee
| your terminal should provide some general functions to open links | 17:21 |
| ← Drek45 left | 17:22 |
| ← fdan left | 17:33 |
| ← gnoo_ left | 17:35 |
| ← supastupid left | 17:36 |
| → Drek45 joined | 17:36 |
| ← rfuentess left | 17:37 |
| → anakim joined | 17:44 |
| ← Drek45 left | 17:49 |
| → Hax0r joined | 17:49 |
| → fdan joined | 17:50 |
| → hbautista_ joined | 17:52 |
| → lgc joined | 17:54 |
| → lpapp_ joined | 18:01 |
|
anakim
| fsadlkfjlsadkfjsaldkfjasl;fkd asldkf jas;ld#D3D7CF#D3D7CF#D3D7CF#D3D7CF#D3D7CF#D3D7CF#D3D7CF#D3D7CF#D3D7CF#D3D7CF#D3D7CFj | 18:02 |
|
| alsdkjf | 18:02 |
|
| asdjf | 18:02 |
|
| laksdf | 18:02 |
|
| laksdfj | 18:02 |
|
| aldskfj | 18:02 |
|
| anakim_ | 18:02 |
|
| anakim | 18:02 |
| → Drek45 joined | 18:02 |
|
anakim
| nono sory | 18:02 |
|
| I'm testing some IRC client settings | 18:03 |
|
| and flooded on the wrong window hahah | 18:03 |
|
| sorry :s | 18:03 |
| → tchan1 joined | 18:05 |
| ← tchan1 left | 18:05 |
| → tchan1 joined | 18:06 |
| ← tchan left | 18:06 |
| tchan1 → tchan | 18:07 |
| → orbyt joined | 18:09 |
| → Bayes joined | 18:11 |
| → zer0bitz joined | 18:12 |
| → sniperwolf joined | 18:18 |
| ← Gustavo6046 left | 18:24 |
|
thiago
| anakim: thought it was the cat | 18:24 |
| ← lessless left | 18:26 |
| → lessless joined | 18:29 |
|
Arsen
| I wanna create a merge commit that entirely replaces my branch with theirs, is that possible? | 18:30 |
|
| I see that -s ours exists, but I can't see -s theirs, or anything like it | 18:30 |
|
imMute
| Arsen: why not just delete your branch and re-creating starting from where you want? | 18:31 |
| ← fef left | 18:31 |
| → Gustavo6046 joined | 18:31 |
|
imMute
| Arsen: or, another way to do that, git reset --hard SHA_YOU_WANT that will remove all the history of your branch and all modifications and put you at that SHA | 18:31 |
| ← fdan left | 18:32 |
|
Arsen
| imMute: I specifically want to be trace the history to the old branch too | 18:33 |
|
| be able to trace* | 18:33 |
|
imMute
| why though? that history would have no effect on the code after that merge. | 18:33 |
|
| I'd be mighty surprised if I came across a merge like that... | 18:33 |
|
Arsen
| because it's already pushed :P | 18:34 |
|
| think of it like a full rewrite scenario | 18:34 |
|
imMute
| I would still personally restart the branch or start a new one entirely and leave the old one alone. | 18:35 |
| → matheustavares joined | 18:35 |
|
Arsen
| hm | 18:35 |
|
| yeah, you're right, it probably doesn't make sense to keep it, since it's not the same history at that point | 18:36 |
| → bn_work joined | 18:44 |
| → fdan joined | 18:57 |
| → sudomann joined | 19:00 |
|
sudomann
| I added a pre-commit hook to lint some code. Wen I commit, it first commits the unlinted code, then shows me the linted code as changes and I have to commit again. | 19:01 |
|
| How can I get it to lint and commit in one step | 19:01 |
| → wender joined | 19:02 |
|
Arsen
| to abort a commit in pre-commit, you need to exit to abort creating a commit | 19:02 |
|
| need to exit as nonzero* | 19:02 |
|
osse
| I think it's possible to run git add again from the pre-commit hook | 19:02 |
|
| so that's an option | 19:02 |
|
Arsen
| it should be AFAIU | 19:03 |
|
| I'd personally not change anything in the working tree in commit hooks, though, just run a check and fail if there's an error | 19:03 |
|
| lower risk of data loss, remember, there's nothing to go back to if you edit the index and working tree without a commit in the meanwhile | 19:03 |
|
osse
| agreed | 19:03 |
|
imMute
| aye, some people commit parts of a file instead of the ewhole thing, which modifying in a hook would destroy | 19:04 |
|
Arsen
| that too | 19:04 |
|
sudomann
| ooohh thats wise. I think at this point it would be best to just move the linting to our CI servers | 19:04 |
| ← computeiro left | 19:04 |
|
imMute
| sudomann: both are nice. | 19:05 |
|
Arsen
| I like to check in both places, CI/gh actions/sr.ht builds/whatever, in case someone pushes without pre-commit, and pre-commit so that I'm not that someone | 19:05 |
|
| https://pre-commit.com/ this also exists | 19:05 |
| → fling joined | 19:05 |
|
osse
| at my previous job we ran clang-format server-side and denied pushes if it failed. it worked pretty well. a bit annoying when clang-format itself was upgraded and some defaults changed, but other than that... :p | 19:05 |
|
Arsen
| that sounds somewhat slow ngl | 19:06 |
| ← otisolsen70 left | 19:06 |
|
Arsen
| but that's a decent approach too, yeah | 19:06 |
|
sudomann
| Unfortunately we use github to host our code and I'm not sure linting alone is a suitable argument to move off it | 19:06 |
|
Arsen
| gh actions can do it too, fwiw | 19:07 |
|
sudomann
| I wouldve loved to set this up as a server side hook instead | 19:07 |
| ← schmillin__ left | 19:07 |
|
sudomann
| I'll checkout out GH actions | 19:07 |
|
Arsen
| if you protect master/main/trunk/$(git config --get init.defaultBranch) and require that actions pass before being able to merge PRs | 19:07 |
| ← AnapodoPsalidaki left | 19:07 |
| → schmillin joined | 19:07 |
| ← sniperwolf left | 19:08 |
| → junktext joined | 19:08 |
| ← Milos left | 19:09 |
| → Milos joined | 19:09 |
| → ekathva joined | 19:11 |
| → brunodOut joined | 19:18 |
| ← linguist left | 19:19 |
| → linguist joined | 19:19 |
| ← brunodOut left | 19:22 |
| ← schmillin left | 19:24 |
| → schmillin joined | 19:24 |
| ← schmillin left | 19:29 |
| → schmillin joined | 19:30 |
| ← ekathva left | 19:31 |
| ← fdan left | 19:31 |
| → durham joined | 19:33 |
| → durham_ joined | 19:34 |
| → durham__ joined | 19:37 |
| ← durham left | 19:37 |
| → durham joined | 19:39 |
| ← durham_ left | 19:40 |
| ← durham__ left | 19:41 |
| → DoofusCanadensis joined | 19:45 |
| ← average left | 19:49 |
| ← meator left | 19:52 |
| ← christall left | 19:53 |
| ← EvilDMP left | 19:54 |
| → stef204 joined | 19:54 |
| → EvilDMP joined | 19:55 |
| → christall joined | 19:58 |
| CommunistWolf → cw | 20:00 |
| → agowa joined | 20:00 |
| ← agowa338 left | 20:01 |
| ← rahl- left | 20:05 |
| ← ano left | 20:06 |
| → ano joined | 20:06 |
| → rahl joined | 20:07 |
| ← sudomann left | 20:08 |
| → m0viefreak joined | 20:14 |
| ← roadie left | 20:14 |
| → Guest26 joined | 20:16 |
| ← matheustavares left | 20:16 |
|
Guest26
| This may be the incorrect place to ask this, but I'm still pretty new to all this and learning a lot. My questions is related to using Notepad++ as the text editor for Git. Is it still better to use the 32 bit version over the 64 bit version? | 20:19 |
| → dsrt^ joined | 20:19 |
|
imMute
| Guest26: likely doesn't matter at all. | 20:19 |
| ← FLHerne left | 20:20 |
|
Guest26
| Okay, I know the book that I am reading through was made with Git 2.8.0 so it's a little outdated now haha | 20:20 |
| → matheustavares joined | 20:21 |
| → FLHerne joined | 20:23 |
| → Codaraxis joined | 20:24 |
| cw → CommunistWolf | 20:24 |
| ← Guest26 left | 20:25 |
| ← shokohsc left | 20:29 |
| ← EvilDMP left | 20:30 |
| ← DoofusCanadensis left | 20:36 |
| → shokohsc joined | 20:38 |
| → roadie joined | 20:41 |
| ← natrys left | 20:42 |
| ← Bayes left | 20:47 |
| ← Drek45 left | 20:52 |
| → Minall joined | 20:53 |
| ← xkr47 left | 20:54 |
| → EvilDMP joined | 20:55 |
| → vikonen8 joined | 20:56 |
| ← Gustavo6046 left | 20:56 |
| → xkr47 joined | 20:58 |
| → Gustavo6046 joined | 20:58 |
| → JayDoubleu_ joined | 20:58 |
| → Masklin_Gurder joined | 20:58 |
| → wagle_ joined | 20:59 |
| → DrowningElysium_ joined | 21:00 |
| → ksham joined | 21:00 |
| → robertparkerx_ joined | 21:00 |
| → LSD joined | 21:01 |
| ← JayDoubleu left | 21:01 |
| ← casaca left | 21:01 |
| ← vikonen left | 21:01 |
| ← wagle left | 21:01 |
| ← DrowningElysium left | 21:01 |
| ← acidsys left | 21:01 |
| ← Masklin left | 21:01 |
| ← Kays left | 21:01 |
| ← robertparkerx left | 21:01 |
| ← swistak left | 21:01 |
| ← Manouchehri left | 21:01 |
| JayDoubleu_ → JayDoubleu | 21:01 |
| vikonen8 → vikonen | 21:01 |
| DrowningElysium_ → DrowningElysium | 21:01 |
| → Manouchehri joined | 21:02 |
| → casaca joined | 21:02 |
| → swistak joined | 21:03 |
| ← roadie left | 21:06 |
| ← robertparkerx_ left | 21:07 |
| → robertparkerx joined | 21:07 |
| ← lpapp_ left | 21:08 |
| ← pyeverything left | 21:09 |
| ← keypusher left | 21:12 |
| → keypusher joined | 21:13 |
| → pyeverything joined | 21:14 |
| ← EvilDMP left | 21:14 |
|
bn_work
| is there any git command that can return true false if I am in a specific git branch or not? or do I need to | grep to test? | 21:15 |
| → ackyshake joined | 21:15 |
| ← matheustavares left | 21:15 |
| → matheustavares joined | 21:16 |
| → durham_ joined | 21:16 |
| ← codebam left | 21:16 |
| ← durham left | 21:19 |
| ← gh34 left | 21:19 |
| ← starfarer left | 21:19 |
| → starfarer joined | 21:20 |
| ← Wuzzy left | 21:24 |
|
canton7
| bn_work, [ "$(git symbolic-ref HEAD)" == refs/heads/master ] is the closest I can think of | 21:25 |
| ← Dragoon left | 21:27 |
| LSD → acidsys | 21:29 |
|
bn_work
| canton7: thanks, I came up with `if [[ $(git branch --list | grep '* develop') ]]` as the command to check, would that work? | 21:30 |
|
| (assuming I want to check if I'm in develop | 21:30 |
|
| ) | 21:30 |
|
canton7
| bn_work, it's normally better to use the plumbing commands -- the ones which git itself uses to extract info. The so-called porcelain commands -- the ones which pretty-print info for humans -- can change their output over time, and aren't supposed to be machine-parsed | 21:30 |
| ← palasso left | 21:31 |
|
bn_work
| ok, makes sense | 21:33 |
| → Dragoon joined | 21:34 |
| → AnAverageHuman joined | 21:34 |
| ← aniruddha left | 21:37 |
| → humanface joined | 21:37 |
| ← CSWookie left | 21:37 |
| ← zer0bitz left | 21:42 |
| → akimbo joined | 21:44 |
| → notABoxer joined | 21:47 |
| ← remyabel left | 21:50 |
| ← agowa left | 21:53 |
| ← pyeverything left | 21:54 |
| ← enoq left | 21:54 |
| → pyeveryt_ joined | 21:55 |
| ← humanface left | 21:59 |
| ← pyeveryt_ left | 21:59 |
| ← britho left | 22:02 |
| ← Vonter left | 22:05 |
| ← Minall left | 22:05 |
| wagle_ → wagle | 22:10 |
| ← vysn left | 22:11 |
| → humanface joined | 22:11 |
| ← hbautista_ left | 22:11 |
| ← Narrat left | 22:16 |
| ← BlessJah left | 22:17 |
| → Dotz0cat joined | 22:26 |
| → BlessJah joined | 22:27 |
| → skapate joined | 22:27 |
| ← skapate left | 22:27 |
| → skapate joined | 22:27 |
| ← christall left | 22:27 |
| → christall joined | 22:28 |
| ← skapata left | 22:29 |
| → Vonter joined | 22:32 |
| ← christall left | 22:32 |
| → jimklimov joined | 22:34 |
| → pyeveryt_ joined | 22:34 |
| → lpapp_ joined | 22:35 |
| ← onizu left | 22:36 |
| ← Vonter left | 22:36 |
| ← lpapp_ left | 22:40 |
| → Xenguy joined | 22:44 |
| ← pyeveryt_ left | 22:45 |
| ← alex88 left | 22:47 |
| → alex88 joined | 22:47 |
| → odoood joined | 22:48 |
| → ash_worksi joined | 22:52 |
|
ash_worksi
| so, I checked `git status` and it showed a couple of files with changes; I ran `git diff` on the files and it shows me some added log lines I no longer care about; does that mean if I `git checkout <file>` those lines I don't care about go away? | 22:53 |
| → reset joined | 22:53 |
|
ash_worksi
| (I sorta get paranoid about screwing up sometimes) | 22:53 |
|
rewt
| `git status` should give you some commands you can do for those files and what will happen | 22:55 |
| → gast0n joined | 22:59 |
| → christall joined | 22:59 |
| → roadie joined | 23:03 |
| ← roadie left | 23:07 |
| ← matheustavares left | 23:07 |
| → Vonter joined | 23:08 |
| → matheustavares joined | 23:08 |
| → yuckey2d0 joined | 23:09 |
| → travaldo joined | 23:11 |
| ← orbyt left | 23:13 |
| ← christall left | 23:17 |
| ← Muzer left | 23:17 |
| → bambanxx joined | 23:19 |
| ← yuljk left | 23:21 |
| → yuljk joined | 23:22 |
| → brw joined | 23:23 |
|
ash_worksi
| rewt: right, and given those commands, I *think* what I said will happen will happen... I just get paranoid I guess... I could just check the current file to know for sure if reverting is putting in lines are taking them out | 23:24 |
| ← matheustavares left | 23:26 |
| ← m0viefreak left | 23:27 |
| ← schmillin left | 23:28 |
| ← bambanxx left | 23:28 |
| → remyabel joined | 23:29 |
| → christall joined | 23:29 |
| ← odoood left | 23:29 |
| → schmillin joined | 23:31 |
| → bambanxx joined | 23:32 |
| → lpapp_ joined | 23:32 |
|
Arsen
| can I use git-rebase to take commits off of another branch and put them on top of my current one? | 23:33 |
| ← christall left | 23:33 |
|
remyabel
| cherry-pick? | 23:33 |
|
| or git-rebase onto | 23:33 |
|
Arsen
| hm, cherry-pick might also fit, though, I might need some other functionality of rebase; do you mean git rebase --onto mybranch otherbranch? | 23:35 |
| → Muzer joined | 23:35 |
| ← lpapp_ left | 23:37 |
| → Drek45 joined | 23:41 |
| → DoofusCanadensis joined | 23:43 |
| ← optimant left | 23:43 |
| → optimant joined | 23:43 |
| ← splud left | 23:45 |
| → brunodOut joined | 23:45 |
| → hbautista joined | 23:45 |
| ← Gurkenglas left | 23:45 |
| → Zaliek joined | 23:46 |
| ← ash_worksi left | 23:46 |
| ← linguist left | 23:49 |
| → igemnace joined | 23:49 |
| → schmillin_ joined | 23:51 |
| → christall joined | 23:52 |
| ← schmillin left | 23:54 |
| ← stef204 left | 23:55 |
| → linguist joined | 23:56 |
| → splud joined | 23:57 |
| ← humanface left | 23:59 |
| ← brunodOut left | 23:59 |