IRCloggy #git 2020-10-27

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2020-10-27

justanotheruser joined00:00
Peng left00:01
Peng joined00:01
tiin57 left00:02
finalbeta left00:04
tiin57 joined00:05
Timvde dodobrain: I had to look this up myself, but you can do: git log --graph --oneline --decorate-refs="remotes/origin"00:06
to show only refs from the remote called "origin"00:06
routingsparks left00:07
axisys left00:08
axisys joined00:09
KhoN_2 joined00:10
cdown_ joined00:12
Amanas joined00:13
KhoN_1 left00:14
Xenguy joined00:15
cdown left00:15
cdown_cdown00:15
AllenJB left00:17
linux_dr left00:17
AllenJB joined00:19
twb joined00:23
twb Can foo.git be a file rather than a dir?00:23
Hey left00:24
twb I happened to run "git --git-dir=foo.git" on a file, and it gave an interesting error00:24
fatal: too large to be a .git file: '/home/twb/Desktop/busybox-static_1.33.0.git'00:24
Xenguy_ joined00:25
Xenguy left00:28
mackerman twb: git expected such files to contain gitdir in plain text only00:28
man gitrepository-layout00:28
gitinfo the gitrepository-layout manpage is available at https://gitirc.eu/gitrepository-layout.html00:28
fahadash joined00:28
twb Oh cool00:29
tiin57 left00:32
tiin57 joined00:35
AnAverageHuman left00:39
cdown_ joined00:43
Hey joined00:44
sdwrage left00:45
cdown left00:45
cdown_cdown00:45
sgn left00:45
notnatebtw left00:48
JanC left00:50
notnatebtw joined00:51
bambanx left00:51
JanC joined00:53
sgn joined01:01
tiin57 left01:02
tiin57 joined01:06
dodobrain Timvde, thats interesting, but i lost decorations of my branches01:07
servo joined01:09
veegee left01:15
veegee joined01:17
Hey left01:19
veegee left01:27
yohnnyjoe left01:28
veegee joined01:29
tiin57 left01:32
tiin57 joined01:35
veegee left01:37
veegee joined01:37
PyR3X left01:37
justanotheruser left01:41
deltab left01:42
cbreak left01:47
Guest65 joined01:48
cbreak joined01:48
deltab joined01:50
davidfetter joined01:50
Guest65 left01:51
Hey joined01:52
twb Aargh. "git log -G" is aborting on an unrelated commit: gzip: /tmp/mlWlgT_email_filtering_chart.dia: not in gzip format01:57
Hey left01:57
twb ...but I don't have a textconv defined for .dia in ~/.gitconfig01:57
Where else should I be looking? It's not in the repo's .git/config either01:57
Hrm the problem is definitely in here: http://ix.io/2C9N/ini01:59
yohnnyjoe joined01:59
twb Weird, it's the diff.zcat block. How does that know about .dia files?02:00
archwizard left02:01
tiin57 left02:02
archwizard joined02:03
hussam joined02:04
yohnnyjoe left02:06
tiin57 joined02:06
blahboybaz joined02:08
bkuhlmann joined02:09
JTWLUK left02:09
Laxator2 left02:09
tty1 left02:11
Case_Of left02:13
meropyri- left02:14
meropyri joined02:14
hineios left02:15
yonder left02:16
meLon joined02:16
samcmullin joined02:16
Nokurn left02:17
yoh left02:17
howdoi left02:22
F0rTex left02:23
hineios joined02:23
notnatebtw left02:23
ayush joined02:23
F0rTex joined02:24
ayush why would "git checkout -t origin/branch" say origin/branch is not a commit after I've successfully done "git fetch origin branch"02:24
Case_Of joined02:25
mns_ joined02:26
mns left02:28
Goplat joined02:29
mud joined02:29
shush left02:30
shush joined02:31
tiin57 left02:32
Gurkenglas left02:33
tiin57 joined02:35
samcmullin left02:36
shush left02:37
yohnnyjoe joined02:38
lucasb left02:40
Xenguy_Xenguy02:41
Hey joined02:42
yohnnyjoe left02:43
teclator left02:43
Voxel joined02:44
servo left02:45
g00s joined02:45
Hey left02:47
mns_mns02:50
Amanas left02:50
austin987 left02:53
drbean joined02:53
yohnnyjoe joined02:54
Jookia joined02:54
yohnnyjoe left02:59
jaziz left03:00
ayush1 joined03:00
jaziz joined03:02
tiin57 left03:02
ayush left03:04
austin987 joined03:05
justanotheruser joined03:06
tiin57 joined03:06
Xenguy left03:10
orbyt_ left03:12
lagothrixGuest4387303:13
Guest43873 left03:13
lagothrix joined03:14
NeilG how do I break a commit in the history into two commits?03:17
rebase, edit, and then what?03:17
nm, I think I got it03:19
bkuhlmann left03:19
relipse left03:19
justHaunted left03:20
gast0n left03:20
ayush1 left03:25
dodobrain left03:26
twb NeilG: rebase -i, edit, then when at the commit, git reset HEAD~, then git commit -p twice03:27
then rebase --continue to finish off03:27
NeilG: beware that whole-file add/remove can behave unintuitively03:27
NeilG: I always do a "git diff origin/foo foo" to sanity check that the rebase looks the same afterwards03:28
NeilG twb thanks!03:29
that sanity check is a great idea03:29
I'm goign to start doing that03:29
drbean left03:30
pac1 left03:31
tiin57 left03:32
ayush joined03:35
tiin57 joined03:36
justHaunted joined03:36
justHaunted left03:39
drbean joined03:39
veegee left03:45
davidfetter hi03:45
I have a mystery file. I created a branch, created the file, put some stuff in it, and git seems entirely innocent of its existence, either tracked or untracked03:46
how might git not be able to see it?03:47
twb davidfetter: did you "git add porn.c"03:47
davidfetter tries that specifically rather than git add .03:48
twb if you ran "git add ." and it didn't "see" it, most likely issue is gitignore03:48
davidfetter aha!03:48
davidfetter checks around the .gitignore space to find what's going on03:49
davidfetter well. that is wacky. I wonder why my predecessor put that rule there.03:50
Thanks, twb :)03:50
twb what was the rule03:50
veegee joined03:50
davidfetter sql/*.sql03:50
twb probably they do something like sql/porn.sql.in03:50
it's worth understanding that before you start committing what they think are intermediaries03:51
davidfetter hrm. I don't see anything like .in that would suggest preprocessor magic. it's one function that does the heavily lifting, and a few wrapper functions (spittin' rhymes like Big Pun) that do the rest.03:52
git blame .gitignore shed some light on this. I think Keith was doing some work on an unstable machine and didn't want to be hassled, so plopped a bunch of stuff in there.03:54
dodobrain joined03:54
ayush damn Keith03:55
davidfetter https://dpaste.org/e4jn03:55
twb ayush: I have to ask - is your nick a reference to Modi's Ministry of Junk Medicine ?03:56
davidfetter he's written some amazing software, and he's always been pleasant to me. those don't always go hand in hand03:56
ayush no, he stole the name from me. I came first03:56
twb k03:56
davidfetter TIL: AYUSHMinistry03:57
ayush you should put that in .gitignore03:58
davidfetter heh03:58
yohnnyjoe joined03:59
twb davidfetter: he killed a bunch of people by rejecting modern medicine as foreign and therefore bad :/04:00
davidfetter the modi over here did a pretty similar thing, only modern medicine is bad because it wasn't first endorsed by someone on Fox News04:01
tiin57 left04:02
crose left04:06
tiin57 joined04:06
twb left04:11
dodobrain with git bash for windows, how do i get rid of the flashing when hitting backspace on a new command line where theres no previous input ?04:18
i'm guessing it is doing a visual bell or something similar04:19
dimi1947 joined04:20
dimi1947 I want to revert a commit and I get a message that warns me about the impeding merge which I do not understand since I do not do a merge:https://www.dropbox.com/s/ij4d13i30j1t8a6/git_issue.png?dl=004:23
impeding is the wrong word...sorry04:23
anyway...git considers a revert commit as a merge04:24
bket left04:30
tiin57 left04:32
tiin57 joined04:36
ayush left04:36
ayush joined04:37
bket joined04:40
Guest66899 left04:41
Betal left04:42
NeilG left04:42
Hey joined04:43
ojdo left04:43
Hey left04:48
drbean left04:48
ojdo joined04:50
madewokherd left04:52
Guest20 joined04:54
Nokurn joined04:56
OnkelBlade joined04:59
servo joined05:02
servo left05:02
tiin57 left05:02
tiin57 joined05:05
meropyri left05:06
durham left05:08
durham joined05:09
Goplat left05:10
meropyri joined05:14
drbean joined05:22
drbean left05:23
bocaneri joined05:25
sudoforge left05:31
tiin57 left05:33
blahboybaz left05:35
tiin57 joined05:36
dodobrain left05:41
g2anj left05:42
ikke dimi1947: it says you have uncommitted changes to a file, which would be overwritten by the revert05:43
dimi1947: the error message is a bit confusing in this case05:43
g2anj joined05:44
ayush left05:51
ayush joined05:52
dimi1947 ikke:no doubt it is confusing05:55
Hounddog joined05:56
ikke You just need to decide what needs to happen to the file mentioned05:58
the changes in there that are not committed05:58
"commit your changes or stash them"05:58
or discard them05:58
dimi1947 what will happen in case of discard?06:01
are the changes going to be lost?06:01
tiin57 left06:02
ikke yes, that's what discarding means06:04
But you can choose06:04
before doing the revert06:04
dimi1947 hmmm06:05
tiin57 joined06:06
ikke run git diff to see those changes06:06
dimi1947 if a file has 5 changes(for example) can I choose to discard just one of them or the discard action applies to the file as a whole?06:06
PacKetSlayer left06:07
ikke You can. Some tools have options to discard changes line by line. git has git checkout --patch, which allows you to select per section if you want to discard it or not06:07
A safer option is to only stage + commit the things you want, and then discard the rest06:08
dimi1947 I see...06:08
ikke git add --patch allows you to select the things to stage06:08
dqx left06:09
rcoote joined06:31
tiin57 left06:32
ayush left06:33
ayush joined06:34
mat001_ joined06:36
tiin57 joined06:36
arcatech left06:38
mat001 left06:40
lankanmon left06:43
Hey joined06:44
lankanmon joined06:44
Technodrome left06:47
Hey left06:50
mightyjens joined06:58
tiin57 left07:02
unluckyshrubbery left07:03
tiin57 joined07:05
NeilG joined07:06
KnoP joined07:10
dodobrain joined07:10
chele joined07:12
ayush left07:13
ayush joined07:13
sgn left07:16
g00s left07:20
FabioP joined07:22
sgn joined07:25
tiin57 left07:32
Bach78 joined07:33
LetoThe2nd joined07:35
spiri joined07:35
tiin57 joined07:35
Bach78 left07:35
cd left07:38
F0rTex left07:38
PacKetSlayer joined07:39
feriman joined07:40
ekh joined07:41
rfuentess joined07:44
ayush left07:45
Haohmaru joined07:47
nurdie left07:47
dodobrain_ joined07:48
ThatOtherGuy left07:51
feriman left07:51
dodobrain left07:51
hgl joined07:52
mirrorbird joined07:53
hgl is there a tool to browse repo at a specific commit?07:53
feriman joined07:54
mu left07:55
ikke git checkout commit + terminal ;-)07:56
Otherwise, something like tig07:56
teclator joined07:56
ikke tig show <commit> -> t07:56
mu joined07:56
thiago left07:57
Muimi joined07:59
tiin57 left08:02
hgl git checkout works, but destroys the working tree. never heard of tig, checking it out08:03
ikke tig is a third-party tool, but very nice if you like cli / tui progrmas08:03
there is also gitk and git gui08:03
hgl ah08:04
know any good git gui?08:04
ikke Not really, as I don't really use them08:04
hgl i used to use GitX, and it has this feature08:04
FabioP i like github desktop08:04
hgl but its development is stopped08:04
FabioP but you can't do all that like from a command line08:05
hgl can github desktop browse repo at a specify commit?08:05
*specific08:05
tiin57 joined08:05
FabioP no if i'm not mistaken08:06
otherwise i use gitlab08:06
gitlab can do that08:06
pandem github on browser can do that so i would assume desktop can do that as well08:06
try clicking the commit hash08:07
FabioP where?08:07
hgl i wonder why it's not a popular feature. how do you find some content in a file that has changed path though commits?08:08
the only knowledge i have is the path at the head commit08:08
ikke git can follow renames08:08
hgl any way to quickly find such file's history tracing renames?08:09
ikke git log --find-renames -- path/to/file08:09
hgl thanks. i'll give it a shot08:09
Guest20 left08:10
ikke That's where most gui's will lack08:10
these kind of logging features08:11
YuGiOhJCJ joined08:16
hussam left08:16
downunder left08:20
Guest20 joined08:21
downunder joined08:22
ThatOtherGuy joined08:22
dimi1947 left08:23
dimi1947 joined08:25
Rashad joined08:27
Rashad Hello. There are many options for a self-hosted git service.08:28
e.g., gitea, gogs, gitlab, etc08:28
What I want is basically 1) something that is very lightweight, 2) something that has branch protection, 3) something that is easy to maintain through a GUI for updates and configuration08:29
gitlab has 2 at a price, and 3, but not 108:29
gitea seems to have 1, 2 and 308:30
ikke branch protection is free in gitlab08:30
but it's certainly not light weight08:30
Rashad ikke Only the master branch08:30
ikke Rashad: You can protect any branch you want08:30
(I maintain a foss gitlab instance)08:30
Rashad Last time I checked you needed to pay to protect other than master.08:31
Let me check again.08:31
Jookia gitbucket works ok for smaller projects08:31
Marmotte 2 years ago I already had any branch protected on a free GitLab instance08:31
Rashad self hosted?08:32
Marmotte yes08:32
ikke Yeah, same for me, 2/3 years ago08:32
tiin57 left08:32
PJBoy joined08:33
ekh left08:33
dimi1947 is there a way I can discard some changes with git gui???08:34
in specific lines of code08:34
Rashad Hmm08:36
ikke dimi1947: should be possible, but been a long time since I last used git gui08:36
tiin57 joined08:36
sgn left08:37
ekh joined08:37
dimi1947 I found sth in the web...will investigate further08:38
Rashad OK then now gitlab is attractive again, since it seems well supported08:39
unluckyshrubbery joined08:39
Rashad But gitea seems much more lightweight08:39
Jookia beware that gitlab/gitea have poor accessibility08:39
Rashad If I could get away with it, I will just run git+gitolite, but that seems to be a bit more "manual" than having a gui08:39
ekh left08:40
Rashad In case some people change in the organization, if the new people have a GUI, they don't need to learn as much to know where we kept certain files on the server, etc08:40
ekh joined08:41
Rashad In otherwords, I wouldn't need to document how the server was setup and how to update the different parts, etc08:41
Jookia What do you mean by accessibility?08:41
ThatOtherGuy left08:41
Rashad Learning curve?08:41
Jookia support for disabilities08:41
Rashad Is bare git better?08:42
sgn joined08:42
Rashad Or are you suggesting another git GUI?08:42
Jookia github is best, gitbucket is passable i think08:43
dimi1947 it git desktop you CAN discard specific lines of code but I cannot understand why it is not available always08:43
ekh left08:43
dimi1947 there is a contex menu item for discarding but somes times is not active08:44
Rashad I think I will try gitea and see if it is sufficient, and then if it is missing something essential, I will go with gitlab08:44
ekh joined08:44
Rashad Has anyone tried Gogs or any of the other lightweight alternatives?08:44
Hey joined08:46
gigasu_shida left08:48
routingsparks joined08:50
Hey left08:51
hnOsmium0001 left08:53
ferdna left08:53
ikke We tried it for our project, but they weren't able to handle our main repo (because it has lots of directories)08:53
routingsparks left08:53
Tabmow joined08:54
ekh left08:56
ThatOtherGuy joined09:00
tiin57 left09:02
adder left09:03
Huligan joined09:05
tiin57 joined09:06
webmariner left09:06
Rashad ikke Just out of curiousity what kind of problem happened? Did it crash or acted weirdly or...?09:07
ghostshadow001 joined09:07
ikke I think it took ages to render pages09:07
if it was possible at all09:07
That was also about 2 years ago09:08
Rashad Yeah it could have changed09:09
sgn left09:13
kaartic joined09:14
sgn joined09:15
blaisebool left09:19
blaisebool joined09:20
luke-jr left09:23
luke-jr joined09:25
durham_ joined09:27
durham left09:27
ayush joined09:29
muhaha joined09:31
tiin57 left09:32
tiin57 joined09:35
fstd_ joined09:35
john2gb joined09:36
john2gb i recieved a git repo from a source i do not trust, would commit hashes help me verify the repo has not been modified since?09:36
osse yes09:39
sha1 is "broken" in that sense though09:39
but in practice yes09:40
john2gb so hashes get recalculated everytime i git log?09:40
fstd left09:40
fstd_fstd09:40
osse no09:40
john2gb then how am i sure no modification has been made09:41
osse maybe I misunderstood what you asked09:41
firstly, if you git clone and then never pull/fetch again then obviously no change can be made09:42
if you pull/fetch again you will be able to see the old sha1s further down in the history09:42
it is impossible to make changes to a git repo without affecting the hashes09:44
kaartic left09:44
kaartic joined09:45
osse (except the attacks I mentioned earlier)09:45
NeilG left09:45
john2gb so if only thing i have is this folder, i cannot verify that it has been modified09:45
this folder i.e repo09:45
osse modified since when?09:46
john2gb the repo is not available on a remote. some suspicious guy gave me the repo he recieved from the developer and said trust me. i want to be sure suspicious guy has not made any change the repo sinde.09:48
since*09:48
osse since WHEN?09:48
since he gave it to you?09:48
or in between when he got it from the developer and when he gave it to you?09:48
john2gb developer gives repo to guy -> guy puts bad stuff in it -> i want to see the bad stuff09:49
without additional commits*09:49
osse do you have anything to compare it too?09:49
*to09:49
john2gb say i dont09:49
osse then no09:50
john2gb thanks!09:50
osse no amount of hashes or checksums can help you in that case09:50
if you don't know what they're supposed to be09:50
if you DO know then it's trivial09:51
if you have some dates I suppose you can check that ther are no commits with a newer date than when that guy received the repo from the developer. but those can be faked09:52
john2gb yeah, if i had multiple suspicious guys giving me the repo i would cross check the hashes, that would work i guess09:53
nomadicmathmo left09:53
nomadicmathmo joined09:54
nomadicmathmo left09:56
nomadicmathmo joined09:56
john2gb stupid question #2: if the last commit is signed but none of the rest are, does that provide me a verification? i.e does the commit signature contain a sig for the entire tree or just the diff09:58
Jookia yes09:59
don't accept repos from sources you don't trust09:59
john2gb i would do that if i could lol09:59
ghostshadow001 left10:00
Jookia use pgp signing10:00
git commit hashing isn't exactly a security measure10:00
john2gb very few people know what that is10:00
i wish more people used commit signing10:01
Jookia it depends on your threat model i guess10:01
osse john2gb: any commit hash depends on all commits before it10:01
so if a commit is signed then in practice the whole history up to that point is too10:01
john2gb great10:02
thanks!10:02
osse also any commit is a complete tree10:02
tiin57 left10:02
Jookia if you don't have a good hash then it's impossible to check10:02
osse diffs are recalculated on the fly10:02
ikke john2gb: commit signing is useless if you don't have a good way to verify the keys.10:02
HumanG33k joined10:02
Jookia ikke: yeah this is why most cryptography is useless10:02
ghostshadow001 joined10:03
john2gb i know the key id is from the legit developer10:03
ghostshadow001 left10:03
john2gb afaik you cant fake key ids10:03
mgedmin you can fake short key ids10:04
you can't fake fingerprints10:04
stdedos joined10:04
ikke (bar colissions :P)10:05
stdedos Hello there! Is it a conscious decision that `git alias -h` writes `'alias' is aliased to '....`, and then also executes it?10:05
mgedmin I stopped worrying about probabilistic algorithms returning false results when I read an argument in a book that there's a higher likelihood of a cosmic ray flipping a bit from 0 to 1 in the register that stores the result of the algorithm10:06
tiin57 joined10:06
osse stdedos: "alias" is not an official git subcommand10:06
stdedos "alias" as whatever alias10:07
ikke mgedmin: that's about accidental colissions10:07
stdedos Now, I just wrote `stash-stat`10:07
ikke mgedmin: That says nothing about malicious colissions10:07
like https://shattered.io/10:07
mgedmin that is true10:08
calcul0n joined10:08
vdamewood joined10:08
stdedos s/ as / as in /10:08
john2gb so essentially brute forcing 2 files that will give out the same hash?10:09
Jookia no it's more complicated than that10:09
john2gb yeah it was10:12
vinleod joined10:13
samuelbernardo joined10:13
vdamewood left10:14
sgn left10:15
sgn joined10:20
shivam_ joined10:22
mgedmin I suppose if I alias ci = commit, then I want git ci -h/--help to do the same as git commit -h/--help10:24
dionysus69 joined10:26
muhaha left10:26
dimi1947 left10:31
tilpner left10:31
tiin57 left10:32
tilpner joined10:32
tiin57 joined10:35
sunri5e left10:35
cebor left10:36
cebor joined10:36
sunri5e joined10:39
mobidrop joined10:41
Xenguy joined10:43
stdedos That is where the difference lies! `--help` will not run the command, whereas `-h` will do10:43
aliss joined10:44
stdedos however, none of the flags (-h/--help) will be autocompleted (and I am kinda lazy to write --help)10:44
mgedmin I wonder if that works for shell-based aliases10:46
osse git config alias.ci commit && git ci -h just prints the help for me10:46
it doesn't try to make a commit10:46
mgedmin yes it does10:46
ikke what about git config alias.ci '10:46
what about git config alias.ci '!git commit'10:46
Hey joined10:47
osse ah i see10:47
that prints what the alias is, then runs it10:47
weird10:47
averell left10:47
ikke osse: can you try git config alias.ci '! f() { echo "$@"; };f'?10:48
osse ikke: that also prints the alias value, then runs it10:49
ikke Does the output reveal anything?10:49
osse I don't understand the question10:50
git::a9a60b94ccd10:50
gitinfo Git web link: https://github.com/git/git/commit/a9a60b94ccd10:50
osse lol10:50
ikke Was curious if it would run the alias with some arguments10:50
osse yes, it printed "-h" which is what I expected10:51
ikke Yes, so it just passes -h to the alias10:51
osse I now see that the alias value was also printed for the non-! alias; I just missed it10:52
Hey left10:52
Technodrome joined10:52
osse stdedos: so yes, it is a conscious decision10:52
stdedos Okay, I see10:54
Bummer, I need to "fix" that myself10:54
osse would be nice if it was configurable, like the other advice thingies10:55
stdedos Might be. But I think I have stranded on the 'be ignored' side of the git mailing list :-)10:57
So I won't bother10:57
Thank you for the your triangulation :-)10:57
dodobrain_ left10:59
averell joined11:01
clara97 joined11:02
tiin57 left11:02
is_null joined11:05
tiin57 joined11:06
stdedos left11:07
tsrt^ left11:08
Guest20 left11:09
fling joined11:10
ndbopoi^ joined11:10
Xenguy left11:11
vinleodvdamewood11:14
Hey joined11:18
sgn_ joined11:18
wrobinso1 joined11:20
teclator left11:22
teclator joined11:22
Hey left11:23
wrobinson left11:24
wrobinso1wrobinson11:24
cdown_ joined11:27
cdown left11:30
cdown_cdown11:30
tiin57 left11:32
Huligan left11:33
stdedos joined11:35
tiin57 joined11:36
nvmd joined11:38
OnkelBlade Hi all. For some reason when I do 'git stash apply' I get CONFLICT on just every file11:43
What I do wrong?11:43
ikke line ending issues?11:45
drbean joined11:46
OnkelBlade ikke: no, huge blocks of code. Like it was edited concurently. And I don't know why really11:47
stdedos left11:47
OnkelBlade r+11:47
Odd... it happens regularly last week, maybe I misdo something11:48
milkt left11:59
john2gb left12:00
jaziz left12:01
tiin57 left12:02
mobidrop left12:04
mobidrop joined12:05
mobidrop left12:05
tiin57 joined12:05
amahl_ joined12:07
milkt joined12:09
dodobrain_ joined12:14
dodobrain_ left12:20
shivam_ left12:20
Hey joined12:30
init joined12:30
andytoshi left12:31
init I have a fork which I did a revert on, when I rebase on upstream I cannot push to my fork's remote without force12:31
is it possible to take the git history of the upstream? such that the revert commit is no longer exists?12:32
tiin57 left12:32
sdwrage joined12:34
tiin57 joined12:35
selckin do you want to keep other commits?12:36
amahl_ left12:36
selckin !backup12:37
gitinfo Worried about your data while trying stuff out in your repo? The repository in its entirety lives inside the .git directory in the root of your work tree so to backup everything `cp -a path/to/workdir path/to/backup` or equivalent will suffice as long as the repo is not modified during backup. See also http://sethrobertson.github.com/GitBestPractices/#backups12:37
init yes, as they are also on the upstream remote12:37
the only commit that isn't is the revert12:37
selckin git reset --hard origin/master, to reset to the state of the remote12:37
init hm wouldn't it be upstream/master in this case12:37
selckin yeah translate to your branch & remote name12:38
init thanks!12:38
Gurkenglas joined12:39
yoh joined12:39
otisolsen70 joined12:40
cdown_ joined12:45
swimmer left12:47
cdown left12:47
cdown_cdown12:47
swimmer joined12:50
nvmd !help12:50
gitinfo What do you need help with? Something with git? Tell us what's going on, and please be specific. For information on how to abuse me (I'm a bot!), see https://gitirc.eu/bot . Please be gentle.12:50
feriman left12:56
amahl_ joined12:56
maxwilliamson left12:59
Abdullah left12:59
init left13:00
tiin57 left13:02
sweatsuit left13:03
Hello71 left13:05
tiin57 joined13:05
CaliSoccerBro joined13:06
Hello71 joined13:06
madewokherd joined13:08
rustyshackleford left13:10
dqx joined13:10
sweatsuit joined13:11
clara97 left13:11
nvmd left13:13
maxwilliamson joined13:13
denisse left13:16
CodeSlingerPaul joined13:16
denisse joined13:17
denisse left13:20
denisse joined13:21
haymawk Is there a way to setup a branch to track remote1 when I do a pull and remote2 when I do a push?13:21
ikke man git config13:21
gitinfo the git-config manpage is available at https://gitirc.eu/git-config.html13:21
ikke search for pushRemote13:21
rcoote left13:22
rcoote joined13:22
mirrorbird left13:24
cdown_ joined13:25
haymawk ikke: brilliant! thank you13:26
Betal joined13:27
init joined13:28
Rashad left13:28
cdown left13:28
cdown_cdown13:28
hussam joined13:30
sgn_ left13:30
crose joined13:30
tiin57 left13:32
Hey left13:33
cdown_ joined13:34
tiin57 joined13:36
cdown left13:36
cdown_cdown13:36
rangergord Let's say I have a legacy monorepo where the root contains /hardware/... and /software/... . I'd like split them in two, for example create a new repo just for software, but import the history related to software. So if commit <abcdef> on the old monorepo added /hardware/file1 and /software/file2, I would expect the new repo to have an equivalent commit (same commit message) which adds /src/file2. Is this feasible?13:37
ikke rangergord: subtree split13:38
!subtree13:38
gitinfo The subtree merge method is great for incorporating a subsidiary git repo into your current one with "unified" history. Read http://git-scm.com/book/en/v2/Git-Tools-Advanced-Merging#_subtree_merge for more info, see also !git-subtree and !git-stitch-repo.13:38
nurdie joined13:38
ikke (it's talking about integrating, but it can also split)13:38
!git-subtree13:38
gitinfo git-subtree allows a subproject repository to be incorporated into a subdirectory of a main repository, and for the history of a subdirectory to be (re-)exported with reproducible results, making it possible to synchronise a repository with a subdirectory of another repo, see https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt for more info.13:38
init left13:39
Hey joined13:42
bariscant joined13:44
drbean left13:44
samuelbernardo left13:44
samuelbernardo joined13:45
bariscant left13:45
fralinsky left13:46
bariscant joined13:46
fralinsky joined13:47
bariscant left13:48
rustyshackleford joined13:49
rangergord thanks, checking it out13:50
sgn1 joined13:52
sgn left13:53
Amanas joined13:56
rcoote left13:56
justanotheruser left13:56
init joined13:57
justanotheruser joined13:58
kerframil joined13:58
tiin57 left14:02
tiin57 joined14:06
wnbeser joined14:06
Amanas left14:07
fralinsky left14:10
Amanas joined14:10
imMute rangergord: definitely subtree split. I have used that many times to do exactly what you want. it's easiest when the part you want to split is entirely contained in a subdirectory, which it sounds like it is.14:10
BSaboia left14:11
sgn1sgn14:12
rangergord it definitely is.14:17
cdown_ joined14:21
fralinsky joined14:21
ayush left14:21
ayush joined14:22
howdoi joined14:22
cdown left14:23
cdown_cdown14:23
HourGate joined14:25
cebor left14:27
cebor joined14:28
ayush left14:30
bamdad joined14:31
tiin57 left14:32
kaartic left14:35
tiin57 joined14:36
fralinsky left14:37
Atlenohen joined14:38
fralinsky joined14:38
fralinsky left14:38
thiago joined14:38
Kaivo left14:38
fralinsky joined14:40
Kaivo joined14:41
clara97 joined14:44
relipse joined14:50
CaliSoccerBro left14:51
Maxattax joined14:54
rangergord I migrated from svn, and I have a git repo with a commit history, but broken historical builds, due to git submodules not being a 1:1 equivalent of svn externals. This can't be solved. So I modify the tip of my master branch by manually adding a git submodule pointing at dependencies, update the paths of my build scripts (like instead of ./external1includes/somefile.h, it's now ../third_party_submodule1/include/somefile.h),14:54
and commit. All good going forward.14:54
But in my case I also need the ability to do hotfixes on older commits. That older commit will also be broken, requiring adding the git submodule as well as updated paths. Do I repeat the same steps to make this old commit usable too? Or is there some other approach I can look into?14:54
Spicyfella left14:55
imMute repeat the process. if it's identical, you might be able to cherry-pick the commit that you did on master.14:55
Spicyfella joined14:55
rangergord allright, thanks14:55
imMute you could also rewrite the history to "properly" import the externals/submodules. but in my experience that's typically more work than repeating the fixup process, so it's usually not worth it.14:56
Dario37Man joined14:56
rangergord yeah14:57
gast0n joined14:58
Ram-Z left14:58
milkt left14:58
Ram-Z joined14:59
arcatech joined15:00
sudoforge joined15:01
mirrorbird joined15:01
tiin57 left15:02
rokups joined15:04
arcatech left15:05
tiin57 joined15:06
milkt joined15:06
milkt left15:07
spiri left15:07
BSaboia joined15:11
Kaivo left15:13
Kaivo joined15:14
spiri joined15:15
finalbeta joined15:15
benfelin left15:18
ferdna joined15:20
milkt joined15:20
cousteau joined15:22
wnbeser left15:22
durham_ left15:22
durham joined15:23
cousteau Hi! If two branches make the exact same change on the exact same place of a file, and I merge the two branches, will git see it as a conflict?15:23
ikke cousteau: as far as I know, no15:24
cousteau Or will it not, because the changes are identical?15:24
Cool!15:24
BSaboia left15:24
BSaboia joined15:26
Dario37Man left15:27
raven-au_ joined15:30
raven-au left15:31
raven-au_raven-au15:31
tiin57 left15:32
BSaboia left15:32
tiin57 joined15:35
PriaBrewok joined15:39
Anticom joined15:39
Amanas left15:43
PriaBrewok left15:43
ghost43_ left15:45
ghost43 joined15:47
Petro joined15:47
BSaboia joined15:49
hnOsmium0001 joined15:49
spiri left15:49
Petro left15:55
orbyt_v7 joined16:02
tiin57 left16:02
FabioP left16:02
tiin57 joined16:05
durham left16:06
durham_ joined16:06
p-core joined16:06
shush joined16:08
durham_ left16:11
durham joined16:12
BSaboia left16:12
Hey left16:13
nitrix left16:13
holy joined16:14
heyitsrama joined16:15
nitrix joined16:15
YuGiOhJCJ left16:20
BSaboia joined16:20
kaartic joined16:21
gxt left16:21
gxt joined16:21
herren joined16:24
chele left16:26
cdown_ joined16:27
Amanas joined16:28
cdown left16:29
cdown_cdown16:29
tiin57 left16:32
cd joined16:33
bariscant joined16:34
tiin57 joined16:36
causasui left16:36
bariscant left16:39
Muimi left16:39
Narrat joined16:44
Haohmaru left16:49
mightyjens left16:53
holy left16:53
BSaboia left16:56
BSaboia joined16:57
nitrix left16:58
BSaboia left16:58
nitrix joined16:58
tiin57 left17:02
regedit joined17:04
tiin57 joined17:05
tchan1 joined17:05
tchan left17:07
BSaboia joined17:07
feriman joined17:08
BSaboia left17:08
achilles joined17:10
rfuentess left17:11
hineios left17:12
yohnnyjoe left17:15
arcatech joined17:16
Pantysniffer joined17:16
tchan1 left17:16
tchan joined17:17
tchan left17:17
tchan joined17:17
hineios joined17:20
Pantysniffer left17:23
zumba_addict joined17:24
tiger joined17:30
tiger left17:31
tiin57 left17:32
tiin57 joined17:35
gopper joined17:37
theorangeone_ left17:40
theorangeone joined17:40
KnoP left17:43
clara97 left17:44
virgo joined17:45
virgo is there a way on github to message all maintainers?17:45
Like @maintainers ?17:45
mat001 joined17:46
mat001_ left17:48
yohnnyjoe joined17:50
ikke Not aware of anything, but maybe you can ask #github17:51
cambareri joined17:51
virgo did not know there was a github channel on here thanks17:51
[twisti] left17:54
BtbN It's ##github now17:55
Too many people took it as official support line17:56
virgo (y)17:56
yohnnyjoe left17:57
lambda left17:59
cambareri left17:59
lambda joined18:01
dpflick_ joined18:02
tiin57 left18:02
herren left18:03
lambda left18:04
dflick__ left18:04
tiin57 joined18:05
lambda joined18:06
yonder joined18:08
zumba_addict left18:08
achilles left18:11
jordy joined18:13
jordy left18:13
jordy joined18:13
zumba_addict joined18:16
nomadicmathmo left18:16
calcul0n_ joined18:17
Antonx joined18:17
Antonx left18:18
calcul0n left18:20
tgunr left18:22
bocaneri left18:22
jstein joined18:24
cousteau_ joined18:27
cousteau left18:29
yohnnyjoe joined18:30
tgunr joined18:30
karmicc joined18:31
astronavt left18:31
tiin57 left18:32
h3ck joined18:33
yohnnyjoe left18:34
justanotheruser left18:35
tiin57 joined18:36
shored1 left18:38
shored joined18:38
KnoP joined18:44
otisolsen70 left18:44
LetoThe2nd left18:45
zumba_addict left18:49
zumba_addict joined18:50
bvdw left18:51
bvdw joined18:52
bvdw left18:54
bvdw joined18:54
bvdw left18:56
bvdw joined18:56
theoceaniscool joined18:56
arcatech left18:57
dflick__ joined18:57
bvdw left18:57
bvdw joined18:58
bvdw left18:59
rokups left18:59
bvdw joined18:59
dpflick_ left18:59
NightMonkey Howdy. If I have a .gitignore in a top-level repo directory, and then have a .gitignore in a subdirectory of that, are the patterns of the subdirectory *added* to the top-level's patterns, or are the set of patterns completely replaced?19:00
shush left19:01
bvdw left19:01
bvdw joined19:01
sgn1 joined19:01
ikke added19:01
Amanas left19:02
dionysus69 left19:02
tiin57 left19:02
BSaboia joined19:02
NightMonkey ikke: Thanks.19:02
bvdw left19:02
bvdw joined19:03
arcatech joined19:03
bvdw left19:04
sgn left19:05
gopper left19:05
tiin57 joined19:05
ayush joined19:10
ayush left19:10
Hounddog left19:13
theoceaniscool left19:15
h3ck left19:15
theoceaniscool joined19:18
mirrorbird left19:18
kaartic left19:19
ferdna left19:23
theoceaniscool left19:25
vdamewood left19:27
kerframil left19:28
webmariner joined19:30
tiin57 left19:32
geosmile joined19:33
virgo left19:34
PJBoy left19:35
tiin57 joined19:36
zumba_addict left19:36
cousteau_ left19:39
leeN joined19:43
zumba_addict joined19:45
amahl_ left19:45
macrover joined19:45
OMGOMG left19:50
OMGOMG joined19:52
settermjd joined19:56
Maxattax left19:59
opal left20:00
yohnnyjoe joined20:00
tiin57 left20:02
opal joined20:02
davispuh joined20:04
tiin57 joined20:06
g00s joined20:06
kerframil joined20:09
vachkiri joined20:11
PJBoy joined20:11
kerframil left20:14
diverdude joined20:14
CCR5-D32 joined20:16
heyitsrama left20:21
s2013 joined20:21
diverdude Hi... i have a repo on machine A which have 2 remotes. the one remote is on a machine here on the local network. If i do git remote -v i can see hh hh@192.168.1.99:/mnt/data/share/reponame.git (fetch) and hh hh@192.168.1.99:/mnt/data/share/reponame.git (push). This all works great for fetching and pushing. However i wanted to now clone that repo to another dir by doing git clone hh@192.168.1.99:/mnt/data/share/reponame.git but the20:22
n i get: `fatal: Could not read from remote repository.`. Why can i not clone that repo?20:22
jimklimov1 joined20:24
jimklimov left20:25
relipse is there a way to save git show to a file and then view it somewhere else with nice colors?20:25
jimklimov joined20:26
jimklimov1 left20:28
osse relipse: git show ... > file.html20:29
ikke .html?20:29
heyitsrama joined20:31
relipse It seems Sublime Text 3 is sufficient to view a .diff file20:31
thanks20:31
milkt left20:32
tiin57 left20:32
osse relipse: oooh I thought you meant git show master:some/file.txt20:32
not the diff itself20:32
milkt joined20:32
osse yeah most editors handle .diff or .patch20:32
heyitsrama left20:32
BSaboia left20:34
mirrorbird joined20:36
tiin57 joined20:36
vachkiri left20:36
relipse what editor do you like?20:36
ikke vim, emacs20:37
theoceaniscool joined20:37
karmicc left20:37
BSaboia joined20:38
b1ack0p joined20:38
b1ack0p hi20:38
can i install linux packages on windows via git bash?20:38
mingw6420:39
NeilG joined20:39
NeilG left20:39
NeilG joined20:39
BtbN define "linux packages"20:40
Windows cannot run linux binaries outside of WSL/a VM20:40
b1ack0p BtbN: some console games for example like "vitetris"20:40
command line games20:40
BtbN If you manage to compile them for Windows, they'll run20:41
milkt left20:41
b1ack0p is git bash same with cygwin?20:41
for windows20:41
i am looking alternatives for WSL20:42
Jookia why?20:42
jordy left20:42
b1ack0p wsl seems laggy20:42
Jookia are you using wsl220:42
b1ack0p and when i run irssi it disconnects often20:42
whatever version is on my windows 1020:42
hrehf joined20:42
ThiefMaster joined20:42
Jookia you should make sure you're using wsl220:43
lucasb joined20:43
b1ack0p how will i do that?20:43
hrehf how do I print every line of DIFF that contains regex over all revisions?20:43
b1ack0p and what is wrong using git bash?20:43
osse b1ack0p: MSYS2, which git for windows is based upon20:43
b1ack0p osse: i just sshed to my amazon aws using git bash20:43
Jookia git bash/msys2/cygwin are slow by design and intended for development20:43
b1ack0p to linux instance20:43
Jookia if you want real linux, use wsl2 or other VMs20:44
b1ack0p and running tmux/irssi at the moment20:44
Jookia msys2 and cygwin are otherwise your only real hope for that kind of thing20:46
osse msys2 comes with a fork of pacman, which is nice20:46
and you can install git within it20:46
heyitsrama joined20:47
Jookia i'm considering moving to msys2 from git for windows since git for windows is broken20:47
heyitsrama left20:48
heyitsrama joined20:49
osse Jookia: don't. msys2 git is slow as hell20:50
Jookia: the only reasonable way to use it is to install gfw there20:50
Jookia yeah but at least it works20:50
unless there's some other git windows implementation?20:51
diverdude Hi... i have a repo on machine A which have 2 remotes. the one remote is on a machine here on the local network. If i do git remote -v i can see hh hh@192.168.1.99:/mnt/data/share/reponame.git (fetch) and hh hh@192.168.1.99:/mnt/data/share/reponame.git (push). This all works great for fetching and pushing. However i wanted to now clone that repo to another dir by doing git clone hh@192.168.1.99:/mnt/data/share/reponame.git but the20:51
n i get: `fatal: Could not read from remote repository.`. Why can i not clone that repo?20:51
heyitsrama left20:51
osse Jookia: what's broken about it?20:51
I don't think msys2 git will work any better, but i'm not sure20:51
Jookia osse: can't push/fetch from a windows machine20:51
basic functionality like that20:52
bket left20:52
osse I think perhaps that's your problem and not git's.20:52
Jookia it's not. there's a bug open for it20:52
jnavila joined20:53
irrgit joined20:54
osse link?20:54
surely the bug is more specific20:54
Jookia https://github.com/git-for-windows/git/issues/281320:55
danielb diverdude, I suggest you test with scp to make sure it really is working: scp [email@hidden.address] ./copy-of-config-file20:56
heyitsrama joined20:56
heyitsrama left20:56
heyitsrama joined20:57
diverdude danielb: thats working great20:57
justanotheruser joined20:57
ignapk left20:58
mic4ael left20:58
_W_ left20:58
geirha left20:58
pulec left20:58
pulec joined20:58
osse Jookia: interesting20:58
ignapk joined20:58
_W_ joined20:59
mic4ael joined20:59
danielb diverdude, bizarre. Maybe *some* of the repo somehow got bad permissions or something. scp -r would confirm that you can pull down the whole directory.20:59
osse Jookia: i doubt msys2 git will help but you can try...20:59
geirha joined20:59
danielb If scp -r works to get the entire remote directory, then by all rights git clone should work as well.20:59
Jookia osse: msys2 provides a working PATH and its own SSH server i think so it bodges around it20:59
diverdude danielb: uhhh ok i just managed to clone it...weird....before it did not work20:59
danielb I suspect a typo21:00
kelelawars joined21:01
notnatebtw joined21:01
tiin57 left21:02
milkt joined21:06
orbyt_v7 left21:06
tiin57 joined21:06
vdamewood joined21:06
m0viefreak joined21:07
vinleod joined21:12
bariscant joined21:12
osse Jookia: heh, the reason I didn't understand what you mean is because i didn't have the imagination to think of the server side21:12
Jookia osse: well, git is supposedly decentralized21:13
bket joined21:13
vdamewood left21:13
vinleodvdamewood21:14
kelelawars left21:14
Amanas joined21:15
settermjd left21:17
justanotheruser left21:18
Goo joined21:19
bariscant left21:21
kerframil joined21:25
jnavila left21:25
dodobrain joined21:26
orbyt_v7 joined21:27
warthog9 left21:29
tiin57 left21:32
b1ack0p finally set wsl221:32
warthog9 joined21:35
tiin57 joined21:35
justanotheruser joined21:37
hrehf left21:39
dodobrain_ joined21:40
dodobrain left21:43
KnoP left21:45
jaziz joined21:45
Amanas left21:48
sdwrage left21:50
sgn joined21:50
sgn1 left21:50
nomadicmathmo joined21:54
dodobrain_ left21:56
nomadicmathmo left21:56
nomadicmathmo joined21:57
deanman joined21:57
Geminizer joined22:01
tiin57 left22:02
s2013 left22:04
Goo left22:04
deanman I'm trying to understand the difference or workflow for `--fixup` or `--squash` commits. For the first i get its usage as trying to fix a previous commit with a new commit that get this prefix which in turn when running `rebase --autosquash` will melt it into one. But I'm struggling to understand in which scenario i would use the latter.22:04
leeN left22:05
ikke I never use --squash22:05
osse deanman: squash is like fixup except it combines the commit messages22:05
tiin57 joined22:06
deanman But in the case if `fixup` there is an actual change where if i simply want to merge two commits together with squash there is no new commit needed right?22:06
osse hmm?22:07
the only different is the commit message that git proposes22:07
deanman osse oh so in that case is like trying to edit a commit in history and at the same time make it disappear?22:08
arcatech left22:09
osse ehh22:09
i'm not sure how to answer that22:09
fixup makes git rebase combine two commits into one22:10
squash does the same22:10
fixup just keeps the message of the first commit22:10
squash combines the two messages22:10
that's all22:10
aqpl joined22:14
aqpl left22:18
perrier-jouet left22:20
deanman osse Thank you, i now understood it22:23
john2gb joined22:27
justanotheruser left22:27
Trel left22:27
deanman If it's a `--squash` commit which basically gets the message of the commit and prefixes it with `squash!` text is there a case you would might want both? This is what i get when i try to do a git commit --squash https://paste.ubuntu.com/p/T6kYXgTDM8/22:27
deanman left22:28
mirrorbird left22:28
believer1 joined22:28
deanman joined22:30
ShapeShifter499 joined22:32
tiin57 left22:32
Geminizer left22:32
pandem left22:33
tiin57 joined22:35
pandem joined22:36
jaziz1 joined22:37
Trieste left22:38
p-core left22:39
feriman left22:40
deanman left22:42
justanotheruser joined22:42
m0viefreak left22:43
jaziz1 left22:43
theoceaniscool left22:44
Hello71_ joined22:45
Hello71 left22:45
Trieste joined22:45
nomadicmathmo left22:46
nomadicmathmo joined22:46
dodobrain joined22:49
believer1 left22:51
aliss left22:52
Firefox joined22:55
Narrat left22:56
justanotheruser left22:57
arcatech joined22:59
tiin57 left23:02
gast0n left23:05
tejr left23:06
tiin57 joined23:06
tejr joined23:06
Firefox left23:09
gast0n joined23:12
orbyt_v7 left23:16
heftig left23:19
elibrokeit left23:19
heftig joined23:20
elibrokeit joined23:20
Anticom left23:21
jstein left23:21
g00s left23:26
heyitsrama left23:32
tiin57 left23:32
Trel joined23:33
tiin57 joined23:36
CodeSlingerPaul left23:42
sgn1 joined23:44
causasui joined23:45
sgn left23:46
perrier-jouet joined23:50
vdamewood left23:54
orbyt_ joined23:57
calcul0n_ left23:59

Logs Search ←Prev date Next date→ Channels Documentation