IRCloggy #git 2021-12-01

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.

2021-12-01

zopsi_ left00:00
jinsun left00:00
cdown left00:00
Maxattax97 left00:00
hoochmonger left00:00
average left00:00
maxzor_ left00:00
AbleBacon left00:00
rwp left00:00
blmt left00:00
foo left00:00
laksith left00:00
phryk left00:00
earthbreaker left00:00
haskl left00:00
robertparkerx left00:00
sahilister998 left00:00
kaichiuc1u left00:00
pflanze_ left00:00
igemnace left00:00
ChmEarl left00:00
wolfdale left00:00
arcatech left00:00
analpaper left00:00
nyah left00:00
Forlorn left00:00
thiago left00:00
durham left00:00
Shentino left00:00
emf left00:00
liefer left00:00
unluckyshrubbery left00:00
pretty_dumm_guy left00:00
rahl left00:00
Furai left00:00
natechan left00:00
hwrd left00:00
alex88 left00:00
terrorjack left00:00
pmcnabb left00:00
LogicAside left00:00
glider left00:00
lucerne left00:00
wilz left00:00
zmt00 left00:00
batrick left00:00
very_sneaky left00:00
irrgit left00:00
ztrawhcse left00:00
ddevault left00:00
gjnoonan left00:00
bagels left00:00
srinidhi left00:00
samuelbernardo left00:00
jim left00:00
hanneso left00:00
johncs left00:00
reset left00:00
jimklimov left00:00
tuxifreund left00:00
teddyc left00:00
Nei left00:00
trilobite left00:00
indyZ left00:00
TimWolla left00:00
waterkip left00:00
bagels joined00:00
TimWolla joined00:00
unluckyshrubbery joined00:00
nyah joined00:00
Forlorn joined00:00
Maxattax97 joined00:00
teddyc joined00:00
trilobite joined00:00
ddevault joined00:00
kaichiuchu joined00:00
analpaper joined00:00
pflanze_ joined00:00
ChmEarl joined00:00
sahilister998 joined00:00
blmt joined00:00
kaichiuchu left00:00
kaichiuchu joined00:00
Furai joined00:00
ChmEarl left00:00
ChmEarl joined00:00
wilz joined00:00
Nei joined00:00
igemnace joined00:00
analpaper left00:00
analpaper joined00:00
irrgit joined00:00
robertparkerx joined00:00
natechan joined00:00
average joined00:01
zopsi joined00:01
alex88 joined00:01
DoofusCanadensis left00:01
Nei left00:01
Nei joined00:01
average left00:01
average joined00:01
batrick joined00:01
robertparkerx left00:01
robertparkerx joined00:01
Shentino joined00:01
tuxifreund joined00:02
hwrd joined00:02
maxzor joined00:02
johncs joined00:02
cdown joined00:02
jinsun joined00:02
Shentino left00:02
gjnoonan joined00:02
ztrawhcse joined00:02
chemsmith left00:02
samuelbernardo joined00:02
phryk joined00:02
earthbreaker joined00:02
laksith joined00:02
haskl joined00:02
Shentino joined00:02
hoochmonger joined00:02
srinidhi joined00:03
Portugol9 left00:03
durham joined00:03
pretty_dumm_guy joined00:03
very_sneaky joined00:03
glider joined00:04
LogicAside joined00:04
chemsmith joined00:04
waterkip joined00:05
foo joined00:05
indyZ joined00:05
rwp joined00:05
hanneso joined00:05
rahl joined00:05
arcatech joined00:05
emf joined00:05
Portugol9 joined00:06
thiago joined00:10
ZacSharp left00:10
jimklimov joined00:11
durham left00:11
ThorMojito joined00:17
chenqisu12 joined00:19
chenqisu12 left00:20
chenqisu12 joined00:20
jonosterman left00:22
jonosterman joined00:25
lemonsnicks left00:32
xayto left00:33
justachetotallynotjustac00:33
jim87 left00:33
totallynotjustacjustache00:34
lemonsnicks joined00:35
gast0n left00:38
xayto joined00:40
thiago left00:40
Wuzzy left00:43
jazzy joined00:46
superbolide joined00:54
jim joined00:55
justachezoite00:57
pretty_dumm_guy left00:58
zoitez0ite00:59
GNUmoon left01:01
GNUmoon joined01:01
goldfish left01:02
ferdna joined01:03
lionkor left01:05
jim hi.. hope thanksgiving was a good time (for those who celebrate that)...01:09
say I've been commiting/pushing etc, and the last thing I committed and pushed worked fine...01:10
rapha left01:12
rapha joined01:12
jonosterman left01:12
jim then, say I'm trying to figure out a bug I introduced since then, I want to make it available, can I commit that code to another branch? (so, say there's uncommitted work, can I switch to a new branch which is off the last commit, and commit my (problem) code there?01:12
stenno left01:14
jonosterman joined01:14
acidjnk_new left01:15
stenno joined01:16
xkuru left01:23
jstein left01:24
BSaboia joined01:25
rewt jim, yep, just create the new branch (`git checkout -b mynewbranch`) before your commit (`git commit`)01:26
mackerman Or add, but don't commit.01:31
Portugol9 left01:32
Portugol9 joined01:35
superbolide left01:40
bambanxx joined01:46
BSaboia left01:46
BSaboia joined01:47
jim so add, make new branch and switch to it, commit?01:53
or, make new branch, switch to it, add, commit?01:54
Maxattax97 left01:54
cweiss07653 left01:55
mackerman add first, so the changes are in the index.01:55
Either should work, however.01:55
s/the index/staged/01:55
thiago joined01:55
cweiss07653 joined01:57
cweiss07653 left01:58
sebastorama_sebastorama01:59
cweiss07653 joined01:59
cweiss07653 left01:59
igemnace left02:00
igemnace joined02:00
BSaboia left02:00
cweiss07653 joined02:01
jonosterman left02:02
jonosterman joined02:04
R2robot joined02:04
BSaboia joined02:09
BSaboia left02:10
BSaboia joined02:11
qpdb left02:11
alzgh left02:19
keypusher left02:24
qpdb joined02:25
BSaboia left02:25
keypusher joined02:27
BSaboia joined02:29
mgedmin left02:30
BSaboia left02:30
BSaboia joined02:31
BSaboia left02:31
mgedmin joined02:32
alzgh joined02:33
ThorMojito left02:38
alzgh left02:49
thiago left02:49
alzgh joined02:55
bambanxx left02:58
llh left03:00
llh joined03:03
ThorMojito joined03:12
finn_elija joined03:12
FinnElija left03:12
finn_elijaFinnElija03:12
bloody left03:20
PerlAmutor left03:25
Xenguy joined03:31
bytehackr joined03:44
Nex6 joined03:46
gast0n joined03:50
maxzor left03:57
Dotz0cat left04:03
bambanxx joined04:03
maxzor joined04:09
vishal left04:09
zebrag left04:10
vishal joined04:11
Nex6 left04:11
Nex6 joined04:12
Nex6 left04:13
Nex6 joined04:13
nyah left04:14
Nex6 left04:14
Nex6 joined04:14
Nex6|Orc joined04:15
Nex6 left04:15
Nex6 joined04:17
Nex6|Orc left04:17
Nex6 left04:17
causa-sui left04:18
causa-sui joined04:19
thiago joined04:23
causa-sui left04:24
maroloccio left04:24
hoochmonger left04:29
bambanxx left04:32
jonosterman left04:32
jonosterman joined04:33
sjkfasc joined04:33
SirRippovMaple34 left04:34
SirRippovMaple34 joined04:34
chenqisu12 left04:36
ThorMojito left04:38
gast0n left04:41
mat001 left04:42
ChmEarl left04:46
causa-sui joined04:48
causa-sui left04:52
pyevery__ joined04:58
alzgh left05:01
great_taste left05:03
z0itejustache05:03
mat001 joined05:12
ferdna left05:12
emeka joined05:14
mat001 left05:17
jonosterman left05:22
jonosterman joined05:24
AbleBacon joined05:32
arcatech_ joined05:32
arcatech left05:34
arcatech_ left05:36
Xaldafax left05:40
emeka left05:40
Dotz0cat joined05:45
causa-sui joined05:49
maxzor left05:49
maxzor joined05:50
causa-sui left05:53
jazzy2 joined05:53
rahl left05:53
rahl joined05:55
jazzy left05:56
cryptone1tor joined06:06
cryptonector left06:08
Xenguy left06:10
hbautista left06:12
jonosterman left06:12
jonosterman joined06:12
average left06:15
neo43589367 joined06:20
neo43589367 Hello! I could use some git assistance06:20
roadie joined06:20
neo43589367 I'm trying to better understand git http-backend06:21
sgn left06:21
neo43589367 I read the documentation, but it's all for Apache and I'm trying to get it set up with Caddy06:21
sgn joined06:22
neo43589367 left06:31
pyevery__ left06:31
vysn joined06:33
skapata left06:33
jazzy2 left06:37
jazzy2 joined06:38
marw joined06:38
pizdets joined06:39
thekingofbandit left06:42
xcm_ left06:42
xcm_ joined06:42
thekingofbandit joined06:43
maxzor left06:45
sudoforge left06:49
roadie left06:51
Ilyu left06:53
bn_work left06:53
jstein joined06:57
jonosterman left07:01
jonosterman joined07:03
magic_ninja left07:04
mattil joined07:04
magic_ninja joined07:06
causa-sui joined07:08
magic_ninja left07:10
daoudr left07:10
magic_ninja joined07:11
maxzor joined07:12
AbleBacon left07:12
causa-sui left07:13
txtsd joined07:15
maxzor left07:23
hololeap joined07:24
john_johnk joined07:34
thiago left07:37
elastic_dog left07:39
elastic_dog joined07:41
palasso joined07:42
Guest27 joined07:46
mat001 joined07:46
Betal left07:50
mat001 left07:51
jazzy2 left07:51
jazzy3 joined07:51
jonosterman left07:52
whatsupdoc joined07:52
jonosterman joined07:53
tsujp joined07:53
otisolsen70 joined07:56
rgrinberg left07:57
rfuentess joined08:01
unluckyshrubbery left08:07
Ilyu joined08:07
jusski joined08:09
RiFo joined08:09
Furai left08:14
Furai joined08:14
xx left08:18
m0viefreak left08:21
EvilDMP joined08:26
Sulky joined08:26
vladoski joined08:28
dermoth left08:30
crabbedhaloablut left08:32
pyevery__ joined08:32
crabbedhaloablut joined08:33
hendry left08:34
rfuentess_ joined08:34
hendry joined08:36
rfuentess left08:37
rfuentess__ joined08:37
pyevery__ left08:38
rfuentess_ left08:39
Guest22 joined08:41
jonosterman left08:41
Ilyu left08:42
jonosterman joined08:43
Guest22 Hello everyone!:) I have a problem i get a error when i try to push my first commit to Azure. I get this Error "Error: LibGit2Sharp.LibGit2SharpException: cross host redirect not allowed" and i dont know what it means. I have tried to find a solution on Google but nothing helped me so far. Does somebody know where this error comes from?08:45
alzgh joined08:45
txtsd left08:46
Codaraxis_ joined08:46
kenanmarasli joined08:46
Codaraxis left08:48
Sulky_ joined08:51
Ilyu joined08:51
Ilyu left08:52
dermoth joined08:53
canton7 Guest22, it looks like you're trying to push to domain1.com, and that's issuing a redirect to domain2.com, which libgit2 doesn't like08:54
Sulky left08:54
canton7 Guest22, presumably you're pushing over http, of course? I'd access the url you're pushing to in a browser (with the developer console up) and just see what redirect you're getting. If it's to somewhere sensible (i.e. it looks fairly generic, and not like the address of a specific machine somewhere), you can probably just update your git config to08:55
push there instead08:55
furrymcgee joined08:55
Guest22 domain1.com? Well i use the https of the repository i created at azure.08:56
It worked a few days ago and i didnt had any problems but since yesterday i alway get this Exception when i try to push a first commit of a new Project.08:57
hendry I want to page through the changes in one file (whilst viewing the entire file), how do people do that? https://s.natalian.org/2021-12-01/git-file.mp408:58
TomyWork joined08:59
reset joined09:00
Guest22 I have also uninstalled and installed GIT several times but it doesn't help09:00
drogas joined09:00
sjkfasc left09:02
jusski left09:03
getSomethingGood left09:04
getSomethingGood joined09:05
acidjnk_new joined09:05
Sulky_ left09:07
Sulky_ joined09:07
nrl^ left09:07
bookworm hendry: git integration in my editor (neovim + fugitive)09:07
joo-_ joined09:08
joo-_ can git find out which unix user changed the file and blame that user somehow ? the user could make a commit, but if the user doesnt, - is there a way for git to "find out" ?09:09
hendry bookworm: yes, I use :0Gclog for this, and it's the only feature i use from fugitive, haha09:09
selckin joo-_: no09:09
causa-sui joined09:10
drogas left09:11
drogas joined09:12
sgn left09:13
sgn joined09:13
causa-sui left09:14
canton7 Guest22, what URL are you pushing to?09:19
Guest22, what does `git remote -v` output?09:19
Guest22 i use the command git remote -v in git cmd or?09:21
NeilRG left09:22
canton7 Guest22, sure, or look at your git configuration in whatever UI you're using to see what URL it's configured to push to09:23
Guest22 i get there fatal: not a git repository (or any of the parent directories): .git09:24
mattil left09:25
henk j416: just FYI: quite possibly "lazygit" https://github.com/jesseduffield/lazygit is what I have been looking for yesterday but haven’t tried it yet (:09:27
raffaele_ left09:30
raffaele_ joined09:30
theoceaniscool joined09:32
jonosterman left09:32
jonosterman joined09:33
The_Jag joined09:35
clime joined09:35
spare joined09:39
dsrt^ joined09:40
natrys joined09:41
joo-_ selckin: ok thanks :-) i guess i should make the user do some commits also09:49
Sulky_ left09:51
lionkor joined09:53
lehinsun left09:54
R2robot_ joined09:56
starfarer_ left09:56
R2robot left09:57
xkuru joined09:57
GNUmoon left09:58
GNUmoon joined09:59
ZachGibbens joined10:00
hololeap left10:01
ubique joined10:03
Lord_of_Life_ joined10:04
BigShip8 joined10:04
hololeap joined10:04
Lord_of_Life left10:05
BigShip left10:05
BigShip8BigShip10:05
sgn left10:06
Lord_of_Life_Lord_of_Life10:07
bindu left10:09
bindu joined10:09
Benett joined10:10
ueberall joined10:10
Vonter joined10:11
The_Blode left10:12
roadie joined10:13
jusski joined10:14
starfarer joined10:18
Guest22 left10:20
julien joined10:21
jonosterman left10:21
jonosterman joined10:24
j416 henk: huh. seems complex.10:27
henk j416: yeah, possibly. I’ll let you know when I have tested it a bit …10:30
hololeap left10:35
hololeap joined10:36
vimal left10:41
roadie left10:45
Guest22 joined10:45
Guest22 left10:48
EvilDMP left10:49
Guest22 joined10:50
Guest2288 joined10:52
Guest22 left10:52
bbju joined10:54
barteks2x joined10:55
bbju33 joined10:57
jmd joined10:58
jmd How can I find out what was the latest thing that was pushed?10:59
bbju left10:59
vimal joined11:01
selckin don't think you can, git fetch, will pull in the changes to the remote branches, you can then check the commit/author times11:01
jmd But I would have to check each and every branch individually ?11:03
selckin but those have the date the commit was made, not pushed11:03
jmd I don't really care what time/date it was pushed. I just want to see that most recently pushed commit.11:04
/that/the/11:04
Guest2288 left11:04
selckin on a specific branch?11:05
osse jmd: to a remote repo, or from the current local one?11:05
Sulky joined11:06
Guest22 joined11:06
pretty_dumm_guy joined11:09
enoq joined11:10
mbalmer_ joined11:11
Guest22 left11:11
DibbTubberOne joined11:11
jonosterman left11:11
jonosterman joined11:13
mbalmer left11:15
Sulky_ joined11:16
Sulky left11:17
Sulky__ joined11:18
furrymcgee reflog?11:19
Sulky_ left11:21
EvilDMP joined11:23
ikke git itself does not keep track of it11:23
terrorjack joined11:24
jusski left11:30
furrymcgee back to subversion11:31
john_johnk left11:34
jmd osse: The remote repo11:34
vimal left11:43
wwwi_ left11:43
atrigent left11:47
julien left11:47
furrymcgee perhaps your webservice can tell the latest push11:49
ikke jmd: What is the actual problem you try to solve?11:52
ChmEarl joined11:52
furrymcgee man githooks11:56
gitinfo the githooks manpage is available at https://gitirc.eu/githooks.html11:56
The_Blode joined11:58
nyany joined11:59
bbju33 left12:02
DibbTubberOne left12:06
EvilDMP left12:07
jmd left12:10
jazzy3 left12:11
cmbengue joined12:12
Guest88 joined12:14
Sulky__ left12:15
Sulky__ joined12:15
EvilDMP joined12:18
Guest88 left12:19
mbalmer joined12:20
mbalmer_ left12:21
Sulky__ left12:24
Sulky_ joined12:24
whatsupdoc left12:25
pmcnabb joined12:26
maxzor joined12:26
spare left12:26
spare joined12:27
ThePhilgrim joined12:31
vladoski left12:32
clime left12:32
Guest88 joined12:38
spare left12:39
spare joined12:40
barteks2x left12:47
Guest88 left12:48
ThePhilgrim left12:48
oxymoron93 joined12:51
jonosterman left12:52
john_johnk joined12:53
jonosterman joined12:54
vimal joined12:56
xkuru left13:00
xkuru joined13:02
wombawomba left13:04
wombawomba joined13:06
maxzor left13:07
ChmEarl left13:09
ChmEarl joined13:10
drogas left13:11
otisolsen70 left13:11
vladoski joined13:14
drogas joined13:25
ZachGibbens_ joined13:31
Shentino left13:32
ZachGibbens_ left13:34
aminvakil left13:37
aLeSD joined13:37
aminvakil joined13:37
f-a joined13:39
Shentino joined13:40
jonosterman left13:41
jusski joined13:42
f-a hello: http://ariis.it/link/repos/test-git-repo/ ← this is a git repo I rsync’d to my site.13:42
git clone http://ariis.it/link/repos/test-git-repo/ does not work (not found)13:43
jonosterman joined13:43
f-a with other vcs (say, darcs), I can do that (copy files to server and then `darcs get`). Is this possible w/ git too?13:44
ztrawhcse f-a: sure, just check it into the repo and push it as a revision ;)13:47
Also your site doesn't seem to have been validly rsynced, it doesn't have the .git directory13:48
Also also: git push is like rsync except specially designed for git, so it's probably better to use it13:49
nyah joined13:50
f-a it does, ztrawhcse http://ariis.it/link/repos/test-git-repo/.git/13:50
ztrawhcse Ah, the directory listing lied :/13:51
f-a I do not rsync to server13:52
I rsync to local folder and then `sitecopy` to it13:53
Why does git not recognise this as a repository?13:53
ztrawhcse https://www.git-scm.com/docs/http-protocol#_dumb_clients13:58
You need to do a bit of extra work if you don't have a git daemon running on the remote. I'm not positive what creates the info/refs file, actually.13:59
causa-sui joined14:01
ThorMojito joined14:02
bloody joined14:03
ztrawhcse https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols#_dumb_http14:03
There we go14:03
txtsd joined14:03
ztrawhcse f-a: run the referenced command there, or add the referenced hook and use git push over ssh instead of rsync over ssh14:03
Sario joined14:04
f-a this is shared hosting, I do not have access to command line. Hence that is impossible for me?14:05
ztrawhcse Then run the command locally on the local repo before each upload :)14:07
Nei you need a local dumb repo that you can rsync to the server if it's a dumb host14:08
kenanmarasli left14:10
acidjnk_new left14:11
cmbengue left14:13
cmbengue joined14:14
gh34 joined14:19
bbju joined14:20
skapata joined14:21
skapata left14:21
skapata joined14:21
ThorMojito left14:25
Dotz0cat left14:25
lionkor left14:26
Dotz0cat joined14:29
jonosterman left14:32
ThorMojito joined14:32
jonosterman joined14:33
dsrt^ left14:38
Strom left14:43
Xaldafax joined14:43
gast0n joined14:43
f-a Nei: what is a dumb repo? I think I followed the instruction shared by ztrawhcse but no dice, git clone http://ariis.it/link/repos/test-git-repo/ still errors14:45
enoq left14:47
ztrawhcse It's a way to describe servers that serve a repo using http file access, but not using one of: ssh, the git-daemon, or a CGI program14:47
jusski left14:48
ztrawhcse f-a: I can successfully clone that repo, but I need to add .git/ to the end because that is a checked-oit repo instead of one that is created by git init --bare and pushed to14:51
f-a oh14:51
I did not init it with git init bare14:51
ztrawhcse Also when I do clone http://ariis.it/link/repos/test-git-repo/.git/ I get an empty master branch and a valid origin/master branch14:51
Nei f-a: if you want to make a repo that is similar to the one github exposes, try "git clone --bare your/work/repo myrepo.git"14:51
then in myrepo.git folder, run "git update-server-info"; then rsync the folder14:52
f-a let me tryyyyyyyyy14:52
ztrawhcse So yeah, you probably want to clone your repo with --bare into your server upload staging directory14:52
f-a Nei: don’t have a github repo, `git init --bare` will do, right?14:52
Nei you can also start a fresh repo with init --bare14:52
Thanatermesis joined14:52
Nei but keep in mind you cannot "work" with a bare repo,m you have to clone it first14:52
ztrawhcse And then git pull in the staging directory to update from your worktree, don't use rsync14:53
Actually you can use the post update hooks in that case ;)14:53
Nei the problem with using a dumb server with ftp only is that you cannot "push" to it14:54
ztrawhcse Yes but apparently there is a staging directory locally, which is synced using a tool that does have upload access14:55
So you can push to the local staging directory as if it were the server :D14:55
f-a ok, this is wat an `init --bare` repo should look like, am I wrong? http://ariis.it/link/repos/test-git-repo/14:55
ztrawhcse Yes14:56
Nei yes but if you want to use this repo from multiple computers you will need to rsync the server side repo and cannot use the normal git pull/push14:56
f-a I would not use git push14:56
but git pull would be handy14:56
I think I understand this a little bit better, thanks everyone14:57
ztrawhcse Although it is missing the info/refs file you generated before.14:57
epolanski joined14:57
atrigent joined14:59
ThorMojito left15:06
meator joined15:07
justache left15:08
ThorMojito joined15:13
mrcrypto joined15:18
yksi joined15:25
cbreak left15:27
maxzor joined15:27
justache joined15:29
cbreak joined15:30
avar left15:30
cation21 joined15:35
dermato left15:35
cation left15:35
superbolide joined15:37
rgrinberg joined15:37
thiago joined15:38
cation21cation15:38
lightningwright joined15:39
justache left15:41
justache joined15:43
vesuvi88 joined15:43
Guest27 left15:43
sudoforge joined15:44
vesuvi88 hi all! please, help! why some changes may not work after executing the git merge command?15:45
and how can I avoid this?15:45
john_johnk left15:47
oxymoron93 left15:48
f-a left15:49
jusski joined15:50
avar joined15:51
barteks2x joined15:51
FFY00_ joined15:52
avar left15:52
vesuvi88 left15:53
avar joined15:53
zer0bitz joined15:53
FFY00 left15:54
rgrinberg left15:54
ThorMojito left15:58
AbleBacon joined16:00
rgrinberg joined16:01
anddam he left, still…16:02
WAT?16:02
justachejustSleigh16:02
atrigent left16:03
durham joined16:04
nvmd joined16:04
bambanxx joined16:05
anddam question of my own, can I add a config/hook so that I prevent a certain branch to be pushed on a remote?16:06
gast0n left16:06
anddam so even typing git push remote forbidden-branch would not succeeed16:06
imMute I think one of the post-receive examples is exactly that16:07
ikke pre-receive hook16:08
not sure if there is an example16:09
imMute oh, right it's pre-receive. https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks#Server-Side-Hooks says " It takes a list of references that are being pushed from stdin; if it exits non-zero, none of them are accepted. You can use this hook to do things like make sure none of the updated references are non-fast-forwards, or to do access control for all the refs and files they’re modifying with the16:10
push."16:10
gast0n joined16:10
imMute so a simple shell script that checks stdin would suffice.16:10
mat001 joined16:11
jonosterman left16:12
jonosterman joined16:13
Murr left16:15
Murr joined16:15
mat001 left16:16
durham left16:17
gast0n left16:18
Misotauros left16:18
Nex6 joined16:18
Tabmow joined16:20
zebrag joined16:20
Sulky_ left16:23
leah2 it would be nice to disable git commit -a on a repo level...16:24
ikke `git add .`16:25
rsx joined16:27
hbautista joined16:28
siers left16:28
alzgh left16:29
neo43589367 joined16:31
mallkrampus left16:32
rfuentess__ left16:34
gast0n joined16:34
ThorMojito joined16:36
jusski left16:36
atrigent joined16:38
gast0n left16:42
alzgh joined16:42
jonosterman left16:44
mallkrampus joined16:45
nvmd left16:45
gast0n joined16:48
Thanatermesis left16:50
Betal joined16:56
neo43589367 Hi can anybody help with my caddy problem?16:57
vesuvi88 joined16:57
neo43589367 That uses git-http-backend. It would help for me to understand how git-http-backend works. I don't fully understand cgi16:58
jonosterman joined16:58
vesuvi88 hi all! please, help! why some changes may not work after executing the git merge command? and how can I avoid this?16:59
imMute vesuvi88: what do you mean "some changes may not work" ??17:00
vesuvi88 some changes were not transferred to my branch17:04
imMute I've not heard of that happening...17:05
vladoski left17:09
drogas left17:11
Techcable_Techcable17:12
rgrinberg left17:12
epolanski left17:17
Misotauros joined17:20
reallymemorable joined17:21
reallymemorable how do I force a merge? I want to overwrite my branch with the master17:21
and anytime there is a conflict, just use the master version17:21
imMute if you want to throw away everything you did on your branch, you could do 'git reset --hard origin/master'17:22
reallymemorable ok17:22
vesuvi88 left17:23
bbju left17:23
mat001 joined17:28
bremner joined17:33
mrcrypto left17:36
natrys left17:41
anddam ikke: thanks17:44
imMute: ^17:44
imMute: but that's a server hook (receive), I'll go with pre-commit17:45
imMute pre-commit would prevent people from comitting to local branches, which doesn't make sense. and they'd be able to remove the hook to bypass your restriction17:46
ThorMojito left17:46
neo43589367 left17:48
rsx left17:51
jonosterman left17:51
ProperN[out] left17:53
jonosterman joined17:53
natrys joined17:54
superbolide left17:55
The_Blode left17:58
The_Blode joined18:03
vysn left18:05
bambanxx left18:06
john_johnk joined18:13
bytehackr left18:14
stenno left18:14
m0viefreak joined18:14
bambanxx joined18:19
dimi1947 joined18:22
Vonter left18:24
charly left18:28
bambanxx left18:28
alzgh left18:30
flingciphersalad18:30
alzgh joined18:30
barteks2x left18:31
fercell left18:36
ciphersaladfling18:36
furrymcgee left18:37
cvmn joined18:37
kenanmarasli joined18:41
TomyWork left18:42
jonosterman left18:42
orbyt joined18:42
jonosterman joined18:43
ThorMojito joined18:49
w1bble left18:49
xx joined18:49
Guest27 joined18:50
hbautista_ joined18:51
w1bble joined18:51
hbautista left18:52
mjbatty joined18:53
DoofusCanadensis joined18:53
EvilDMP left18:53
redartist joined18:54
redartist check18:54
Guest27 left18:55
redartist left19:00
spare left19:02
spare joined19:03
dimi1947 left19:04
nvmd joined19:04
ThorMojito left19:07
EvilDMP joined19:07
alzgh left19:07
hololeap left19:07
alzgh joined19:07
hololeap joined19:08
igemnace left19:15
iffraff joined19:17
ThorMojito joined19:21
tsujp left19:27
meator left19:32
jonosterman left19:32
ezzieyguywuf joined19:32
CarloWood joined19:33
ezzieyguywuf why would `git remote -v` return nothing? if I check .git/config I can see that I have a remote set up for the master branch19:33
jonosterman joined19:33
ezzieyguywuf ah, I guess the branch had a remote tracking repo but I hadn't set up the remote itself19:34
CarloWood Hello. I made quite a few changes and the 'git diff' became unpleasantly large. But the largest part is caused by renaming 'VulkanWindow' to 'SynchronousWindow'. Is there a way to have git diff ignore that change?19:34
ezzieyguywuf nvm19:34
CarloWood: try `git diff --find-copies-harder`19:34
ubique left19:34
ubique joined19:35
CarloWood It's not the filename that got changes - but the name of the class, all over the place.19:35
ezzieyguywuf ahh19:37
just a sec, I'm pretty sure there's a way to do this19:37
lionkor joined19:37
ezzieyguywuf oh neat - I haven't used this option yet but `git diff -M` looks like what you want19:38
hrm, actually that'll require the two names be somewhat similar19:38
mjbatty left19:39
CarloWood -I<regex>, --ignore-matching-lines=<regex> comes close, but if the line has other changes I still want to see it.19:40
ezzieyguywuf CarloWood: looks like your best bet may be `git diff -I<regex>` where <regex> is something to match the lines you want to ignore19:40
hrm19:40
you know the real lesson here?19:41
break up your commits into smaller units 😅19:41
cvmn left19:42
CarloWood I can use sed to toggle the renaming, guess I'll do that.19:42
ezzieyguywuf CarloWood: I was going to suggest the same19:43
lightningwright left19:43
mfiano joined19:44
EvilDMP left19:45
mfiano left19:48
mfiano joined19:50
vdamewood left19:53
alzgh left19:55
bambanxx joined19:57
alzgh joined19:59
wombawomba left20:01
BSaboia joined20:03
roadie joined20:08
lightyaer joined20:08
spare left20:09
spare joined20:09
odoood joined20:09
fructose joined20:09
rgrinberg joined20:11
dtminus joined20:12
lightningwright joined20:14
spare left20:16
spare joined20:16
lightyaer left20:16
rgrinberg left20:17
cvmn joined20:17
charly joined20:19
jonosterman left20:22
jonosterman joined20:23
dtminus left20:24
EvilDMP joined20:32
ZacSharp joined20:32
Yruama joined20:37
hqdruxn08_ left20:44
nyah left20:44
hqdruxn08_ joined20:45
nyah joined20:48
bambanxx left20:52
GNUmoon left20:54
lionkor left20:59
lionkor joined21:00
maxzor left21:00
dermoth left21:06
rgrinberg joined21:07
kenanmarasli left21:09
jazzy joined21:10
jonosterman left21:11
jonosterman joined21:13
Codaraxis__ joined21:13
ThorMojito left21:17
Codaraxis_ left21:17
dermoth joined21:18
bambanxx joined21:20
odoood left21:21
acidjnk_new joined21:21
wombawomba joined21:21
maxzor joined21:22
wombawomba left21:26
ThorMojito joined21:27
john_johnk left21:27
john_johnk joined21:27
john_johnk left21:31
ThorMojito left21:35
roadie left21:38
roadie joined21:39
ThorMojito joined21:39
ThorMojito left21:40
redoc9 joined21:41
marw left21:41
AbleBacon left21:43
redoc left21:43
redoc9redoc21:43
jazzy left21:44
roadie left21:44
jazzy joined21:44
GNUmoon joined21:47
ubique left21:47
AbleBacon joined21:47
cbreak CarloWood: you could try a different diff visualization algorithm like --color-words21:52
ZacSharp left21:52
cbreak but that'll have other effects of course, and potentially making everything harder to read21:52
ThorMojito joined21:52
cbreak --word-diff might be easier to process if you want to outright remove such changes21:53
especially in --word-diff=porcelain mode21:53
ThorMojito left21:55
gh34 left21:58
maxzor left21:59
ThorMojito joined22:00
ThorMojito left22:03
zulutango left22:08
roadie joined22:09
wombawomba joined22:11
maxzor joined22:11
zulutango joined22:11
maxzor left22:14
roadie left22:18
maxzor joined22:24
maxzor left22:24
mikail joined22:24
mikail_ joined22:24
mikail_ left22:24
mikail left22:24
mikail joined22:25
ZacSharp joined22:29
maxzor joined22:37
R2robot_R2robot22:38
alzgh left22:40
alzgh joined22:41
roadie joined22:44
FinnElija left22:45
FinnElija joined22:45
maxzor left22:47
nvmd left22:48
nvmd joined22:50
EvilDMP left22:50
neoweb joined22:51
neoweb https://usercontent.irccloud-cdn.com/file/WtkCgBYj/image.png22:51
jonosterman left22:51
neoweb i think i was typing the command in the wrong window heh22:52
rawtaz what command did you actually run?22:52
lightningwright left22:52
rawtaz also, know that there's always `git reflog` which shows you some stuff that you could probably have used to fix whatever you did :)22:52
m0viefreak left22:53
jonosterman joined22:54
roadie left22:54
neoweb i am looking22:55
git push origin production2021 -f22:57
i cloned a repo22:58
jinsun famous last words :D22:58
neoweb switch branches22:58
rawtaz so, the first thing i'd like to tell you is that you should be picky about where you place the arguments. the format if you check `git help push` isnt to put the flag -f at the end. one day not being proper with syntax will bite you in the ass22:58
neoweb but when i switched branches...and I think I forgot this, I need to pull...22:58
the entire action i was doing, was trying to delete one file from a git repo, and it was giving me trouble, so I thought the error message was complaining about that22:59
thanks rawtaz22:59
rawtaz you switched to that production2021 branch i take it? so you were locally on that?23:00
neoweb: dont worry about having hit the fan, shit happens. at least you managed to correct it in the end, as i understand it?23:01
now you know about reflog so you can check that and foremost you can ask here as well if you get stuck sometime again :)23:01
neoweb well i did but it might be nice to know how to go back23:03
i think this is the folder i was in when i pushed23:03
https://usercontent.irccloud-cdn.com/file/A4uLgdnT/image.png23:03
pizdets left23:03
pizdets_ joined23:03
rawtaz is that from you now trying to reproduce the problem?23:04
neoweb no i entered the dir23:04
rawtaz looks like you cloned, switched branch, committed a file deletion23:05
neoweb and just rand that command23:05
bindu left23:05
neoweb right, but for some reason when I clone, and switch to the branch23:05
it is not the latest commit heh23:05
dermoth left23:05
bindu joined23:05
neoweb iirc dont i have to tell git to pull branch updates or something too23:05
rawtaz let me sum it up23:06
cvmn left23:06
neoweb git clone, git branch mybranch - and the code is 1 year old heh23:06
mfiano left23:06
Thomas25 left23:06
rawtaz if on that branch after you added the commit, you push to origin, then git will try to send that new commit to the origin. if the origin hasnt changed at all since you cloned the repo, it should be successful. but if the origin branch hasnt got the same commit history as your local clone anymore, then the push will probably fail23:07
Thomas25 joined23:07
neoweb right23:08
but how do i ask git to pull the latest commits from the branch23:08
bambanxx left23:08
neoweb i am pulling a branch, but it is giving me from when I first branched it23:08
rawtaz if you do want to update that local branch of yours to have what is in the remote, you can do `git fetch origin` and then `git merge --ff-only origin/production2021` to make git fast-forward the commit history on your local branch to where it is on the origin production2021 branch23:08
neoweb check out23:08
due23:08
dammit23:08
rawtaz you do that with fetch and then merge23:08
neoweb i created a new branch locally i think instead of cehcking out23:08
dammit23:08
rawtaz some people use pull which is those two in one go, but i recommend against that because it's more magic and you get less control if you dont know what youre doing.23:09
oh ok23:09
neoweb dude23:09
dammit23:09
that is what i was doing heh23:09
rawtaz im not sure i agree, if you used checkout then you *switch* to a branch dont you? assuming you dont do checkout -b23:10
dermoth joined23:10
neoweb no i was not checking out the branch23:10
rawtaz then what did you do, what command did you run?23:10
neoweb i thought i was switching to the branch when i typed in git branch branchname23:10
rawtaz oh ok, got it23:10
neoweb so i was cloning, git branch23:10
and missed the git checkout branch23:10
rawtaz if oyu did that on master then your new branch there should have gotten the commit that master was on as the tip of it23:11
neoweb what is wrong with git pull23:11
ahh ic23:12
man, that is so crazy, i guess i get the power of the force command now, but damn did I never think since the way git tracks changes through additions, that I would be able to erase stuff so easily23:13
rawtaz now you know. i mean when you force you're telling git to completely ignore whatever is on the other end and just overwrite it23:14
neoweb yeh23:14
rawtaz why else would you need to use force?23:14
neoweb right23:14
rawtaz as in, what use case did you have in mind for it?23:14
mikail left23:14
neoweb i figured i needed it. i am trying to delete this one file, and not matter what I did it would not go away (but I think that was because I was not checking out, and switching branches), and i thought I needed to force to delete the history of the file or somethinig23:15
rawtaz ok :D23:15
but just to make sure, you now have the stuff restored etc, you dont have a data loss?23:15
neoweb nope, but if I did not have the code on a copy of a testing device I would have lost everything heh23:16
i guess it is time to link in some git backup stuff23:16
i mean, i commited master over production2021 and I think master was 3 years old23:17
so crazy heh23:17
ZacSharp and the repo you pushed to has no reflog you could use?23:17
rawtaz i wonder... is there any "reflog" on the remote site? does anyone know?23:17
if there is, how do you access it (E.g. if that remote is on github or something like that)?23:17
neoweb i can check23:17
i renamed the branch i pushed to to production2021-bad23:18
let me check it out and run reflog23:18
DoofusCanadensis reflog is available on my server , but I had to enable it explicitly23:18
neoweb https://usercontent.irccloud-cdn.com/file/FEcc8jfq/image.png23:19
nvmd left23:19
neoweb so i do not know how to read this list. i guess ccaadcc is the actual commit?23:19
roadie joined23:20
dermoth left23:20
neoweb it looks like f50429b was the branch i created a month ago heh23:20
ZacSharp it is the list of commits head pointed to in the last few days (in your case everything since you cloned the repo)23:20
did you clone the repo in the screenshot just now or is it the one you pushed from?23:21
neoweb i just did a checkout on f50429b and it looks like my last change was there23:22
this one i just cloned23:22
ZacSharp:23:23
ZacSharp the reflog is per repo, what you need is the remote reflog on github (which doesn't seem to exist)23:23
however it seems like you can use githubs event api to find the old commit23:24
dermoth joined23:24
Codaraxis_ joined23:24
neoweb so i erased the ref log basically23:24
reflog23:24
ZacSharp no23:24
neoweb but checkout of f50429b has the code that i erased23:25
but the git log is non existant heh23:25
mackerman More like github doesn't expose the reflog like a git server you can log into23:25
ZacSharp effectively the same thing23:25
but yes, they at least keep something similar23:25
jkordani joined23:27
neoweb yup23:27
i just created a new branch from f50429b and compared it to the one I manually recovered, and they are exactly the same23:27
ZacSharp what about the history?23:28
Codaraxis__ left23:28
neoweb nope, all the history is gone23:29
https://usercontent.irccloud-cdn.com/file/bLuuGZBT/image.png23:29
roadie left23:29
neoweb it has some of the mistakes i made heh23:29
https://usercontent.irccloud-cdn.com/file/X6kTBlr4/image.png23:29
so crazy heh23:31
so i guess i erased the log23:31
what is the diff between log, and reflog23:31
ZacSharp no you did not23:31
git log shows the commit history leading to a specific commit23:31
git reflog shows the latest few commits a reference pointed to23:32
rawtaz neoweb: please slow down a bit and also do read some of the documentation. it will be beneficial for you in the long run23:33
ZacSharp this tool should be capable of formatting the github api answer in a readable format https://github.com/criswell/github-reflog23:33
haven't tried it though23:33
Xenguy joined23:34
neoweb thanks23:38
have a good night folks23:38
rgrinberg left23:38
rawtaz nite!23:38
Yruama left23:41
palasso left23:42
jonosterman left23:42
The_Jag left23:42
jonosterman joined23:43
orbyt left23:46
vysn joined23:47
xayto left23:48
ZacSharp left23:49
igemnace joined23:49
xayto joined23:51
reallymemorable left23:54
zer0bitz left23:56

Logs Search ←Prev date Next date→ Channels Documentation