IRCloggy #git 2019-04-23

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.

2019-04-23

welovfree left00:00
welovfree joined00:00
welovfree left00:00
vishal its not so much the number of files - more about workflow. If you think a branch is best suited - sure. But I don't quite follow what you mean about 'apply branch X on branch y'00:00
de-facto left00:01
vishal I don't know of such a primitive in git :)00:01
jottr left00:01
de-facto joined00:01
TJ- joined00:01
vishal .. but I also don't know anything about your project, and if you have a way that works for yuou, all good!00:02
velix_home I mean. I want to "apply" the files from backend/pdf to develop to create a new release version.00:02
vishal can't get his head around what 'applying'; means here00:02
velix_home When "develop" changes in future, I will apply backend/pdf again on it to create the new release version.00:02
Sorry, I'm not native.00:03
I want to overwrite soem files from branch "develop" with all the files from branch "backend/pdf".00:03
vishal no worries - is it say just a script to generate some pdfs to be included in the release?00:03
velix_home vishal: Sure, but I thought, I could do it with a pull request or something to keep track on it in GIT.00:04
dodobrain_ seems to me that he just wants to merge the pdf branch into the dev00:06
yyy left00:06
dodobrain_ so whatever new pdfs have been added or existing ones that have been changed get into the eventual release from the dev branch00:06
velix_home, is this what you meant by 'apply' ?00:06
velix_home yes00:07
manuelschneid3r left00:07
velix_home I want to mix the latest dev with the latest PDF to create a release.00:07
vishal ah sounds like a merge then00:07
xcmGuest1405600:16
Guest14056 left00:16
xcm joined00:16
reactormonk left00:19
bergercookie left00:22
orbyt_ joined00:23
mat001 joined00:25
scivola joined00:30
qassim joined00:31
jab416171 joined00:33
mat001 left00:33
dre_ left00:34
learningc joined00:34
fphilipe_ joined00:34
jottr joined00:35
ashka` joined00:38
duderono_ left00:38
ashka left00:39
ashka`ashka00:39
keepLearning512 joined00:43
al-damiri left00:47
jottr left00:47
orbyt_ left00:47
Tawonga left00:48
Tawonga joined00:48
TJ- left00:52
ferdna joined00:53
fatalhalt joined00:54
keepLearning512 left00:59
velix_home Can I merge an orphaned branch into an existing one at all?01:01
rafasc You can.01:01
thiago joined01:01
velix_home okay, let me try it.01:01
rafasc git will complain about unrelated histories, because most of the time merging orphan branches isn't something you want to do.01:02
vishal that would create multiple root commits right01:02
rafasc you can bypass it with --allow-unrelated-histories01:02
well, not create per se, as the roots are already created.01:03
vishal ah true01:03
rafasc but yes, your history will contain more than one root.01:03
after the merge.01:03
thebope joined01:04
rafasc velix_home: may I ask why you asked that?01:04
velix_home rafasc: I'm having a relative stable branch "backend/pdf", which needs to get merged into "dev" to create a release.01:05
rafasc why is that backend an orphan?01:06
velix_home Because it only contains some files, which are not in dev (password files etc.)01:06
finalbeta joined01:07
rafasc but if you merge it, those files would be accessible from dev. Is that what you want?01:07
velix_home rafasc: I'm creating a "release/demo_2019-04-23" first01:07
fphilipe_ left01:07
velix_home a new branch, were both will get combined.01:08
navidr joined01:08
velix_home Background is that our frontend developer works on "dev", but doesn't have access to the database.01:08
So he's using his own local stuff.01:08
I need to patch/apply/merge/update this with the final stuff before making a release.01:08
Seems like it worked with --allow-unrelated-histories01:08
rafasc I don't know what you are doing, but be aware that once you give someone access to that merged branch, they'll be able to see all commits from both branches.01:09
Be sure you don't leak your password branch or w/e01:10
vishal sensitive information in a git repo is usually a bad idea.. !deploy might be relevant01:10
gitinfo Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html01:10
velix_home rafasc: it's not bad at all. He just cannot access the DB & server physically ;)01:10
rafasc: also, this is only connecting to pgbouncer with very limited rights.01:11
Sasazuka left01:11
rafasc anyways, merging credentials doesn't seems like the correct thing to do.01:11
velix_home rafasc: credentials only was an example.01:11
There are 90 SVGs, 23 PDFs and 104 templates.01:12
he doesn't need those for development.01:12
orbyt_ joined01:14
velix_home rafasc: I've just removed the credentials.01:14
F0rTex left01:17
dre_ joined01:17
velix_home rafasc: thanks 4 your input01:17
rafasc it was just unclear what you were doing.01:17
F0rTex joined01:18
igemnace left01:19
isBEKaml left01:22
velix_home I just want to split apart the workflow a bit. Right now, all the image data lies in the central "dev" branch. So whenever I'm editing an image, I'm changing the main dev branch (or I'm creating a new one and set a pull request).01:22
So I don't get into trouble with his work.01:23
The only problem now is that I can't raise pull requests between the orphaned branch and the dev01:24
NightMonkey left01:27
rafasc state your original problem, because I am not sure how orphan branches solves a problem for you.01:27
velix_home There are two developers: me for backend, another guy for fronend.01:28
rafasc following so far.01:29
I am struggling but I think I can do it.01:29
velix_home I'm devops, so I'm doing the server administration, too.01:29
kezimo left01:29
velix_home Right now, we're both working in branch "dev". There final product has a "demo" and a "release" version, which share the code of "dev", but have some changes.01:30
Those changes are always equal, f.e. different images in PDF backend, different colors etc.01:30
inkbottle joined01:30
pspace joined01:30
pspace Does anyone have any resources on merge methodologies for managing high volume changes into a downstream project?01:31
velix_home rafasc: I've created the orphaned branch to merge it with the DEV version to create the final product.01:32
rafasc: The DEV version only has a subset of the final backend code.01:32
rafasc but why an orphan branch?01:33
voidSurfr left01:33
velix_home because it doesn't have any reference to existing code.01:34
I also could create a local directory and just copy & paste the stuff.01:34
(what I am doing right now).01:34
But that way, I could use "git merge" to merge it.01:35
fphilipe_ joined01:35
rafasc ok. I still have no idea of what you are doing.01:35
I hope you do.01:35
lucasb left01:36
rafasc Because from what I've read, it gives me the impression that you want to cut out this branch at some point and "plugin" another in its place.01:36
velix_home I really can't understand, what you don't understand :(01:36
rafasc But that's not how git works.01:36
velix_home I'm creating a new branch from the developing branch and merging it with the data from backend/pdf01:37
That's the release branch.01:37
kezimo joined01:38
velix_home Here's an image: https://imgur.com/a/6hbC0z401:39
develop is the main dev branch, then feature/area-score has been added today, where we worked on with.01:40
For testing, I've created a new local branch release/demo and merged content from new branch pdf/demo into.01:40
So I've got a release/demo branch with all the new content from latest feature of dev and the (near stable) branch release/demo.01:41
bambanx joined01:43
orbyt_ left01:45
velix_home rafasc: ping?01:47
warthog9 left01:47
rafasc and this pdf/demo branch is just a bunch of extra files that aren't needed anywhere else?01:48
Tawonga left01:48
rafasc except for release(es)?01:48
velix_home exactly01:48
rafasc when you make another release, you'll merge that commit again?01:50
velix_home exactly01:50
rafasc why?01:50
why not leave it as part of the project then?01:50
velix_home Because there's lots of data in there, the frontend developer doesn't need. He can't do anything with the container processing backend for example.01:51
I mean, in web development it's common to split things apart and merge them for release.01:51
Typescript, javascript, CSS, HTML etc.01:51
wildlander joined01:51
velix_home it gets "built" in the final release for web when development is done.01:52
In the dev branch, there are several dummies right now, f.e. get_pdf is just a dummy which always sends the same PDF. Which is totally fine for development.01:53
I could throw in the whole backend of course, but then he needs a full stack for development.01:53
Bobdude joined01:54
vishal I tried to hint at separate, self contained repos before.. but I'm just glad I don't do web stuff :P01:54
velix_home what are "self contained repos" ?01:55
vishal like your front end repo will have the front end code, and anything necessary to mock things01:55
your backend repo, likewise01:56
your build/deployment system will have the things needed to pull in things from both of those, and also things like credentials01:56
and that will make the final deployment01:56
the build/deployment system could be anything from scripts, to container thingys and whatnot01:57
rafasc I guess pdf/demo could be a submodule.01:58
tang^ joined01:58
rafasc pros: you can test any revision with any backend commit you want.01:58
velix_home rafasc: cons?01:59
rafasc needs to be a subdirectory.02:00
requires learning how to manage submodules.02:00
xcm left02:00
xcm joined02:02
dpyro left02:04
velix_home I see. So either external in a building tool or internal as submodule.02:04
dpyro joined02:04
AtumT left02:06
fatalhalt left02:09
fphilipe_ left02:09
fatalhalt joined02:10
azwieg103 joined02:13
lagothrix left02:15
kjartan left02:15
lagothrix joined02:15
SpeakerToMeat left02:15
kjartan joined02:19
thebope left02:20
warthog9 joined02:21
tuxd00d left02:21
armin left02:22
jcbitter left02:22
Xeago left02:24
jcbitter joined02:25
HotBeefDip joined02:26
jcbitter_ joined02:28
jungsubk joined02:30
jcbitter left02:31
g00s joined02:34
jungsubk left02:41
jottr joined02:43
fphilipe_ joined02:45
Xeago joined02:45
noonien left02:48
Goplat joined02:50
jcbitter joined02:50
jcbitter_ left02:51
jcbitter left02:53
jcbitter joined02:53
tang^ left02:56
jottr left02:56
probs left02:56
jcbitter left02:59
jcbitter joined03:00
dre_ left03:05
dre_ joined03:05
R2robot left03:05
thebope joined03:06
dre_ left03:06
inkbottle left03:07
mooasaurus left03:10
fatalhalt left03:10
mooasaurus joined03:10
duderonomy joined03:15
Beam_Inn_ left03:15
navidr left03:17
inkbottle joined03:18
R2robot joined03:19
al-damiri joined03:24
envex joined03:25
nic-hartley left03:29
thebope left03:36
sitaram joined03:38
sitaram left03:39
sitaram joined03:39
boombatower left03:44
pspace left03:44
fphilipe_ left03:49
rafasc left03:52
SkarmoutsosV joined04:00
jottr joined04:00
inkbottle left04:02
pspace joined04:03
thebope joined04:04
pspace left04:04
zulutango left04:05
zulutango joined04:07
jottr left04:13
jstimm left04:14
planigan left04:20
bashfulshell left04:20
planigan joined04:20
thiago left04:21
fphilipe_ joined04:25
igemnace joined04:26
zulutango left04:28
triad left04:29
zulutango joined04:30
thiago joined04:33
ferdna left04:36
Inline left04:36
thebope left04:37
sauvin joined04:47
bambanx left05:01
pks_ joined05:03
pks left05:04
pks_pks05:04
hofmann3900 left05:09
xcm left05:09
xcm joined05:09
random_yanek left05:09
random_yanek joined05:09
kapil____ joined05:12
dfee joined05:13
dfee left05:21
flavius left05:25
TJ- joined05:31
dfee joined05:34
velix joined05:42
velix_home left05:45
spacesuitdiver joined05:52
mase-tech joined05:55
HotBeefDip left05:58
mat001 joined05:59
thiago left06:00
mase-tech left06:02
Serus left06:03
mat001 left06:04
victorqueiroz left06:06
Serus joined06:07
yuriii joined06:07
student_A left06:08
ronskisika joined06:08
SkarmoutsosV left06:08
jottr joined06:09
sahasatvik joined06:13
xlued left06:15
jcbitter left06:16
xlued joined06:16
mud left06:17
jcbitter joined06:17
Noti joined06:21
jcbitter left06:22
andrzejv joined06:22
thefatma joined06:23
jcbitter joined06:23
jnewt left06:27
jnewt joined06:28
n3wborn joined06:29
Tawonga joined06:29
g00s left06:31
jcbitter left06:35
fphilipe_ left06:36
jcbitter joined06:37
kernel-sanders joined06:38
Tawonga left06:39
jcbitter_ joined06:41
gloomy joined06:42
jcbitter left06:43
Goplat left06:45
royal_screwup21 left06:54
oxymoron93 joined06:56
fphilipe_ joined07:00
lankanmon left07:00
lankanmon joined07:01
dodobrain_ left07:03
nowhere_man left07:05
wildermind joined07:06
TJ- left07:06
TJ- joined07:09
ronskisikaRaging_Hog07:11
Raed left07:13
shanks8080 joined07:13
jcbitter_ left07:14
interrobangd joined07:15
jcbitter joined07:16
gloomy left07:16
jcbitter_ joined07:17
jottr left07:19
Raed joined07:19
jcbitter left07:21
fstd_ joined07:22
rkta left07:22
rkta joined07:22
Hi-Angel joined07:22
jcbitter_ left07:23
jcbitter_ joined07:24
oxymoron93 left07:24
Hi-Angel How can I put a custom script to my global config to make for me default commit message upon "git commit"? E.g. I found myself often writing down in git messages name of the directory where a file was changed (e.g. commit changing foo/bar.cpp gonna look like "foo: change bar"), and I want to automatize that07:25
fstd left07:25
fstd_fstd07:25
Hi-Angel So far I only found hooks, but these are per-project, not global nor user-specific.07:26
gloomy joined07:27
TJ- Hi-Angel: that doesn't sound like a useful message since the commit itself contains the list of changed files. Usually the commit message would/should describe the 'reason' for the change07:27
oxymoron93 joined07:28
Hi-Angel TJ-, commit should describe which part of the project was changed (e.g. is it tree-wide, or was did it change shared code, or maybe some other part), and that part is usually named the same as the directory.07:28
jcbitter_ left07:29
shored left07:29
TJ- Hi-Angel: but there is a git-commit message template so there may be a way to customise that07:29
Hi-Angel TJ-, here's an example https://gitlab.freedesktop.org/mesa/mesa/commits/master every commit starts with part of the project that was changed, and that part is present in the list of files.07:29
shored joined07:30
TJ- Hi-Angel: ahhh, you mean you want to auto-determine and prefix the 'sub-system'07:30
Hi-Angel Yep07:30
kernel-sanders there's a hook called prepare-commit-msg, you could do something there07:30
jcbitter_ joined07:30
TJ- Hi-Angel See "man git config" and "core.hooksPath" to have global hook scripts07:31
gitinfo the git-config manpage is available at https://gitirc.eu/git-config.html07:31
arminhajrovic joined07:32
Hi-Angel TJ-, the man says I need to change "$GIT_DIR" variable. I wonder though: won't it break project local hooks?07:34
dfee left07:34
Hi-Angel I.e. ones that usually at ./git/hooks/07:34
TJ- Hi-Angel: no, it doesn't say that07:35
Hi-Angel: it says the default value of core.hooksPath is $GIT_DIR/hooks07:36
Bobdude left07:36
TJ- Hi-Angel: but if you set core.hooksPath to /etc/git/hooks all repositories will use that directory of common hooks07:36
Hi-Angel right, lol, I just figured if I change $GIT_DIR, it gonna break git because the section titled "FILES" describes that all project-local files resides at that dir (e.g. $GIT_DIR/config)07:37
TJ-, aah, I see, I can set the core.hooksPath07:38
Thanks07:38
Right, so I can set it to a global directory where I gonna keep my global hooks. Cool.07:39
TJ- Hi-Angel: Makes me wonder - in wanting ultimate flexibility - if you can declare multiple paths for core.hooksPath !07:40
arminhajrovic left07:41
baako joined07:44
baako hi guys, I changed some files permission and git whats me to commit them. what is the commit link to make git ignore file permission changes?07:44
mimajof joined07:45
Hi-Angel Maybe "git config core.fileMode false" https://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-file-mode-chmod-changes07:45
baako,07:46
baako Hi-Angel: thanks07:46
RustyShackleford left07:52
dege joined07:52
pd09041999 joined07:55
jottr joined07:57
velix left07:57
pd09041999 left07:59
pd09041999 joined07:59
bruhbruh joined08:02
polman joined08:04
Tobbi_ joined08:07
jottr left08:10
jottr joined08:12
TJ- left08:13
spacesuitdiver left08:15
jottr left08:17
yyy joined08:19
theoceaniscool joined08:20
keepLearning512 joined08:23
thefatma left08:25
yyy- joined08:26
yyy left08:27
thefatma joined08:27
dpyro left08:29
cdown left08:30
Anthaas left08:31
keepLearning512 left08:32
ggSo joined08:32
Anthaas joined08:34
interrobangd left08:36
nabil_ joined08:37
nabil left08:37
nabil_ left08:38
nabil_ joined08:38
nabil_ left08:39
nabil_ joined08:39
nabil_ left08:40
ggSo left08:41
zonixo joined08:41
voidSurfr joined08:44
floppydh joined08:44
jottr joined08:47
DasSaffe joined08:47
DasSaffe Hello friends, I need to store a SOCKS5 proxy in my git-config, but it doesn't work for some reason. I checked some ressources, but couldn't do it yet. Last thing I tried was: git config --global http.proxy socks5://myProxy:1080, but I'm still ending up with ssh: connect to host my-gitlab port 22: Connection timed out08:48
$ git config --get http.proxy yields the "correct" output, I think: socks5://myProxy:1080 - This is the exact same proxy I stored in putty and it works there08:48
Working with "Git for windows" if that matters08:49
osse DasSaffe: you're configuring a proxy for http, but using ssh to connect08:49
DasSaffe do I have to change the protocol? Or how can I fix this issue? I'm sorry, kinda new to tunneling08:50
osse DasSaffe: I guess so, which means changing the URL08:51
DasSaffe so with git --locale -e?08:51
and change HTTP:// to GIT:// ?08:51
on the other hand: isn't it possible to store a proxy for both types of connection? SSH and HTTP(S)?08:52
osse I don't follow08:53
what produces the "connection timed out" message?08:54
DasSaffe if I try ssh -T [email@hidden.address] this yields the timeout already08:54
so the clone isn't the problem, it is more the connection itself08:54
osse a http proxy won't fix that08:55
DasSaffe so we need a SSH-proxy, if that is a thing?08:56
reactormonk joined08:56
Xatenev joined08:56
Xatenev hello08:56
im trying to retrieve a single file that has been deleted from the git repo08:56
what i tried was `git checkout hash -- path/to/my/file but it says did not match any files known to git08:57
osse DasSaffe: that is indeed a thing, but that's usually configured in .ssh/config08:57
Xatenev i checked and compared the path twice08:57
any ideas?08:57
osse Xatenev: is the hash correct?08:57
is the path correct?08:57
try git show hash:path08:57
DasSaffe osse: I'm not even sure if windows has the .ssh/config thing, but let me check08:57
Xatenev osse, sorry hash was wrong08:58
lol08:58
works now08:58
I accidently copied the hash from the commit where the file was removed, not the one before08:58
DasSaffe i have the .ssh folder, but not the config-file in it. It *might* be that it can be fixed with just creating it. Never tried that on windows08:59
osse DasSaffe: Git for Windows can either use OpenSSH or Putty. If you use OpenSSH then you can do it that way. If not you need to check the putty docs because I don't know08:59
DasSaffe i mean, the fun thing, it works with putty08:59
I added the proxy-settings in Putty and can connect (via port 22) to my AWS-server08:59
Putty has settings for deploying a proxy. I did that and tried to connect - and it worked.09:00
Xatenev left09:00
Noti left09:00
osse DasSaffe: then configure git to use putty instead of openssh09:01
DasSaffe can I check what method is currently used?09:01
pd09041999 left09:02
Hi-Angel Just wanted to share: I implemented the idea I asked about, to create default template in "git-commit" in any project https://github.com/Hi-Angel/dotfiles/commit/9e7a3e9db4713788103ccbaa4980ef0a66f290bf I almost wrote the hook in sh, but it turned out to be so awkward that I rewrote it in python.09:03
osse DasSaffe: I think it's as easy as: git config --global core.sshCommand plink.exe09:03
DasSaffe: if that doesn't work I would reinstall Git for Windows and choose Plink in the install wizard09:04
bergercookie joined09:04
queip left09:05
DasSaffe i'll give it a shot. thank you very much, osse :-)09:06
jottr left09:08
blackbaba joined09:09
blackbaba left09:09
ujjain joined09:10
DasSaffe left09:15
bergercookie left09:15
rsrx joined09:20
catsup left09:21
catsup joined09:21
Hi-Angel (FTR: fixed the hook in another commit to make it work with "git commit --amend")09:22
catsup left09:22
catsup joined09:22
Noti joined09:23
queip joined09:31
al-damiri left09:35
Lucas_Gray joined09:42
jottr joined09:43
rsrx left09:43
molusc left09:50
Noti left09:51
YuGiOhJCJ joined09:51
rsrx joined09:55
lankanmon left10:01
thefatma left10:04
misuto left10:08
misuto joined10:08
hussam left10:12
ChrisLane left10:12
zonixo left10:13
ChrisLane joined10:13
zonixo joined10:13
ChrisLane left10:16
paulwood joined10:17
paulwood left10:18
paulwood joined10:19
Raging_Hog left10:19
SkarmoutsosV joined10:21
raatiniemi joined10:25
paulwood left10:28
SkarmoutsosV left10:28
Tawonga joined10:29
paulwood joined10:29
paulwood left10:30
figuinhas joined10:30
baako left10:34
acidjnk joined10:34
acidjnk hello10:35
molusc joined10:35
Hi-Angel Hey acidjnk10:35
acidjnk Still the same problem in the last 4 months. Since 2 people joined the team, it happens all the time that I just do an innocent fetch and suddenly have 20, 30, 50, 100 supposedly unpushed local commits. Of stuff that actually has been pushed weeks ago.10:35
osse tell your coworkers to not force push all the time10:36
acidjnk Best explanation is that somebody does a reintegrate of already pushed commits, right?10:36
We also had the forced push theory, but everybody denies it.10:36
osse what reports that you have so many unpushed commits?10:37
Noti joined10:37
acidjnk usually my IDE, Intellij Idea. I'm pretty sure the command line tool would as well, though.10:37
osse does your IDE also rebase commits automatically or something?10:39
thefatma joined10:39
acidjnk No, but when there is a conflict, it often gives a choice between rebase and merge. I never rebase, but others sometimes do.10:40
Not a big fan of how the IDE hides what it actually does, and how it tries to unify the UI no matter if I use CSV, SVN, Git or whatever, but I think in this case it's not the IDE but someone doing something really strange.10:42
voidSurfr left10:43
osse It's hard to tell what's going on without more info10:44
acidjnk I certainly won't get any information out of the other people. They stick to their story.10:45
osse I mean information from git10:45
like "git status" whenever your IDE presents you with this message10:45
also, how do you know which exact commits your IDE is referring to?10:46
acidjnk When I go into the push dialog, it first shows what it thinks should be pushed, and then I can confirm or abort. So it probably runs a git status to create the dialog, then git push, but I can't tell for sure.10:46
mowcat joined10:47
osse Can you take one such commit and look for it in git log to confirm it has already been pushed?10:48
acidjnk I and many others have done that many times, it certainly has been pushed. We even stopped trusting anything we see at our screen and have other people on their computer confirm that it has been pushed. We would be in deep trouble if the commits of sometimes 3 weeks would not have been released long ago, that would really stand out.10:49
osse confirm how?10:50
acidjnk Also it's not MY commits that show up as unpushed, but other people's commits as well. How would they get on my local clone if they had not been pushed?10:50
osse git log? or look at the code?10:50
SerialSmile joined10:50
acidjnk log? lack of 50 new blocker tickets and angry customer calls? It's really A LOT that supposedly is not pushed. And how would someone else's commit even get to MY computer if not through push and fetch?10:51
osse The code that was in those commit has certainly been pushed; I don't doubt that.10:52
But someone might have (unintentionally even) taken all the changes in 20, 30, 50, 100 commits, squashed them all into one big commit and pushed that10:53
lacrymology joined10:53
acidjnk Maybe it's that - how would that even be done if you wanted to?10:54
osse git reset --soft HEAD~100; git push --force10:54
or git merge --squash10:54
lankanmon joined10:54
acidjnk thanks, that's a good theory!10:54
osse or an interactive rebase in wich all commits are marked "squash"10:55
acidjnk Could a rebase to an "equivalent" URL do that, e. g. //githost/ instead of //githost, or //192.168.25.25 instead of //githost?10:56
osse I don't know what rebasing to an URL means10:57
acidjnk I think I mixed things up there - setting a different remote I probably meant.10:58
gloomy left11:00
learningc left11:00
osse i don't think any rebase operation could do that by its own at least11:02
find a change you have in one of your unpushed-but-actually-pushed commits. on a different computer run git blame on the relevant file, find out which commit Git thinks that change belongs to11:03
look at the author of that commit, suspend without pay11:03
the first part was serious11:04
theoceaniscool left11:07
acidjnk ah thanks, finally a way to possibly catch him! :-)11:08
dansan left11:09
osse or rather you can make a separate clone of the repo on your own machine. that way you are guaranteed to not get false results due to uncommited/unpushed changes, and you can work on your own little mueller report in peace11:10
acidjnk Right, even after "it happened" I can still get a clone that will certainly have no unpushed commits. Good idea.11:11
fakhraee left11:13
mort joined11:13
emsjessec joined11:13
lmln joined11:13
Tawonga left11:15
lmln git fsck reports sha1 mismatch and bad object for a abc123 object, i found original file and git hash-object returns the same abc123 hash, i run the command with -w option, but git fsck still reports this object as bad/sha1 mismatch11:15
dansan joined11:15
lmln any idea what am i doing wrong?11:15
ChrisLane joined11:16
thefatma left11:19
polman left11:22
elichai2 joined11:24
fakhraee joined11:26
learningc joined11:27
nuc left11:33
nuc joined11:36
emsjessec left11:40
thefatma joined11:41
pks left11:41
bruhbruh left11:43
mowcat left11:43
pks joined11:44
dansan left11:47
yyy-yyy11:50
jungsubk joined11:50
figuinhas left11:53
figuinhas joined11:54
fakhraee left11:56
millerti left12:02
Darcidride joined12:04
gloomy joined12:06
fakhraee joined12:08
victorqueiroz joined12:15
bsanford joined12:16
_0xbadc0de_ joined12:16
bsanford left12:17
_0xbadc0de_ so I have this path in my gitignore file12:18
Final/deps/llvm_src/*12:18
bashfulshell joined12:19
_0xbadc0de_ but when I do git status12:19
I am spammed by loads of messages like this: /Final/deps/llvm_src/llvm-7.0.1.src/utils/lit/tests/Inputs/max-failures/lit.cfg12:19
so.. wtf?12:19
shouldn't this be supressed?12:19
osse What does git status say before all those lines?12:19
_0xbadc0de_ I cant know, too many lines12:20
osse git status | less12:20
_0xbadc0de_ (I am using git bash on wind000ze)12:20
Noti left12:20
_0xbadc0de_ https://0bin.net/paste/lVMk32U4IJjBk7X2#934cHVKAhks4Qtp2P-4iH9vi1vG0auGc6iS5044+zRv12:21
there it is12:22
Habbie _0xbadc0de_, probably better to use a pastebin with working https12:22
nic-hartley joined12:22
_0xbadc0de_ Habbie, why=12:22
?12:22
osse So all those files are staged for commit?12:22
Habbie _0xbadc0de_, because it's a lot of clicks to view your paste now12:22
osse Gitignore means nothing then12:22
_0xbadc0de_ just add the certificate and be happy12:22
interrobangd joined12:23
_0xbadc0de_ osse: I dont want to add llvm_src for commit12:23
and I dont want to receive all those messages12:23
srsly I mean wtf am I doing wrong12:25
how can I prevent to be spammed with hundreds of lines in git statys12:25
"git status"12:25
osse all those files are mentioned right under .gitignore ?12:25
sat-aton joined12:26
_0xbadc0de_ I am using the ASSterisk to imply I dont want directories or subdirectories12:27
Final/deps/llvm_src/*12:27
osse just answer the question12:28
_0xbadc0de_ I just did12:28
I dont know12:28
satifant left12:28
osse then make a pastebin of the whole git status12:29
interrobangd left12:29
osse My guess is these files are part of the repo, and in that case gitignore is irrelevant12:29
!ignore_tr12:29
gitinfo [!ignore_tracked] Git only applies ignore patterns to untracked files. You can't use ignore patterns to ignore changes to files that are already tracked by git. To remove files only from git, but keeping them on disk, use git rm --cached <file>. Still, see https://gist.github.com/1423106 for ways people have worked around the problem.12:29
azwieg103 left12:30
thefatma left12:30
rewt left12:31
rewt`` joined12:31
thebope joined12:32
rewt``rewt12:32
Noti joined12:32
thebope left12:36
learningc left12:37
jungsubk left12:37
learningc joined12:39
angelo_ts joined12:41
angelo_ts hi all,12:41
i am getting the "fatal: index-pack failed" on a clone, by yocto12:41
(fatal: The remote end hung up unexpectedly)12:42
i read around for some workaround on the net, nothing worked for me12:42
YuGiOhJCJ left12:43
thefatma joined12:43
acidjnk left12:47
_0xbadc0de_ left12:47
learningc left12:48
emsjessec joined12:49
savolla joined12:50
interrobangd joined12:51
isBEKaml joined12:53
howell joined12:58
macaronus left13:00
robertparkerx joined13:07
robertparkerx I'm trying to understand my workflow a bit more. Sometimes there are merge conflicts but they are not normal how the video shows that you all suggest watching -- shows HEAD. Sometimes mine will show <<<< Upstream and <<<< stash13:08
osse robertparkerx: the words after <<<< or >>>>> just indicate where those changes come from13:10
robertparkerx: in the cases you mention they are conflicts arising from rebasing or popping a stash13:10
Other than that it's the same13:11
robertparkerx sometimes the blocks don't contain all of what it should13:11
osse, I am applying a stash sometimes and merge a feature branch13:11
merge a feature branch into dev*13:11
hussam joined13:13
keepLearning512 joined13:14
CodeSlingerPaul joined13:15
nic-hartley left13:16
osse Hmm is there a question here?13:16
If something is missing from the <<< >>> then git managed to resolve that by itself, so the contents are outside13:17
StucKman joined13:17
howdoi left13:18
bluezone joined13:18
StucKman left13:18
robertparkerx Shouldn't the blocks <<<< >>>> contain the code that it should for me to choose from? I was told sometimes it could be a combination of two13:19
of the two*13:19
silverballz left13:19
jungsubk joined13:20
keepLearning512 left13:20
robertparkerx sometimes I found it was missing vital pieces.13:21
silverballz joined13:21
osse hard to tell without seeing an actual example13:21
what was missing?13:21
robertparkerx Just some markup and blocks of the javascript13:22
osse were they not present before the <<<< or after the >>>> ?13:22
robertparkerx No13:22
igemnace are you sure they don't already exist outside the <<< >>>?13:22
robertparkerx NNot that I remember13:22
igemnace git only does that for things it can't merge on its own13:22
pd09041999 joined13:23
robertparkerx It might have. I'm just trying to learn more about it. Sorry.13:23
I don't have a example here in front of me. I managed to fix the conflicts before. I just thought I would ask you all.13:23
igemnace nothing to apologize for13:24
gxt left13:27
pd09041999 left13:29
pd09041999 joined13:30
pd09041999 left13:34
pd09041999 joined13:34
RoriconKnight joined13:39
pd09041999 left13:42
howdoi joined13:42
jungsubk left13:45
junon joined13:46
foist joined13:50
rafasc joined13:50
yonder left13:52
reactormonk left13:54
Atlenohen joined13:56
kjartan left13:56
thiago joined13:58
isBEKaml_ joined14:00
isBEKaml left14:00
kjartan joined14:01
boombatower joined14:03
spaceone joined14:03
spaceone hi, what is wrong with:14:03
bl = "!bl () { ~/git/depot_tools/git_hyper_blame.py --ignore-file ~/.ignore_blame_commits \"$1\"; }; bl"14:03
git alias14:03
it says: fatal: no such path __init__.py in 7ab05c7b75cd1830f1a68f577f8275e58fd1d57a14:03
if i call it on the CLI directly it works14:04
foo left14:04
Lucas_Gray left14:04
thebope joined14:04
Lucas_Gray joined14:06
greggerz joined14:07
isBEKaml_isBEKaml14:07
Tawonga joined14:08
reactormonk joined14:08
rafasc what is 7ab05c7b75cd1830f1a68f577f8275e58fd1d57a?14:08
thebope left14:09
rafasc $git show <hash>;14:09
spaceone rafasc: e regular commit14:10
rafasc spaceone: does $git ls-tree -r <hash>; show the __init__.py?14:11
spaceone but yes that commit doesn't have that path. but hmm14:11
rafasc: no14:11
oh it does14:11
rafasc maybe it cares from where you are running the alias?14:12
interrobangd left14:12
spaceone seems there is some difference14:12
rafasc because alias are always ran from the top-level14:13
spaceone https://bpaste.net/show/e4af422ece2f14:14
oh hmm14:14
can i disable that?14:14
okay it works with an absolute path14:14
Inline joined14:15
rafasc ahh!!14:15
I know.14:15
git is expanding your 'bl' alias.14:16
duderonomy left14:16
rafasc spaceone: instead of using bl() {...}; bl; use f(){...};f;14:17
spaceone renaming bl() into f()?14:18
junon left14:19
gloomy left14:19
spaceone rafasc: i don't understand14:19
how would the correct line be?14:19
rafasc on your paste: at line 16:12:21.491732 run-command.c:209 ...14:20
looks like your alias is being expanded twice?14:20
justanotheruser left14:23
spacesuitdiver joined14:26
andrzejv left14:28
rafasc spaceone: what does your $ git config --get-all alias.bl; say?14:30
and what version of git are you using?14:30
spaceone rafasc: !f(){ ~/git/depot_tools/git_hyper_blame.py --ignore-file ~/.ignore_blame_commits "$@";};f14:31
git version 2.11.014:31
rafasc but in the above line you mentioned $@, did you change it?14:33
al-damiri joined14:34
spaceone rafasc: i testes $1 and \"$@\"14:34
both don't work14:34
rafasc are you using windows?14:34
Darcidride left14:34
rafasc because my trace output is slightly different from yours.14:34
spaceone nooo14:34
interrobangd joined14:35
rafasc is your __init__.py at the root?14:38
Siecje joined14:38
csd_ joined14:39
Siecje I am resolving a merge conflict. How do I keep a file that says deleted by us?14:39
_ikke_ git checkout --theirs <filename> I believe14:39
rafasc Siecje: git checkout --theirs14:39
_ikke_'s version14:40
Siecje Thanks.14:40
lmln left14:42
justanotheruser joined14:42
thomasrossGuest9773714:42
thomasross_ joined14:42
Guest97737 left14:42
thomasross_thomasross14:42
rafasc spaceone: tried on 2.11, and the trace output matches yours. So I guess the alias is correct. Where in the hierarchy of the repository is the file you are trying to blame?14:43
csd_ Our project has directories ./src/main/antlr and ./src/main/common/src/main. We'd like to move the former to ./src/main/antlr4 and the latter to ./src/main and preserve the commit log history on the individual files. As a wrinkle, we used to have files of similar names at ./src/main/... and when we do "git mv", we are losing log history. Git seems to be getting confused. I think this is possible with git filter-branch, but I'm not exactly c14:44
Note that we're looking to do this as a new repo, not to rewrite the entire existing repo.14:44
spaceone rafasc: it's in a subdirectory doc/14:45
interrobangd left14:45
rafasc spaceone: try git bl :/doc/__init__.py14:45
rohit[m] joined14:45
spaceone rafasc: doesn't work, same error14:46
savolla left14:46
rafasc is doc a submodule?14:47
spaceone no14:47
rafasc can you call git_hyper_blame.py from your top-level directory? and see if it behaves the same?14:48
RustyShackleford joined14:49
Phylock joined14:49
spaceone rafasc: calling it directly behaves fine14:50
rafasc doesn't make sense.. Can you paste the entire thing you tried?14:51
SpeakerToMeat joined14:51
rohit[m] left14:53
nezZario Really stupid question but I dont'[ see it in the docs anywhere. How do I even use 'recursive-ours' (not just 'ours', but recursive->ours) merge ?14:53
git merge -s recursive-ours does not work14:53
spaceone rafasc: https://bpaste.net/show/8beeff6afafe14:53
rafasc nezZario: -s recursive -Xours;14:54
rohit[m] joined14:54
goiko left14:54
mowcat joined14:54
rafasc or just -Xours, because -s recursive is the default. But being explicit doesn't hurt.14:54
inkbottle joined14:55
rafasc spaceone: it works correctly on line 2. Experiment saying ./__init__.py14:56
rafasc is not sure if the ./ is expanded after or before.14:57
Siecje How can I diff the current branch with another branch so that I can modify the current branch?14:57
I did git difftool --dir-diff branch..master but when I modified the side which is the current branch there were no changes.14:58
spaceone rafasc: ./file → same error14:58
xcm left14:58
xcm joined14:59
bashfulshell left15:00
iam730 left15:00
royal_screwup21 joined15:00
nezZario thanks15:01
AbleBacon joined15:01
nic-hartley joined15:01
gloomy joined15:01
nezZario i don't know why but this designer we have, he isn't very adept with git, but somehow he constantly creates merge conflicts, and there is only 1 other person working on the repo, i have no idea wtf he could be doing15:01
triad joined15:02
kernel-sanders lol15:02
thiago left15:02
kernel-sanders probably because you're working on the same files15:02
split them up15:02
csd_ does anyone have any insight regarding my question at 10:44 ?15:02
rafasc don't shame the designer if you are not able to figure what he is doing wrong. https://www.youtube.com/watch?v=4S3h5L21KlA15:03
kernel-sanders csd_, yeah I did something similar with filter branch15:03
csd_ nezZario: maybe try to talking to him and helping him get better15:03
Noti left15:03
rafasc csd_++15:03
_ikke_ csd_: We live probably in a different timezone15:04
csd_: So that time reference is kind of ambiguous15:04
csd_ _ikke_: should have provided UTC :)15:04
20 minutes ago15:04
rafasc csd_: git doesn't have renames. Renames are shown heuristically.15:05
zonixo left15:05
rafasc the best you can do is to move the directories on separate commits, with no additional changes.15:05
kernel-sanders you absolutely can rewrite the history with git filter-branch15:06
rafasc So that later you can tell tools like git log to follow renames and give it a high threshold to prevent false positives.15:06
Revan- joined15:06
Revan- left15:06
kernel-sanders if you simply move the directory git blame won't be informative15:06
pd09041999 joined15:06
csd_ the problem is that in 2013 we had a file at <new-path> of the same name as the file we want to move now. so we're losing like 5 years of log history on that particular file. is that just unavoidable?15:07
rafasc assuming you can rewrite the entire history, sure. but !rewrite15:07
gitinfo Rewriting public history is not recommended. Everyone who has pulled the old history will have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push --force-with-lease <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum15:07
pd09041999 left15:08
rafasc csd_: you are not losing history. git doesn't loose history.15:08
lose*15:08
csd_ rafasc: it's not available in "git log <file>"15:08
Sasazuka joined15:08
pd09041999 joined15:09
rafasc csd_: have you tried asking git to follow renames?15:09
csd_ yes15:09
rafasc changing the threshold with -C and -M ?15:09
csd_ hm, no15:09
czart joined15:09
ThiefMaster is there any reason there's no short option for --force-with-lease in git-push? normal --force has -f and as a lazy person i'm VERY MUCH inclined to use -f instead of the (usually better!) alternative that's more to write15:10
kernel-sanders does git log --follow actually work though?15:10
csd_ rafasc: will have to look into that15:10
rafasc yea, --folow as well.15:11
but follow is not perfect, it has some weird corner cases if I remember correctly.15:12
goiko joined15:12
csd_ rafasc: seems not to work. not sure if i need to tune -M perhaps15:13
sphalerite Hi folks, I want to make sure a commit consists only of moving chunks of code around. Can I somehow apply the rename detection at a more granular level to detect moving stuff within files?15:14
(all these chunks consist of complete lines only)15:15
bin_bash wait what15:15
reactormonk left15:16
Emperor_Earth joined15:16
rafasc ThiefMaster: replacing the default -f to mean --force-with-lease has been suggested before, but breaks backwards compatibility.And it isn't as safe as people think: https://public-inbox.org/git/xmqqvan8jdje.fsf@gitster.mtv.corp.google.com/15:19
and by the sounds of it, --force-with-lease without arguments might even be removed in the future :O15:21
wildermind left15:25
orbyt_ joined15:28
rafasc ThiefMaster: https://public-inbox.org/git/xmqqy3rngeg5.fsf@gitster.mtv.corp.google.com/15:31
dpyro joined15:31
rafasc sphalerite: git doesn't track individual changes. It makes snapshots of the project as a whole.15:32
Xeago_ joined15:32
sphalerite rafasc: yes. And it can detect when file a was removed, and file b was created with the exact same contents as a used to have, that this is a rename.15:33
rafasc sphalerite: things like diff --color-moved, can show you lines moved, but the 'moves' aren't recorded as 'moves'.15:33
sphalerite rafasc: ah, that sounds like what I want!15:33
Xeago left15:35
Xeago_Xeago15:35
inkbottle left15:35
sphalerite rafasc: yep, looks good. Now I just need to understand the colours :D thanks!15:36
rafasc sphalerite: there are various color modes you can try.15:36
reactormonk joined15:37
wildermind joined15:37
oxymoron93 left15:37
foo joined15:38
foo Trying to set up my second repo on gitolite. It's been a minute since I originally set that up. In following http://gitolite.com/gitolite/fool_proof_setup ... everything seems to work except "This will automatically create a brand new repo called "foo" on the server, and alice will be able to clone from it, or push anything to it." - it seems like modifying gitolite-admin repo, committing, and pushing, isn't15:39
automatically creating the repo on the server. Any tips on troubleshooting? Thank you15:39
Regon joined15:41
rafasc foo: perhaps #gitolite15:42
foo rafasc: oh, didn't realize that was a thing - thank you15:42
rohit[m] left15:43
rafasc so much for "fool_proof_setup" hehe15:43
rohit[m] joined15:44
ricekrispie joined15:44
orbyt_ left15:45
theoceaniscool joined15:45
khisanth_ left15:45
fphilipe_ left15:46
rafasc foo: I think its two things: You need to commit the changes to the admin repo, and 'alice' will be able to push pull from said repo.15:46
in that case, the 'foo' repo.15:47
ricekrispie2 left15:47
foo rafasc: lol.15:47
rafasc: I wonder if it gets created on first pull... I was trying to push to the new repo15:47
foo tries15:47
foo rafasc: ... wait, are you calling me the fool?! haha. *delayed*15:47
thiago joined15:48
rafasc foo: I wasn't, but maybe the gitolite folks are.15:48
Envil joined15:49
dpyro left15:49
hqdruxn08 left15:49
foo :)15:49
rafasc and technically, it would be worse than fool, because the guide is 'fool-proof'. hehe15:50
acercle joined15:50
foo haha, nice15:51
dpyro joined15:51
impermanence joined15:51
Mattiasl_ left15:52
rafasc they say: "clone from it, or push anything to it."15:52
Habbie i'm pretty sure that gitolite allows wildcard permissions, in which case it cannot reasonably create all repos for you beforehand15:53
so it would make sense if it also requires a pull/push to create a singular one15:53
rafasc so, if you were trying to push and it didn't work, you either did something wrong along the way, or the guide is incomplete.15:53
Habbie yes15:53
i'd recommend against checking on the filesystem - instead check for the right behaviour15:54
wootehfoot joined15:54
dfee joined15:54
rafasc http://gitolite.com/gitolite/wild/ used to be thing15:55
foo rafasc: thanks, yeah - I try to push to it and I get an error which I've tried to google. More here: https://paste.ofcode.org/BWFnjxSWESDzrqgpRkEWnG - the error "Please make sure you have the correct access rights and the repository exists" - the repo doesn't exist, when I do ls on the server end, I expect this to create it.15:56
rafasc / Habbie - mind you, I have another repo that's been working fine, simply hitting this adding a second repo15:57
Habbie ignore line 40 and 4115:57
that's your local git client making assumptions about how things work15:57
foo aha! ok15:57
Habbie instead, focus on 36-3715:57
those are from gitolite15:57
and i think they are telling you that you matched none of your explicit rules15:57
foo user, repo name, all match from what I can see. Unless my key ... no, can't be that, since the same key works on another repo15:58
khisanth_ joined15:59
Habbie for the same user name?15:59
foo yup, I've triple checked this stuff now too16:00
... which is why I'm so confused16:01
thiago left16:01
foo pushes something in his other gitolite repo just to make sure that worked fine, it dtoes16:01
tabakhase foo new branch? need "C"16:02
foo tabakhase: on master, hmm16:02
tabakhase: It's a new repo, to be clear16:02
"p" per https://paste.ofcode.org/BWFnjxSWESDzrqgpRkEWnG16:02
tabakhase if its currently an "empty bare repo" .- it would be a "new" branch yea...16:04
howell left16:04
thiago joined16:05
howell joined16:05
Mr__Anderson joined16:06
Lucas_Gray left16:07
foo tabakhase: ok, so I believe per my conf, it's all good. I did do a git init . in a dir, then I basically ran git push --set-upstream origin master and got the error16:07
tabakhase also, "ssh to it" - afaik it should kick you after nicely giving you a list what user you are and what you have access too16:09
and maybe try the whole thing with a clone before permission-shuffeling...16:09
mud joined16:09
Habbie oh, indeed it does that here16:09
the list when you just ssh16:09
foo Habbie / tabakhase - ah yes, I didn't include that piece of the puzzle but I did do that. It actually DOES NOT show me the latest repo (p) I added... as if it's not seeing my latest config16:11
Habbie are you sure you pushed it?16:11
foo yes, triple checked. I get the sense whatever happens here I am going to facepalm. But I just, within the past hour, cloned the gitolite repo locally, edited the config, git commit -a -m "Added new repo"; git push ... all seemed to push conf back fine16:12
Piraty joined16:12
foo (appreciate you guys talking this through, I'm baffled myself) What I know to be true: 1) when I push I get the error: FATAL: W any p m DENIED by fallthru ... and when I ssh git@b ... it doesn't show the latest repo I add16:12
as if I need to restart a gitolite service or such, but I don't think that's a thing16:12
tabakhase yea not a thing - (no service at all, all just push-hooks and authorized_keys files magic ;D)16:14
Piraty hi. i have the unfortunate situation to have to jiggle with repositories imported from svn, and i have an initial import (big and uggly) but alot of (local) branches and now i invested some time to make a proper import from svn via git-svn clone ...16:14
now how would i import the branches from repo1 to repo2 with the least hazzle (both having a *very* similar codebase since originating both from the same svn repo)16:14
?16:14
mikecmpbll joined16:15
foo tabakhase: that's what I thought16:15
foo tries to modify conf again and push for kicks16:15
foo did that, tried to ssh git@b ... still doesn't show the latest repo. So why isn't gitolite picking up my latest repo from the conf. hmm16:16
tabakhase Piraty export as patches and replay? -- could even pull "both trees" into the same git-repo, and then use casual rebase --onto...16:16
foo ... unless there is a permission issue on the server and it's not actually writing?16:17
Piraty export as patch? git show <id> > /tmp/patch1 seems hard with many commits16:17
tabakhase (note that this is NOT worktree or submodule im talking about)16:17
Puffball joined16:17
foo I did migrate this from one system to another many months ago16:17
foo double checks16:17
sahasatvik left16:17
foo I do have multiple gitolite-admin repos frmo different system's I admin'd it from but I can't imagine that's the issue16:18
Piraty thanks tabakhase16:18
mven joined16:20
mven left16:20
thefatma left16:20
tabakhase Piraty in very "rough" - potential workflow would be smth like "git clone oldrepo; cd oldrepo; git remote add newreo; git fetch newrepo; git rebase XYZ --onto newrepo-master-sha1"16:20
csd_ left16:20
Piraty tabakhase: https://stackoverflow.com/a/42802061 mentions something like this, but that "squashes" all commits into one patch, thus loosing my comments16:21
foo I tried http://gitolite.com/gitolite/emergencies.html#fixing-botched-repos - no go.16:21
vishal Piraty: something like this might work: git format-patch base..branch1 --stdout > patch.mbox; git am -3 patch.mbox16:22
that will preserve all commits16:22
tabakhase Piraty thats "ugly" as that patchgen is "just diff" in that strupid stackoverfail post ;D -- if you use actual git to make those patches commits are retained16:22
dermoth_ joined16:23
dermoth left16:23
Piraty note both repos share no history (from git's view in terms of hashes)16:23
dermoth_dermoth16:23
Puffball left16:24
vishal if patches apply cleanly, format-patch + am won't care16:24
kh31d4r joined16:24
Mattiaslndstrm joined16:24
mat001 joined16:25
renich joined16:26
tang^ joined16:27
tabakhase yea thats "fine" (ive done a very similar workflw when "cutting" repositorys in the past - (example usecase here https://git-scm.com/book/en/v2/Git-Tools-Replace )16:27
doesnt apply 1:1 to your case, but should be fairly similar ((the "how and what" - not the actual "replace" part, you wont need that at all i guess))16:28
so, the """echo 'get history from blah blah blah' | git commit-tree 9c68fdc^{tree}"""" step is replaced with "using your other repo"16:30
Piraty thanks. format-patch and am seem to be the tools i need to start16:30
theoceaniscool_ joined16:31
dansan joined16:31
SerialSmile left16:31
theoceaniscool left16:31
Puffball joined16:36
Hi-Angel left16:37
duderonomy joined16:37
mikecmpbll left16:37
orbyt_ joined16:38
lucasb joined16:39
dpyro left16:41
dpyro joined16:42
Puffball left16:42
sahasatvik joined16:44
kreyren left16:45
duderonomy left16:46
vavkamil joined16:49
pupsikov joined16:50
rohit[m] left16:50
rohit[m] joined16:51
Sonderblade joined16:52
Sonderblade left16:52
jokajak3jokajak16:53
Mattiaslndstrm left16:58
Sonderblade joined16:59
pupsikov left17:01
Mattiaslndstrm joined17:01
nic-hartley left17:02
rohit[m] left17:03
rohit[m] joined17:03
nowhere_man joined17:04
thebope joined17:06
Noti joined17:06
Noti left17:08
steven left17:11
steven joined17:13
foo rafasc / tabakhase - FYI, my gitolite issue was a perms issue. Simply doing chown -R git.git * in my home directory made everything worked properly. Remnants of an old server move, apparently17:13
AtumT joined17:13
foo rafasc / tabakhase - appreciate the guidance nonetheless17:13
tabakhase how odd ;D - but cool cool17:13
rafasc :conffetti:17:14
tanuki_ left17:15
jottr left17:18
sahasatvik left17:19
dansan left17:19
orcainbox left17:20
Tibian joined17:21
plexigras joined17:24
dansan joined17:27
Revan- joined17:29
rsrx left17:29
triad left17:31
sauvin left17:32
SkarmoutsosV joined17:33
Revan- left17:34
apoos_maximus joined17:37
mimajof left17:38
thebope left17:39
orcainbox joined17:48
jottr joined17:49
jungsubk joined17:50
foist left17:52
figuinhas left17:52
galaxie left17:52
galaxie joined17:54
HotBeefDip joined17:55
hofmann3900 joined17:57
duderonomy joined17:59
tm007 joined18:03
jottr left18:03
orbyt_ left18:03
Copenhagen_Bram left18:06
Elon_Satoshi joined18:06
nowhere_man left18:07
duderonomy left18:09
kjartan left18:09
Revan- joined18:11
courrier joined18:12
orbyt_ joined18:13
Elon_Satoshi left18:14
kjartan joined18:14
Elon_Satoshi joined18:14
thefatma joined18:16
kreyren joined18:17
Ignacy joined18:17
jottr joined18:18
duderonomy joined18:18
Tibian left18:19
Tibian joined18:19
duderonomy left18:19
HotBeefDip left18:21
fphilipe_ joined18:23
cousteau joined18:28
cousteau I added git notes to a commit, amended the commit, and lost the notes. Any way to recover them?18:28
Habbie cousteau, use 'git reflog' to find the pre-amend commit id, then git notes show <id>? i have not tried this18:29
cousteau Maybe I should've seen this coming, it made sense that it could happen since the commit changed.18:29
Habbie: well I'll be damned, that worked as a charm18:30
Habbie yay18:30
veegee_veegee18:30
cousteau Best part, the notes were a TO DO that I just did, so I guess I can delete the note18:31
Habbie hah18:31
perfect18:31
You can therefore inspect the18:32
history of the notes by invoking, e.g., git log -p notes/commits.18:32
cousteau TODO: test that this actually works because it's Friday night and I want to go home18:32
Habbie otherwise apparently there would have been this18:32
cousteau (pretty much, not with those words though)18:33
rafasc cousteau: in the manpage of notes, there is a section where it instructs how to make notes persist amends and rewrites in general.18:34
cousteau Oh18:34
Habbie which, apparently, happens by default, unless somebody changed that18:34
cousteau Says it defaults to true though18:35
Habbie yes, so that's interesting18:35
cousteau Does notes.rewrite.amend apply to git commit --amend though?18:38
rafasc but notes.rewriteRef doesn't have a default value.18:39
cousteau rafasc: oh I see18:39
Habbie oh, right18:41
blackandblue joined18:43
orbyt_ left18:43
rkta left18:44
rkta joined18:45
Sonderblade left18:48
Sonderblade joined18:51
thefatma left18:52
hqdruxn08 joined18:55
spacesuitdiver left18:56
bookworm left18:56
bookworm joined18:56
jungsubk left18:58
bvdw6 left18:59
kreyren can i make a new release on github using git?19:01
_ikke_ kreyren: no, but there is a tool called hub from github which can do it19:01
kreyren _ikke_, ty19:01
thunderbirdtr joined19:02
cousteau left19:02
kapil____ left19:02
Habbie note that just pushing a tag, with git, will cause an entry to appear on the github releases page19:04
but it's not an actual release19:04
RoriconKnight left19:04
Achylles joined19:06
kreyren Habbie, elaborate pushing tag? I need a method for end-user to download compiled version of said software which i want to fork and transfer on rolling release19:06
_ikke_ Then you need an actual release19:06
Habbie ^ that19:06
kreyren noted19:07
or can end-user download .zip/tar.gz from tag?19:07
_ikke_ Yes, but that's just the source tar19:08
Nothing pre-compiled19:08
kreyren i see, ty19:08
apoos_maximus left19:08
vishal I think github creates tarballs for simple tags too (without going through the github draft a release process)19:09
https://github.com/torvalds/linux/releases19:09
Habbie depending on your needs, you may want to look at doing the compiling in something like travis-ci or circleci, and have them make the release19:09
vishal, yes - that's what i meant, but it's just a tree dump19:09
rohit[m] left19:10
kreyren Habbie, the compilation is not resource heavy so i want to do it locally .19:10
Habbie kreyren, ok :)19:10
orbyt_ joined19:10
vishal ah yeah I see19:10
rohit[m] joined19:11
mven joined19:15
Tibian left19:15
rohit[m] left19:15
AtumT left19:16
AtumT joined19:16
paulwood joined19:18
borkr joined19:18
mikecmpbll joined19:21
czart left19:21
borkr left19:22
xcm left19:23
xcm joined19:23
AtumT left19:23
lomex joined19:24
AtumT joined19:24
gxt joined19:27
jubal left19:30
apoos_maximus joined19:32
galaxie left19:33
nowhere_man joined19:34
galaxie joined19:36
SkarmoutsosV left19:37
emsjessec left19:43
CryptoDavid joined19:43
duderonomy joined19:46
n3wborn left19:48
theoceaniscool_ left19:48
lomex left19:49
Envil left19:49
n3wborn joined19:49
theoceaniscool_ joined19:50
blackandblue left19:53
Piraty left19:53
lacrymology left19:55
acidjnk joined19:55
dviola left19:56
nly joined19:58
floppydh left19:58
voidSurfr joined19:58
jungsubk joined19:58
inkbottle joined20:00
mven left20:03
Oatmeal joined20:07
m0viefreak joined20:08
elichai2 left20:11
jungsubk left20:12
AmShaegar_ left20:14
AmShaegar joined20:15
Lucas_Gray joined20:16
AtumT left20:16
nly I have project/master which is the latest release of <project> and a feature branch that is kind of old <feature>, How can I pull the specific commits I want from <feature> to master?20:17
dpyro left20:17
dpyro joined20:17
moritz nly: if you want to copy over just some selected commits, cherry-pick is your weapon of choice20:18
nly Thanks20:19
_ikke_ if you want to move the branch, git rebase is more appropriate20:19
nly _ikke rebase sounds like the thing i am trying to achieve20:20
_ikke_ git rebase master <brachname>20:20
Kaedenn joined20:21
Kaedenn What's the .gitignore syntax to re-include a file after excluding a pattern?20:21
_ikke_ !<pattern>20:21
Kaedenn ignore: *.lis, include: headers.lis20:21
Thanks20:21
morganq joined20:21
nly Thanks20:22
_ikke_ double thanks :-)20:22
gitinfo _ikki: thanks!20:22
_ikke_ ha20:22
!botsnack20:22
gitinfo Om nom nom20:22
*_ikke_. Shame I can't type. Metal fingers and all.20:23
_ikke_ excuses20:23
nly Ahhh, it's bringing in changes and merge conflicts i didn't expect20:23
_ikke_ yup, that's the consequence20:23
nly The other option, I could manually make changes from the logs?20:25
wildermind left20:25
_ikke_ Depends on how difficult the conflicts are20:27
Kaedenn left20:28
nly Thanks20:28
orbyt_ left20:31
orbyt_ joined20:35
Ignacy left20:37
plexigras left20:37
roflin left20:38
mowcat left20:39
pupsikov joined20:44
nly Ah shit, branch's head is pointing to somewhere entirely different than just a while ago20:45
bashfulshell joined20:46
mikecmpbll left20:47
molusc left20:48
Shentino left20:49
nly Nvm, found the commit20:51
saved :)20:51
orbyt_ left20:52
pupsikov left20:54
Siecje left20:57
AbleBacon left20:57
fphilipe_ left20:57
greatgatsby joined20:58
Shentino joined20:58
orbyt_ joined20:58
Regon left20:59
durham joined21:03
thebope joined21:06
howdoi left21:08
The_Letter_M joined21:11
thebope left21:11
Oatmeal left21:13
dviola joined21:16
isBEKaml left21:17
wootehfoot left21:19
Lucas_Gray left21:20
arecaceae left21:22
arecaceae joined21:22
mven joined21:24
Mr__Anderson left21:25
theoceaniscool_ left21:27
jubal joined21:27
orbyt_ left21:28
aruns joined21:30
aruns OCODOBOBODOAOB 21:31
avu Gesundheit21:31
aruns Hey guys, somewhat stupid question incoming: I am working on a Git submodule for a bunch of useful hook scripts I can plug into some of our work projects. I have a pre-commit file, for e.g, whose contents are a Bash shebang and the command php scripts/pre-commit.php - the scripts folder being in the same location as the pre-commit file.21:32
analogical left21:32
aruns What is the best way of having it read scripts/pre-commit.php as relative to the script location, in both Windows and Linux?21:33
Sonderblade left21:34
finalbeta left21:34
aruns As otherwise it would look for scripts/pre-commit within my current working directory.21:34
acercle left21:34
acercle joined21:34
royal_screwup21 left21:38
royal_screwup21 joined21:38
ash_worksi joined21:38
roflin joined21:39
ash_worksi I remember accidentally doing a pull and loosing my work... right now I have changes and I WANT to override them but git is telling me no21:39
Samian joined21:39
ash_worksi I guess I _have_ to stash before pulling?21:39
Samian something funky happened to my local repo. What's the best way to get everything over again from the remote server? Do I just delete the source code folder and redo the command to copy remote repo to local?21:40
rafasc Samian: if you truly want to discard everything, you can reset --hard <something>;21:42
inkbottle left21:43
inkbottle joined21:44
st-gourichon-f left21:46
yyy left21:47
vavkamil__infinity21:47
ash_worksi doesn'21:48
doesn't an empty .gitignore file mean 'ignore everything here'21:48
?21:48
Zarthus no21:49
mud No. It means nothing21:49
ash_worksi hmm... wonder where I got that impression21:49
¯\_(ツ)_/¯21:50
Zarthus if you see an empty folder with an empty gitignore in it, it's probably just there to mark the directory as present21:50
ash_worksi so just throw in a / ?21:50
I see21:50
mud A / would ignore everything, yeah21:50
Zarthus personally i would suggest keeping your ignores at the root of your project21:50
splitting up gitignores sometimes adds to complexity rather than reducing it21:50
mud Usually good advice ^21:51
foo left21:51
tang^ using a gitignore just to keep a directory implies that you don't know how to separate build and runtime directories21:51
Fernando-Basso joined21:52
mud git makes a fairly arbitrary choice that empty directories aren't content, but empty files are. I wouldn't read too much into the assumption going the other way being convenient.21:53
gloomy left21:54
datasmurf joined21:55
datasmurf Hello21:55
gitinfo datasmurf: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.21:55
n-st left21:56
tang^ left21:57
n-st joined21:59
mven left22:02
ash_worksi damn it22:02
durham left22:02
ash_worksi I accidentally committed files before using the .gitignore /22:02
howell left22:02
roflin left22:03
ash_worksi I how do I fix that?22:03
vishal ash_worksi: has the commit been pushed anywhere (or do you care about history)22:05
miczac joined22:05
miczac left22:06
greggerz left22:07
nly left22:08
st-gourichon-fid joined22:08
jimender2 How would I go about changing the repository url? I am trying to upload an old version of a git project but it wont let me22:09
PacKetSlayer left22:11
PacKetSlayer joined22:11
jimender2 never mind, I figured it out22:12
rafasc jimender2: btw, that question isn't git specific.22:13
it will depend where you are hosting your git repo.22:13
jimender2 is git and github not the same thing?22:13
rafasc no.22:13
!github22:13
gitinfo GitHub is a !3rdparty commercial service offering freemium !hosting services for repositories & projects. https://github.com/features22:13
dmiles left22:14
rafasc !github_vs_git22:14
gitinfo github.com is not git; it's a hosting platform for git. There are alternative hosting offers (you can even host repositories yourself, or work on something on your own without any hosting whatsoever), and the range of features on the corresponding websites may differ. Git has little influence on what happens in github's web interface.22:14
jimender2 ok then. Sorry about that22:15
libertyprime joined22:15
ash_worksi vishal: yes and no22:15
yes it has, no I don't care22:15
vishal ash_worksi: git rm --cached <files>; git commit --amend (assuming this is the top commit).22:16
Then you will need to push --force(-with-lease)22:16
If it is not the top commit, rebase -i22:17
aruns left22:17
ash_worksi k, I'll look into rebase -i22:17
vishal ok you will want the 'edit' option int he todo list. It will pause at that commit. Perform the above rm, commit --amend steps22:18
then rebase --continue22:18
(and maybe with 'edit' you don't need to commit --amend) git status at that point should tell you22:19
maybe you can just rebase --continue after updating the index22:20
vishal forgets22:20
courrier left22:23
kjartan left22:23
jubal left22:24
duckonomy left22:26
kjartan joined22:27
roflin joined22:29
dege left22:29
jubal joined22:31
apoos_maximus left22:32
orbyt_ joined22:34
jubal left22:35
jubal joined22:36
dviola left22:36
jubal left22:36
jubal joined22:38
queip left22:42
causa_sui left22:45
brethil left22:48
lucasb left22:48
Achylles left22:48
The_Letter_M left22:51
edwardly left22:53
queip joined22:54
Revan- left22:54
fphilipe_ joined22:55
edwardly joined22:56
CryptoDavid left22:57
cfoch joined22:57
fphilipe_ left23:01
fatalhalt joined23:01
m0viefreak left23:04
sat-aton left23:05
ChrisLane left23:08
jstimm joined23:13
greatgatsby left23:15
oatmealraisin joined23:21
dodobrain joined23:24
yonder joined23:29
n3wborn left23:34
acercle left23:34
thiago left23:42
cd left23:43
royal_screwup21 left23:43
navidr joined23:44
Atlenohen left23:45
Noldorin joined23:55
CodeSlingerPaul left23:58

Logs Search ←Prev date Next date→ Channels Documentation