IRCloggy #git 2018-12-14

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.

2018-12-14

Toadisattva left00:00
floraline i wouldn't have expected it to let you do that00:03
CodeSlingerPaul left00:03
finalbeta left00:04
jim joined00:05
rafasc git checkout with paths is the way you overwrite local files with the state from the index.00:09
m0viefreak left00:11
davidfetter joined00:15
davidfetter hi00:15
Is there a way to hint to `git diff` a file order?00:16
Phylock left00:16
davidfetter I'd love to be able to say, "First, these files in this order, then these others" or words to that effect00:17
blackmesa joined00:19
YuGiOhJCJ left00:21
YuGiOhJCJ joined00:21
floraline left00:24
dfee left00:25
osse davidfetter: yes00:27
yyy left00:27
osse diff.orderFile00:27
davidfetter how? :)00:27
davidfetter looks this up00:27
netj left00:28
n3wborn left00:28
netj joined00:28
yyy joined00:28
osse It's a config setting00:28
rafasc also -O00:28
osse Can probably be given as an argument to git diff00:28
rafasc osse: ahead of you00:28
;)00:28
osse Ah that's the one00:28
davidfetter That's perfect! Thanks, osse and rafasc00:29
jubal joined00:29
leeN joined00:31
blackmesa left00:33
andyhuzhill joined00:33
courrier joined00:38
yyy left00:39
bjpenn joined00:40
bjpenn lets say i merged my feature branch with master00:40
and i was going to do a PR00:40
jast left00:41
bjpenn but then i decided to make a few more changes, and now theres a few more changes to master, as well as my changes to my feature branch00:41
jast joined00:41
bjpenn so instead of merging to master again and filling up the commit log with a bunch of "merge to master"00:41
Xeyame left00:41
bjpenn how do i remove teh previous "merge master into my feature branch" log entries00:41
and just have the one00:41
Xeyame joined00:41
Cabanossi left00:45
leeN left00:46
Cabanossi joined00:46
SirFunk joined00:46
dmcgehidore00:47
gehidoreteklad00:47
tekladdmc00:48
ferdna joined00:54
durham left00:55
dege left00:58
mattcen joined00:59
w0ng left01:00
prakashdanish joined01:01
Bobdude joined01:03
est joined01:04
al-damiri left01:04
est hello01:04
gitinfo est: 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.01:04
Ram-Z left01:04
est If I have a range of commits, I can do git rebase -i and then select each of them to edit01:04
but that's wearisome01:05
is there a tool where I can just take the last commit, split it up into little pieces, and then make it amend the precise commit where the code was added01:06
Ram-Z joined01:06
est nvm found https://github.com/torbiak/git-autofixup01:12
est left01:13
Sasazuka__Sasazuka01:14
brandonkal joined01:16
brandonkal Hello When I create a symbolic link, how can I ensure it is tracked by git? Sometimes it works and other times they just seem to disappear or are not tracked.01:19
ngui joined01:21
iam730 left01:21
lucasb left01:22
Goplat joined01:25
quesker left01:31
blackmesa joined01:32
iam730 joined01:36
rafasc left01:39
mloskot left01:40
blackmesa left01:41
courrier left01:54
rafasc joined01:54
jubal left01:56
thiago left01:57
greatgatsby left01:58
Sasazuka left01:58
mikecmpbll left02:01
cbrt64 left02:03
iam730 left02:04
Wetmelon left02:05
cbrt64 joined02:06
iam730 joined02:06
epatr left02:14
jim left02:15
epatr joined02:15
finalbeta joined02:16
ghost43 left02:21
ghost43 joined02:22
netj left02:22
andyhuzhill left02:22
netj joined02:22
andyhuzhill joined02:23
Essadon left02:23
andyhuzhill left02:27
andyhuzhill joined02:27
dsx_ left02:30
igemnace joined02:30
xcm left02:32
xcm joined02:32
jim joined02:34
kazimuth joined02:37
iam730 left02:44
kapil____ joined02:44
iam730 joined02:46
prakashdanish left02:48
xcm left02:50
xcm joined02:50
hofmann3900 joined02:51
F0rTex left02:57
F0rTex joined02:59
rafasc left03:00
Codaraxis left03:01
graphene left03:12
thiago joined03:13
graphene joined03:13
WakiMiko left03:16
mowcat left03:17
jomo_ joined03:18
treehug88 left03:20
nioncode joined03:20
i7c joined03:20
mowcat joined03:21
chckyn joined03:21
Blkt joined03:21
lagothrix left03:23
lagothrix joined03:23
maryo joined03:24
WakiMiko joined03:24
markus-k joined03:25
xall joined03:25
jomo_ left03:29
jomo_ joined03:29
dfee joined03:31
Mattiaslndstrm left03:36
Wetmelon joined03:36
Dirak left03:37
chckyn left03:38
lagothrix left03:39
nikivi left03:41
kazimuth left03:41
maryo left03:41
lagothrix joined03:43
mika joined03:47
voidSurfr left03:48
deepy joined03:48
crane joined03:49
drbean left03:50
dviola left03:50
swalladge left03:52
nikivi joined03:54
mowcat left03:55
breakingsad joined03:55
jomo_ left03:57
cd joined03:57
jomo_ joined03:57
mowcat joined03:58
Dirak joined03:59
graphene left03:59
prakashdanish joined03:59
graphene joined04:00
profmac left04:00
mrCyborg|zzz left04:05
mrCyborg|zzz joined04:05
Toadisattva joined04:06
drbean joined04:09
Thominus joined04:09
motoko-chan joined04:13
Cabanoss- joined04:13
profmac joined04:13
yn joined04:13
boombatower left04:13
Cabanossi left04:13
geekodour08 left04:17
timj left04:17
dfee left04:21
graphene left04:21
graphene joined04:22
FiendKing04 joined04:26
cswl joined04:27
mebus left04:27
swalladge joined04:28
treehug88 joined04:29
venmx joined04:30
timj joined04:31
iam730 left04:33
iam730 joined04:38
prakashdanish left04:40
KeyJoo joined04:41
graphene left04:43
graphene joined04:44
chandoo joined04:44
deltam left04:47
finalbeta left04:47
finalbeta joined04:47
FiendKing04 left04:56
sauvin joined05:00
chandoo left05:00
Mrbuck joined05:02
pks_ joined05:02
pks left05:02
pks_pks05:02
prakashdanish joined05:04
Sleepy63 joined05:06
novum left05:15
str left05:16
ItalyPaleAle joined05:18
ItalyPaleAle Hi how can I create a commit in git that reverses the changes of the 2 previous commits? (I don’t want to just rebase or discard the changes, I still want them in the history)05:19
Toadisattva left05:20
dfee joined05:20
Wetmelon left05:21
venmx left05:21
thiago ItalyPaleAle: git revert twice05:23
better yet:05:23
git checkout @~2 . (remember the dot), then commit05:23
quesker joined05:23
kadoban left05:25
ItalyPaleAle thanks05:25
@thiago wait but that doesn’t create a “reversed” commit05:26
just brings my code back to what it was05:26
what I want to do is for example: If in commit ~1 I added one line, I want to revert it so there’s a commit in which the same line gets deleted05:27
Mrbuck left05:28
ItalyPaleAle oh well i figured it out05:29
str joined05:29
ItalyPaleAle left05:30
thiago "then commit"05:33
gordonfish left05:33
libertyprime left05:35
miczac joined05:37
cfoch joined05:38
graphene left05:39
graphene joined05:39
prg318 left05:41
xuib left05:46
jubal joined05:58
crimastergogo joined06:03
prakashd1 joined06:03
g00s left06:03
YuGiOhJCJ left06:03
prakashdanish left06:05
ferdna left06:07
miczac left06:11
graphene left06:12
graphene joined06:12
Codaraxis joined06:13
gordonfish joined06:22
str left06:23
Raed left06:25
neunon left06:25
cads left06:25
mowcat left06:27
kazimuth joined06:29
Raed joined06:29
neunon joined06:31
str joined06:35
sydbarret joined06:38
prg318 joined06:42
jokester joined06:42
Phylock joined06:43
kazimuth left06:44
kazimuth joined06:50
ExeciN left06:50
courrier joined06:51
xcm left06:55
xcm joined06:55
str left06:56
elsheepo joined06:56
nowhere_man left06:57
boZipper joined07:07
boZipper left07:07
Dirak left07:10
T_UNIX joined07:11
Dirak joined07:13
GreenJello left07:15
dolphy left07:18
sQVe joined07:19
dolphy joined07:19
thiago left07:22
sQVe left07:24
courrier left07:25
downer06 left07:25
andrzejv joined07:25
downer06 joined07:27
nurdie joined07:27
crimastergogo left07:27
crimastergogo joined07:29
tarkus joined07:30
nurdie left07:31
Orbitrix joined07:33
dpyro left07:36
crimastergogo left07:36
guardian left07:38
n3wborn joined07:47
Sleepy63 left07:47
chele joined07:48
deltam joined07:48
sQVe joined07:49
Goplat left07:57
motoko-chan left07:57
cfoch left07:58
elsheepobeatzz07:59
Anthaas_ joined08:00
Anthaas left08:01
dege joined08:03
Bobdude left08:03
kazimuth left08:08
beatzz left08:12
mona_x joined08:12
crimastergogo joined08:14
Sleepy63 joined08:15
theoceaniscool joined08:16
crimastergogo left08:19
crimastergogo joined08:20
courrier joined08:22
feyyazacikalin joined08:24
Sasazuka joined08:24
Silmarilion__ joined08:25
justanotheruser left08:27
rkta left08:27
Sasazuka left08:28
prakashd1 left08:32
ngui left08:33
ngui joined08:33
KeyJoo left08:33
nowhere_man joined08:33
courrier left08:36
ngui left08:37
ngui joined08:38
sydbarret left08:39
TheWild joined08:40
justanotheruser joined08:41
dfee left08:43
dre_ joined08:44
feyyazacikalin left08:49
xcm left08:49
xcm joined08:50
dfee joined08:55
TheWild hello08:55
dfee left08:56
TheWild I wanted to either prove or disprove whether reproducing the same files and giving git exactly the same parameters during commit will produce the same commit hash08:57
and points out, the answer is *yes*! https://gist.github.com/beyondlimits/e208eadae647c4fa733f9b870d775b4608:57
mona_x left08:57
xcm left08:57
mona_x joined08:59
crimastergogo left08:59
crimastergogo joined09:00
Fusl joined09:00
Silmarlion_ joined09:00
floppydh joined09:01
Fusl is it possible to make git merge repo1 into repo2 which is a fork of repo1 from a few commits back but with commits added to it? i basically want to get a fork of a software with custom patches thats since been updated up to date with the latest upstream patches09:02
dre_ left09:02
Silmarilion__ left09:03
xcm joined09:06
Fusl i guess git merge is the literal answer?09:06
prakashd1 joined09:08
TheWild if you mean merge but without merge, then the key word is 'rebase', but that would rewrite a bit of history.09:10
rkta joined09:10
styler2go left09:11
TheWild I think it's safer to go with merge09:11
Fusl yeah, doing a merge now, that's what i was looking for after calling it "merge" in my question already. just had a brain fart09:12
bjpenn left09:17
styler2go joined09:18
crimastergogo left09:20
crimastergogo joined09:20
daegontaven joined09:29
crimastergogo left09:30
crimastergogo joined09:31
Unode joined09:31
Unode hi all, I'm trying to setup 2 git hooks that unlock (make writable) something in the repository before a commit or merge/rebase and then lock (make read-only) again after git is done. Looking at git-hooks I'm pretty sure this is doable but I'm having a hard time figuring out which hooks would be more suitable.09:34
yyy joined09:34
breakingsad left09:34
settermjd joined09:34
Unode In particular, by what order do different hooks trigger and would I need to setup several hooks (for commit, merge, rebase, ...) or is there some universal pre/post hook that gets triggered for almost every command?09:35
andyhuzhill left09:35
Noti joined09:36
settermjd left09:42
ngui left09:43
ngui joined09:43
settermjd joined09:44
mikecmpbll joined09:49
Silenced joined09:50
THall66 joined09:51
ngui left09:52
ngui joined09:52
THall66 When using `git add -p`, is it possible to configure it not to require the <return> after the choice?09:53
_ikke_ THall66: afaik no09:54
crimastergogo left09:56
crimastergogo joined09:56
xcm left10:01
xcm joined10:01
igemnace left10:03
silenc3r joined10:08
crimastergogo left10:11
crimastergogo joined10:11
daegontaven left10:14
crimastergogo left10:16
crimastergogo joined10:17
ngui left10:18
ngui joined10:18
Zexaron joined10:18
bsaboia joined10:19
catsup left10:19
catsup joined10:20
catsup left10:20
throstur joined10:21
catsup joined10:21
crimastergogo left10:22
D630 joined10:22
crimastergogo joined10:22
ngui left10:22
ngui joined10:22
crimastergogo left10:27
crimastergogo joined10:27
ansyeb joined10:30
ansyeb hello. lets assume im on a new system, Ive no idea bout. how do i find git repos?10:30
find ~ -type d -name .git & find / -type d -name .git did not return anything10:30
and I know for a fact, there are some on this system10:31
mona_x left10:31
crimastergogo left10:32
crimastergogo joined10:32
throstur left10:33
Orbitrix left10:34
Dirak left10:36
crimastergogo left10:37
crimastergogo joined10:38
EvilDMP joined10:40
xall_ joined10:41
Orbitrix joined10:41
xall_ left10:42
EvilDMP I am trying to rebase a branch, and have a lot of:10:43
* deleted by us10:43
* both modified10:43
* added by them10:43
unmerged paths. In *all* cases, I want *only* "ours", and not "theirs". Is there a way to add/rm the appropriate ones en-masse?10:43
xall left10:43
Anthaas_ left10:44
libertyprime joined10:45
Anthaas joined10:46
n3wborn left10:50
TheWild left10:51
ansyeb left10:51
Xatenev joined10:55
Shentino left10:55
Xatenev Can I somehow after a rebase update my remote without push force?10:55
I feel like im doing something wrong having to force push after a successful rebase10:56
Silmarilion__ joined10:56
Silmarlion_ left10:58
yyy left10:59
Shentino joined10:59
yyy joined11:00
cd left11:04
canton7 Not if you have rebased commits which have already been pushed11:05
rebase by its very nature rewrites commits -- that's the entire point of it11:05
jungsubk joined11:06
andrzejv left11:08
crimastergogo left11:10
Xatenev canton7, okdoke11:10
throstur joined11:10
mona_x joined11:11
crimastergogo joined11:12
crimastergogo left11:16
CodeSlingerPaul joined11:24
D630 left11:29
prakashd1 left11:34
gxt joined11:36
johnny56 left11:38
jungsubk left11:41
julius_ joined11:41
julius_ hi11:41
Xatenev left11:42
julius_ is there a seperate channel for tortoise?11:42
gxt left11:46
_ikke_ not aware of any11:52
geekodour08 joined11:59
zulutango left11:59
TheWild joined11:59
TheWild git pull... oh s**t, whaaat? Who was messing with my branch?12:00
I'm stuck at EDIT_MSG. Is there a way to tell git I want to abort merge?12:00
basiclaser joined12:00
grawity delete the file's contents, save and exit12:01
TheWild ok. I hope it will work. I hope it will not treat just line ending as a non-empty message.12:01
SpinTensor joined12:02
TheWild "Not committing merge; use 'git commit' to complete the merge."12:03
giving "git merge --abort" a try.12:03
whew, worked! Thank you gravity.12:03
considering I had a bunch of uncommited changes, my index would end up in a mess.12:04
grawity12:04
SpinTensor hi, i need some help. We have a git repository at university. I have a clone of this repository on my local machine at home. Now i want to keep working on this on my laptop (which cant directly connect to the uni-repo).12:04
grawity huh, usually it's the opposite12:05
SpinTensor i made a clone from my local pc to my laptop, but if i try to push from my laptop i get an error12:05
grawity yes, by default you cannot push into a checked-out branch12:05
SpinTensor it says refusing to update checke out branch:12:05
grawity. ok, thanks. is there a way how i could do it then?12:05
grawity a) you can push into a different branch12:06
b) you can try setting receive.denyCurrentBranch=updateInstead on the receiving repo12:06
oxymoron93 joined12:06
grawity c) you can maybe pull from the laptop on the local PC12:06
SpinTensor i'm a git noob. so i create a branch on my pc and check this on the laptop?12:07
grawity there's a d) git bundle and an e) and probably a f), but not going to bother with those for now12:07
if you're working on master on the laptop, try `git push origin master:tmp`12:07
johnny56 joined12:07
grawity then on the desktop, you'll now have a branch named "tmp" that you can merge into master12:07
SpinTensor wow. that seems to work. thanks.12:08
grawity once you have some more commits you can try the b) option, run `git config receive.denyCurrentBranch updateInstead` on the desktop, and then a regular `git push` on the laptop12:09
SpinTensor thanks. i will stay with the first option for now. but i definetely keep it in mind.12:10
dslegends joined12:13
Silenced left12:14
rexwin_ joined12:17
SpinTensor left12:18
comptroller left12:19
qswz joined12:20
qswz good practice to always --prune in git pull?12:20
or [pull] prune = true in .gitconfig, will try that12:21
osse In my opinion, yes12:21
qswz thanks k12:22
osse It's [fetch]12:22
qswz o thanks12:22
love my [pull] rebase = true12:22
nowhere_man left12:22
qswz [rebase] autoStash = true too12:23
lucasb joined12:24
acetakwas left12:27
mona_x left12:28
comptroller joined12:30
Steverman joined12:31
rexwin_ I deleted two folders in master branch and committed and did git push origin master and the folders are there in github. what am I doing wrong12:34
rafasc joined12:36
treehug88 left12:37
gxt joined12:37
rexwin_ nm I removed using git rm command12:40
_ikke_ rexwin_: Did you verify your local history12:40
rexwin_ i think did12:40
ngui left12:43
ngui joined12:43
throstur left12:51
a-chymera joined12:51
a-chymera I have gpgSign= true, but when upstream does not support signing, I get: fatal: the receiving end does not support --signed push12:51
any idea how I can make this non-fatal?12:51
ngui left12:52
ngui joined12:52
venmx joined12:54
kapil____ left12:54
xcm left12:56
xcm joined12:57
escherial joined12:58
escherial this isn't really a problem, but i had a funny thing happen a moment ago where a file that wasn't in the repo wasn't showing up as untracked even though it wasn't gitignored; anyone have any idea why that might be?12:59
i ran git log thefile and it didn't result in anything, and after removing it there's nothing about it in git status12:59
ah, never mind, it was .gitignored, just from higher up in the filesystem13:00
_ikke_ :-)13:00
Was just about to ask13:00
escherial heh, thanks for responding in any case13:00
limbo_ Is there something like git stash for making local commits, but automatic (e.g. after N file saves/period of time) and discarded after a real commit is made. (idea being that if I bungle something up, I can go back to 5 minutes ago/three changes ago even if I forget to manually commit)13:00
This is probably not a first party feature.13:01
_ikke_ correct13:01
mostlybadfly joined13:01
crimastergogo joined13:01
_ikke_ You can always make WIP comments and amend them until they are ready13:01
libertyprime left13:01
limbo_ I know I can, but I often forget to amend them if I do, and more often don't commit often enough.13:04
escherial limbo_: you could use something for watching for filesystem changes, e.g. https://facebook.github.io/watchman/, then have a rotating set of stashes, maybe13:05
s/rotating set of/rotating set of fixed stash names/, something like that13:06
figurelisp joined13:09
escherial as for wiping out the stashes, you could use a post-commit hook to intersect the contents of the commit with the stashes and remove ones that are entirely covered by the commit. i don't know what you'd do for partial matches, except perhaps recreate the stash with the committed bits removed...seems like it'd be finicky13:09
figurelisp what to do when patch failed while rebase?13:09
also why does that happed?13:10
crimastergogo left13:10
crimastergogo joined13:11
kus_ubuntui686 joined13:12
philippirrip joined13:13
qswz left13:14
figurelisp anyone?13:15
throstur joined13:15
crimastergogo left13:16
crimastergogo joined13:17
figurelisp i did not forget to do git add after resolving conflicts13:17
julius_ which git version can i use with tortoise 1.8.11 ? cant upgrade die tortoise at work, just change the portable git13:17
tarkus left13:18
ExeciN joined13:19
voiceftp left13:21
voiceftp joined13:21
voiceftp left13:21
EvilDMP left13:24
crimastergogo left13:28
yuriii left13:29
_ikke_ julius_: Not sure there are a lot of people that use tortoisegit here, let a lone know what version would work together wit that specific version13:31
julius_ probably not...had to try13:31
limbo_ escherial: Is there a way to set something like that up in a way that's not super hacky? e.g. so I could just run a script once per git repo and have it set up.13:32
psYchotic joined13:33
tsglove joined13:34
tsglove Hello. git n00b here. Can I configure git to have different config for a local directory?13:34
I have configured git globally with git co[nfig --global user.name and user.email13:35
Yet, can I have a different user.name and user.email , pointing to a different git repo host?13:35
Ideally, have this apply only to this-directory13:35
_ikke_ yes13:37
the same command without --global13:37
tsglove _ikke_, WOW. I was reading this --> https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup13:37
MACscr left13:37
tsglove Yet didn't ... come across that without --global13:37
Going to try it now. Thank you _ikke_13:37
Envil joined13:40
Assault joined13:41
manuelschneid3r joined13:42
escherial limbo_: it depends on your definition of "super hacky", but sure, i could imagine a script that sets it up per repo. it's probably much better to use watchman if you just want to set it and forget it, since watchman runs a single service and will persist (afaik) watches across reboots13:43
Assault so...im pushing got github and get an error stating that one of my files is larger than 100 MB. So I delete that file since i realize I dont need it. Then I push again, I still get the error stating that this one particular file is too big..WTF?13:43
Essadon joined13:44
Serus left13:44
escherial limbo_: ideally the script would create a watch on your project dir (excluding anything in your .gitignore), add a trigger to stash whenever something changes, then add a git post-commit hook to wipe any stash that was covered by the commit. although, it occurs to me that auto-stashing might not be the best idea since it changes your working direct13:46
ory...maybe there's some non-git way to keep track of your edit history13:46
xcm left13:47
xcm joined13:47
Serus joined13:48
emsjessec joined13:49
emsjessec does the bitbucket git system allow conflict resolution if there are changes made from the web interface?13:49
CheckDavid joined13:54
neels left13:54
ngui left13:58
ngui joined13:58
kapil____ joined13:59
Assault left14:00
Trillium1 joined14:00
julius_ left14:01
cfoch joined14:01
ngui left14:02
limbo_ escherial: That's why I said "like stash" (I am sure there's some arg to stash, or a plumming command that won't mess with the working dir) By "super hacky", I mean will it result in more or less work for me if I tell someone to run whatever script I make on their repo. (it being more hacky if it takes more maintaince on their machine than it saves me time fixing up their repo.)14:02
rafasc emsjessec: sure. Changes from the web interface are stored as commits like anything else.14:03
ngui joined14:03
Trillium1 left14:03
xcm left14:04
xcm joined14:04
boombatower joined14:06
emsjessec what if someone edited the file after the web page was open?14:06
PEG left14:07
thiago joined14:07
jorj left14:08
figurelisp left14:08
jorj joined14:08
limbo_ emsjessec: depends on that you're committing on top of. If both people committed on the same file, a fork happened.14:08
ngui_ joined14:10
ngui left14:12
ngui_ngui14:12
ngui left14:13
rafasc I really avoid editing on the web ui.14:13
ngui joined14:13
nikivi whats the 'best' way to comment out blocks of visually selected code (language agnostic)?14:14
I want to get same behavior I get with cmd+shift+/ in sublime/vscode and bind that to ctrl+l14:14
I googled and saw nerd commenter being mentioned. I wonder if I can do this without any plugins though14:15
rafasc nikivi: you're in #git. This isn't a git question.14:15
nikivi oops, sorry14:15
rafasc that will depend on the editor you're using.14:16
nikivi asked on #vim sorry for noise14:16
ngui left14:17
ngui joined14:17
rafasc nikivi: no problem, for vim I either use ctrl+v, select the first column, then shift+i, type the comment character for your specific language, ESC.14:18
or select the lines, and run ':norm 0i#'14:19
Unode Is there any hook that runs before any change is performed on the checked out files? I'm guessing pre-checkout would be apropriate but there is no such hook. Do people use a different solution for this use-case?14:22
cbrt64 left14:23
ngui left14:28
ngui joined14:28
miczac joined14:29
xuib joined14:32
ngui left14:32
GinoMan joined14:34
Dougie187 joined14:34
ngui joined14:35
bsanford joined14:35
bsanford left14:35
basiclaser left14:40
canton7 Unode, what *is* the use-case?14:43
devz joined14:45
Unode canton7: a folder inside git has permissions r-x, so git can't change it or its contents. Use-case is 'chmod u+w folder && git action && chmod u-w folder'14:45
thiago then make it rwx for the current user14:45
Unode thiago: the point is the folder is not meant to be 'w' to anyone unless being updated by git itself.14:46
canton7 Unode, that's the technical implementation. What's the use-case? *Why* are you doing this?14:46
Ah, there we go.14:46
Unode, so nobody should work directly in the repo, correct? They're only allowed to checkout/pull/etc?14:47
thiago Unode: ok. Same answer.14:47
canton7 What's to stop them from adding another remote to git, and getting their changes in that way?14:47
thiago Unode: you need to do what you said: u+w, git, u-w14:47
every time14:47
canton7 Unode, are you sure you don't want to do something like only allow a particular user to change those files, and give everyone sudo rights to run a specific git command as that user?14:48
thiago or make it a server that people push to. That server will run as the right user, with full write permissions.14:49
Luyin joined14:56
Luyin left14:56
TheWild left14:58
ngui left14:58
justanotheruser left14:58
ngui joined14:58
Unode no, the permission is quite set like that. We could use a different account to handle this but it's a shared filesystem to it gets tricky14:58
*so it gets tricky14:58
I was looking into using hooks to do the u+w before checkout and then u-w after, but it doesn't seem like it's possible.14:59
The best option I've encountered so far is an alias14:59
but... muscle memory to train. Using the alias instead of checkout or pull15:00
ngui left15:02
ngui joined15:03
quipa joined15:03
Steverman left15:03
mona_x joined15:07
bolovanos joined15:07
novumsensum joined15:07
leeN joined15:09
acetakwas joined15:10
rkta left15:13
netj left15:17
netj joined15:17
ngui left15:18
ngui joined15:19
orbitex joined15:22
a-chymera left15:24
theoceaniscool left15:25
blackntan joined15:27
ngui left15:27
ngui joined15:27
nurdie joined15:28
blackntan left15:29
throstur left15:30
cdown left15:34
cdown joined15:39
Toadisattva joined15:41
Luyin joined15:45
manuels joined15:45
manuels left15:45
Luyin hi, what is the advantage of using "git merge -s ours obsolete_branch" over "git branch -D obsolete_branch"? I understand from the manpage that "-s ours" discards everyhting from the branch, so the branch effectively vanishes, doesn't it?15:46
rafasc Luyin: yes. But there's advantages over using -s ours. By using it, you're recording that you're making the other branch obsolete.15:47
Luyin okay, thanks15:47
then -s ours is definitely not what I want to use for my case :D15:48
cdown left15:48
rafasc so any commits that are reachable from that branch wont be merged again.15:48
Luyin and this -Xours seems a bit dangerous to me15:48
Steverman joined15:48
d^sh left15:49
rafasc Luyin: if a new branch, forks from this branch that was merged with -s ours. Only the changes by commits that come after this fork are merged.15:49
!revert_merge15:49
gitinfo [!faulty_merge] If you have published a merge commit that turned out to be faulty and you'd like to get rid of it, you can use 'git revert' but there are gotchas to be aware of. Please read: https://raw.github.com/git/git/master/Documentation/howto/revert-a-faulty-merge.txt15:49
Noti left15:50
Mattiaslndstrm joined15:50
rafasc This has some insight on a related issue. Basically merging history and merging files are two related, but different things.15:51
d^sh joined15:51
rafasc Luyin: What do you mean by -Xours is dangerous?15:51
Luyin yeah I know about that discussion. my situation is a bit difficult. "git rerere" doesn't work here (I assume because we use "iconv" filter attributes, since our files are utf-16 instead of utf-8, but I'm not 100 % certain that's the reason), so I'm trying to reduce the amount of work my devs have while merging. I thought by using a merge strategy it might be possible15:52
GreenJello joined15:52
oxymoron93 left15:52
ngui left15:53
ngui joined15:53
Luyin rafasc: what I mean is that the differences/changes I'm trying to merge are often not properly recognised by git. so I'm looking at options to make it easier for git to merge stuff. but what I understand from -Xours is that it prefers my side over the other in conflict cases, and uses the other side if it's conflict-free. but sometimes our code looks so disrupted in a diff (e. g. when you look at it with15:54
WinMerge, or if you simply look for the conflict markers), that it is very dangerous to assume that one side is correct and the other isn't15:54
it's a bit hard to explain actually, and I can't give code examples because even our language is proprietary :-/15:55
rafasc well, merge should not be automated in the first place. Even conflict free merges are not guaranteed to be correct.15:56
so yeah, from that perspective, it's always dangerous to assume things while merging.15:56
ngui left15:57
ngui joined15:57
rafasc Luyin: -Xours will perform a 3-way merge and favor our side in case of conflict. You got that part right. You'll get changes from both sides.15:58
Luyin I don't want to automate the merge, I want to reduce the amount of work it produces15:59
throstur joined15:59
rafasc just to be clear, you're using 'working-tree-encoding' attributes right?16:01
Silmarilion__ left16:02
tomfarr left16:02
ngui left16:03
tomfarr joined16:04
TJ- joined16:05
jleclanche joined16:05
tomfarr left16:05
venmx left16:05
floppydh left16:06
mns I have a local branch, mns/feature/fubar, which I pushed to remote origin, so that when I push to remote, it pushes to origin/mns/feature/branch. I pushed a commit that I dont want on the remote at the moment. Any chance of getting it removed locally and remotely ? I was thinking 'git reset --hard ^' but am no sure if thre is a better way to do that.16:06
thiago left16:06
tomfarr joined16:07
Regon joined16:08
ngui joined16:08
rts-sander yeah git reset --hard and git push --force16:08
kezimo ello16:08
tomfarr left16:10
rexwin_ how to revert the local copy to contain code before deleting two folders16:10
throstur left16:11
rts-sander rexwin_, git checkout -- <dir1> <dir2>16:11
rexwin_ I committed the code with the commit message "deleted bf"16:11
tomfarr joined16:12
rts-sander you committed your deletion of the directories?16:12
rexwin_ yes16:12
rts-sander rexwin_, git reset @~ -- <dir1> <dir2>16:12
then commit --amend16:12
or you could remove the commit entirely if it's just the 2 directories with git reset --hard @~16:13
sQVe left16:14
cdown joined16:14
bsaboia left16:15
tomfarr left16:15
TikityTik joined16:17
tomfarr joined16:17
TikityTik can you make git store data referenced by sym links?16:17
ngui left16:18
_ikke_ no16:18
ngui joined16:18
_ikke_ git will not read / write data outside the current repository directory16:19
eduardas_m joined16:19
TikityTik i want to make a git repo of my system settings like bashrc and vimrc, but i don't want to continously cp the files over16:20
hence i'm wondering if i can get git to copy the data for me by symlink16:20
_ikke_ The way to do it is to symlink *to* the git repo16:22
ngui left16:22
ngui joined16:23
fmgt joined16:25
fmgt left16:26
fmgt joined16:26
Luyin rafasc: my_file.txt diff=utf16diff encoding=utf-16le filter=utf1616:29
what I have in .gitattributes16:30
Xiti left16:30
mona_x left16:30
mona_x joined16:31
c3llular joined16:31
rafasc you might want to take a look at that attribute then.16:32
Luyin rafasc: and the lines from my ~/.gitconfig: https://paste.xinu.at/tTRl/16:32
rafasc: I will, thanks for the hint. gotta go into a meeting now, bbl16:32
Xiti joined16:34
mona_x left16:35
kazimuth joined16:35
blackntan joined16:36
rkta joined16:36
Ayo joined16:40
Natt0 joined16:41
spacesuitdiver joined16:42
fmgt left16:43
mona_x joined16:44
kapil____ left16:44
blackntan left16:44
Natt0 I'm using git for windows 2.20.0 but it is stuck when pushing after writing objects on 'Total 3 (delta 1), reused 0 (delta 0)' to a rasberry pi while fetching works.16:46
GinoMan2440 joined16:47
ngui left16:48
ngui joined16:48
c3llular left16:48
Nixew joined16:49
CodeSlingerPaul left16:49
silenc3r left16:49
thiago joined16:50
GinoMan left16:50
silenc3r joined16:50
silenc3r left16:51
Toadisattva left16:52
ngui left16:52
ngui joined16:53
chele left16:53
mikecmpbll left16:59
epatr left17:02
kazimuth left17:02
mowcat joined17:06
TikityTik is it a bad idea to not password your ssh keys for github uploading on a person computer?17:08
eduardas_m left17:08
TikityTik personal computer*17:08
Natt0 nvm I found it, I was using user that didn't have write rights in the putty profile and you can't seem to do user@profilename17:08
TikityTik i get tired of typing the password repetitively for git usage17:09
Natt0 left17:11
T_UNIX left17:12
AtumT joined17:17
ngui left17:23
ngui joined17:23
fassl joined17:23
nowhere_man joined17:24
mona_x left17:25
meLon left17:26
kerframil joined17:26
dolphy left17:26
meLon joined17:26
ngui left17:27
ngui joined17:27
dolphy joined17:28
prakashd1 joined17:30
THall66 left17:31
Silmarilion__ joined17:32
EvilDMP joined17:39
EvilDMP Is it possible to check out a remote branch by specifying the URL of the remote, along these lines:17:43
git checkout -b new-branch https://github.com/user/repository.git/some-branch ?17:43
Or is it always necessary to add the remote first?17:44
Inline joined17:45
Cabanoss- left17:45
Inline if i had a working snapshot and i git pulled and now something goes wrong, what can i do ?17:46
can i revert to a previous state ?17:46
Cabanossi joined17:46
Inline or do you have to manually make snapshot points so to say ?17:46
Nixew left17:48
dfee joined17:49
_ikke_ THe reflog keeps of what you do locally17:51
igemnace joined17:51
igemnace left17:51
cfoch left17:51
venmx joined17:52
igemnace joined17:52
CheckDavid left17:53
mikecmpbll joined17:55
novumsen1 joined17:57
xcm left17:57
graphene left17:57
graphene joined17:58
rexwin_ left17:58
novumsensum left17:58
novumsen1novumsensum17:58
xcm joined17:58
yyy left18:01
quipa left18:04
Toadisattva joined18:04
Mattiaslndstrm left18:09
silenc3r joined18:10
Mattiaslndstrm joined18:11
wildlander joined18:12
mustmodify_ joined18:12
mustmodify_ I have a "merge" commit hash from 2015. The branch is long gone. But I want to see just the log of commits that were in that branch.18:13
so ... I can see the first commit in that branch, but how do I get them all?18:13
xcm left18:13
mustmodify_ NM, think I figured it out.18:15
mustmodify_ left18:15
nshp joined18:16
xcm joined18:17
nshp is there a way to filter a diff down to only chunks which match a substring/regex? from the docs, I thought `git diff -S<string>` would do that for me, but it's including a lot of unrelated chunks which just happen to be in matched *files*18:18
random_yanek left18:19
nshp more broadly what I'm trying to do is apply a subset of the changes on an overgrown feature branch to another branch, so I can get it reviewed on its own18:20
MACscr joined18:21
ngui left18:22
AyoGuest4751118:25
Guest47511 left18:25
Ayo joined18:25
EvilDMP left18:25
random_yanek joined18:30
topdownjimmy joined18:30
topdownjimmy Is it possible to see the diff over a range of commits, only including commits from a single user?18:31
greggerz joined18:31
nshp topdownjimmy: git log --author="Author Name" --patch commit..range18:31
that doesn't combine the diffs though, that shows each commit separately18:32
Toadisattva left18:33
nshp the only way I'm aware of to get the combined diff would involve cherry-picking the author's commits, then diffing normally18:33
AtumT_ joined18:36
leeN left18:36
netj left18:38
AtumT left18:39
netj joined18:39
graphene left18:39
graphene joined18:40
gxt left18:40
_ikke_ correct18:40
diff only looks at 2 commits18:41
what happens in between doesn't matter18:41
dpyro joined18:41
Ayo left18:42
dege left18:43
lagothrix left18:43
cswl left18:45
lagothrix joined18:46
Dougie187 left18:47
yyy joined18:47
AtumT joined18:49
AtumT_ left18:51
Silmarlion_ joined18:52
Narrat joined18:52
Dirak joined18:53
Silmarilion__ left18:54
cek joined18:56
cek guys, how do I tell git to get to display all upstream branches if initialliy repo was cloned via git clone --depth 1 --branch xx ?18:57
a-chymera joined18:59
cd joined18:59
Sasazuka joined19:01
Sasazuka left19:01
blackntan joined19:01
blackntan left19:02
Dirak left19:05
heftig left19:08
avar Is there an option with 'git log -p -G<rx> --stat' to show something like the --full-diff (i.e. all changed files in those commits), not just the file matching -G19:10
xcmGuest4144419:10
Guest41444 left19:10
xcm joined19:10
khisanth_ joined19:11
Khisanth left19:14
Silmarlion_ left19:16
libertyprime joined19:20
axsuul left19:20
Sasazuka joined19:21
graphene left19:22
graphene joined19:23
cek cek: solved that by git fetch with proper refspec mathcing all remote refs19:25
cek left19:25
ngui joined19:28
heftig joined19:29
nurdie left19:30
xcm left19:31
ngui left19:32
xcm joined19:33
ngui joined19:33
axsuul joined19:34
libertyprime left19:34
Mattiaslndstrm left19:34
libertyprime joined19:36
nurdie joined19:37
ngui left19:37
nurdie left19:41
TJ- left19:44
mebus joined19:44
TJ- joined19:46
yyy left19:47
cliluw left19:48
orbitex left19:48
cliluw joined19:49
dre_ joined19:50
libertyprime left19:51
hofmann3900 left19:53
TikityTik left19:58
cbrt64 joined20:00
prakashd1 left20:01
dolphy left20:02
mloskot joined20:06
dolphy joined20:07
miczac left20:10
d^sh left20:12
kerframil left20:12
d^sh joined20:13
Envil left20:15
plexigras joined20:18
dfee left20:22
manuelschneid3r left20:23
topdownjimmy left20:24
topdownjimmy joined20:25
Regon left20:25
dege joined20:26
Phylock left20:27
fassl left20:27
Phylock joined20:28
fassl joined20:28
Regon joined20:36
yyy joined20:39
cdown left20:42
silenc3r left20:43
MineCoins joined20:46
netj left20:49
netj joined20:49
graphene left20:50
graphene joined20:51
settermjd left20:55
eb0t joined20:55
Mattiaslndstrm joined20:56
Mattiaslndstrm left20:57
Mattiaslndstrm joined20:59
MineCoins left21:00
m0viefreak joined21:02
guardian joined21:07
libertyprime joined21:09
mostlybadfly left21:11
gareppa joined21:12
libertyprime left21:14
MineCoins joined21:16
MineCoins left21:17
yyy left21:22
aldodelgado joined21:32
miczac joined21:32
aldodelgado I’m looking for a way to prevet branching from anything other then master. Example: `git checkout -b issue-xxx` <- allowed from master `git checkout -b issue-xxx-test` <- not allowed from another branch. Tired searching on github and stackoverflow, however I’ve had no luck. Any suggestions?21:35
novumsensum left21:35
Hello71 left21:38
Hello71 joined21:38
Puffball left21:40
cdown joined21:40
aldodelgado left21:43
fassl left21:43
finalbeta left21:44
finalbeta joined21:44
gareppa left21:45
miczac left21:46
miczac joined21:48
kerframil joined21:50
kazimuth joined21:52
MineCoins joined21:54
Phylock left21:55
bolovanos left21:56
dfee joined21:57
fstd_ joined21:58
MineCoinsMyPoolOnline21:58
MyPoolOnlinehelp21:58
helpGuest3230621:59
fstd left22:01
fstd_fstd22:01
Guest32306 left22:01
courrier joined22:02
spacesuitdiver left22:03
ZyX-I joined22:04
Mattiaslndstrm left22:05
fletom86 left22:06
emsjessec left22:07
graphene left22:08
graphene joined22:08
fletom86 joined22:11
ESpiney left22:17
fletom86 left22:24
novum joined22:26
treepalm joined22:27
dansan_ joined22:29
dansan left22:29
Nugget joined22:32
Mattiaslndstrm joined22:32
Mattiaslndstrm left22:34
Nugget left22:35
c3llular joined22:36
treepalm left22:36
treepalm joined22:37
novum left22:41
fletom86 joined22:48
dre_ left22:57
spacesuitdiver joined22:59
spacesuitdiver left23:03
graphene left23:07
graphene joined23:08
orbyt_ joined23:08
paraxial left23:13
paraxial joined23:14
n3wborn joined23:14
libertas joined23:16
novum joined23:16
Puffball joined23:19
The_Woodsman joined23:20
graphene left23:21
graphene joined23:21
kmels left23:23
donofrio joined23:24
yyy joined23:25
libertas left23:25
dslegends left23:26
TJ- left23:28
foul_owl left23:28
miczac left23:32
gxt joined23:34
miczac joined23:36
Steverman left23:37
mona_x joined23:37
graphene left23:38
graphene joined23:39
foul_owl joined23:41
cd left23:41
treepalm left23:46
TheRuckus joined23:48
greggerz left23:48
plexigras left23:52
Case_Of left23:53
Case_Of joined23:54
mikecmpbll left23:56
Narrat left23:57
g00s joined23:59

Logs Search ←Prev date Next date→ Channels Documentation