IRCloggy #git 2022-01-31

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.

2022-01-31

causasui left00:00
epolanski left00:00
causasui joined00:01
Soni left00:03
causasui left00:06
odoood joined00:09
odoood left00:10
nyah left00:10
odoood joined00:10
hinderaker joined00:12
causasui joined00:13
clime left00:15
foo git log -S "some line"00:16
odoood left00:16
foo That should find "some line" if it's been deleted, right?00:16
Per man page, I think yes, but I'm not seeing it00:16
causasui left00:18
kenanmarasli left00:19
dtux joined00:20
noex left00:21
noex joined00:22
hololeap left00:23
chenqisu1 joined00:23
causasui joined00:26
toma left00:29
Codaraxis__ joined00:30
ackyshake joined00:33
Soni joined00:33
Codaraxis_ left00:34
humanBird joined00:34
humanBird so i'm trying to clone from a windows machine and it fails over ssh00:34
git clone ssh://me@desktop-whatever/c/Users/me/repo fails with fatal: '' ssh://me@desktop-whatever/c/Users/me/repo '' does not appear to be a git repository00:34
causasui left00:35
cvmn left00:40
locrian9_ joined00:40
ackyshake left00:41
luke-jr left00:41
causasui joined00:41
humanBird it seems like it's adding extra quotes for no reason00:42
jstein left00:42
luke-jr joined00:43
locrian9 left00:43
thiago left00:46
ackyshake joined00:46
causasui left00:46
thiago joined00:46
Guest53 joined00:47
Akiva joined00:48
AbleBacon left00:52
thiago left00:52
nedbat humanBird: that could just be how it formats the message00:54
humanBird https://github.com/PowerShell/Win32-OpenSSH/issues/1237 this appears to be what i'm experiencing. i'm unable to edit the regsitry too00:55
locrian9_ left00:56
jazzy joined00:58
xx left00:59
humanBird i'm trying a space between the hostname and the file path and it says that no path is specified. i'm trying colons between path and host i'm trying forwardslash instead of colon in git bash and other ways of attempting to clone (adding .git at the end etc etc etc)01:01
it appears that i just cannot clone a remote git repository on a windows machine01:01
causasui joined01:01
zen_coder left01:02
Null_A joined01:02
humanBird sometimes the error message says the path that it's trying to clone is not a git repository. i'm in the remote machine and it's a git repository that i can commit pull etc.01:04
is there a problem with cloning a remote repo on windows ?01:05
m0viefreak left01:05
humanBird i've also tried the various shells on the client. the git bash the regular windows cmd powershell. nothing is working.01:05
causasui left01:06
jazzy2 joined01:08
jazzy3 joined01:09
jazzy left01:10
jazzy2 left01:12
ketas left01:17
foo I tried to remove a file from getting tracked but it seems like the file is now deleted in my repo. git rm --cached file.py should *remove the file* from being tracked but it should keep the file, correct?01:18
mud joined01:19
humanBird doesn't gitignore prevent the file from being tracked?01:19
foo humanBird: but the file was being actively tracked and then I removed it01:19
It is also in gitignore01:19
causasui joined01:24
causasui left01:29
DoofusCanadensis foo, you are correct01:32
humanBird: if you track a file before choosing to add it to gitignore, it will stay tracked01:32
you can also add --force any file that is in gitignore to track it anyway01:33
fikran left01:36
humanBird maybe you ran git rm without --cached heh01:36
fikran joined01:38
splud left01:41
causasui joined01:46
R2robot joined01:48
causasui left01:51
Sulky left01:51
arcatech left01:59
vicfred joined02:00
causasui joined02:01
Guest53 left02:02
causasui left02:05
jazzy3 left02:06
GreenAlpaca left02:12
rgrinberg left02:13
rgrinberg joined02:14
structoha joined02:15
Chipzz joined02:17
humanBird hrm. it appears that windows shell is adding too many quotes over SSH and that's why i can't clone02:17
the people in #windows seem to say it's git's fault02:17
can someone clear this up with them. they seem pretty adamant that it's git's fault02:17
DoofusCanadensis never had any issues using git clone on windows02:18
structoha1 left02:19
DoofusCanadensis mind you, I've never considered using windows as a git server with winssh in the mix02:24
Wuzzy left02:27
causasui joined02:28
DoofusCanadensis left02:31
Null_A left02:32
causasui left02:33
causasui joined02:35
rgrinberg left02:36
pyeveryt_ joined02:38
Rashad joined02:39
eXtr3m0_ joined02:40
causasui left02:40
eXtr3m0 left02:41
newpy left02:46
rgrinberg joined02:47
hololeap joined02:53
causasui joined02:55
vakera_pingveno left02:56
causasui left03:00
causasui joined03:02
lemonsnicks left03:03
FFY00 left03:05
XV8 joined03:05
causasui left03:06
lemonsnicks joined03:16
pretty_dumm_guy left03:19
causasui joined03:28
lainon joined03:32
causasui left03:33
lainon left03:37
geowiesnot joined03:40
crashrep left03:44
fikran left03:45
fikran joined03:47
causasui joined03:51
thiago joined03:55
mannequin left03:58
Gustavo6046 joined03:58
crashrep joined03:59
causasui left03:59
causasui joined04:01
euphrates[m] joined04:01
saroy joined04:02
saroybytehackr04:02
thiago left04:03
skapata left04:03
causasui left04:05
Spr0cket joined04:08
causasui joined04:08
cdown left04:08
causasui left04:13
bin101 left04:13
causasui joined04:15
bin101 joined04:16
causasui left04:20
causasui joined04:25
DoofusCanadensis joined04:27
humanBird left04:27
causasui left04:30
Vonter joined04:34
causasui joined04:40
foul_owl left04:42
causasui left04:45
luke-jr left04:48
luke-jr joined04:50
rgrinberg left04:50
DoofusCanadensis left04:54
foul_owl joined04:55
causasui joined04:55
maryo87 joined04:56
pyeveryt_ left05:00
foul_owl left05:02
zebrag left05:02
causasui left05:04
vicfred left05:07
rgrinberg joined05:09
Murr left05:09
Murr joined05:10
hbautista joined05:11
Quack left05:12
swistak left05:12
foul_owl joined05:15
crashrep left05:20
FFY00 joined05:28
M3troidman left05:29
Quack joined05:31
madewokherd joined05:34
hbautista left05:34
swistak joined05:34
madewokherd` left05:37
tyson2 left05:38
jkl1337 left05:42
jkl joined05:43
jazzy joined05:52
causasui joined05:55
great_taste left05:55
causasui left06:00
causasui joined06:00
XV9 joined06:04
XV8 left06:04
causasui left06:05
bloody left06:09
sudoforge left06:13
lgc joined06:13
lgc left06:15
M3troidman joined06:18
maryo87 left06:31
causasui joined06:32
retroid_ joined06:34
ChmEarl left06:36
jazzy left06:37
causasui left06:37
jazzy joined06:38
zeenk joined06:44
gumnos left06:45
splud joined06:46
hqdruxn08 joined06:46
Pseudocrat left06:47
hqdruxn08_ left06:48
maryo87 joined06:48
Guest9 joined06:50
lehinsun joined06:51
Guest9 hi,06:51
i need to create branches locally,06:51
automate the git branches locally, use any script06:51
gumnos joined06:52
ykrons joined06:52
zeenk2 joined06:53
zeenk left06:54
Guest9 any body can help me on this...?06:55
j416 Guest9: 'git branch mybranch' will create a new branch called mybranch. More info at man git-branch.06:55
gitinfo Guest9: the git-branch manpage is available at https://gitirc.eu/git-branch.html06:55
causasui joined06:58
GNUmoon left07:01
GNUmoon joined07:02
causasui left07:02
causasui joined07:07
anaveragehuman left07:09
causasui left07:12
jazzy2 joined07:13
jazzy3 joined07:15
zeenk2 left07:15
jazzy left07:16
gumnos left07:16
zeenk2 joined07:17
jazzy2 left07:17
rgrinberg left07:17
zeenk2 left07:17
AnapodoPsalidaki joined07:19
bkircher joined07:21
gumnos joined07:22
structoha left07:22
causasui joined07:22
M3troidman left07:23
selckin left07:23
selckin joined07:23
M3troidman joined07:24
jazzy2 joined07:27
structoha joined07:28
zmt01 left07:29
clime joined07:30
jazzy3 left07:30
vysn joined07:31
jazzy2 left07:32
causasui left07:33
Guest9 left07:37
bkircher left07:38
GreenAlpaca joined07:39
bkircher joined07:47
iomari891 joined07:48
jazzy joined07:51
GreenAlpaca left07:53
feriman joined07:54
GreenAlpaca joined07:56
tirnanog left08:00
MajorBiscuit joined08:00
palasso joined08:01
rfuentess joined08:01
geowiesnot left08:04
unluckyshrubbery left08:04
Akiva left08:05
AnapodoPsalidi joined08:05
coot joined08:06
AnapodoPsalidaki left08:08
causasui joined08:17
mns left08:17
mns joined08:20
chenqisu1 left08:24
chenqisu1 joined08:26
causasui left08:30
Gaboradon joined08:31
causasui joined08:32
canton7 left08:32
Vonter left08:32
bodiccea_ joined08:33
aminvakil4 joined08:33
BinGOs left08:34
BtbN left08:34
terrorjack5 joined08:34
BtbN joined08:34
FluffyFoxeh joined08:34
lechner left08:34
redrambles left08:34
PacKetIV joined08:34
tcurdt- joined08:35
shalok_ joined08:35
wynn joined08:35
T_UNIX[m] left08:35
danielsousaio[m] left08:35
Celmor[m] left08:35
Dhruvag2000[m] left08:35
Pixelized[m] left08:35
vodkra left08:35
PocketKiller left08:35
Frogging101 left08:35
madduck left08:35
Erawan left08:35
tcurdt left08:35
relipse left08:35
shalok left08:35
kristjansson left08:35
shalok_shalok08:35
Nixx joined08:36
terrorjack left08:36
bodiccea left08:36
aminvakil left08:36
wolf left08:36
jjakob left08:36
HumanG33k left08:36
MiniontobyPI left08:36
Flow left08:36
Rondom_ left08:36
Nixx_ left08:36
niyawe_ left08:36
silas left08:36
terrorjack5terrorjack08:36
aminvakil4aminvakil08:36
Vonter joined08:36
jjakob_ joined08:36
FluffyFoxehFrogging10108:36
wynnwolf08:36
niyawe joined08:36
vodkra joined08:36
causasui left08:36
madduck joined08:37
relipse joined08:37
Rondom joined08:37
redrambles joined08:37
kristjansson joined08:37
HumanG33k joined08:37
silas joined08:37
lechner joined08:38
bingos joined08:38
BtbN_ joined08:39
mexen joined08:40
BtbN left08:40
BtbN_BtbN08:40
pkal left08:41
Erawan joined08:41
MiniontobyPI joined08:42
LiENUS left08:42
LiENUS joined08:42
canton7 joined08:43
causasui joined08:45
spare joined08:46
Hobbyboy left08:47
danielsousaio[m] joined08:48
Celmor[m] joined08:48
Flow joined08:49
Dhruvag2000[m] joined08:50
causasui left08:50
Pixelized[m] joined08:50
T_UNIX[m] joined08:50
TheCatBehemoth joined08:55
Sulky joined08:58
jim87 joined08:58
causasui joined09:01
Sulky_ joined09:02
Sulky left09:05
bingosBinGOs09:05
causasui left09:05
GreenAlpaca left09:06
karstensrage left09:10
karstensrage joined09:12
eXtr3m0_ left09:16
Gustavo6046 left09:19
zen_coder joined09:22
Ilyu joined09:24
Hobbyboy joined09:26
causasui joined09:26
dunc left09:27
dunc joined09:29
nrg left09:31
causasui left09:32
otisolsen70 joined09:34
nrg joined09:34
Spr0cket left09:35
sa left09:35
coldmountain left09:35
Vonter left09:35
circuitbone left09:35
sa joined09:35
DrAnything left09:36
DrAnything joined09:37
coldmountain joined09:37
circuitbone joined09:37
celphi left09:38
Vonter joined09:38
magic_ninja left09:39
celphi joined09:39
howdoi left09:39
otisolsen70_ joined09:39
nrg left09:40
feriman left09:40
ljharb left09:40
howdoi joined09:41
structoha left09:41
magic_ninja joined09:41
ljharb joined09:41
jwpapi left09:42
molt left09:43
otisolsen70 left09:43
otisolsen70__ joined09:43
jwpapi joined09:44
ZachGibbens left09:44
Spr0cket joined09:44
nrg joined09:45
Pr0phet left09:45
fling joined09:45
Pent left09:46
feriman joined09:46
Pr0phet joined09:46
unluckyshrubbery joined09:46
ZachGibbens joined09:47
c4017_ joined09:47
otisolsen70_ left09:48
geirha left09:48
aniruddha joined09:49
Pent joined09:49
c4017 left09:50
otisolsen70__ left09:52
feriman left09:52
pretty_dumm_guy joined09:54
causasui joined09:55
kenanmarasli joined09:56
feriman joined09:58
ketas joined09:58
lehinsun left10:03
Codaraxis__ left10:05
causasui left10:05
Sulky__ joined10:05
Codaraxis joined10:06
xkuru left10:06
OnkelTem joined10:07
Sulky_ left10:08
Codaraxis left10:09
Codaraxis joined10:10
goldfish joined10:14
cousteau joined10:18
cousteau Hi10:18
dob1_dob110:18
cousteau If I create two commits with the exact same content, parent commit, commit message, author, author date, and commit date, they would have the same hash and be treated effectively as the same, right?10:19
GreenAlpaca joined10:20
structoha joined10:21
cousteau I was wondering if there was a way to replicate a commit exsctly on another repository without directly connecting to the original one and pulling/fetching the commit. But I guess the tricky part would be to replicate the commit date, which cannot be modified/faked.10:21
feriman left10:22
j416 cousteau: yes, you can do this.10:22
cousteau: they would be identical and have the same hash.10:23
cousteau: you can set the commit info using env vars. man git-commit look for GIT_10:24
gitinfo cousteau: the git-commit manpage is available at https://gitirc.eu/git-commit.html10:24
j416 you can also create the commit object manually.10:24
or, create a commit and then modify it.10:24
(edit it to create a new commit from it)10:25
xx joined10:25
causasui joined10:25
cousteau Oh... interesting10:25
So I guess "git pull via email exchange" IS possible after all10:26
feriman joined10:28
geowiesnot joined10:29
goldfish left10:29
M3troidman left10:30
enoq joined10:31
geirha joined10:31
Codaraxis_ joined10:32
duxsco joined10:32
cousteau j416: interesting, I had no idea you could "fake" the committer info, only the author info. I assumed security/sanity reasons (being able to mess with commits like this seems risky, plus I vaguely recall that git uses commit date order for something). Although I guess if git didn't allow this directly it could still theoretically be faked by changing the system time.10:33
Sulky__ left10:33
Ilyu left10:33
causasui left10:34
Ilyu joined10:34
molt joined10:35
Codaraxis left10:35
mannequin joined10:40
moldorcoder7_ joined10:40
moldorcoder7 left10:40
duxsco left10:47
cousteau Oh, and I see that timestamps have a 1 second precision, so this "creating two identical commits" thing could even be done "manually" without much effort10:50
spare left10:50
structoha left10:50
cousteau Might be an interesting example10:50
ZenWalker joined10:51
ZenWalker fatal: unable to access 'https://gitlab.gnome.org/sc0w/phosh.git/': The requested URL returned error: 41810:52
I can't push, I see this error10:52
what happens?10:52
Lord_of_Life left10:53
Lord_of_Life_ joined10:53
ZenWalker I did 'git push origin branchname'10:53
dka left10:54
Lord_of_Life_Lord_of_Life10:56
dka joined10:57
cation left11:00
eXtr3m0 joined11:02
kenanmarasli_ joined11:04
TheCatBehemoth left11:05
Sulky__ joined11:05
geowiesnot left11:06
kenanmarasli left11:07
kenanmarasli_kenanmarasli11:08
dka left11:15
atrigent left11:15
cousteau Error 418? Sounds oddly familiar11:18
LadyLionessLordLion11:19
jjakob_jjakob11:21
[twisti] left11:21
cousteau ZenWalker: I suspect somebody with an odd sense of humor must have been messing with the error codes, because that's the standard http error code for "I am a teapot" that was introduced as an April fool's joke11:22
dbbr joined11:22
canton7 Looks like it's used internally by gitlab's config of nginx: https://docs.gitlab.com/omnibus/settings/nginx.html11:23
ikke someone else reported it on #gitlab as well11:24
causasui joined11:27
cousteau canton7: I just found that as well. Wasn't sure if it was a gitlab-specific thing or if I got that because I specifically searched "error 418 gitlab"11:29
causasui left11:31
causasui joined11:34
igemnace left11:35
causasui left11:39
maryo87 left11:39
humanface joined11:39
M3troidman joined11:43
vitali64 joined11:47
causasui joined11:50
jazzy left11:50
jazzy2 joined11:52
vitali64 left11:52
jazzy2jazzy11:53
Crispy left11:54
Keikai joined11:56
Crispy joined11:57
Keikai left12:01
Crispy left12:01
duxsco joined12:01
osse someone in gitlab has a sense of humor12:02
Crispy joined12:03
Sulky_ joined12:03
causasui left12:04
causasui joined12:04
ZenWalker cousteau: it happens with https, with ssh I can push12:05
cdown joined12:05
geowiesnot joined12:05
Sulky__ left12:06
cousteau osse: I suspect it had more to do with "I don't know which error code to use, so I'll use something that is otherwise unused, instead of using something meaningful, or creating a new error code"12:07
Or maybe you're trying to use gitlab to connect to giTea12:08
That would justify the teapot error, at least12:09
osse Now you're thinking with portals12:09
vysn left12:12
causasui left12:14
duxco joined12:18
duxsco left12:18
duxcoduxsco12:18
Swahili joined12:24
dsrt^ left12:25
dsrt^ joined12:27
samuelbernardo left12:29
dka joined12:29
samuelbernardo joined12:31
maryo joined12:35
kenanmarasli_ joined12:37
samuelbernardo left12:37
XenophonF I have a main branch with the original code, then I branched main -> fix1 to fix something, then I branched fix1 -> fix2 to fix something else. Should I merge fix1 into main first, then merge fix2 into main? Or should I just fix2 into main and call it done? (In reality, there are like a half dozen of these branches, which I intended to turn into patch sets for submission to the upstream project, to whose12:40
git repo I don't have access)12:40
kenanmarasli left12:40
kenanmarasli_kenanmarasli12:40
XenophonF sorry *should I just _merge_ fix2 into main and call it done12:40
osse XenophonF: if you have not worked on fix1 since creating fix2 the end result would be the same12:42
because main would just be fast-forwarded12:42
geowiesnot left12:43
samuelbernardo joined12:43
FH_thecat joined12:45
quite joined12:46
spare joined12:46
quite hey, with :/regex i can select a commit based on regex matching the commits msg. can i limit this to current/specific branch? my git show :/foo just picked up a stashed commit!12:48
M3troidman left12:49
osse quite: HEAD^{/regex}12:49
or somebranch^{/regex}12:49
Adoi joined12:50
M3troidman joined12:53
quite osse: yay! thanks12:54
causasui joined12:54
Ilyu left12:57
Ilyu joined12:58
causasui left12:58
causasui joined13:00
XV9 left13:00
maryo left13:01
XV8 joined13:02
reprazent left13:03
causasui left13:05
durham left13:07
ofm left13:08
dmvrtx left13:08
reprazent joined13:10
tyson2 joined13:13
dmvrtx joined13:13
hseg joined13:18
pileatedx joined13:22
causasui joined13:24
nyah joined13:24
XenophonF thanks osse13:28
causasui left13:29
olebra left13:30
olebra joined13:30
causasui joined13:31
Adoi left13:33
MajorBiscuit left13:34
igemnace joined13:34
MajorBiscuit joined13:35
causasui left13:36
dsrt^ left13:37
quite left13:37
pileatedx left13:39
molt left13:42
tyson2 left13:44
tyson2 joined13:45
geowiesnot joined13:45
vysn joined13:49
frobnic left13:49
frobnic joined13:49
cdown_ joined13:50
duxsco left13:51
vakera_pingveno joined13:53
cdown left13:53
cdown_cdown13:53
causasui joined13:54
FH_thecat left13:55
geowiesnot left13:55
Argorok left13:58
causasui left13:59
node1 joined13:59
causasui joined13:59
Argorok joined14:00
LordLionLadyLioness14:04
causasui left14:04
Xenguy left14:07
TheCatBehemoth joined14:07
durham joined14:09
hinderaker left14:11
hseg left14:13
hseg joined14:14
MajorBiscuit left14:15
MajorBiscuit joined14:16
Adoi joined14:16
chenqisu1 left14:17
enoq left14:18
gumnos left14:19
MajorBiscuit left14:22
MajorBiscuit joined14:22
causasui joined14:26
cation joined14:28
Adoi left14:29
Vonter left14:29
causasui left14:31
causasui joined14:36
durham left14:38
causasui left14:40
ChmEarl joined14:45
cousteau left14:47
Vonter joined14:47
gasbag joined14:48
molt joined14:48
gh34 joined14:50
madewokherd` joined14:51
gast0n joined14:52
madewokherd left14:54
gasbag left14:56
gumnos joined14:56
causasui joined14:57
Thanatermesis joined14:58
toma joined14:58
spare left15:00
karstensrage left15:03
karstensrage joined15:03
great_taste joined15:04
causasui left15:04
causasui joined15:06
skapata joined15:08
skapata left15:08
skapata joined15:08
atrigent joined15:11
causasui left15:14
vdamewood joined15:16
gajus Is there a way to create a repository that only contains changes from a sub-path in another repository?15:19
kaiseisei joined15:19
bookworm yes, subtree gajus15:20
gajus thank you15:22
Ilyu left15:23
kaiseisei left15:24
lavos joined15:24
causasui joined15:24
gajus useful thread https://stackoverflow.com/questions/23937436/add-subdirectory-of-remote-repo-with-git-subtree15:26
kaiseisei joined15:27
molt left15:28
thiago joined15:30
causasui left15:31
kaiseisei left15:32
DoofusCanadensis joined15:33
Codaraxis__ joined15:39
aniruddha left15:40
Codaraxis_ left15:41
spare joined15:43
mat001 joined15:44
ThorMojito joined15:45
Codaraxis joined15:46
ralf joined15:46
causasui joined15:49
Codaraxis__ left15:50
skapata left15:51
causasui left15:54
jazzy left15:54
schuelermine joined15:55
ralf Hi! Hope someone can help. Following situation: In one repo we switched to Git from SVN two years ago without migrating the history. So, the first commit in the Git repo is the last revision in SVN. Now, we want to incoroporate the old history (as migrated by the nirvdrum/svn2git) . Which order of commands would you recommend? I tried it before with 1. Add the new repo as a remote to the old one (the newly migrated one) 2.15:55
Rebase master branch (other branches are irrelevant) of new repo onto last commit of old repo -> The result is a ton of merge conflicts that do not seem necessary15:55
schuelermine Help, I somehow ended up with two identical git worktrees15:56
node1 left15:56
mat001 left15:57
schuelermine I have three worktrees, two in folder [A], one on branch b1, one with detached head and one in another folder [B] on b0…15:57
mat001 joined15:57
schuelermine I can’t remove them because one of the [A] ones is the main working tree, and git worktree remove [A] doesn’t work…15:57
leib joined15:58
causasui joined16:01
dflick left16:02
ThorMojito left16:02
madewokherd` left16:03
j416 schuelermine: just delete the directory (worktree, not main repo), then run git worktree prune to remove the reference.16:08
schuelermine The doubled up worktree *is* the main worktree16:08
j416 I suppose you should be able to use remove, too.16:08
schuelermine: so you have two repos?16:08
schuelermine j416: two folders, and in the main folder, there’s two worktrees16:08
j416 you nested the worktrees within the first repo?16:09
schuelermine “nested”? idk. but there’s two of them.16:09
j416 sorry, I don't understand what you did.16:09
you can remove a worktree with git worktree remove, or by removing the diretory (rm -r) and then git worktree prune.16:09
schuelermine one moment16:09
j416 sorry, no time.16:09
I bet someone can help.16:10
gl o/16:10
schuelermine But you can’t remove the main directory16:10
vitali64 joined16:10
schuelermine This is what happens:16:12
user@host$ git worktree list16:12
user@host$ git worktree remove /folder116:12
fatal: '/folder1' is a main working tree16:12
oh, no16:12
the lines got mangled16:12
sorry16:12
https://pastebin.ubuntu.com/p/XRQzrvvYbT/16:13
bkircher left16:14
bkircher joined16:15
hseg left16:16
hseg joined16:17
rsx joined16:20
leib left16:22
gast0n left16:25
Vonter left16:25
bn_work joined16:27
gast0n joined16:27
rsx left16:27
Vonter joined16:28
schuelermine OK, I fixed it16:30
git clone --bare --no-hardlinks $folder1 $folder1bkp && rm -r $folder1 && git clone --no-hardlinks $folder1bkp $folder1 && rm -r $folder1bkp16:31
bn_work hi, git 2.24.3, when I committed 17 files that had anywhere from 3-4 lines to 2/3rds line differences between them, I expected to see 1 line per file changed in the commit output but instead I get 6 lines + something like `foo/{bar.bash => baz.bash} (57%)`, why is that showing as a copy? & where are the rest of the 10 files in the commit output? (note, oddly when I do a `git diff` (or `git diff --cached`) between bar.bash and16:31
baz.bash there is no output, but regular diff does?16:31
jumpcutking joined16:31
bn_work (it does mention there were `17 files changed, ...` at the top though)16:32
... of the commit output that is)16:34
gast0n left16:40
madewokherd joined16:41
crashrep joined16:41
bn_work interestingly enough when I do `git log --stat` it does show each file individually for that commit, so is this some weird `git commit ...` output shorthand?16:44
vitali64 left16:44
bn_work (algorithmic-based shorthand)16:44
wilz left16:44
LadyLionessLordLion16:44
emf joined16:44
ThorMojito joined16:45
nkm joined16:46
nkm hello16:46
I am new to using git commands.16:46
maryo joined16:46
nkm I have created a bitbucket account. and also created a repository16:46
zmt00 joined16:47
maryo left16:47
nkm now i want to know how can i connect it to my local project?16:47
maryo joined16:47
nkm they provide some 'sourcetree' option. but i don't know how it works. I have checked many youtube videos. but they are for old versions.16:47
need help in this issue.16:48
emf_ joined16:49
nkm i am getting this error message when try to push.16:49
$ git push -u origin master16:49
Permission denied (publickey).16:49
fatal: Could not read from remote repository.16:49
Please make sure you have the correct access rights16:49
and the repository exists.16:49
imMute bn_work: that "foo/{bar.bash => baz.bash} (57%)" is rename detection. git does not record renames but instead tries to "find" them after the fact based on the simliarity between files (in this case 57%)16:49
emf left16:49
durham joined16:50
molten joined16:54
schuelermine left16:54
hseg left16:55
hseg joined16:56
nkm77 joined16:57
nkm77 i was disconnected16:57
ralf nkm: Check if there are multiple public keys in your .ssh directory. Maybe the wrong one is picked? Or havent you uploaded any public key to bitbucket?16:57
nkm77 i don't know what is publick key. and where to check16:58
sudoforge joined16:58
nkm77 i am using wamp16:58
lavos left16:58
Celelibi left16:58
ralf I guess you should check out this: https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/16:59
nkm left17:00
nkm77 okay17:00
bn_work imMute: so it thinks 57% of the files were "renamed"? or 57% was "renamed" between only those two files? Either way, that seems a strange way to report it since clearly there were more files and those two files weren't renamed and both independently still exist post-commit17:01
hinderaker joined17:03
nkm77 rafl. i have created my two keys. which is told in this article17:07
adder left17:07
nkm77 but i don't understand what this below content means.17:07
To start the agent, run the following:17:07
$ eval $(ssh-agent)17:07
Agent pid 970017:07
Enter ssh-add followed by the path to the private key file:17:07
$ ssh-add ~/.ssh/<private_key_file>17:07
when i try to enter eval $(ssh-agent) it gives error message in cmd.17:08
adder joined17:08
Murr left17:09
Murr joined17:09
ralf sorry nkm, cant support on this17:09
nkm77 you also don't know this?17:10
Celelibi joined17:11
ralf nope sorry17:11
nkm77 okay17:11
i have also tried sourcetree. but it is also not working. i don't know why17:12
OnlineCop nkm77: Do you have two files under ~/.ssh/ : id_[something] and id_[same_something].pub ?17:15
nkm77 yes17:15
OnlineCop Okay; if you run just `ssh-agent` does it show any output, or show that the file can't be found?17:15
For me, `ssh-agent` shows `SSH_AUTH_SOCK=...; export SSH_AUTH_SOCK; SSH_AGENT_PID=...; export SSH_AGENT_PID;`17:16
nkm77 it gives this message unable to start ssh-agent service, error :105817:17
epolanski joined17:17
OnlineCop Google/DDG search for "ssh-agent unable to start 1058" shows several people with that same error, across multiple OSes and many of their fixes/solutions.17:18
nkm77 i am searching.17:19
OnlineCop nkm77: Is your OS Linux, Mac, or Windows?17:19
nkm77 windows17:19
OnlineCop PowerShell: `cd Program Files\OpenSSH-Win64` then within that, `.\install-sshd.ps1` and then ssh-agent started to work.17:20
Of course, you need OpenSSH installed (change directory to whatever makes sense on your system).17:20
^ those comments came from https://github.com/lukesampson/pshazz/issues/70#issuecomment-404335354 (URL typed, not copy-pasted, so I may have typo'd).17:21
duxsco joined17:22
OnlineCop A comment just below that one also mentions `Set-Service ssh-agent -StartupType Manual`17:22
nkm77 should i install it in the keys directory?17:23
OnlineCop Install what?17:23
nkm77 or make a new directory in program files?17:23
i means to run this command install-sshd.ps117:23
like they did cd .\Program Files\OpenSSH-Win6417:23
Rashad left17:23
nkm77 should i make a new directory with name OpenSSH-Win64 and then run that command?17:24
OnlineCop If you install via Chocolatey, `choco install openssh` should install it to C:\Program Files\OpenSSH-Win64. You can choose a different location if you'd like.17:24
And then within that directory, running the `.\install-sshd.ps1` is what fixed it for other people.17:24
`ssh-agent` should then be added to your environment PATH, so you should be able to access it anywhere.17:25
nkm77 okay. i created a directory in program files with name "OpenSSH-Win64" and then using powershell went to this directory and run this comand "choco install openssh"17:26
meder joined17:27
nkm77 but it gives choco : The term 'choco' is not recognized as the name of a cmdlet........ error message17:27
OnlineCop I think `choco install openssh` will actually create that directory for you, regardless of where you run it.17:27
Alright, so your system doesn't use Chocolatey. You may just need to install it from the openssl website.17:27
nkm77 openssl website ??? means/17:28
meder I created a new branch 'feature_1' from a source branch 'version_7'; I'm trying to merge the latest changes from that version_7 branch into my feature branch, but 'git merge version_7' shows already up to date, but I don't believe it has the latest updates from that branch - am I doing something wrong? also tried git pull; this was initially created within Jira for the branch from source17:29
^ and git pull would only grab changes for my feature branch so I don't think that's what I'd need17:30
OnlineCop meder: Which branch are you on currently?17:30
meder feature_117:30
OnlineCop Does the branch `feature_1` have an upstream set?17:31
meder how can I verify that?17:31
OnlineCop From the command line, does `git branch -vv` show a remote?17:31
meder next to feature_1 in the second col it shows origin/feature_1 so I believe so17:32
DoofusCanadensis try origin/version_7 if the changes in that branch are from another person17:32
meder and I usually do a git push and it pushes to codecommit aws17:32
maryo left17:33
meder 'git merge origin/version_7' says not something we can merge17:33
btw - I have done a merge from version_7 before but 2 weeks ago, not sure if that's relevant / screwed anything up17:34
DoofusCanadensis sounds like your version_7 and origin/version_7 have deviated17:34
might want to check version_7 out and attempt to clean that up17:34
bytehackr left17:34
meder so stash my files for this branch, git checkout version_7, git pull, then go back and try to merge again?17:34
hseg left17:35
bloody joined17:35
hseg joined17:35
tulpa_ joined17:36
meder ah, got it I think; yeah had to do that basically17:36
thanks17:36
nkm77 OnlineCop. i followed this link https://stackoverflow.com/questions/52113738/starting-ssh-agent-on-windows-10-fails-unable-to-start-ssh-agent-service-erro17:36
meder so always update the 'source' branch locally before merging basically17:36
nkm77 and setup ssh-agent to Automatic17:36
what is next to do?17:37
OnlineCop nkm77: Does `ssh-agent` show output?17:37
rgrinberg joined17:37
nkm77 now when i type this command in my command promt then it don't give any error message. before setting it gives the error ''ssh-agent'' is not recognized as an internal or external command,17:38
operable program or batch file.17:38
imMute bn_work: more like the two files are 57% similar, so git is considering it a rename (with modifications to the other 43% of the file).17:43
bn_work: given both files still exist and 57% being pretty low, I'm not sure why it did that. you can control that threshold for what counts as a rename though17:44
mruss0 joined17:45
nkm77 OnlineCop. can you help me ?17:46
i have created private and public ssh keys17:46
OnlineCop Sorry, AFK for a few hours (at work).17:46
nkm77 okay. thanks for your time17:47
arcatech joined17:48
Guest509 joined17:50
Swahili left17:51
cryptonector left17:51
shailangsa joined17:54
Guest509 hi all17:57
___nick___ joined17:57
neverfindme joined17:57
wilz joined17:58
mruss0 Hello all, I have some troubles with git. I have two branches, main and feature. They have a common ancestor, then a common file has been modified on both branches. So, if I want to merge feature in main, I have a merge conflict. I need to solve this conflict with a single merge commit, how can I do?17:59
neverfindme left17:59
Guest509 I reinstalled linux again and what is the process to recreate the dotfiles ? git clone https://github.com/me/dotfiles , then what ?17:59
neverfindme joined18:00
cryptonector joined18:00
imMute mruss0: fix the file, git add it, then 'git commit' (no other options) and that'll open an editor with the default merge commit message in it.18:01
randallb joined18:02
Rimrul joined18:02
neverfindme left18:02
Rimrul left18:03
mruss0 imMute so I should git merge --no-ff main18:04
___nick___ left18:04
___nick___ joined18:05
toma left18:05
nkm77 i have setup the ssh-keys. i also added my public key in bitbucket account. but still when i typed this command git push -u origin master. it gives this error18:06
Permission denied (publickey).18:06
fatal: Could not read from remote repository.18:06
Please make sure you have the correct access rights18:06
and the repository exists.18:06
ralf left18:06
___nick___ left18:06
nkm77 i don't know where i am doing wrong.18:06
need help in this issue18:06
Jong joined18:06
Guest509 nkm77 maybe you did not fork the repo, I think you are writing to another person repo18:07
nkm77 i created my own18:07
Guest509 nkm77 me I fork a repo before I amke changes18:07
nkm77 first i typed the clone command.18:07
MajorBiscuit left18:07
nasamuffin joined18:07
___nick___ joined18:07
nkm77 $ git clone [email@hidden.address]18:08
fatal: destination path 'youtubeclone' already exists and is not an empty directory.18:08
bn_work imMute: why would git even consider anything < 100% a rename?18:08
nkm77 then i typed git push -u origin master. and it gives me error18:08
Guest509 nkm77 you have github access token setup É18:08
?18:09
bn_work imMute: also, what of the other files? why were those not listed in the commit output?18:09
nkm77 i setup the ssh-keys in bitbucket account also18:09
imMute bn_work: sometimes you rename a file and change a class name but it's still the same class, so it would be nice if it counted as a rename even though the files aren't 100% the same.18:09
nkm77 and followed all what is here https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/18:09
imMute bn_work: as for the other thing, I have no idea. if you can replicate it so we can look for ourselves we might be able to help.18:10
jim87 left18:10
lavos joined18:10
imMute nkm77: did you do the step 8 under step 3 "Add the public key to your Account settings" ?18:11
nkm77 yes18:11
i added public key to my account18:11
imMute nkm77: you got the message about being logged in as naveedwd?18:11
nkm77 ssh -T [email@hidden.address]18:12
authenticated via ssh key.18:12
You can use git to connect to Bitbucket. Shell access is disabled18:12
i got this18:12
imMute okay, so your SSH stuff seems to be setup fine.18:12
nkm77: what is the output of 'git remote -v' and can you use a pastebin instead of sending paragraphs to the channel?18:13
nkm77 yes18:13
ok18:13
let me paste it18:13
molten left18:14
nkm77 git remote -v gives me this output https://wtools.io/paste-code/b9ii18:14
imMute nkm77: did you create a "youtubeclone" repo under your account on bitbucket.org? if you did, it's private as I can't see it18:15
nkm77 yes18:15
its private18:15
i want to make a private repo18:15
imMute you want to make it or you already did make it?18:16
nkm77 i already did18:16
imMute IDK what's wrong then. your remote is setup fine, SSH access seems to be fine. should just work.18:17
nkm77 should i change it to public?18:17
mruss0 left18:17
nkm77 i changed it to public18:18
can you check it now?18:18
imMute it's there18:18
nkm77 is it working at your end?18:19
GreenAlpaca left18:19
imMute yeah, I can see it in the web interface. I don't have a bitbucket account so I can't try cloning it18:19
rfuentess left18:20
nkm77 can you tell me what to do next?18:20
imMute I don't know what's going wrong, so I dunno.18:20
nkm77 because after changing it to public git push -u origin master still have that same error18:20
imMute wait, did you do that git push command from *inside* the repository or outside?18:21
nkm77 inside repo18:21
asbachb joined18:21
asbachb left18:22
imMute because earlier you said you did a clone (which failed) and then you did a push, no mention of changing directories or anything about the failed clone command18:22
nkm77 should i delete this repo. and make a new one. and then try using that?18:22
imMute you could make another local clone somewhere else - no need to delete the existing one18:23
nkm77 how can i de-clone or reverse my clone command from project directory18:23
imMute you can just delete the folder the 'git clone' created.18:23
ThorMojito left18:23
skapata joined18:24
skapata left18:24
skapata joined18:24
nkm77 i don't have 'git clone' folder. i have this directory structure18:25
https://ibb.co/TH8djDq18:25
imMute where did all that stuff come from?18:25
causasui left18:25
nkm77 i have already created a project. now want to upload it to bitbucket for upcoming changes and updates18:25
and to have a code backup there18:26
imMute I don't see a .git folder in that image..18:26
nkm77 yes. i don't have .git folder18:26
zen_coder left18:26
foo I have a branch that's deleting a local file that I don't want to be tracked. Is there a way to see if a branch is A) tracking or a file or B) attempting to *clear* the file?18:26
nkm77 is it created .gt folder?18:27
.git*18:27
foo nkm77: I don't think that was for me but if it was let me know18:27
nkm77 foo. it is not for you buddy. i have just started with this git. and have only 1 or 2 hours experience.18:28
XD18:28
foo nkm77: welcome to a new world. :)18:28
nkm77 thanks18:29
i am not even still able to clone a repo.18:29
stuck in this issue. and i am here to solve that problem18:29
imMute nkm77: that folder isn't in the repo. the repo starts where the .git dir is.18:30
nkm77: when you did 'git clone [email@hidden.address] that created a subdir 'youtubeclone' and THAT is the repo18:30
nkm77 i don't know. i just created a repo in bitbucket. and have all this18:30
now i delete that subdirectory18:31
now should i again clone it?18:31
imMute sure.18:32
also if you only have 1-2 hours of experience with git, you should probably read a tutorial first.18:32
nkm77 okay. again clone it and get this output http://codepad.org/A9n5qaou18:33
imMute right, now copy all your project files into that youtubeclone directory that it created.18:33
git add them, and then git commit and then you can push them18:33
nkm77 is it necessary? because it will disturb my directory structure18:34
is there any other way ? to avoid copy everything into that directory?18:34
Guest509 left18:35
imMute you could clone the repo into where your files already are, but that might cause issues if you're not careful.18:35
you can move the files around as long as you move the .git folder with them.18:35
Vonter left18:35
nkm77 should I move/cut-paste the files inside that newly directory or copy-paste it. means keep two copies of code?18:36
imMute copy to be safe until you're comfortable with git18:36
structoha joined18:37
nkm77 but then to change which code? the copy one or the original?18:37
if i need to change any code..18:37
imMute ideally the git repo copy, since you'll want git to track your changes too18:37
nkm77 okay.18:38
all of you guys do the same? means keep two copies of code. one original and one in git directory18:39
imMute no, most people work directly out of the git repo18:39
but since you're new to git, it's safer to keep a backup copy while you're still learning18:39
nkm77 how to do that?18:39
for now i just want to push my this code to my repo.18:40
imMute just edit the files in that youtubeclone directory (that's the git repo)18:40
jumpcutking left18:41
nkm77 okay. let me copy everything to this new directory18:41
if i copied everything. then just type git push -u origin master command?18:42
for testing i copy some files to this newly directory to check if it works or not18:42
imMute no, you need to do other things. seriously, you need to read how to use git.18:43
https://git-scm.com/book/en/v218:43
polyphem_ joined18:43
imMute IDK if there's a better tutorial, but that page can't be all bad18:43
nkm77 okay thanks18:44
iomari891 left18:44
arcatech left18:45
polyphem left18:45
hbautista joined18:45
maxzor_ joined18:45
arcatech joined18:48
xkuru joined18:51
_lungaro_ is there a way with git, given a path, find where the .git dir is by searching up the tree?18:52
ikke git -C <path> rev-parse --show-toplevel18:53
<path> needs to be a directory18:53
_lungaro_ sweet18:54
ikke That would show the top-level, so you would need to append /.git to get the .git directory18:54
imMute and for older gits there's a trick with an "! pwd" alias18:54
ikke right, aliases are run in the toplevel18:54
nkm77 left18:54
imMute I wonder how that plays with worktrees. I've never used worktrees...18:59
bkircher left19:00
ikke imMute: it would show the root of the worktree19:04
where .git is a git reference19:04
_lungaro_ what in the world is a worktree19:04
ThorMojito joined19:04
ikke man git worktree19:04
gitinfo the git-worktree manpage is available at https://gitirc.eu/git-worktree.html19:04
_lungaro_ i need to figure out how to stay up to date on git featuers19:04
ikke _lungaro_: github always has a very nice overview after each git release19:04
nyuszika7h left19:05
_lungaro_ sweet, may have just missed it19:05
ikke https://github.blog/2022-01-24-highlights-from-git-2-35/19:05
for example19:05
but worktrees are already older19:05
zebrag joined19:05
nyuszika7h joined19:05
arcatech left19:07
arcatech joined19:07
AbleBacon joined19:09
GreenAlpaca joined19:11
structoha left19:17
ThorMojito left19:17
clime left19:22
while joined19:22
lechner left19:22
OnkelTem left19:23
gh555222 left19:24
zen_coder joined19:24
ThorMojito joined19:24
lechner joined19:25
austin987 left19:25
hinderaker left19:25
meator joined19:26
meator left19:32
Sulky_ left19:32
hqdruxn08_ joined19:33
hinderaker joined19:34
hqdruxn08 left19:34
BitfluxByteflux19:35
causasui joined19:36
meator joined19:37
rgrinberg left19:42
structoha joined19:43
jstein joined19:47
ThePhilgrim joined19:48
TheCatBehemoth left19:49
gast0n joined19:51
duxsco left19:54
duxsco joined19:54
structoha left19:55
ThorMojito left19:59
ThorMojito joined20:00
XV8 left20:00
Shashin joined20:05
vicfred joined20:08
clime joined20:11
duxsco left20:11
duxsco joined20:11
skapata left20:12
sept joined20:15
sept Just to be clear, annotated tags are never involved in the commit hash calculation, correct?20:17
ikke correct20:17
tag objects point to commits (or other objects), not the other way around20:18
sept ikke: thanks.20:18
ekathva joined20:20
hololeap left20:21
Codaraxis left20:25
Codaraxis joined20:25
Guest91 joined20:26
Guest91 left20:26
ThePhilgrim left20:29
ThePhilgrim joined20:29
Akiva joined20:30
rgrinberg joined20:30
nehsou^ joined20:32
meator left20:47
meator joined20:47
roxlu joined20:51
roxlu hi! when a repository uses sub modules, how can I see what commit is being followed?20:52
oh sorry.. `git submodule status`20:52
spare left20:53
sept left20:54
roxlu oh hmm that doesn't show me anything20:54
caveman joined20:55
ikke git ls-tree HEAD <path>20:55
epony left20:56
Betal joined20:57
roxlu thanks ikke what should I use with for <path> ?20:58
ikke The path to the submodule in the workingree20:58
relative20:58
tehenderz_ left20:58
ikke If the submodule lives in a directory foo in the root of the repo, then it would be `git ls-tree HEAD foo`20:59
tehenderz joined21:00
crashrep left21:00
roxlu ok thanks, (/me feeling stupid) .. so I cloned a repose with `git clone --recursive [address]` and there is a .gitmodules with 2 repositories. When I use `git submodule status` or `git ls-tree HEAD <path>` i don't get any output21:01
Vaelatern left21:03
___nick___ left21:04
Shashin left21:05
Vaelatern joined21:06
Vaelatern left21:06
Vaelatern joined21:06
tulpa_ left21:06
meator left21:06
MrC left21:08
roxlu ikke: ok so I think I'm not crazy :) it should show something and fetch something21:08
I'm not sure what happens tbh. This is the repos: https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/blob/master/.gitmodules21:09
ikke roxlu: what do you provide for <path>?21:09
roxlu the value after "path =" from that file21:09
ikke right, that should work21:09
DoofusCanadensis isn't git submodule init a separate step?21:10
cool if they added it into the clone itself, though21:10
roxlu DoofusCanadensis: I've done that too; `git submodule --init`21:10
ikke DoofusCanadensis: --recursive handles that21:10
anaveragehuman joined21:10
m0viefreak joined21:10
roxlu I've test it on 2 diff. PCs; maybe something silly was happening, but that doesn't seem to be the case as I can't get the status on the other pc either21:11
ikke roxlu: it seems the submodules are no longer there21:12
only the .gitmodules file21:12
there is no open-source directory21:12
roxlu ah I see what you mean; so besides the .gitmodules the submodules info is also stored somewhere else? I mean, git "should" be able to fetch the modules based on the info in those files, right?21:13
ikke roxlu: well, the commit it should checkout is stored in the tree object (what git ls-tree should output)21:14
without that entry, there is basically no submodule21:14
roxlu .. I do know that the repository uses a build system I wouldn't use; they download a bunch of libs into that dir, then remove it21:14
ikke https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/commit/2f7db86a0be3cf341e5bce7e039e22ecf8dabedf21:15
this commit removed them21:16
roxlu Thanks ikke!21:16
How did you find that so quickly?21:16
ikke on a local clone21:16
git log -- open-source21:16
that was the last commit to touch them21:17
tuskkk____ joined21:17
roxlu oh nice!21:17
ah so here are all the dependencies: https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c/tree/master/CMake/Dependencies21:18
I was looking for that, thanks a lot ikke!21:18
ikke You're welcome21:18
zebrag left21:22
ekathva left21:22
lavos left21:24
ekathva joined21:24
DoofusCanadensis ikke: that's good to know21:24
zulutango left21:30
ekathva left21:31
skapata joined21:32
skapata left21:32
skapata joined21:32
ZacSharp joined21:36
roxlu ikke: when you use `git log -- [query]` does it search for file/dir names?21:37
ikke roxlu: not recursively21:38
just in the current dir21:38
roxlu ah oke21:38
ikke You could do -- '**/foo' and it should look recursively21:38
nasamuffin left21:40
beco joined21:42
CalimeroTeknik left21:44
stef204 joined21:46
iffraff joined21:47
MrC joined21:48
Jong left21:52
dextercd joined21:55
austin987 joined21:57
spare joined21:57
Tykling left21:58
arcatech left21:58
CalimeroTeknik joined22:00
jinsun__ joined22:03
stef204 left22:04
gh34 left22:05
jinsun left22:06
randallb left22:09
axisys_ left22:09
ZacSharp49 joined22:12
kilobyte2 joined22:12
dansan left22:13
tykling joined22:14
kilobyte_ch left22:14
dansan joined22:16
ZacSharp left22:16
zen_coder left22:16
madewokherd left22:18
rgrinberg left22:18
kilobyte2 left22:19
coot left22:22
lmat left22:26
lmat joined22:28
crashrep joined22:30
kilobyte2 joined22:31
mehwork if i do `git submodule update --recursive --remote` in my branch and commit the modified submodule, that will update the commit in the remote for everyone who uses the submodule, right?22:32
kenanmarasli left22:32
mehwork it doesn't merely update my branch's submodule with whatever is it the remote, it goes both ways?22:33
ThePhilgrim left22:34
hseg left22:34
mehwork said another way: When using update --remote, what happens after commiting/pushing the changes? Does it affect just the *current* repo or the also the repo the submodule came from?22:39
foo How can I tell if git is tracking a file? I have a feeling I told git to stop tracking a file (git rm --cached file.py) but it's actually *deleting* the file.22:46
ThorMojito left22:47
zebrag joined22:47
atrigent left22:48
epolanski left22:49
dextercd left22:51
whatsupdoc joined22:52
tehenderz left22:53
tehenderz joined22:54
madewokherd joined22:55
maxzor_ left22:56
jstein left22:57
reprazent left22:59
crashrep left23:00
tehenderz left23:01
tehenderz joined23:03
feriman left23:03
pizdets_ joined23:04
crashrep joined23:04
pizdets left23:04
emf_ left23:05
reprazent joined23:05
toma joined23:08
ferdna joined23:08
Murr left23:08
crashrep left23:09
Murr joined23:09
austin_ joined23:09
ThorMojito joined23:10
Lord_of_Life_ joined23:10
Lord_of_Life left23:10
austin987 left23:11
infernix left23:12
infernixx joined23:12
emf joined23:13
infernixxinfernix23:13
ThorMojito left23:13
Lord_of_Life_Lord_of_Life23:13
ThorMojito joined23:14
ThorMojito left23:17
iffraff left23:17
crashrep joined23:20
mackerman foo: git status -- afilename.txt23:21
Will limit the Untracked files display to only the given pathspec23:21
vysn left23:22
oprypin left23:23
oprypin joined23:23
mackerman git rm --cached will remove from staging area but leave it in your working tree.23:24
foo deleted by us: app/config.py23:26
Trying to merge, I get that. Meh.23:26
mackerman: if I'm seeing that, does that mean I did git rm app/config.py at one point?23:26
This branch is always deleting my config.23:26
tehenderz left23:26
tehenderz joined23:28
mackerman Could be a commit you are merging in that deletes it.23:29
foo mackerman: if that's the case, which I think it is, how do I stop that?23:30
mehwork git rm --cached removes from worktree/tracking from what i've read23:30
mackerman Do you want it deleted for people using this branch or not?23:31
foo mehwork: correct, but in my case, it seems like - per mackerman's point - I have some commit on my branch that is deleting this file. Which means I switch branches and my local config gets deleted. And I'm not sure how to stop this. *thinks23:31
mackerman: I do not, I don't want git to track it or delete it23:31
it's already in git ignore23:31
vicfred left23:31
mackerman gitignore does not affect already comitted files.23:32
foo mackerman: understood, which is why I believe I need to do git rm --cached file.py23:32
which I think should be sufficient and be enough23:32
mehwork correct23:32
foo My sense is I did git rm file.py at some point which is in a commit23:32
And I want to stop that from happening23:33
mackerman Determine if commits are actually deleting it23:33
foo mackerman: how?23:34
mackerman git log --diff-filter=D --oneline --summary -- afilename.txt23:34
GreenAlpaca left23:35
mackerman Maybe add --all if you are unsure of the branhc.23:35
mehwork those checks are confusing because they'll show nothing even if a file isn't av alid file name23:35
mackerman The file name should be app/config.py in this case23:35
foo https://bpa.st/XCZA23:36
Hmm, what tdoes that mean to you? Looks like I just stopped tracking unless I'm misreading it23:36
With --all it does the same23:36
rgrinberg joined23:37
mackerman Is commit made from the repo you did the git rm --cached with ?23:38
If not and it was merged it, it will delete the file.23:38
* merged in23:38
A different possibility, you said this is now gitignore'd, did you git clean ?23:39
structoha joined23:40
foo mackerman: 5557e31 is where I did git rm --cached , ahh, the issue is - it might be merging it in, and instead of ignoring it it's deleting the file which I don't want it to do. I just want it to ignore it23:40
mackerman: I didn't do git clean23:40
mackerman "git rm --cached" does not mean ignore this file, it means delete it from the index23:42
foo mackerman: I thought it simply stopped tracking23:42
mackerman: is there a way to rectify this?23:42
mackerman You already did, you committed a delete.23:43
foo mackerman: maybe once someone checks out from master and resets their branches, when I merge in it won't try to delete the file23:44
The issue is it's deleting the local file when I try to merge or switch branches23:44
mackerman Possibly that's moving before and after 5557e31, applying the delete again.23:45
foo mackerman: yes, and it's deleting the local file. Haha. I think if everyone merges from master (which has that) it should fix this, right?23:45
M3troidman left23:46
mackerman Everyone who merges this in will have it deleted.23:46
atrigent joined23:46
foo mackerman: so, people need to A) merge it in and then B) add the file back, right?23:46
Then that should be ignored (since it's already in git ignore)23:46
sudoforge left23:47
tuskkk____ left23:47
ZacSharp49 left23:48
sudoforge joined23:48
spare left23:48
crashrep left23:49
M3troidman joined23:49
mackerman Yes.23:50
However they won't have a copy on disk, as it is deleted.23:50
foo mackerman: Excuse me if I seem to be asking obvious questions. I'm trying to A) understand how this happened and B) rectify it. I think I understand A. As for B, if I'm following, someone will need to *manually* add the file *after* they merge in master, correct? Unless you're implying git will indefinitely attempt to delete this file always and forever...23:51
mackerman If you must have some version of app/config.py in version control, example or whtever, consider renaming it to a different file name.23:51
foo Which I doubt.23:51
palasso left23:51
foo I want it in the repo but I don't want it tracked23:51
mackerman You must pick one of those.23:52
foo mackerman: one of those being A) rename or B) merge in master thne add file back, correct?23:52
mackerman "In the repo" and "not tracked" are mutually exclusive23:52
foo mackerman: I mean, on the filesystem, in the repo root but not tracked23:53
eg. this is a local config file relative to each instance23:53
or intended to be, anyway23:53
The_Tablet left23:54
molt joined23:55
mackerman What caused this problem is commiting a file then gitignore it later23:56
foo mackerman: yup23:56
clime left23:59

Logs Search ←Prev date Next date→ Channels Documentation