IRCloggy #git 2015-12-11

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.

2015-12-11

triad left00:00
chitopunk left00:01
konr left00:02
anli_ joined00:03
devoldmx left00:03
tvw joined00:04
dangerousdave left00:05
daito joined00:06
mizu_no_oto joined00:06
daurnimator warning: Not updating refs/heads/master (new tip 713426549a68367499745cd31fd6cb8703b63654 does not contain ca5f13ef73decca2667ff6b1c9415ead99d77b34)00:07
milki: so I'm having another go at this.... when I try and do the 2nd fast import, I get that warning ^^ and it exits with an exit code of 1.00:08
milki daurnimator: thats fine. it doesnt want you to overwrite the existing master branch00:08
daurnimator: you can create a new branch from that new tip to be like master-from-import-200:09
daurnimator milki: is there some flag I can give it to suppress that warning or the bad exit code?00:09
milki daurnimator: fast-import has --quiet00:09
zumba_addict joined00:09
anli_ left00:09
milki daurnimator: very short list of flags00:09
thiago joined00:10
daito left00:10
daurnimator milki: you mean --force? --quiet doesn't stop the warning or exit code.00:10
jost left00:10
jason237 joined00:10
jimi_ joined00:10
LeBlaaanc left00:11
fahadash left00:11
staafl left00:12
cjmz joined00:13
faux___ joined00:13
pgimeno joined00:13
zumba_addict left00:14
nettoweb joined00:14
harish_ left00:14
pgimeno how do I find the revision of the current working directory? is there a better way than git branch -v | grep '^\*' ? something like svn info or hg summary?00:16
mischat left00:16
milki daurnimator: force will actually overrite master00:16
daurnimator: if its none of those options, then the answer is no00:17
gancl joined00:17
ash_workz if you ssh into a server can you view it's available repos?00:18
Poppa joined00:18
kpease left00:19
meZee joined00:19
daurnimator milki: okay. so --force seems fine for now00:19
mizu_no_oto left00:19
daurnimator now; how can I rebase an orphan branch onto another one?00:19
wxg joined00:20
ixjlyons left00:21
Chill_Surf joined00:21
jetpackjoe joined00:23
mizu_no_oto joined00:23
acetakwas left00:23
kaiza left00:23
govg joined00:24
daurnimator I'm trying: git rebase --onto d1ca605 --root -X ours00:25
nafg_ left00:25
daurnimator but I get: fatal: Could not parse object '6e6975be58093c20145afc872eda83df2ea8f0b4^' Unknown exit code (128) from command: git-merge-recursive 6e6975be58093c20145afc872eda83df2ea8f0b4^ -- HEAD 6e6975be58093c20145afc872eda83df2ea8f0b400:26
hackel left00:27
daurnimator where 6e6975be58093c20145afc872eda83df2ea8f0b4 is my orphan branch's initial commit00:28
ash_workz is the general process (1) pull from a --bare repo (2) do stuff locally (3) push upto repo (4) pull/push from repo to testing?00:28
cjmz left00:29
overcast left00:29
wxg left00:29
vF3hNGxc47h8 left00:30
toothrot joined00:31
jetpackjoe left00:31
mizu_no_oto left00:32
s8321414 left00:32
daedeloth left00:32
rendar left00:34
cryptsting left00:36
samw joined00:40
ncthom91 joined00:43
milki daurnimator: yeah, if its the intial commit, it has no parent00:44
daurnimator milki: nevermind that error. I realised I was passing '-X ours' instead of '-s ours'00:44
however, I still have the command line wrong.... it just says "already applied" for every commit00:45
samw left00:45
bb010g joined00:49
gitinfo set mode: +v00:49
cryptsting joined00:49
gancl left00:49
thiago left00:49
geri left00:50
hexagoxel_ joined00:52
wnefal left00:54
MarkyC joined00:54
hexagoxel_hexagoxel00:55
tieTYT joined00:56
daivyk left00:56
jfran left00:58
tieTYT we’re using git on a maven project and to deploy our project we download it from the maven repository. This is working fine, but we’ve been asked to be able to deploy a hotfix to a previous release if necessary. When you do a release in maven, it updates a ton of files, which we would want to put our hotfix commit on top of, and then merge into master. But we don’t want to merge in the files that maven updates. Any suggestions?00:58
lykinsbd joined00:58
fstd left00:59
MarkyC left00:59
fstd joined00:59
govg left00:59
lykinsbd_ joined00:59
MattMaker joined01:01
jason237 left01:02
daurnimator it appears I can use cherry-pick to do this01:03
lykinsbd left01:04
daurnimator btw, how can I move a branch head (e.g. master) to my current detached head?01:04
arescorpio joined01:05
daurnimator ah ha; git checkout -B01:06
milki daurnimator: git checkout -B master HEAD01:06
yeah01:06
ncthom91 left01:06
daurnimator so sadly, it looks like although cherry-pick works in the basic sense; it's not suitable01:06
daito joined01:07
daurnimator (because it doesn't move across tags or track merges)01:07
ncthom91 joined01:07
qpdb joined01:07
milki nope01:07
daurnimator so..... I'm not sure what to do.01:07
MattMaker left01:07
astrofog left01:08
daurnimator when I try https://github.com/githubtraining/example-rebase-orphan-branch I get the merge conflicts01:08
if I try and provide a merge strategy, it fails with that error above (about how it can't find the parent of the initial commit on the orphan branch)01:09
italoacasas joined01:09
quesker how do I make some new guy's pushes subject to review?01:09
daurnimator quesker: ask your git repository management software.01:10
italoacasas left01:10
milki quesker: git is a DVCS and not related to code review01:10
imachuchu left01:10
quesker hmm01:10
I am slow01:10
we use git01:10
milki quesker: you probably have a workflow that involves reviewing at some point01:10
quesker git commit; git push01:10
daurnimator quesker: i.e. go ask in #gitano / #github / #gitolite / <your software>01:10
italoacasas joined01:10
quesker ah01:10
milki quesker: if you can explain that workflow, we might be able to help01:10
quesker ok let me see what we use01:11
daurnimator quesker: this is the policy that is implemented by where you are 'git push'-ing to.01:11
milki: any ideas for me?01:11
mehola joined01:11
milki daurnimator: do you expect merge conflicts?01:11
quesker gitlab01:11
nowhereman joined01:12
daito left01:12
mizu_no_oto joined01:12
milki quesker: then you are talking about push requests01:12
daurnimator milki: yeah sort of. but I really just want the exact contents of the commits on the new/orphan branch.01:12
quesker I said pushes01:12
xtun joined01:12
quesker I guess I meant push requests01:12
MattMaker joined01:12
quesker we just have these offshore guys crapping all over the code tree01:13
milki daurnimator: is there a single commit thats conflicting, or all the commits after you've resolved them01:13
mizu_no_oto left01:13
quesker I had to disable their access altogether01:13
daurnimator quesker: https://about.gitlab.com/2014/11/26/keeping-your-code-protected/ see protected branches01:14
quesker thanks01:14
daurnimator milki: I'm not sure. I haven't resolved the first conflict yet. (as I don't want to)01:15
mehola left01:16
milki daurnimator: well, to solve that conflict, you can add an empty commit to the end of the first import that has an empty tree01:19
jimi_sanchez joined01:19
milki daurnimator: or add that commit between your first import and second import01:19
garples joined01:20
daurnimator milki: sorry, huh?01:20
milki daurnimator: pretend as if you deleted everything after your first import01:20
daurnimator milki: mind giving me some interactive help for a sec?01:20
milki then the second import cant possibly conflict with anything01:20
jimi_ left01:20
jimi_sanchez left01:20
jimi_sanchez joined01:20
jimi_sanchezjimi_01:20
milki daurnimator: nah, its EOD. time to go home01:20
daurnimator :(01:21
ncthom91 left01:21
milki its dark, scary, and raining outside01:21
daurnimator milki: I do actually want to do a merge here. just not within a file01:21
i.e. if a file has a merge conflict; I want it to be taken from branch2.01:22
milki then you need to solve the merge conflicts01:22
daurnimator yeah I'm trying now.... its in many commits01:22
is there a way to automate it?01:23
for each file with a merge conflict I'm just doing 'git checkout originalcommitbeingrebased -- $file'01:23
milki thats what the merge strategy is supposed to do01:24
hackel joined01:24
daurnimator milki: right. that's 'recursive theirs'?01:24
milki uh.. i forget which one is which01:25
daurnimator ==> however I can't do that, as that tries to get the parent of my root commit. and fails (that was my error above)01:25
forbidden404 joined01:25
milki daurnimator: manually rebase 1 commit, then the rest01:25
pgimeno left01:26
tieTYT left01:27
Sleepy63 joined01:28
gopar left01:31
AaronMT joined01:31
nettoweb left01:32
nettoweb joined01:33
daurnimator milki: :( still tries to get the parent of the root commit01:34
_cyril_ left01:38
ogelami joined01:40
_cyril_ joined01:40
samw joined01:41
daivyk joined01:41
jonno11 left01:41
johnnyfive joined01:41
dorkmafia joined01:42
frem left01:42
jonno11 joined01:42
dorkmafia how do I get git to pull remote tags automatically from a fork01:42
I'd like: git pull upstream master to update the tags01:43
is that possible?01:43
nnyk left01:44
ogelami left01:45
samw left01:46
daito joined01:48
dreiss left01:48
tvw left01:49
m0viefreak left01:50
harish_ joined01:50
MrWoohoo2 left01:50
MrWoohoo left01:50
Goobbue left01:51
SimonNa left01:51
LaptopBrain left01:52
neanderslob left01:53
abacuspowers joined01:54
MarkyC joined01:55
DavidDudson joined01:57
machbio joined01:59
_cyril_ left01:59
devoldmx joined01:59
abacuspowers left01:59
MarkyC left01:59
noark9 joined02:01
rorro joined02:02
mwhooker left02:02
HelloAtMega left02:03
beastd left02:03
devoldmx left02:03
cdg left02:04
Chill_Surf left02:04
puff`` joined02:05
phrozensilver left02:05
axisys joined02:06
axisys left02:06
axisys joined02:07
harish_ left02:07
puff`` I want to send somebody a snapshot of the code I'm working on, without sending them the git repo. AFAIK I can just clone (or for that matter, "cp -a") my working directory, "rm -rf workingdir/.git" and send them that. Any reason not to, or is there a more "proper" way to do it?02:07
diegoviola left02:07
puff``puff02:07
harish_ joined02:08
diegoviola joined02:09
jonno11 left02:09
CKyle joined02:10
lykinsbd_ left02:11
puff left02:13
puff joined02:13
harish_ left02:13
mokbu joined02:13
tieTYT joined02:14
puff I want to send somebody a snapshot of the code I'm working on, without sending them the git repo. AFAIK I can just clone (or for that matter, "cp -a") my working directory, "rm -rf workingdir/.git" and send them that. Any reason not to, or is there a more "proper" way to do it?02:15
hyperair left02:17
nuck joined02:17
ncthom91 joined02:18
harish joined02:18
nuckGuest6503902:18
govg joined02:19
daurnimator puff: see 'git archive'02:20
impliednude joined02:20
impliednude I setup a github account, transferred from another host to github and it did the intial transfer np. However, git is only updating locally and not to github at all. How can I correct this issue or provide you guys with more information to assist me?02:21
ash_workz left02:22
Guest65039 left02:22
Guest65039 joined02:22
daurnimator impliednude: git remote -v02:22
Guest65039nuck02:22
daurnimator impliednude: you'll need to use 'git remote set-url' to change your upstream02:22
durham left02:22
ac3takwas joined02:23
gfixler left02:23
mellernoia left02:23
mablae_ joined02:23
impliednude says origin [email@hidden.address] (push) and (fetch)02:23
daurnimator impliednude: is that what you want?02:24
impliednude yes. I checked github and it shows no updates at all02:24
tyll joined02:24
daurnimator have you, uh, 'git push'd?02:24
ac3takwas left02:24
funfunctor joined02:25
impliednude yes02:25
acetakwas joined02:26
govg left02:26
mablae left02:27
CKyle left02:28
impliednude says You are not currently on a branch. To push the history leading to the current (detached HEAD) state now, use02:28
daurnimator git checkout master && git pull02:29
[Brain] joined02:29
Vampire0_ joined02:30
impliednude will that cause me any issues on my existing work done locally?02:30
abacuspowers joined02:30
daurnimator you can 'git stash' to make sure you don't loose any local work02:31
impliednude then what do I do after git stash to retrieve and send to remote?02:31
daurnimator git stash && git checkout master && git pull && git stash pop02:31
[0xBEAKER] joined02:32
impliednude and that shouldn't cause me any local issues?02:32
daurnimator it means if there are local issues we can get back :)02:32
The_Phoenix joined02:34
dsdeiz_ joined02:36
pks joined02:37
dsdeiz left02:37
harish left02:38
bronson left02:39
igli joined02:39
nvahalik left02:39
igli how do i move a tag, eg 0.14 to upstream-0.14 ?02:39
hmm: how do i get the commit id and date for an existing tag?02:41
tieTYT left02:43
LaptopBrain joined02:44
mmlb joined02:44
igli ah: git describe --long 0.1402:44
puff left02:45
daivyk left02:45
otter768 joined02:45
mDuff left02:47
xtun left02:47
ncthom91 left02:48
fuchsi left02:49
yqt left02:50
[Brain] left02:51
nettoweb left02:51
Goplat joined02:51
Hink joined02:52
impliednude git checkout master throws the following error02:52
error: pathspec 'master' did not match any file(s) known to git.02:52
ncd|leeN left02:53
blackwind_123 left02:53
igli git branch -vv -a02:53
harish joined02:54
impliednude * (no branch, rebasing development) 9337f96 Local changes02:54
development c96e84d Local changes02:54
production 1594306 #fixed template02:54
remotes/origin/development c96e84d Local changes02:54
remotes/origin/production 1594306 #fixed template02:54
sorry. meant to pastebin it02:55
funfunctor left02:55
igli so there's no 'master' branch to checkout02:55
impliednude http://pastebin.com/8J9vMBz802:55
_cyril_ joined02:55
impliednude was going by daurnimator's fix02:56
MarkyC joined02:56
impliednude git stash && git checkout master && git pull && git stash pop02:56
radsy joined02:56
impliednude I am trying to send to remote my changes. the repository was already uploaded02:56
nettoweb joined02:57
daurnimator impliednude: swap 'master' fpr02:57
impliednude: swap 'master' for 'production'02:57
impliednude okay ^_^. thanks02:57
harish left02:57
ixjlyons joined02:58
lykinsbd joined02:58
impliednude http://pastebin.com/6GavR9Jv02:58
Eugene pokes bremner with a stick02:59
bremner ow. wat!?!!?!!02:59
MarkyC left03:00
_cyril_ left03:00
alanwill left03:01
blackwind_123 joined03:01
igli hey bremner :) ltns03:01
daurnimator whats the refspec for the first commit?03:02
igli ok, so how do i get the committer date for a tag? is it the same as the date on the commit it tags?03:02
impliednude daurnimator> please forgive me. huh?03:02
I am TOTAL noob with git03:02
bremner igli: try "git cat-file -p tag"03:03
there's probably a nicer way.03:03
The_Phoenix left03:04
igli ah lovely. time_t03:04
thanks bremner03:04
hmm timestamp + tz. works for committer date03:05
impliednude and oh fuck03:05
lykinsbd left03:05
impliednude local has been screwed up ENTIRELY. I tried to do git stash pop03:05
and it's saying conflicts and went back to massively old03:06
at this point what do I do?03:06
localuser- joined03:06
impliednude I did git stash as told /panics03:06
igli you can checkout development and stash apply there, if that's where you were03:07
impliednude then did git stash pop03:07
how do you do that?03:07
impliednude panics03:07
igli wait for daurnimator to confirm03:07
chill out. you haven't lost any commits03:07
impliednude I didn't do commit. I had just done git stash as told03:08
daurnimator impliednude: git reflog03:08
^^ paste output of that03:08
igli ok you haven't lost your stash then03:08
impliednude git stash && git checkout production && git pull && git stash pop - gave error. so I went to git stash pop to retrieve and it just said conflicts aplenty03:09
http://pastebin.com/6iVFY6Pc03:10
daurnimator impliednude: git checkout 9337f96 && git stash pop03:10
^^ will get you back to your starting position03:10
impliednude says needs merge03:12
Rodya_ joined03:12
impliednude what do I do?03:12
daurnimator that... doesn't make any sense03:12
sigh; can you just paste your whole terminal session so I can see wtf you've done?03:13
alanwill joined03:13
impliednude http://pastebin.com/n0CUQ7w403:13
http://pastebin.com/hiwNTEyp03:15
Hink_ joined03:15
impliednude the second one is the whole screen copy03:15
Eugene bremner - nothing, just wanted to see how you responded to sticks03:18
Hink left03:18
daurnimator impliednude: oh. I don't think git stash keeps your index.03:20
impliednude My boss is so going to kill me >.< I think I shouldn't be fucking with git if I can get out of this alive03:20
I have NO idea what that means besides I am guessing I am fucked?03:20
daurnimator impliednude: no. you're just in the middle of a rebase right now.03:21
impliednude: git rebase --abort03:21
impliednude then what do I need to do?03:21
Sasazuka left03:21
impliednude okay then I do what?03:22
daurnimator infact, this *whole time* you've been in the middle of a rebase03:22
kzisme joined03:22
impliednude <=- has no idea what a rebase means03:22
okay. What do I need to do to get back to where I was towards the top03:22
I just want to ensure that my work goes back to being finished. I have a full days worth of work03:22
daurnimator impliednude: okay. so you're back on your development branch now?03:23
kzismekzisme[away]03:23
impliednude How do I tell?03:23
I just want to get back to my local copy03:23
kzisme[away]kzisme03:23
daurnimator git status03:23
impliednude On branch development nothing to commit, working directory clean03:24
daurnimator okay. now try that 'git stash pop'03:24
impliednude TONS of conflicts03:24
sgambino joined03:25
daurnimator impliednude: what were you doing before you started here? looks like you were in the middle of a rebase?03:25
impliednude http://pastebin.com/crvqCcfS03:25
you see that section where I added all those files via git add03:26
machbio left03:26
impliednude I have no idea why it started rebasing or what that even means03:26
daurnimator impliednude: someone left it in the middle of a rebase before you got there then; which is bad of them.03:27
impliednude: git checkout 9337f9603:27
Dullin left03:27
italoacasas left03:28
daurnimator git status03:28
and also pastebin 'git stash show -p'03:28
impliednude I did git checkout and it says the files I made needed to be merged03:28
funfunctor joined03:29
daurnimator that was before we aborted your rebase.03:29
Oog joined03:30
igli (might be autosetuprebase on a local)03:30
fuchsi joined03:30
Hink_ left03:30
impliednude http://pastebin.com/LCRGfMyy03:30
xtun joined03:30
impliednude and I was editing directly on the server for local03:31
igli eh?03:31
mokbu left03:31
impliednude The server sits in my house which has a dc3 on it03:32
igli always work in your own repo, on your own machine. that's the point of a dvcs. server-side should be bare repo only, as should staging on your side if you're doing complex stuff or working with (many) others03:33
daurnimator impliednude: so do you want e.g. the file: app/design/frontend/base/default/template/giftvoucher/product/media.phtml03:33
impliednude no others are working on it03:33
all of those yes03:33
igli then idk how someone else could have left it in the middle of a rebase.03:34
impliednude no idea03:34
around 4 months ago they had initial devs on it03:34
JanC left03:35
AaronMT left03:35
impliednude they had it on some funky server they hosted. they finished the project03:35
the repository that is03:35
igli "left in the middle of a rebase" implies a local working copy, afaik.03:35
impliednude I thank you for the education igli03:36
^_^03:36
peoliye_ left03:36
impliednude All I know is if I had just left this on local and not tried to do something fancy03:36
like send to the remote git repository I wouldn't be in a whole world of shhh03:37
hehe03:37
igli well i'd sort out the server situation, as it must be bare if people are collaborating via it.03:37
impliednude I wont EVER try to send to remote again. At this point Igli, I am just trying to get it back to working03:38
igli and never work "directly on the server"03:38
impliednude igli. I will do better than that. I just wont use a git remote repository besides for backing up stuff03:38
igli yes we all know, you don't need to keep saying you just want it to work. surprise surprise that's pretty common03:38
daurnimator impliednude: no. don't do that.03:38
igli and we all know you want to keep your files.03:38
daurnimator impliednude: get a proper workdlow03:38
igli that ^03:38
impliednude pulls her hair out03:38
daurnimator develop locally; and push only *production ready code* to production.03:38
igli repos/clones are cheap03:39
daurnimator never work on the server.03:39
samw joined03:39
impliednude I apologize. I will read a book on this. but I need a fix in the meanwhile03:39
bronson joined03:39
daurnimator impliednude: so do you actually want app/design/frontend/coolbaby/default/template/checkout/onepage/review/1 ?03:39
impliednude yes03:39
diegoviola left03:40
impliednude I want all of those files back03:40
rchavik joined03:40
daurnimator impliednude: I think your last paste was cut off?03:40
ogelami joined03:40
impliednude okay.03:40
scarabx joined03:41
impliednude http://pastebin.com/LCRGfMyy ln 17-3803:41
daurnimator impliednude: but I think you want: 'git checkout --hard 9337f96' then 'git stash pop'. just beware that this is the first command I've told you that can result in *losing your work*. perhaps backup the whole folder first :)03:41
impliednude okay if you read line 17 through 3803:42
Poppa left03:42
igli backup++03:42
impliednude when I did what you told me it deleted those files on checkout production03:42
daurnimator impliednude: lines 17-38 appear to be the changes in your stash. so we can ignore them.03:42
arescorpio left03:42
impliednude I need those files back. they are NO longer on the system at all03:42
diego1 joined03:42
impliednude the ones that say deleted by us03:43
zarubin joined03:43
CKyle joined03:43
igli the objects are still there; just backup the whole directory first.03:43
impliednude I thought this was essentially a backup /sighs03:43
how do I backup the whole file system?03:44
samw left03:44
impliednude erm directory03:44
igli tmp copy of the git repo, not backup to regular backup archive.03:44
bronson left03:44
igli *sigh*03:44
daurnimator sudo cp -r /var/www/html/magento ~/magneto.backup03:44
impliednude and the only reason why I was working on the production is the boss wants to see changes "yesterday"03:45
igli stop the meta-chat. there's so much of it.03:46
ogelami left03:46
impliednude sorry igli03:46
igli k03:46
sparetire_ left03:47
impliednude once I do that. What should I do next?03:48
LaptopBrain left03:48
zarubin left03:48
diego1 left03:49
diego1 joined03:49
diego1diegoviola03:49
JanC joined03:49
ryxai joined03:50
xtun left03:50
waveclaw left03:50
impliednude should I do git checkout --hard 9337f96 then git stash pop?03:51
roygbiv joined03:51
weox left03:52
forbidden404 left03:53
funfunctor left03:53
ash_workz joined03:53
daurnimator yep03:53
xtun joined03:54
impliednude and that will fix everything daurnimator?03:55
daurnimator I dunno. you started off in a very weird state03:55
FireArrow133 left03:56
hyperair joined03:56
nettoweb left03:56
MarkyC joined03:57
_cyril_ joined03:57
Oog left03:57
funfunctor joined03:57
impliednude unknown option hard03:58
did git checkout --hard 9337f9603:59
daurnimator uh, I meant 'git reset --hard'03:59
then `git checkout 9337f96`03:59
devoldmx joined04:00
impliednude so git checkout 9337f96 gave it to a much earlier checkout (one I did yesterday)04:01
_cyril_ left04:01
MarkyC left04:01
impliednude yay!!! thank you guys!!!04:02
I am sorry if I was a total psycho. I know I should learn more. but I am just a developer who generally only uses git to ensure I can recover from screw ups so my knowledge is limited. Thanks again!04:03
gfixler joined04:03
devoldmx left04:04
zumba_ad_ joined04:06
Oog joined04:07
z8z joined04:09
mezod left04:10
relipse left04:10
garples left04:12
localuser joined04:13
igli !tias impliednude04:14
gitinfo Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://gitolite.com/tias.html may help with git-specific TIAS.04:14
igli impliednude: once you have this work saved, do that ^^04:14
i highly recommend at the server-side.04:15
i highly recommend gitolite* at the server-side.04:15
DWestCoast joined04:16
zacg left04:17
localuser- left04:17
joki joined04:18
jteneyck joined04:19
jteneyck left04:19
jteneyck joined04:19
waveclaw joined04:19
boombatower joined04:19
elisa87 joined04:21
faux___ left04:21
waveclaw left04:24
elisa87 so I get this error http://pastebin.com/iLr7UWTK file is too large I deleted the file but still it insists that file is too large even though it does not exits. What is the solution?04:24
funfunctor left04:25
MrWoohoo joined04:25
MrWoohoo2 joined04:25
igli looks like it's still in the commit or history04:26
waveclaw joined04:26
elisa87 igli: how to remove it04:26
mehola joined04:27
igli is that on push?04:28
git status # how many commits ahead are you?04:28
i'd check the history to see where you added it04:29
i use gitview, but that's not always built04:29
elisa87 igli: we are ahead by 4 commits04:29
igli so review the commits, however you usually do that, and see where the file gets added04:30
i'm sure there's a command like git-blame or sth, but idk exact form04:30
if the file is added on its own, in one commit, you can easily remove it04:31
peoliye joined04:31
funfunctor joined04:31
DavidDudson left04:32
momo_codez joined04:32
igli [close editor] git stash. git rebase -i origin/master # if you're on master branch04:32
mmlb left04:32
igli then you can delete the commit from the list04:32
elisa87 igli yes we are on push momo_codez is my teammate and is going to provide you further details04:34
igli elisa87: i'm not an expert so wait for someone more knowledgeable to confirm things as well.04:34
elisa87 igli: what ? we have a git-blame command?04:34
igli man git-blame04:34
gitinfo the git-blame manpage is available at http://jk.gs/git-blame.html04:34
diogenese joined04:34
ncthom91 joined04:34
igli elisa87: how do you normally review history?04:34
diogenese left04:35
rchavik left04:35
momo_codez ig04:35
igli git log # doesn't show the added files etc, unless i'm missing the options as per-usual04:35
elisa87 I want to run this but I am not sure if this is correct can someone confirm that please git rebase -i origin/master momo_codez04:35
aidalgol left04:36
igli you can always do it in a temp branch04:36
elisa87 thanks igli git rebase worked04:36
igli yay :)04:36
zumba_ad_ left04:36
rchavik joined04:36
zumba_ad_ joined04:36
xtun left04:37
kaiza joined04:37
igli if you did: git stash # then: git stash pop # will restore any changes04:37
CKyle left04:37
igli hmm might have to recommend: git stash -k # based on earlier04:37
irqq joined04:37
daurnimator -u is also good :)04:38
DolpheenDream left04:38
igli ah nice04:39
funfunctor left04:39
igli wouldn't checkout/rebase leave those alone?04:40
momo_codez igli: Hi, I am team mate trying to troubleshoot this error04:41
Looks like the file was added in a previous commit04:41
igli momo_codez: ok; daurnimator is more expert than I04:41
momo_codez After that we deleted it locally04:41
ok04:41
igli was anything else in that commit besides the new file?04:41
momo_codez daurnimator:04:41
Rodya_ left04:41
bronson joined04:41
momo_codez yes04:41
there were other things04:41
which aren't deleted04:42
Rodya_ joined04:42
DWestCoast left04:42
momo_codez what I guess I can do alternatively is delete the .git04:42
igli ok, i'm out then.04:42
momo_codez create a new repo on github04:42
and re add04:42
xtun joined04:42
bronson left04:42
momo_codez daurnimator:04:43
gfixler what's the issue momo_codez?04:43
bronson joined04:43
momo_codez ok I'll retell04:43
remote: error: File workloads/tpc/hive-tpcds-tpch-workload.tar is 211.78 MB; this exceeds GitHub's file size limit of 100.00 MB04:43
This is the error04:43
But the file doesn't exist04:43
gfixler ah, okay04:43
so it's in an old commit?04:44
momo_codez I tried git rm on the file04:44
daurnimator momo_codez: 'git log -p' which commit did it arrive in?04:44
momo_codez yes most likely04:44
skorgon joined04:44
skorgon left04:44
skorgon joined04:44
bronson left04:44
gfixler momo_codez: is this a new repo you're trying to upload, or just some commits you're trying to push?04:44
Motoko joined04:44
ncthom91 left04:45
momo_codez gfixler: old repo,commits I am trying to push04:45
bronson joined04:45
igli commit adding the file has other changes (not sure if edits or new files only)04:45
otter768 left04:46
momo_codez so I did the log -p with grep on the file04:46
git log -p | grep hive-tpcds-tpch-workload.tar04:46
diff --git a/workloads/tpc/hive-tpcds-tpch-workload.tar b/workloads/tpc/hive-tpcds-tpch-workload.tar04:46
Binary files a/workloads/tpc/hive-tpcds-tpch-workload.tar and /dev/null differ04:46
diff --git a/workloads/tpc/hive-tpcds-tpch-workload.tar b/workloads/tpc/hive-tpcds-tpch-workload.tar04:46
Binary files /dev/null and b/workloads/tpc/hive-tpcds-tpch-workload.tar differ04:46
bronson left04:46
roygbiv left04:46
igli ah log -p # nice04:47
daurnimator momo_codez: so you found the commit? :) is there anything else in that commit besides that change?04:47
gfixler momo_codez: you can just do an interactive rebase on the commit where it was added and remove it04:47
momo_codez This is the o/p I obtained. apologies for the verbose o/p04:47
http://pastebin.com/3Gh5gtXh - here's the summary04:47
bronson joined04:47
toothrot left04:47
momo_codez No I don't believe I found the commit04:47
daurnimator momo_codez: I don't want the grep; I want the commit hashes those changes belong to.04:47
momo_codez I see, I will do that in a sec04:48
ash_workz is the general process (1) pull from a --bare repo (2) do stuff locally (3) push upto repo (4) pull/push from repo to testing?04:48
bronson left04:48
Oog left04:49
funfunctor joined04:49
bronson joined04:49
lubarch joined04:49
lubarch left04:49
lubarch joined04:49
momo_codez daurnimator:04:50
I did, it what did you want to take a look at04:50
daurnimator momo_codez: this should work for you: git filter-branch --tree-filter 'rm -f workloads/tpc/hive-tpcds-tpch-workload.tar' HEAD04:50
momo_codez diff --git a/workloads/tpc/hive-tpcds-tpch-workload.tar b/workloads/tpc/hive-tpcds-tpch-workload.tar04:50
deleted file mode 10075504:50
index 7ff1fef..000000004:50
ok will give it a shot daurnimator04:50
bronson left04:50
ash_workz I mean, that seems to be the kind of case with https://git-scm.com/book/en/v2/book/05-distributed-git/images/managed-team-3.png04:51
cept (4) which is really what I'm getting at04:51
bronson joined04:51
garples joined04:51
igli eh? those look like branches04:52
jacksparrow007 joined04:52
ash_workz igli: you're right, that's not the right picture actually04:52
momo_codez ok, it did a bunch of rewrites04:52
12 of them04:52
bronson left04:53
momo_codez I am going to see if it works now04:53
rubyonrailed joined04:53
igli it's up to you whether you use another testing repo; more likely deploy to a temp checkout and run tests. main thing is to tag, afaict.04:53
bronson joined04:53
igli pre-commit hooks at workstation to run tests, and post-commit at server to deploy/test, or simply push to test server04:54
!deployment iirc04:54
gitinfo [!deploy] 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.html04:54
bronson left04:55
chucky_z left04:55
ash_workz igli: but how is that typically done? ssh to the server; cd to the working dir and do git pull ?04:55
bronson joined04:56
funfunctor left04:56
sgambino left04:57
igli what precisely?04:57
bronson left04:57
rorro left04:57
MarkyC joined04:57
igli deployment as above for simple stuff. remember the server repo MUST be bare04:57
_cyril_ joined04:57
igli consider a bare repo at your end, for staging.04:58
momo_codez Thanks folks it worked beautifully :)04:58
bronson joined04:58
ash_workz igli: yeah, but a bare repo is not used for a live, or server testing site04:58
momo_codez daurnimator: igli: special thanks to you guys04:58
igli momo_codez: yw04:58
ash_workz: it's the core hub. if you don't have it bare, YDIW04:58
Wetmelon left04:59
ash_workz igli: not what I meant04:59
igli i recommend gitolite on the server-side.04:59
*shrug*04:59
please stop pinging me.04:59
ash_workz sorry04:59
bronson left04:59
ahr3n left04:59
igli ok04:59
jteneyck left04:59
bronson joined05:00
ash_workz atm; we don't have a deployment tool; I intend to get one up and running soon; but there are some other matters that require critical attention05:00
axisys left05:01
bronson left05:01
ash_workz so what I'd like to know is in lieu of that; what is the best way to deploy code? this doesn't need to be automated upon pushing; the fact that it's not will probably be ideal in some circumstances (atm) to give someone else the chance to fetch and review the code before merging05:02
MarkyC left05:02
bronson joined05:02
daurnimator ash_workz: it very much depends what a deploy is for you05:02
igli there is no one method. it depends on what exactly the setup is.05:02
_cyril_ left05:02
momo_codez left05:02
daurnimator for a subset of setups, you can use git end to end05:02
ash_workz hmmm I see05:03
daurnimator though that is rare outside certain web development styles05:03
ash_workz daurnimator: the process here needs to be updated05:03
amongst other things05:03
bronson left05:03
igli i'd just push to your bare repo, and let QA pull from it at their leisure.05:03
CheckDavid joined05:03
presto left05:04
daurnimator ash_workz: there are two main styles: devs commit to master, and branch-style05:04
bronson joined05:04
ash_workz is there a git command that will show all the local repos on the machine? something that would give you results similar to `find . -type d -name .git` (or is _that_ the best way)05:04
igli lul05:05
daurnimator I prefer the former; but it doesn't work with large teams in the one repository. IMO you shouldn't have a large team in the first place; and should rather split up your project if it grows past ~4 devs05:05
kadoban ash_workz: There's no global registry or anything, git can't do that.05:05
igli wants a git command to write his code for him. is that there yet? ;)05:05
kzisme Anyone had tips or willing to share their .bashrc for OSX? Looking to improve mine05:05
bronson left05:05
peoliye left05:05
tpollard left05:06
daurnimator kzisme: what do you want?? I just type out all my git commands05:06
ash_workz ot?05:06
oh05:06
nvm05:06
kzisme Better colors on ls, git stuff included, and a better non standard PS105:06
More or less05:06
daurnimator:05:06
bronson joined05:06
daurnimator oh; I guess I have a PS105:06
I made my own though05:07
igli there's this (not used it, but colleague does): https://github.com/arialdomartini/oh-my-git05:07
kzisme What is yours like05:07
daurnimator kzisme: https://gist.github.com/daurnimator/448443705:07
bronson left05:07
kzisme Looks good igli - but I dislike that status bar style05:08
bronson joined05:08
igli there's some sh aliases for git here: https://forums.gentoo.org/viewtopic-p-7587838.html#758783805:08
*shrug*05:09
localuser- joined05:09
_Vi left05:09
israelzuniga joined05:09
bronson left05:10
bronson joined05:10
bronson left05:12
jacksparrow007 left05:12
bronson joined05:13
localuser left05:13
bronson left05:14
sfz- joined05:14
diogenese joined05:14
hackel left05:15
nikio_ left05:15
ig0r__ joined05:15
lubarch left05:15
nikio_ joined05:15
joufflu joined05:16
Gamecubic left05:16
zumba_ad_ left05:19
ig0r_ left05:19
psk17_ joined05:19
localuser joined05:19
zumba_ad_ joined05:20
ayaz joined05:20
ig0r__ left05:21
nilg left05:22
_Vi joined05:22
gopar joined05:23
joufflu left05:23
localuser- left05:23
irqq left05:27
dsdeiz_ left05:28
nydel07 left05:31
xtun left05:35
acetakwas left05:35
Manikandan joined05:36
zumba_ad_ left05:38
nydel07 joined05:38
hahuang61 left05:39
dreiss joined05:40
DavidDudson joined05:40
roentgen joined05:41
fuchsi left05:41
ogelami joined05:42
zarubin joined05:43
DavidDudson left05:44
DavidDudson joined05:45
Thor_ left05:45
ogelami left05:46
zarubin left05:48
benzrf left05:49
radsy left05:52
diogenese left05:56
[0xBEAKER] left05:56
Rodya_ left05:57
DavidDudson left05:57
jteneyck joined05:57
jteneyck left05:57
jteneyck joined05:57
MarkyC joined05:58
diogenese joined05:58
terminal_echo left05:58
DavidDudson joined05:59
_cyril_ joined05:59
thiago joined06:00
devoldmx joined06:00
z8z left06:02
MarkyC left06:02
nnyk joined06:03
abacuspowers left06:04
_cyril_ left06:04
devoldmx left06:05
happy-dude left06:05
nidr0x joined06:07
nidr0x left06:08
nidr0x joined06:08
nnyk left06:09
smithbone_ joined06:10
sdothum left06:10
dsdeiz joined06:10
tieTYT joined06:11
xtun joined06:12
hmmwhatsthisdo joined06:12
rscata joined06:13
hmmwhatsthisdo Suppose I commited a change to my local master, but realized I done goofed and want to make that commit cease to exist. I haven't pushed to any remotes yet. What do I do?06:13
nowhereman left06:14
nowhereman joined06:14
bronson joined06:14
kadoban hmmwhatsthisdo: https://sethrobertson.github.io/GitFixUm/fixup.html#remove_last should be what you want, one of those. Read carefully.06:16
MechtiIde joined06:18
bronson left06:20
Kicer86 joined06:21
RTG` joined06:21
boombatower left06:21
tieTYT left06:26
CheckDavid left06:27
pizzaops joined06:27
spr0tsuki joined06:27
yena joined06:28
lolmaus joined06:34
PCatinean joined06:35
CheckDavid joined06:35
rubyonrailed left06:35
ixjlyons left06:36
jceb joined06:36
ThomasLocke joined06:37
skorgon left06:37
lindenle left06:38
survi joined06:40
harish joined06:42
ogelami joined06:43
zarubin joined06:43
qwerty_ joined06:44
qwerty_ Hello, I executed "git fetch; git checkout branchname" and files didn't change. How can I download files from another branch?06:45
diogenese left06:45
jceb left06:46
otter768 joined06:47
ogelami left06:47
zarubin left06:48
diogenese joined06:49
jceb joined06:50
mehola left06:50
devoldmx joined06:50
kadoban qwerty_: git will make a lot more sense if you learn from the beginning. !book06:50
gitinfo qwerty_: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable06:50
gopar left06:51
otter768 left06:52
survi left06:55
User458764 joined06:57
survi joined06:57
MechtiIde left06:58
Mixologic joined06:59
qwerty_ left07:00
_cyril_ joined07:00
jetpackjoe joined07:00
lubarch joined07:01
lubarch left07:01
lubarch joined07:01
peoliye joined07:01
_cyril_ left07:05
the_rabbit joined07:05
garples left07:05
dreiss left07:05
ogelami joined07:08
lindenle joined07:08
CheckDavid left07:09
dreiss joined07:09
KeelOfSteel joined07:10
rchavik left07:11
sokolowitz joined07:11
freimatz joined07:12
lindenle left07:13
jacksparrow007 joined07:13
akkad left07:14
survi left07:15
survi joined07:15
samw joined07:16
roelmonnens joined07:16
rchavik joined07:16
jagob left07:16
rchavik left07:18
jacksparrow007 left07:18
Yeomra joined07:19
dopesong left07:20
akkad joined07:20
samw left07:21
localuser- joined07:22
acolson joined07:23
troulouliou_div2 joined07:24
localuser left07:27
rorro joined07:28
anth0ny_ joined07:29
MeltedLux joined07:30
ig0r_ joined07:32
hexagoxel left07:32
User458764 left07:35
DavidDudson left07:36
iLembus joined07:38
jay-m joined07:38
diogenese left07:40
hexagoxel joined07:40
garples joined07:41
cebor left07:41
DavidDudson joined07:42
cebor joined07:42
mkoskar joined07:42
jetpackjoe left07:43
zarubin joined07:43
ogelami left07:43
Motoko left07:44
blackwind_123 left07:45
mirton joined07:45
blackwind_123 joined07:47
lubarch left07:47
jteneyck left07:47
CausaMortis joined07:47
DavidDudson left07:48
zarubin left07:48
petaflot_ joined07:48
Lor_ joined07:49
eijk_ joined07:49
mirton left07:49
AmayA-_ joined07:49
tvw joined07:50
mehola joined07:52
petaflot left07:52
lubarch joined07:52
lubarch left07:52
lubarch joined07:52
diogenese joined07:52
AmayA-_ left07:53
DavidDudson joined07:53
Sceorem joined07:54
pantsman- joined07:55
devoldmx left07:56
mehola left07:57
rorro left07:57
geomyidae joined07:57
Goplat left07:57
bb010g left07:58
DavidDudson left07:58
harish left07:59
ogelami joined08:00
abacuspowers joined08:01
_cyril_ joined08:01
gingitsune joined08:02
InfoTest joined08:02
gingitsune Does a remote repo need to be in name.git in order to push a new branch to it08:02
ogelami left08:02
TomyWork joined08:02
tfry left08:03
gingitsune http://hastebin.com/xatiziyuni.vbs08:03
grawity technically no08:04
it just needs to be a "bare" repo in order to push to its *current* branch08:04
and bare repos are usually named *.git08:04
when pushing a new branch it doesn't matter – like the error message says, you're hitting a protocol error there08:05
actually, maybe you're trying to push to a shallow repo? older versions do not allow that08:05
rorro joined08:05
_cyril_ left08:06
abacuspowers left08:06
Lor_Lor_hug08:06
garples left08:08
devoldmx joined08:09
nnyk joined08:09
ig0r_ left08:11
elsevero joined08:12
mwhooker joined08:13
Silox| joined08:13
wxg joined08:13
adac joined08:15
garples joined08:16
troulouliou_div2 left08:18
devoldmx left08:18
ig0r_ joined08:19
jimi_ left08:19
fscala left08:19
dopesong joined08:20
fscala joined08:20
bonswouar joined08:21
lolmaus left08:25
kadoban left08:26
zeroed joined08:26
roxlu joined08:27
thiago left08:27
diogenese left08:29
BSaboia joined08:29
dreiss left08:32
waveclaw left08:33
josuebrunel joined08:35
jceb left08:35
dreiss joined08:36
koltroll joined08:37
JohnMaximilian_ left08:38
dvaske joined08:38
elsevero left08:39
SimonNa joined08:39
lubarch left08:40
lubarch joined08:43
hmmwhatsthisdo left08:43
zarubin joined08:43
bronson joined08:44
jay-m left08:44
jay-m joined08:44
lubarch left08:45
lubarch joined08:47
lolmaus joined08:48
otter768 joined08:48
kurkale6ka joined08:48
zarubin left08:48
talin hello. is there a way to see when a branch was made or what point it was branched from? i merged master into my branch and it fixed an issue, so i'm trying to figure out what commit fixed it08:49
nnyk left08:49
eijk joined08:51
eijk_ left08:52
otter768 left08:53
xtun left08:53
ig0r_ left08:53
dreiss left08:55
xtun joined08:55
devoldmx joined08:55
denirachmadi joined08:56
oojacoboo left08:56
diogenese joined08:56
DavidDudson joined08:57
reim joined08:58
lubarch left08:58
dvaske_ joined08:59
encod3 joined08:59
funfunctor joined08:59
grawity 1) no; 2) sorta (using git merge-base --fork-point); 3) try using `git bisect` for that09:00
sazed joined09:00
devoldmx left09:00
dvaske left09:01
spykins joined09:01
iLembus left09:01
elsevero joined09:02
_cyril_ joined09:02
abacuspowers joined09:02
reim left09:02
spykins Hello everyone, does anyone have any idea how i can switch user account on git? i get The requested URL returned error: 403 when i try to push github09:03
localuser- left09:03
aidalgol joined09:03
lubarch joined09:03
rorro left09:03
DavidDudson left09:06
lubarch left09:06
_cyril_ left09:07
abacuspowers left09:07
lubarch joined09:08
DavidDudson joined09:09
harish joined09:10
bronson left09:10
diogenese left09:11
mwhooker left09:13
reim joined09:13
User458764 joined09:13
jacksparrow007 joined09:14
afuentes left09:15
lubarch left09:15
irqq joined09:17
DavidDudson left09:17
israelzuniga left09:18
dorkmafia left09:19
liamonade joined09:19
jacksparrow007 left09:19
ig0r_ joined09:19
marcogmonteiro joined09:19
fuchsi joined09:20
lolmaus left09:20
afuentes joined09:21
elsevero left09:22
DavidDudson joined09:22
elsevero joined09:22
sigma__ joined09:23
rchavik joined09:23
InfoTest left09:23
sigma__Guest7301309:23
CustosLimen hi09:24
so I want to clone guile's git repo - and make some changes - but still be able to fetch changes made by guile09:24
blr_ joined09:24
CustosLimen not sure how to do this09:24
and I want to clone it into gitlab.com09:24
is it: git clone --mirror http://git.savannah.gnu.org/cgit/guile.git mirror-guile.git09:25
then ( cd mirror-guile.git && git push --mirror [email@hidden.address] )09:25
but then I have mirror - but now I still need to set remote or something to fetch remote changes09:25
leeN joined09:25
scarabx left09:26
Seveas if you want to make changes, you don't want a mirror or bare clone, just a normal one.09:27
DavidDudson left09:27
Asenar joined09:31
DavidDudson joined09:31
CustosLimen Seveas, ok - but thing is - first i want to kinda get http://git.savannah.gnu.org/cgit/guile.git on gitlab so company team can edit it09:32
and then I want to get updates to gitlab copy from http://git.savannah.gnu.org/cgit/guile.git09:32
moritz_s CustosLimen: no need for --mirror there, just add the upstream guile repo as remote09:33
Seveas CustosLimen: so you've done that now :) Now create a normal clone of your gitlab'ed repo and add the savannah one as remote. Then you can just fetch, merge, rebase and push between them09:33
your mirror-guile.git can be deleted09:33
CustosLimen Seveas, ok09:34
niax left09:34
clmsy joined09:34
Hounddog joined09:35
DavidDudson left09:35
doener joined09:35
CustosLimen so I do 'git remote add upstream http://git.savannah.gnu.org/cgit/guile.git mirror-guile.git'09:35
niax joined09:35
DavidDudson joined09:35
Zariel joined09:35
Zariel left09:35
CustosLimen and then git pull --all upstream09:36
Zariel joined09:36
DavidDudson left09:37
Seveas no09:38
diogenese joined09:38
diogenese left09:38
Seveas git clone [email@hidden.address]09:38
cd guile09:38
git remote add upstream http://git.savannah.gnu.org/cgit/guile.git09:38
git fetch09:38
git fetch upstream09:38
Lor_hugLor_09:39
funfunctor left09:39
n00bdev joined09:40
_rgn Seveas: https://github.com/seveas/git-spindle/issues/96 how do I test this, I installed git-spindle with pip09:40
Alienpruts joined09:41
ryxai left09:41
diogenese joined09:42
CustosLimen ok thanks Seveas09:42
gingitsune grawity: Indeed it was a shallow repo, thanks09:42
alanwill left09:43
zarubin joined09:43
rchavik_ joined09:44
rchavik_ left09:44
zotherstupidguy joined09:45
Seveas _rgn: pip install https://seveas.net/git-spindle-3.1.tar.gz09:45
Zariel left09:45
survi left09:46
geomyidae left09:46
CustosLimen Seveas, so after git fetch upstream how do I get changes from upstream into origin ?09:46
ig0r_ left09:47
rchavik left09:48
sazed left09:48
zarubin left09:48
denirachmadi left09:48
peoliye left09:49
_rgn Seveas: http://ix.io/mKs this seems weird09:51
Dullin joined09:51
_rgn Seveas: if I add "myprivategitlab" in [gitlab], and use git lab --account myprivategitlab, it works09:52
Seveas: has this changed?09:52
mouserat joined09:53
garples left09:56
devoldmx joined09:56
n00bdev left09:56
reim_ joined09:57
_nadim left09:57
reim left09:58
_nadim joined09:58
_cyril_ joined10:00
devoldmx left10:01
MarkyC joined10:01
yuhlw joined10:02
garples joined10:03
rnsanchez joined10:04
sparetire_ joined10:05
MarkyC left10:06
_cyril_ left10:06
aidalgol left10:07
dopesong left10:07
diogenese left10:08
dopesong joined10:09
lindenle joined10:10
jay-m left10:11
jay-m joined10:11
rnsanchez left10:13
rendar joined10:13
lindenle left10:15
spykins can someone please help me, my old github account is popping up and i get The requested URL returned error: 403 when i tried to push10:16
jast perhaps your repo is still referencing the old account... does the account name show up in the URL in this? git remote -v10:18
bronson joined10:19
ifra201 joined10:19
mkoskar left10:23
loren joined10:23
bronson left10:24
spykins it shows the username does not have permission10:24
how do i switch the account, can i sign out of my old account n sign in into my new account?10:24
alexander__b joined10:25
rnsanchez joined10:25
juril joined10:26
daito left10:26
jceb joined10:26
mischat joined10:27
mischat left10:27
nfk|laptop joined10:27
diegoviola left10:28
mischat joined10:28
alexander__b left10:28
alexander__b joined10:28
alexander__bbernalex10:28
spykins i have used git config user.name ___ and git config user.email ___ all to no avail10:28
King_Hual joined10:29
King_Hual left10:29
King_Hual joined10:29
Haris joined10:29
King_Hual left10:29
spykins it keeps popping my old account with The requested URL returned error: 40310:29
King_Hual joined10:29
King_Hual left10:29
King_Hual joined10:29
canton7 spykins, are you trying to push over https or ssh?10:29
codeman joined10:30
spykins https10:30
lubarch_ joined10:30
canton7 the username is specified in the url you're pushing to10:30
(see 'git remote -v')10:30
spykins yes10:30
lubarch_ left10:30
canton7 so... does the url contain your old github username?10:31
jost joined10:31
jceb left10:31
garples left10:32
mouserat left10:32
ZokkanUpdatingGi joined10:32
Haris hello all. I created a new repo like this (1) cd /home/gitrepo/projects/prodname (2) git init --bare --shared (3) git init (4) git update-server-info. Now, I cloned this repo. added a README file, with 2 lines. ran git add *. ran git commit -m "some comment - for initial commit". Then tries git push origin master. On push it says --> error: insufficient permission for adding an object to repository database ./objects10:32
<-- I checked the objects folder. It is --> drwxrwsr-x 4 git git 4096 Dec 11 15:21 objects/ <-- Are my dir permissions wrong ? do I need rwS or rwX rather than rws for it to work ?10:32
tried+10:33
spykins canton7: Permission to my_new_userName/repository_name.git denied to my_old_userName.10:33
fatal: unable to access 'https://github.com/my_new_userName/repository_name.git/': The requested URL returned error: 40310:33
mouserat joined10:33
xtun left10:33
notebox joined10:33
canton7 spykins, you didn't answer my question10:33
lubarch joined10:34
lubarch left10:34
lubarch joined10:34
spykins No, it contains the new github username10:34
canton7 can you pastebin the output of 'git remote -v' please?10:34
User458764 left10:34
lubarch left10:34
Haris need help10:35
lubarch joined10:36
lubarch left10:36
lubarch joined10:36
spykins canton7: Thaks10:36
origin https://github.com/my_new_userName/repository_name.git (fetch)10:36
origin https://github.com/my_new_userName/repository_name.git (push)10:36
jast Haris: nah, so far, so good. is the user you're using to push a member of the git group?10:36
permalac joined10:36
xtun joined10:37
jast spykins: does push ask you for a username and/or password?10:37
Haris yes10:37
lubarch left10:37
spykins No10:37
canton7 spykins, oh, so I wasn't clear enough. 'git remote set-url origin https://my_new_userName@github.com/my_new_userName/repository_name.git'10:37
lubarch joined10:37
lubarch left10:37
lubarch joined10:37
jost left10:37
lubarch left10:37
jast chances are you have your old account data saved somewhere, probably ~/.netrc10:38
spykins jast: I even used git config user.name “”10:38
canton7 or maybe he's done the 'url.<name>.insteadOf' trick..10:38
jast spykins: that's entirely different, it just influences what name shows up in your commits. it's *not* used for authentication.10:38
canton7 spykins, user.name has not bearing on what username is used when authenticating over https10:38
*has no10:38
jast well you don't set insteadOf by accident :)10:38
canton7 yeah, but he might have been following SO a while ago, then forgotten :P10:39
courrier joined10:39
spykins canton7: i think it’s using my old account set up10:39
canton7 spykins, yes, obviously10:39
spykins canton7: how do i overide it with the new account?10:40
jast Haris: do the permissions for everything in objects/ look correct, too? (no need to paste, I'll trust your word ;))10:40
spykins Any idea10:40
canton7 spykins, I've already given you a solution10:40
Haris checking10:40
lubarch joined10:41
lubarch left10:41
lubarch joined10:41
jast I don't see why they shouldn't but better make sure10:41
canton7 <canton7> spykins, oh, so I wasn't clear enough. 'git remote set-url origin https://my_new_userName@github.com/my_new_userName/repository_name.git'10:41
lubarch left10:41
canton7 maybe I needed to be clearer about that. Try running 'git remote set-url origin https://my_new_userName@github.com/my_new_userName/repository_name.git' to add your username to the url10:41
jost joined10:41
spykins the https is using my new username10:42
but i am pushing with the old username config on my system10:42
canton7 spykins, can you spot the difference between 'https://my_new_userName@github.com' and 'https://github.com'?10:42
geri joined10:43
ZokkanUpdatingGi left10:44
spykins canton7: i don’t know really, i am new to github… but the git remote -v10:44
gave the that10:44
canton7 spykins, do you realise that 'https://my_new_userName@github.com' has an extra 'my_new_userName@', which 'https://github.com' does *not* have?10:45
I'm not sure what else to say10:45
I'm telling you to change the URL you're pushing to. I'm telling you to change it to a URL which explicitly contains the username to push as10:46
jast your current setting is https://github.com/yourname/something. this doesn't tell git what username to use, even if it may seem like it does. there may be defaults stored elsewhere that git ends up using. to make sure those defaults are not used, you can change the URL to include your name twice, as suggested by canton710:46
canton7 Please do that. I can't make this any more clear10:46
t4nk231 joined10:48
sokolowitz left10:48
spykins canton7: Thank you so much, i am still abit lost though with the url thingy10:48
sokolowitz joined10:48
spykins jast: Do you mean i should do this?10:48
otter768 joined10:49
petaflot_ left10:49
canton7 spykins, as jast just said, then url 'https://github.com/my_new_userName/repository.git' only tells git *where* to push to. It does not tell git which *user* to push as. Therefore it's falling back on some old record of which user to push as, which is out of date. You can tell git which user to push as by adding the username just before the 'github.com', as I showed you10:49
spykins, for the fourth time, please run 'git remote set-url origin https://my_new_userName@github.com/my_new_userName/repository_name.git'10:50
petaflot joined10:50
spykins canton7: thanks, i understand that now10:50
Silox| left10:50
PeterBooker joined10:50
samw joined10:52
otter768 left10:53
spykins canton7: Thank you so much….. i have been on this for 6 hours …. i wish i could send you a chill beer10:54
canton7: i really appreciate man, i have pushed succesfully……10:54
t4nk231 left10:54
canton7 just promise me that, next time, if you don't understand an answer that you've been given, say that you don't understand it. Please don't just repeat the question10:55
Repeating the question means that we just end up going round and round in circles10:55
samw left10:57
ChoHag left11:01
diogenese joined11:01
spykins canton7: I promise and i am so sorry, the url thingy was so confusing.. I just went through the chat and i found out you have given me the answer. You even asked me the difference between the urls… My Attention to Details is 0 /10011:01
canton7: Thank you for your patience, you are well appreciated11:02
canton7 :)11:02
_cyril_ joined11:02
Haris2 joined11:03
Alienpruts left11:03
xtun left11:03
abacuspowers joined11:04
Alienpruts joined11:05
Haris left11:05
zmachine joined11:05
nettoweb joined11:05
_cyril_ left11:07
ig0r_ joined11:08
abacuspowers left11:09
troyt joined11:09
reim_ left11:11
loren left11:14
nnyk joined11:15
jacksparrow007 joined11:15
Haris2 left11:16
ayaz left11:16
funfunctor joined11:17
Anticom joined11:18
sdothum joined11:18
noark9 left11:19
jacksparrow007 left11:19
jds joined11:20
funfunctor left11:22
leeN left11:23
cagedwisdom left11:24
daito joined11:27
stamina joined11:27
reim joined11:27
Dev0n joined11:27
daito left11:31
funfunctor joined11:32
Zenrium left11:33
JanC left11:35
reim left11:36
fees joined11:38
faux___ joined11:39
fees left11:40
fees joined11:40
King_Hual left11:41
xtun joined11:43
faux___ left11:44
BSaboia left11:44
nettoweb left11:45
nettoweb joined11:45
nettoweb left11:46
_nadim left11:46
_nadim joined11:46
ig0r_ left11:46
Haris joined11:49
Haris left11:49
Haris joined11:49
JanC joined11:49
mellernoia joined11:50
Lor_ left11:51
pkeuter joined11:51
reim joined11:51
skylite joined11:51
shiriru joined11:52
bollullera joined11:54
mehola joined11:54
reim left11:56
jimi_ joined11:56
ash_workz left11:57
devoldmx joined11:57
mehola left11:59
MattMaker left11:59
funfunctor left12:00
devoldmx left12:01
reim joined12:01
_cyril_ joined12:03
dopesong left12:03
dopesong_ joined12:03
s8321414 joined12:04
nettoweb joined12:04
dopesong_ left12:05
dopesong joined12:06
ldc joined12:07
ldc hello12:07
gitinfo ldc: 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.12:07
ldc one of my users is complaining that he gets no changes pushed to the server, as in, files are not changed12:07
dopesong left12:07
ldc I see his commits in git log and in tig, and he's on master12:07
_cyril_ left12:08
spykins_ joined12:08
spykins left12:09
spykins_spykins12:09
dopesong joined12:09
blackwind_123 left12:09
wxg left12:11
bronson joined12:11
dopesong left12:12
reim left12:13
ig0r_ joined12:14
blackwind_123 joined12:15
bronson left12:16
forbidden404 joined12:17
funfunctor joined12:17
Haris2 joined12:18
ItSANgo joined12:18
Manikandan left12:19
Haris left12:19
acolson left12:20
yqt joined12:22
mkoskar joined12:23
jay-m left12:24
ig0r_ left12:24
jay-m joined12:24
settermjd joined12:25
paulweb515 left12:25
jstimm left12:27
BBBThunda joined12:28
Wetmelon joined12:28
dantix joined12:30
fscala left12:31
forbidden404 left12:33
fscala joined12:33
ffio joined12:35
Sceorem left12:37
Manikandan joined12:38
acolson joined12:40
rnsanchez_ joined12:40
rnsanchez left12:40
presto joined12:43
User458764 joined12:43
zarubin joined12:43
reim joined12:43
Sceorem joined12:47
zarubin left12:48
Deakin joined12:49
jceb joined12:49
sgambino joined12:49
otter768 joined12:50
mizu_no_oto joined12:50
rasto left12:51
strehi joined12:51
geri left12:51
forbidden404 joined12:54
otter768 left12:54
Hounddog left12:55
rorro joined12:55
daivyk joined12:57
geri joined12:58
fstd left12:59
fstd joined12:59
zacg joined12:59
zacg left12:59
zacg joined12:59
strehi left12:59
strehi joined12:59
geri left13:00
geri joined13:01
X000X_ joined13:01
X000X_ hi13:01
gitinfo X000X_: 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.13:01
strehi left13:02
mizu_no_oto left13:02
geri left13:02
zeroed left13:03
X000X_ I've created new git repo => git init13:03
added first file index13:03
rasto joined13:03
X000X_ commited the file git commit -am "First test commit"13:03
then I've created branch experiment13:03
when I checkout back to the master branch... Master branch is automatically merged13:04
EduardoMartins joined13:04
X000X_ Where can I set the config that I need to merge it myself13:04
_cyril_ joined13:04
bremner I don't think you're really seeing an automatic merge.13:04
what makes you think so?13:05
X000X_ Because I don't need to run git merge experiment13:05
abacuspowers joined13:06
survi joined13:06
synthroid joined13:07
zeroed joined13:07
X000X_ left13:07
Ragnar left13:08
gancl joined13:08
_cyril_ left13:09
petaflot left13:10
abacuspowers left13:10
dvaske_ left13:10
ctburley joined13:12
dvaske joined13:12
d0nn1e left13:13
cvanball joined13:13
rwb joined13:13
_rnsanchez_ joined13:15
forbidden404 left13:15
d0nn1e joined13:15
rnsanchez_ left13:16
acetakwas joined13:16
jacksparrow007 joined13:16
ig0r_ joined13:16
acetakwas left13:16
fahadash joined13:18
survi left13:19
kartikey0303 joined13:19
jacksparrow007 left13:20
petaflot joined13:21
Seveas did you make any commits on the experiment branch?13:24
bremner left.13:25
Seveas meh13:25
what I get for ignoring join/part/quits :)13:25
ig0r_ left13:25
eijk left13:26
ash_workz joined13:26
CKyle joined13:26
ash_workz are you risking anything by only having a bare repo on your repo server?13:26
-a* repos*13:27
Guest73013 left13:27
s8321414 left13:27
mizu_no_oto joined13:27
Seveas you risk stomach ulcers. And fungal infections.13:27
igli left13:28
igli_ joined13:28
Seveas (in other words: that question may need more context)13:28
bremner for example, what is a repo server in this context?13:28
zotherstupidguy left13:29
rorro left13:29
ash_workz bremner: a server whose purpose is to contain repos.... I maybe miss using the term "repo server"13:29
Deakin left13:29
Seveas ash_workz: what else but bare repos would you put on there13:30
ash_workz Seveas: I appreciated your joke in conjunction with your clarification :)13:30
lindenle joined13:30
ash_workz Seveas: working directories apparently?13:30
Seveas: that's what's on there now... perhaps it used to be a live/testing server....13:31
bremner ash_workz: unfortunately google called a tool "repo" for which they will hopefully burn in hell13:31
ash_workz bremner: I don't entirely understand what that means13:31
bremner: oh13:31
bremner: I get it13:31
notebox left13:32
ash_workz bremner: what tool did they do so for? or is this like the "he who shall not be named" situation? :P13:32
bremner !repo13:32
gitinfo Repo is a tool produced by Google for the AOSP project(and others) which wraps git and provides its own set of commands. While it is possible to use git with repositories that are managed by repo, it is not always easy. https://source.android.com/source/using-repo.html13:32
Seveas ash_workz: those working directories are not needed on a server that servers central repositories. I would even doscourage them.13:33
ash_workz bremner: I find that sad13:33
Seveas discourage13:33
acetakwas joined13:34
ash_workz Seveas: anyway, does a bare repo in anyway depend on tangent repos (and by that I mean any other repo with a working directory that has pulled from said bare repo)13:34
acetakwas left13:35
BtbN you can't propperly push to non-bare repos, so for "server" repos you want it to be bare.13:35
Seveas ash_workz: no(*)13:35
DolpheenDream joined13:35
ash_workz because the files in the working directories will never be up to date with the files being pushed?13:35
acetakwas joined13:35
clmsy left13:36
Seveas (*)the only thing a git repo can depend on are submodules, but that has nothing to do with it being bare or not13:36
ash_workz Seveas: dually noted13:36
dually?...13:36
acetakwas left13:36
ash_workz duly*13:36
nnyk left13:38
ash_workz I have incorrectly memorized the term duly as "dually" because context had suggested to me in my distant past that the meaning of the phrase "duly noted" was "doubly noted"13:38
is there anyway to get a local version of the graph generator thingy?13:41
jeffreylevesque joined13:41
petaflot left13:42
kinokoio joined13:43
akkad left13:43
jteneyck joined13:43
jteneyck left13:43
jteneyck joined13:43
mischat left13:43
ash_workz can you pull/push to a repo that isn't bare by doing user@server:parent_dir.git (where parent_dir contains a ".git" directory, but there is no parent_dir.git)13:44
grawity no13:44
if you have parent_dir.git, you use parent_dir.git13:44
if you have parent_dir/.git, you use parent_dir13:44
the ".git" suffix isn't magic, it's just a convention that people use in bare repo names13:44
but the rules remain the same13:45
rasto left13:45
grawity if it's non-bare, you can push to all branches except the current one13:45
kartikey0303 left13:45
rdnt joined13:45
Darcidride joined13:47
paulweb515 joined13:47
Seveas ash_workz: the graph generator thingy is just graphviz13:47
petaflot joined13:47
mischat joined13:47
Chill_Surf joined13:48
mizu_no_oto left13:48
Seveas it's very flexible. I use it for generating DNS graphs: http://ip.seveas.net/dnsgraph/git-scm.com/A/13:49
dstarh joined13:49
ash_workz well, I was thinking it might help with internal documentation (for more than just git actually, seeing as how they have a pretty flushed out record system) but I would like it to literally be just like the graph generator thingy so that documentation can contain contain links to graphs13:49
Gamecubic joined13:49
roygbiv joined13:49
italoacasas joined13:50
zacg left13:50
ulkesh left13:50
italoacasas left13:51
ash_workz Seveas: holy frijoles13:51
ulkesh joined13:51
akkad joined13:51
fuchsi left13:51
chitopunk joined13:51
italoacasas joined13:52
italoacasas left13:53
Dcannon joined13:54
acetakwas joined13:55
italoacasas joined13:55
nnyk joined13:55
rasto joined13:57
devoldmx joined13:58
rwb1 joined13:58
leeN joined13:58
akshat left13:58
Nikhil_D left13:58
daito joined13:58
koltroll left13:59
Nikhil_D joined13:59
italoacasas left13:59
leeN left13:59
bollullera left14:00
jceb left14:00
rwb left14:01
devoldmx left14:02
rwb1 left14:02
rwb joined14:02
nfk|laptop left14:03
daito left14:03
leeN joined14:03
italoacasas joined14:03
Sofiaraj joined14:04
italoacasas left14:04
krawchyk joined14:04
_cyril_ joined14:05
italoacasas joined14:05
petaflot left14:05
jay-m left14:05
Sofiaraj left14:05
faux___ joined14:05
nnyk left14:05
italoacasas left14:06
Haris2 left14:07
jteneyck left14:07
zumba_addict joined14:07
jay-m joined14:07
dvaske left14:07
italoacasas joined14:07
jimi_ left14:08
cbonobo joined14:08
italoacasas left14:08
espindola joined14:08
Anticom left14:09
italoacasas joined14:09
ncthom91 joined14:09
mkoskar left14:09
_cyril_ left14:09
star_prone joined14:10
faux___ left14:10
kam270 left14:10
jeffreylevesque left14:11
jay-m left14:12
algae joined14:13
jay-m joined14:14
weox joined14:14
CheckDavid joined14:15
CKyle_ joined14:15
sazed joined14:15
Es0teric joined14:16
nettoweb left14:16
koltroll joined14:18
faux___ joined14:19
Mr-label joined14:19
Es0teric left14:20
nnyk joined14:22
wrouesnel1 joined14:22
nnyk left14:22
nnyk joined14:22
akkad left14:24
reim_ joined14:26
star_prone left14:27
acetakwas left14:27
reim left14:28
cryptsting left14:29
Goobbue joined14:29
AaronMT joined14:29
ncthom91 left14:30
faux___ left14:31
DolpheenDreamDolphinDream14:32
ulkesh left14:33
stamina left14:33
ulkesh joined14:34
donnib joined14:35
donnib hi14:35
i have a merge conflict where if i open the file there are no conflicts in it, is that possible ?14:36
mkoskar joined14:36
donnib there are no >>>>>>> or <<<<<<<14:36
is this a bug ?14:36
star_prone joined14:37
reim_ left14:37
faux___ joined14:37
User458764 left14:38
nikio_ left14:38
osse donnib: not necessarily. what does git status say ?14:38
donnib both modified14:39
osse hmm14:39
zeroed left14:39
donnib yup14:39
i hope there is a good explanation14:39
:P14:39
i kept telling devs that there is some explanation but i can’t find it :(14:40
rnsanchez_ joined14:40
osse i'd look at the diff between the merge base and the branch tips separately and see what they say14:40
maybe one branch modified the contents and the other did chmod +x or something like that14:40
marscher joined14:40
ig0r_ joined14:41
faux___ left14:42
donnib oh i see something in the merge i have not seen before14:42
warning: Cannot merge binary files:14:42
and this file is not a binary file14:42
it’s a cs file14:42
acetakwas joined14:42
cvanball_ joined14:42
cvanball left14:42
faux___ joined14:42
_rnsanchez_ left14:42
Es0teric joined14:43
ig0r_ left14:43
cryptsting joined14:43
donnib osse: could that be the case ?14:43
BSaboia joined14:44
jacksparrow007 joined14:44
rwb1 joined14:45
akshat joined14:45
User458764 joined14:45
mihaicris joined14:45
crose joined14:46
samw joined14:46
zeroed joined14:46
xaa joined14:47
rwb left14:47
killa_kyle joined14:48
zumba_addict left14:48
Goobbue left14:49
killa_kyle left14:49
zumba_addict joined14:49
rwb1 left14:49
osse donnib: yes14:49
killa_kyle joined14:49
nettoweb joined14:49
osse donnib: if there is a merge conflict in a file that Git believes is binary then instead of creating conflict markers it will just put one of the versions (the current/HEAD one)in the working dir and give up14:50
petaflot joined14:50
killa_kyle left14:50
samw left14:51
otter768 joined14:51
Es0teric left14:52
Dougie187 joined14:52
forbidden404 joined14:52
donnib osse: so yes that is the problem, now next problem is why is Git thinking this code file is binary14:53
i can see the encoding is ucs-2 le bom14:53
if that makes any difference14:54
is there a way for git to tell why it thinks it’s binary ?14:54
rwb joined14:54
King_Hual joined14:54
King_Hual left14:54
King_Hual joined14:54
petaflot left14:54
Es0teric joined14:54
zumba_addict left14:54
otter768 left14:55
User458764 left14:55
Es0teric left14:56
igli_ left14:57
colli5ion joined14:57
colli5ion left14:58
mezod joined14:58
gancl left14:58
rscata left14:58
Mr-label left14:58
colli5ion joined14:58
Spacew00t joined14:58
bremner if ucs-2 is a 16bit encoding, then git thinks it's binary because it's not an 8bit text format. It has e.g. null characters in the middle of lines.14:59
grawity hmm I thought it could detect utf-1614:59
guess not14:59
mihaicris left14:59
akkad joined15:00
krawchyk left15:00
Hello71 one, utf-16 sucks, don't use it (unless you really have to). two, you can set a separate diff tool for ".cs" files15:00
uri_ joined15:00
notebox joined15:00
mihaicris joined15:00
grawity or you can set the encoding manually in .gitattributes15:00
mouserat left15:01
grawity "utf16" should be the right name15:01
dilfridge joined15:01
ig0r_ joined15:01
akshat left15:01
grawity encoding=utf16 that is15:02
but I dunno if 'git diff' honors it actually15:02
kevwil joined15:02
osse bremner, donnib: if I remember correctly the binary detection thingy is as simple as checking for nulls in the first 8k so yeah that sounds likeleigh15:02
ncthom91 joined15:02
donnib i don’tuse it, somehow it has been set wrongly15:02
ncthom91 left15:03
donnib i am trying to put a line in gitatributtes saying *.cs diff but still git detects the file as binary15:03
jay-m left15:03
jay-m joined15:03
ncthom91 joined15:03
colli5ion left15:04
krawchyk joined15:04
AaronMT left15:04
krawchyk left15:05
BlaXpirit joined15:05
Moistmelon joined15:05
BlaXpirit why is gitlab so unpopular compared to github?15:05
krawchyk joined15:05
BlaXpirit i mean, sure, the interface is trash in comparison, but still15:05
_cyril_ joined15:05
grawity also it's slow15:06
ig0r_ left15:06
grawity it's like all of gitlab.com is running off a single box15:06
reim joined15:06
bremner BlaXpirit: it's much newer.15:06
Darcidride left15:07
phantombeta left15:07
fuchsi joined15:07
bremner I'd say plenty of people don't even understand that git exists independent from github :(15:07
BlaXpirit but you can install your own! isn't that a huge advantage?15:07
abacuspowers joined15:07
acetakwas left15:07
Wetmelon left15:07
Seveas BlaXpirit: if you're interested in that, yes. Most people don't care.15:07
Darcidride joined15:07
donnib grawity: any idea why git still thinks my file is binary when i specify *.cs diff in .gitattributes ?15:07
Seveas I find speed much more important, and gitlab.com is really damn slow15:08
BlaXpirit i wonder how viable it would be to use it for my projects and still be able to receive public contributions15:08
Seveas only one way to find out, try it! :)15:08
bremner donnib: at a guess, I'd say utf16 is just not well supported by git.15:08
BlaXpirit i have no real reason except for ideological15:08
donnib bremner: but should git not forget about the encoding if i specify it in the gitatributtes ?15:08
Seveas I've put one of my repos on there, mostly because I don't want people to equate git with github.15:08
BlaXpirit oh well, if I have inquiries about gitlab I shouldn't annoy people here about them15:09
shiriru left15:09
victorga_ joined15:10
Darcidride left15:10
Seveas you absolutely can, but #gitlab may be a better choice15:10
_cyril_ left15:10
WetLemons joined15:10
wwwald joined15:10
nfk|laptop joined15:10
monthy joined15:10
bronson joined15:10
cuebix-wk joined15:10
Moistmelon left15:12
juril left15:12
colli5ion joined15:12
juril joined15:12
abacuspowers left15:12
jimi_ joined15:14
sokolowitz left15:14
AaronMT joined15:14
acetakwas joined15:15
bronson left15:15
petaflot joined15:15
colli5io_ joined15:16
colli5ion left15:17
dorkmafia joined15:17
sazed left15:21
fahadash left15:21
dorkmafia left15:21
DolphinDream left15:22
colli5io_ left15:22
reim left15:22
petaflot left15:23
Rodya_ joined15:24
skylite left15:25
colli5ion joined15:25
qsuscs donnib: recent visual studio can use utf8 as well15:25
don’t ask me how recent.15:25
diogenese left15:26
colli5io_ joined15:27
Stummi joined15:27
_nadim left15:28
Stummi hey, a quick question. Lets say I made a commit by mistake on the wrong branch. After picking the commit to the correct one, I should be fine with "git reset --hard HEAD~1" on the wrong one, correct? So this branch won't have any information about the commit anymore when pushing?15:28
rwb left15:28
reim joined15:29
User458764 joined15:29
colli5ion left15:30
rwb joined15:30
settermjd left15:31
uri_ left15:32
victorga_ left15:32
NeverDie left15:33
petaflot joined15:33
pacbard joined15:34
uri_ joined15:34
TomyWork left15:35
colli5ion joined15:35
a3Dman left15:35
igli_ joined15:35
a3Dman joined15:35
colli5io_ left15:36
jds left15:36
igli_igli15:36
krawchyk left15:37
victortyau joined15:37
yohnnyjoe joined15:38
mDuff joined15:39
krawchyk joined15:39
colli5io_ joined15:39
spykins left15:39
krawchyk left15:40
rubyonrailed joined15:40
krawchyk joined15:41
Corneliu joined15:41
colli5ion left15:41
ifra201 left15:42
ThomasLocke left15:42
EduardoMartins left15:42
grawity yes15:43
jay-m left15:43
jay-m joined15:44
Dcannon left15:44
mmlb joined15:46
sazed joined15:47
petaflot left15:47
acolson left15:47
roelmonnens left15:48
roelmonnens joined15:48
Balliad joined15:49
presto left15:49
geri joined15:49
BillCriswell joined15:50
presto joined15:51
espindola left15:51
elisa87 left15:51
colli5io_ left15:51
inter joined15:52
roelmonnens left15:52
Alienpruts left15:53
xtun left15:53
Gitzilla joined15:54
krawchyk left15:54
Corneliu left15:55
Ahmed90 joined15:55
localuser- joined15:56
diogenese joined15:56
mkoskar left15:57
wwwald left15:57
krawchyk joined15:57
jacksparrow007 left15:57
petaflot joined15:57
krawchyk left15:57
devoldmx joined15:58
daito joined15:59
cere joined16:00
mmlb left16:01
krawchyk joined16:02
happy-dude joined16:02
jacksparrow007 joined16:03
devoldmx left16:03
MarkyC joined16:03
daito left16:04
kilo_bravo joined16:04
localuser joined16:05
acetakwas left16:06
_cyril_ joined16:06
jimi_ left16:07
victorga_ joined16:08
localuser- left16:09
victorga_ left16:09
victorga_ joined16:10
irqq left16:10
TomyLobo joined16:10
fahadash joined16:10
_cyril_ left16:11
anth0ny_ left16:11
Sadeukko joined16:11
eijk joined16:11
Sceorem left16:12
krawchyk left16:12
thiago joined16:12
timmu left16:13
NwS joined16:13
arup_r joined16:15
israelzuniga joined16:16
dvaske joined16:17
diogenese left16:17
MechtiIde joined16:17
akshat joined16:18
diogenese joined16:18
hyperair left16:19
elsevero left16:19
cere left16:20
nzst joined16:20
ig0r_ joined16:21
nzst Hi, is there a feature like sparse checkout that makes use of blacklisting instead of whitelisting? I'd like to clone a repository and have some specific files not get pulled down16:21
localuser left16:22
weox left16:22
krawchyk joined16:23
netcarver joined16:23
krawchyk left16:23
EduardoMartins joined16:23
krawchyk joined16:24
permalac left16:24
dreiss joined16:24
Dumle29 joined16:25
bonswouar left16:25
jay-m left16:25
dvaske left16:26
reim left16:26
adac left16:27
nzst oh, i found it, there are negate patterns available, thanks16:27
bronson joined16:27
zeroed left16:28
geri left16:28
zeroed joined16:28
synthroid left16:29
circ-user-aPkEg joined16:29
freenux joined16:30
igli nzst: what did your final cmd look like?16:31
thiago left16:31
circ-user-aPkEg The answer to this question http://stackoverflow.com/questions/34189779 says that mystery has something to do with 3diff strategy. Can you explain it? Why A and B are completely different if they differ by a single line and why git starts to notice this fact if I further update a line in B?16:32
jacksparrow007 left16:33
Balliad left16:33
freenux left16:33
t4nk075 joined16:35
jfran joined16:36
King_Hual left16:36
bronson left16:37
AaronMT left16:37
CausaMortis left16:38
gingitsune left16:39
_cyril_ joined16:39
Sadeukko left16:39
noteness left16:39
dorkmafia joined16:40
t4nk075 left16:40
Sadeukko joined16:40
cdg joined16:41
noteness joined16:42
mischat_ joined16:42
nnyk left16:43
netcarver left16:43
Rodya_ left16:44
Rodya_ joined16:45
User458764 left16:45
mischat left16:45
nfk|laptop left16:45
editshare-ericf joined16:46
filisko joined16:46
AaronMT joined16:46
mischat_ left16:47
circ-user-aPkEg The answer to this question http://stackoverflow.com/questions/34189779 says that mystery has something to do with 3diff strategy. Can you explain it? Why A and B are completely different if they differ by a single line and why git starts to notice this fact if I further update a line in B?16:47
kyle6197 joined16:47
ig0r_ left16:47
roxlu left16:48
victortyau left16:48
Asenar left16:48
kyle6197 left16:48
t4nk085 joined16:48
yqt left16:49
otter768 joined16:51
spykins joined16:52
Manikandan left16:53
star_prone left16:53
igli don't double-post your question. if no one can help, no one will answer, so wait for someone else to show up.16:53
"Remember: this is more like email than you imagine." ;)16:53
star_prone joined16:55
gopar joined16:55
geri joined16:55
Manikandan joined16:55
phrozensilver joined16:56
otter768 left16:57
star_prone left16:58
mkoskar joined16:58
star_prone joined17:00
AaronMT left17:01
spykins left17:02
igli hmm sorry for basic q: how do i show commit 1d6602bb8e70 alone? git log with id repeated seems a bit clunky, so wondering what i'm missing17:02
ESphynx joined17:03
mwhooker joined17:03
Spacew00t left17:04
star_prone left17:04
preaction igli: git show17:06
triad joined17:06
faux___ left17:06
igli thanks preaction17:07
synthroid joined17:07
nettoweb left17:07
samw joined17:08
igli left17:08
ESphynx hey guys, does git somehow support rebasing changes that would have code move across files?17:08
abacuspowers joined17:09
ESphynx i.e. if I made some changes to code while it was in one file in commit A, another commit B moved that code to another file, and I want to rebase with commit A happening after commit B?17:09
synthroid left17:09
ESphynx (My understanding is that it doesn't, but I want to verify :P)17:09
synthroid joined17:10
d0nn1e left17:11
jimi_ joined17:11
nettoweb joined17:11
d0nn1e joined17:12
Manikandan left17:12
faux___ joined17:13
durham joined17:13
abacuspowers left17:14
crose left17:15
tildes joined17:15
Spacew00t joined17:16
faux___ left17:17
systmkor joined17:18
User458764 joined17:18
tieTYT joined17:18
EduardoMartins left17:19
faux___ joined17:19
troulouliou_div2 joined17:19
Sigfrid joined17:20
mkoskar left17:21
rath joined17:22
bb010g joined17:22
gitinfo set mode: +v17:22
faux___ left17:23
diogenese left17:23
s00pcan left17:25
diogenese joined17:25
Goobbue joined17:25
lmatteis joined17:25
lmatteis guys simple question. i have created a branch off master. now i wanna send my commits back to master... but nothing has been changed ever since the branching17:25
how do i do this?17:26
with a rebase? but how?17:26
s00pcan joined17:26
ESphynx lmatteis: nothing has changed on master?17:26
thiago joined17:26
faux___ joined17:26
lmatteis ESphynx: no17:26
ESphynx lmatteis: you can probably checkout master and do a git merge --ff-only yourotherbranch17:26
imachuchu joined17:26
diogenese left17:27
lmatteis what if i checkout master, and do git rebase other-branch?17:27
what does that do17:27
ESphynx lmatteis: you don't want to do that17:27
lmatteis: you want to bring in other changes to master17:27
lmatteis: i.e. master shouldn't change, merging in the other branch and saying -ff-only is saying you only want to do a fast-forward merge... then if that fails (that means changes actually happened on master already), then you rebase that other branch onto master17:28
lmatteis and how do i rebase/17:28
ESphynx lmatteis: you would stay on your current branch and do 'git rebase master'17:29
lmatteis and that sends my other branch commits to master?17:29
crunchers joined17:29
ESphynx git rebase -i master to have more control over how that happens :)17:29
PCatinean left17:29
ESphynx no, that just rebases your current branch, once it is rebased onto master, then you check out master and you git merge --ff-only yourotherbranch17:29
doener left17:30
lmatteis but i simply want other-branch to be master17:30
why wouldn't git rebase other-branch from master work?17:30
ESphynx why do you want one branch to be another?17:30
lmatteis i don't17:30
preaction rebase isn't how you do that. you want git merge --ff-only17:30
lmatteis i just want them to be equal17:30
QwertyDragon joined17:30
ulkesh left17:30
faux___ left17:31
ESphynx lmatteis: assuming you have an 'origin' repo that other people may be using17:31
lmatteis ok so git merge --ff-only from master?17:31
preaction fast-forward just updates the ref pointer, which makes them equal17:31
yes17:31
Derega left17:31
Chunk2 joined17:31
lmatteis cool seemd to work17:31
preaction if master had moved, you'd rebase your branch onto master (git checkout yourbranch; git rebase master) and then do a ff merge (git checkout master; git merge --ff-only yourbranch)17:32
ulkesh joined17:32
preaction the rebase makes it appear that master hasn't moved since yourbranch was created17:32
lmatteis thanks guys17:32
ESphynx preaction: I wish git was more biased towards trunk-only masters :P17:32
Kulrak joined17:32
Kulrak left17:32
Kulrak joined17:32
Derega joined17:32
faux___ joined17:32
lmatteis so git rebase master gets the changes from master onto my current branch?17:32
ESphynx lmatteis: yes it moves those changes before the things you changed since you last updated master17:33
updated from* master17:33
localuser- joined17:33
preaction it rewinds your current branch, updates from master, then replays the branch's contents17:33
ESphynx lmatteis: makes it as if you did your work after what happened to master17:33
lmatteis cool thanks17:33
preaction so it changes the "base" of your branch from the old version of master, to the new version of master17:33
zeroed left17:34
madewokherd left17:34
liamonade left17:34
keldwud joined17:35
keldwud left17:35
keldwud joined17:35
hyperair joined17:35
monthy left17:35
krawchyk left17:36
faux___ left17:37
krawchyk joined17:37
bronson joined17:37
mDuff left17:38
faux___ joined17:39
kadoban joined17:40
NaN joined17:41
CKyle_ left17:41
NaN is it possible to change the git remote connection from http to ssh? where should I look in the docs?17:41
dorkmafia left17:42
jnareb joined17:42
kurkale6ka left17:42
bronson left17:42
qsuscs NaN: yes; man git remote17:43
gitinfo NaN: the git-remote manpage is available at http://jk.gs/git-remote.html17:43
toogley joined17:43
triad left17:43
NaN thanks qsuscs17:43
faux___ left17:44
dorkmafia joined17:44
ulkesh left17:44
_cyril_ left17:44
impliednude left17:44
qsuscs !next17:44
gitinfo Another satisfied customer. NEXT!17:44
_nadim joined17:45
faux___ joined17:45
abacuspowers joined17:46
Technocrat7 joined17:46
localuser joined17:46
freimatz left17:47
Technocrat7 left17:47
Technocrat7 joined17:47
dorkmafi1 joined17:47
jagob joined17:47
dorkmafia left17:48
ulkesh joined17:48
reim joined17:48
krawchyk left17:48
paulweb515 left17:49
faux___ left17:50
localuser- left17:50
rorro joined17:51
faux___ joined17:52
The_Phoenix joined17:52
krawchyk joined17:52
israelzuniga left17:53
_cyril_ joined17:53
tieTYT left17:54
JanC left17:54
NeverDie joined17:55
mDuff joined17:55
mwhooker left17:56
faux___ left17:56
fracting joined17:56
fracting left17:58
faux___ joined17:58
tildes left17:58
gfixler left17:59
Jackneill joined17:59
devoldmx joined17:59
daito joined18:00
fracting joined18:01
Spacew00t left18:01
ncthom91 left18:01
tieTYT joined18:01
samw left18:01
tieTYT left18:01
madewokherd joined18:01
adac joined18:01
notebox left18:01
star_prone joined18:01
Vikings joined18:02
faux___ left18:02
localuser- joined18:02
devoldmx left18:03
faux___ joined18:04
krawchyk left18:04
daito left18:05
star_prone left18:05
mellernoia-work joined18:06
localuser left18:06
relect joined18:06
jnareb left18:07
mellernoia left18:07
User458764 left18:08
victorga_ left18:08
faux___ left18:09
diogenese joined18:09
samw joined18:09
JanC joined18:10
faux___ joined18:10
petaflot left18:12
petaflot joined18:12
localuser joined18:13
dorkmafi1 left18:13
tomog999_ joined18:13
adac left18:14
faux___ left18:15
jackburton joined18:15
cagedwisdom joined18:16
jason237 joined18:16
tomog999 left18:16
gfixler joined18:16
AaronMT joined18:16
faux___ joined18:17
faux___ left18:17
localuser- left18:17
dorkmafi1 joined18:18
relect left18:18
faux___ joined18:20
Vikings left18:21
relect joined18:21
_cyril_ left18:21
fahadash left18:21
reim left18:21
gfixler left18:21
troulouliou_div2 left18:23
fracting left18:23
fracting joined18:24
peoliye joined18:24
hahuang65 joined18:25
Zariel_ joined18:25
Sasazuka joined18:25
Zariel_ left18:25
chucky_z joined18:26
abacuspowers left18:26
arup_r left18:26
Technocrat786 joined18:27
zarubin joined18:28
zarubin left18:28
roxlu joined18:28
zarubin joined18:29
relect left18:29
Technocrat7 left18:30
cagedwisdom left18:30
dreiss left18:31
koltroll left18:31
fracting left18:31
sazed left18:32
paulweb515 joined18:32
sazed joined18:32
zarubin left18:33
localuser left18:34
bronson joined18:35
encod3 left18:37
_rgn joined18:37
_rgn left18:37
_rgn joined18:37
adac joined18:38
tfry joined18:38
User458764 joined18:39
phantombeta joined18:39
User458764 left18:39
mihaicris left18:39
User458764 joined18:40
t4nk239 joined18:41
cagedwisdom joined18:42
_rgn left18:42
gitinfo set mode: +v18:42
t4nk239 slaps bb010g around a bit with a large fishbot18:43
colli5ion joined18:44
Nevik pls no18:44
rorro left18:45
frem joined18:45
dsdeiz left18:45
ESphynx anyones whether git somehow support rebasing changes that would have code move across files?18:45
colli5ion left18:45
koltroll joined18:46
phrozensilver left18:46
_rgn joined18:46
_rgn left18:46
_rgn joined18:46
Nevik what?18:47
preaction ESphynx: try it and see. my guess is maybe18:47
italoacasas left18:47
CKyle left18:47
ESphynx preaction: well what experience from that generally is you see 'conflict' and 'deleted by us' and little else18:47
i.e. if I made some changes to code while it was in one file in commit A, another commit B moved that code to another file, and I want to rebase with commit A happening after commit B?18:47
t4nk239 left18:47
phrozensilver joined18:47
preaction so you're saying you already know it definitely doesn't? then why ask?18:48
ESphynx preaction: I don't know it definitely doesn't. it didn't seem to work for me, but it's something I think vcs should definitely support :P18:48
and Git was always touting how it's file agnostic18:49
zumba_ad_ joined18:49
Nevik that's precisely why git doesnt know or care that your changes of adding X to file A and removing X from file B semantically means "move X" to you18:51
git just sees two changes, which it records18:51
ESphynx Nevik: are you saying it should be able to do the above?18:51
diogenese left18:52
Nevik it only could do it properly if it knew that you are *moving* the content. otherwise you'd just expect the conflict like you say you got18:52
MechtiIde left18:52
Nevik so, you'd have to get git's move detection heuristic in there, which i dont know if/how it is possible to do18:52
otter768 joined18:52
ESphynx Nevik: and how would it know that?18:52
texasmynsted joined18:52
Nevik either by you telling it or by a heuristic18:53
_rgn left18:53
Nevik (there's no way for you to tell it though)18:53
ESphynx Nevik: a heuristic it already has implemented?18:53
Nevik yes, log can use it, as can some other sub commands18:53
ESphynx Nevik: well this why I'm asking these things. seems to be what git was made for, but in practice it's not working :P18:53
nfk|laptop joined18:53
Nevik a quick glance at man git rebase shows no options to this effect, though18:53
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html18:53
marcelofr joined18:53
texasmynsted I am using a remote repo with 59 branches. I only need one.18:53
marcelofr left18:54
texasmynsted http://stackoverflow.com/questions/16842426/can-git-permanently-ignore-a-remote-branch18:54
zumba_ad_ left18:54
texasmynsted I saw the above in so18:54
settermjd joined18:54
texasmynsted Is there a simply way to tell pull, fetch, etc to pay attention only to the default branch?18:55
Nevik texasmynsted, why is this a problem for you?18:55
why?18:55
texasmynsted because it takes ages to clone18:55
preaction do a shallow clone18:55
texasmynsted explain18:55
preaction man git clone; look for --depth18:56
gitinfo the git-clone manpage is available at http://jk.gs/git-clone.html18:56
texasmynsted ok reading18:56
preaction there also appears to be --single-branch as well18:56
rubyonrailed left18:56
Nevik --single-branch definitely exists :P18:57
texasmynsted Wow, —single-branch exactly what I need!18:57
Thank you18:57
otter768 left18:57
Nevik i'm not so sure that will help as much as you think18:57
italoacasas joined18:58
Nevik (though it wont make it any worse, so go for it)18:58
adac left18:58
dvaske_ joined18:58
mwhooker joined18:59
kfoonamalik joined19:00
texasmynsted so far still slow19:00
looks like it might still take 10min to clone19:00
Nevik just let the clone run over night?19:00
oh lol 10 mins19:00
just go have dinner or something :P19:00
bronson left19:00
texasmynsted Its all relative19:00
Nevik you only clone once, so dont sweat it19:01
Eugene !beer19:01
gitinfo Beer! It's what's for dinner!19:01
Nevik truth19:01
sdothum left19:01
Eugene Or lunch, or breakfast19:01
meLon joined19:01
courrier left19:01
Eugene Or whatever, I won't judge19:01
ESphynx a single beer is only good enough for a single taco :|19:01
mwhooker left19:01
zarubin joined19:01
Eugene Where are you getting your tacos19:01
texasmynsted Well, for this project I have needed to clone more often19:01
Nevik but well, seven beers make a schnitzel and then you haven't even had anything to drink!19:01
texasmynsted, why?19:01
ESphynx Eugene: made them myself, complete with my own taco spice mix ground with my own mortar/pestle19:02
sdothum joined19:02
Eugene That sounds amazing19:02
ESphynx Eugene: I'd be happy to share my taco mix recipe :P19:02
mwhooker joined19:02
Nevik i think Eugene would prefer you making him tacos :P19:02
ESphynx of course also includes our own guacamole in there :)19:02
Eugene gitamole!19:03
Nevik git avocado --squash19:03
ESphynx lol19:03
Nevik git checkout taco && git merge guacamole19:04
Eugene git nom --omnom19:04
texasmynsted hmm. good point.19:04
Eugene Now I want tacos for lunch19:04
Nevik git clean --soft-napkin19:04
i3luefire joined19:04
HelloAtMega joined19:04
dsdeiz joined19:05
Spacew00t joined19:06
zarubin left19:06
abacuspowers joined19:07
diogenese joined19:07
AaronMT left19:08
notebox joined19:09
Technocrat786 left19:11
ash_workz left19:11
dorkmafi1 left19:12
DolphinDream joined19:12
dorkmafi1 joined19:13
settermjd left19:13
AaronMT joined19:13
dreiss joined19:14
jd_1 joined19:14
Sadeukko left19:15
BrianBlaze420 left19:15
jd_1 is there a way to save the --to and -cc addresses in my git send-email/format-patch string as a group or something similar?19:15
AaronMT left19:17
_cyril_ joined19:17
Sadeukko joined19:17
gfixler joined19:18
_rgn joined19:18
_rgn left19:18
_rgn joined19:18
espindola joined19:19
marscher left19:19
jaafar joined19:19
eijk_ joined19:19
BrianBlaze420 joined19:19
CareBear\ git config19:20
jd_1 : but that may not be close enough to what you mean - you could only set one thing19:20
jd_1 : you might be able to tell git to use a script to look up recipients19:21
_cyril_ left19:22
jd_1 I thought about the script option. The git config idea seems ok too19:22
Thanks for the ideas19:23
eijk left19:23
aartist joined19:23
MattMaker joined19:24
juggle joined19:25
Goobbue left19:25
Goobbue joined19:26
Balliad joined19:26
nettoweb left19:26
yashu-seth joined19:26
relect joined19:28
relect left19:29
Goobbue left19:30
weox joined19:30
nzst igli: I didn't set up anything, I just found these docs http://schacon.github.io/git/git-read-tree.html#_sparse_checkout19:31
rubyonrailed joined19:35
kadoban left19:35
AndroidLoverInSF joined19:35
Ragnar joined19:36
rubyonra_ joined19:36
waveclaw joined19:36
lmatteis left19:37
hyperair left19:38
_rgn left19:38
daivyk left19:38
rubyonrailed left19:40
marcogmonteiro left19:40
waveclaw left19:41
Balliad left19:42
dsdeiz left19:42
King_Hual joined19:42
King_Hual left19:42
King_Hual joined19:42
King_Hual left19:43
nvahalik joined19:43
nettoweb joined19:43
King_Hual joined19:43
King_Hual left19:43
King_Hual joined19:43
marcogmonteiro joined19:43
peoliye left19:43
marc_v92 joined19:44
Spacew00t left19:45
nvahalik left19:47
hackel joined19:47
waveclaw joined19:47
abacuspowers left19:50
soerenb joined19:50
NaN left19:51
_rgn joined19:51
_rgn left19:51
_rgn joined19:51
dvaske_ left19:51
koltroll left19:52
guardian hello, is there a way to know git is operated from a GUI? I'm asking because I wondered whether I could prompt the user from my pre-commit hook19:53
marcogmonteiro left19:54
thiago left19:55
noteness left19:56
micechal joined19:56
Eugene Not reliably19:59
noteness joined19:59
Eugene You can sniff environment variables for common GUIs, and change your hook's behaviour if any are found19:59
nettoweb left19:59
Eugene Or check whether stdin/out/err are a TTY or a script19:59
Sadeukko left20:00
devoldmx joined20:00
daito joined20:00
nnyk joined20:01
bronson joined20:01
waveclaw left20:02
KtoTo joined20:04
circ-user-aPkEg left20:04
t4nk085 left20:04
devoldmx left20:05
daito left20:05
bronson left20:06
guardian oh that last one I like it but don't know how to do it from bash20:06
well actually, with pre-push stdin is not a TTY already, even from a terminal20:06
thanks for the pointer Eugene I'll document myself about that20:07
CausaMortis joined20:07
rath left20:07
josuebrunel left20:07
relect joined20:08
circ-user-aPkEg joined20:09
relect left20:11
damarusama joined20:12
damarusama I am new to git, I have a local repo, I want to put it on one of my server so someone else can clone it20:12
do I have to create something on the server first20:12
before I do a git remote add20:12
and git push20:12
nilg joined20:13
CareBear\ damarusama : how will someone else access your server?20:13
cuebix-wk left20:13
damarusama with a git clone ? it's a ssh server20:13
CareBear\ damarusama : do you want it available to the public via e.g. http, or do you want to restrict access e.g. via ssh?20:13
zarubin joined20:13
damarusama only ssh20:13
CareBear\ are you comfortable with unix permissions?20:14
damarusama sure, but we're using the same ssh user20:14
CareBear\ ok20:14
on the server, run: git init --bare somefolder.git20:14
damarusama ha the git ini bare20:14
right20:14
CareBear\ on your client, run: git remote add ssh://user@server/~/somefolder.git20:15
eh sorry20:15
on your client, run: git remote add server ssh://user@server/~/somefolder.git20:15
then, run: git push server master20:15
PaulCapestany joined20:15
NaN joined20:15
NaN left20:15
NaN joined20:15
waveclaw joined20:15
CareBear\ then someone else can run: git clone ssh://user@server/~/somefolder.git20:15
damarusama sweet thanks20:16
the init bare was missing ;)20:16
it's pushing now20:16
micechal left20:16
CareBear\ great20:16
you're welcome20:17
damarusama love the name ;) feel cared for now :D20:17
NaN left20:18
zarubin left20:18
_cyril_ joined20:18
nvahalik joined20:18
damarusama CareBear, let say the other computer what is to do a git clone, already have all the file downloaded20:18
r/what/that/20:19
CareBear\ including the .git subdirectory?20:19
damarusama nope20:19
I see that would create a problem...20:19
CareBear\ then you're out of luck20:19
damarusama right20:19
CareBear\ the worktree with the actual source files is just a subset of what is stored in the .git dir20:20
waveclaw left20:20
nettoweb joined20:21
damarusama ok, got to setup all my git ahead of time... the first push is quite long since I have a lot of image files in there20:21
CareBear\ nod20:22
_cyril_ left20:24
circ-user-aPkEg What if I have a feature per comit and realized in the end that they all need one change. I want to update them all incorporating some change into the all commits. Which strategy should I use?20:24
waveclaw joined20:25
CareBear\ circ-user-aPkEg : are you comfortable with a !rewrite ?20:25
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/waqum20:25
pantsman- left20:25
circ-user-aPkEg that is mine local git20:25
Spacew00t joined20:25
CareBear\ I disagree with infinitely better20:25
ok20:25
great20:25
use the git killer feature - interactive rebase20:26
samw left20:26
CausaMortis left20:27
damarusama left20:28
samw joined20:28
circ-user-aPkEg I modified the root and picking the features. But, I do not understand the git logic: in one case it picks version of the current branch in the other it picks picked edit http://stackoverflow.com/questions/3418785720:28
alexruf joined20:29
anli_ joined20:29
gfixler left20:29
waveclaw left20:29
astrofog joined20:32
texasmynsted So I see this http://stackoverflow.com/questions/1753070/git-ignore-files-only-locally20:32
I want to ignore some files locally but do not want to put these in my global gitignore, nor do I want changes to these files to be over-written on a git reset —hard.20:33
How do I do that?20:33
Spacew00t left20:35
bronson joined20:35
CareBear\ circ-user-aPkEg : do you know the git data model? have a look at http://peter.stuge.se/git-data-model20:36
Laksh joined20:36
ig0r_ joined20:37
bigtoe joined20:37
bigtoe left20:37
rdnt left20:37
CareBear\ circ-user-aPkEg : while a commit references the whole files, applying or picking a commit is not the act of "getting" that complete file - but rather the act of applying the patch corresponding to the picked commit20:37
Spacew00t joined20:38
krawchyk joined20:38
bb010g left20:38
CareBear\ circ-user-aPkEg : applying the diff between the picked commit's original parent and the picked commit20:38
circ-user-aPkEg ok, you are saying that cherry-pick does not look at accumulated changes since common root20:39
CareBear\ sure20:39
a commit only exists in relation to its parent(s)20:40
please read the data model blog post20:40
texasmynsted I added an entry to .git/info/exclude20:40
atrigent texasmynsted: what's wrong with that stackoverflow answer?20:40
texasmynsted then modified a file that should have been excluded and it shows it has been modified20:41
atrigent oh, I don't think ignoring applies to files that are already tracked20:41
CareBear\ correct20:41
FireArrow133 joined20:41
texasmynsted mmmk20:42
so you know what I want to do right?20:42
Some files are already tracked, that should not be, and I want to locally fix this.20:43
How do I do this?20:43
CareBear\ texasmynsted : untrack them in the repo20:43
rubyonra_ left20:43
CareBear\ git rm20:43
then add them to .gitignore20:43
then celebrate success20:43
atrigent texasmynsted: you can't really do that only locally though20:43
unless you take care to not push that commit20:43
texasmynsted and then that change will be pushed to remote right?20:43
rubyonrailed joined20:43
CareBear\ yes20:43
texasmynsted But I do not want to push that change to remote.20:44
biggertoe joined20:44
texasmynsted I want to fix this locally only20:44
CareBear\ think about this: git can either track or not track files.20:44
atrigent texasmynsted: why do you not what this file tracked?20:44
texasmynsted There is no way to do this?20:44
waveclaw joined20:44
CareBear\ no, git will either track a file or not track a file20:44
you can only have it one way20:44
texasmynsted Because it is an artifact of the IDE not a source file20:44
atrigent texasmynsted: that stackoverflow answer mentions --assume-unchanged, have you tried that?20:45
CareBear\ if you don't need the file in the repo then git rm it20:45
texasmynsted I can not imagine why anybody would track the file but I do not want to "correct" this for all the users of the repo20:45
CareBear\ so talk with them first, then20:45
maybe someone knows the IDE better than you and can say whether it's fine to rm+ignore it or not20:45
atrigent in general though, yes, if the file shouldn't be in version control, you should just remove it20:45
ash_mobile joined20:46
ash_mobile What do we all think of Beanstalk?20:46
texasmynsted That so article says "git-update-index --assume-unchanged was never meant to ignore changes to tracked files "20:46
Chill-Surf joined20:47
ash_mobile Actually, is there a better place to talk about deployment?20:47
CareBear\ !deploy20:47
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.html20:47
biggertoe left20:47
ash_mobile CareBear\ no personal prefs?20:48
atrigent texasmynsted: that's probably true, but where do you see that? I don't see it in that post20:48
sazed left20:48
Stace joined20:49
alexruf left20:49
Stace dammit, I now know why re-writing history in git is a PITA20:49
alexruf joined20:49
Stace a coworker just did that and I had a commit waiting to be pushed and it screwed my repo over royally20:49
Chill_Surf left20:50
texasmynsted Oh whooops it is in a link from that one here —> http://stackoverflow.com/questions/23097368/git-ignore-vs-exclude-vs-assume-unchanged20:50
fragMental joined20:50
atrigent texasmynsted: ok, it looks like you might actually want --skip-worktree then20:51
Laksh left20:51
alexruf left20:51
atrigent see here http://stackoverflow.com/questions/13630849/git-difference-between-assume-unchanged-and-skip-worktree?lq=120:51
although you should figure out what the deal really is with this file20:51
CausaMortis joined20:52
atrigent oftentimes it is useful to track IDE files20:52
laksh joined20:52
abacuspowers joined20:52
texasmynsted oooh. Thank you20:52
zeroed joined20:53
otter768 joined20:53
laksh left20:53
CareBear\ ash_mobile : joemaller.com/99020:53
atrigent texasmynsted: which IDE and which file is it, if I may ask?20:53
CareBear\ Stace : rewrites are not a problem if there is adequate communication20:54
Stace : but if there is no communication then they can be a lot of work to deal with20:54
The_Phoenix left20:55
texasmynsted Intellij IDEA20:55
.idea/misc.xml20:55
atrigent it looks like that is supposed to be tracked20:56
gfixler joined20:57
ash_mobile left20:57
otter768 left20:58
funfunctor left20:58
mehola joined20:58
ESphynx left20:58
samw left20:59
faux___ left21:00
oojacoboo joined21:00
kevwil left21:00
samw joined21:00
samw left21:00
bronson left21:01
mehola left21:02
Sucks joined21:03
jimi_ left21:04
mogli joined21:04
Gamecubic left21:05
Gamecubic joined21:05
jonno11 joined21:05
faux___ joined21:06
zarubin joined21:06
kadoban joined21:06
mogli anyone knows how move .git folder to its parent folder without loosing the history?21:07
milki .git contains the history of the repo21:07
forbidden404 left21:07
Sigfrid left21:08
milki mogli: you can easily clone the repo and delete the original copy i suppose21:08
mogli can i move .git to its parent folder just cut & paste operation21:08
Stace CareBear\: yeah, had I been able to push the commit first it would have been fine.21:08
milki mogli: if you do that, you wont have a repo in the original location21:09
mogli: !xy21:09
gitinfo mogli: Woah, slow down for a bit. Are you sure that you need to jump through that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective...21:09
abra0 joined21:09
mogli here is my detail question http://stackoverflow.com/questions/34229645/how-to-move-git-folder-to-parent-folder-without-loosing-history21:09
mwhooker left21:09
nilg left21:10
samw joined21:10
faux___ left21:10
King_Hual left21:10
mogli im in the process of transfer TFS to git using git-tf or git-tfs tools..these tools creates .git folder under the project folder.21:11
milki mogli: mv reclone the repo in C:\ and then move/rename things as needed21:11
forbidden404 joined21:12
phrozensilver left21:12
mogli I cut and pasted .git folder from “C:\MyRepo\MyProject\.git” to “C:\MyRepo”. Then from the command prompt “C:\MyRepo” i executed “git add *” and then “git commit” to commit changes locally. Then add new folders under “MyRepo” and executed add and commit again21:12
faux___ joined21:12
mogli would that work21:12
_cyril_ joined21:12
milki well, none of those commands will result in an error i suppose21:13
i dont think it will give you the end result you want21:13
atrigent I think you'd want to first do git add -u and then git add MyProject21:14
picachu joined21:14
atrigent to make sure the right things got removed21:14
bronson joined21:14
dvaske_ joined21:14
nvahalik left21:15
atrigent and then git diff -M to make extra sure21:15
with --staged, of course21:15
ImuMotive joined21:15
CareBear\ I smell filter-branch21:15
milki CareBear\: that would probably be ideal. but if we are starting from moving a .git folder, its probably too advanced21:16
mogli whats filter-branch21:16
faux___ left21:17
j416 mogli: man git-filter-branch21:17
texasmynsted why should that be tracked21:17
gitinfo mogli: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html21:17
dvaske_ left21:17
marc_v92 left21:17
FireArrow133 left21:17
atrigent oh yeah, if this is a new git repo then filter-branch would be good21:17
texasmynsted I mean why should .idea/misc.xml be tracked?21:17
OnkelTem left21:17
Sucks left21:18
atrigent texasmynsted: it seems that the official recommendation is to track it21:18
Sucks joined21:18
atrigent but I also see some people wanting not to track it for various reasons21:18
nvahalik joined21:18
texasmynsted where?21:18
atrigent so I don't really know21:18
faux___ joined21:18
texasmynsted where is this official recommendation21:18
atrigent texasmynsted: https://devnet.jetbrains.com/docs/DOC-118621:18
OnkelTem joined21:18
daivyk joined21:19
atrigent I used my google-fu, which is a skill that I guard closely21:19
mrx-420 joined21:19
mogli has anyone used "git-tfs" tool to transfer TFS branch to git. I need to exclude certain folders from the TFS branch while transferring21:21
s00pcan mogli: I couldn't get it to work, because the repo I wanted was stupid large (80GB+) and required doing it all in one go, which never happened21:22
texasmynsted https://intellij-support.jetbrains.com/hc/en-us/articles/206827587-How-to-manage-projects-under-Version-Control-Systems21:22
s00pcan mogli: tfs is awful, you should find a new job21:22
atrigent texasmynsted: yes, I just noticed that link hah21:22
it seems to say the same thing though, roughly21:22
mogli s00pcan: thats why we are transfering to git21:23
texasmynsted except for .idea/misc.xml21:23
there are other people having problems with that being shared21:23
User458764 left21:23
atrigent yes, I see that21:23
faux___ left21:23
s00pcan mogli: great then. It's much easier if you just give up the history... but I'm assuming you don't want that21:23
atrigent texasmynsted: is the problem that you're having one of the ones mentioned there?21:23
nilg joined21:23
mogli ye thats the problem, we want the history21:24
bronson left21:24
s00pcan well, the cli things that git-tfs uses are from microsoft, and they are pathetic21:24
phrozensilver joined21:25
atrigent in any case, I only know what I can find talked about on the internet21:25
picachu left21:26
tomog999 joined21:27
dreiss left21:27
Rodya_ left21:27
mogli left21:27
algae left21:28
AndroidLoverInSF left21:28
_cyril_ left21:28
AndroidLoverInSF joined21:29
tomog999_ left21:29
tgunr joined21:29
faux___ joined21:31
Sucks left21:31
MattMaker left21:31
israelzuniga joined21:31
ncthom91 joined21:32
MattMaker joined21:32
leeN left21:32
nvahalik left21:35
faux___ left21:35
unreal joined21:35
CausaMortis left21:36
MarkyC_ joined21:37
rubyonrailed left21:37
roygbiv left21:37
ulkesh left21:37
nettoweb left21:38
ulkesh joined21:38
nvahalik joined21:38
MarkyC left21:39
crunchers left21:39
bronson joined21:41
rubyonrailed joined21:44
rwb left21:45
Jackneill left21:46
tang^ joined21:46
faux___ joined21:46
editshare-ericf left21:46
lmatteis joined21:46
MattMaker left21:46
MattMaker joined21:47
zarubin left21:49
nvahalik left21:49
zarubin joined21:50
nvahalik joined21:50
finisherr joined21:51
faux___ left21:51
finisherr Hello folks. I have a git repo problem where my remote, base, and local branches (is evidenced from vimdiif as a mergetool) for one file in my repo21:51
it keeps happening21:52
faux___ joined21:52
finisherr what exactly is base?21:52
MarkyC_ left21:52
CareBear\ probably the last commit common to your branch and the remote21:53
Ahmed90 left21:53
zarubin left21:54
faux___ left21:56
rnsanchez_ left21:59
anth0ny left21:59
bronson left22:00
devoldmx joined22:01
daito joined22:01
doener joined22:02
tesla_ joined22:02
BSaboia left22:03
peoliye joined22:04
finisherr left22:04
faux___ joined22:04
devoldmx left22:05
ndim joined22:05
akshat left22:06
daito left22:06
yqt joined22:08
nnyk left22:08
zarubin joined22:08
yashu-seth left22:08
faux___ left22:09
drawkula joined22:09
dreiss joined22:09
zarubin left22:10
puff joined22:10
zarubin joined22:10
faux___ joined22:10
crunchers joined22:12
zarubin_ joined22:13
zarubin left22:13
crunchers left22:13
jaafar left22:14
crunchers joined22:14
mellernoia-work left22:14
nilg left22:14
faux___ left22:14
astrofog left22:14
toogley left22:15
toogley joined22:17
dorkmafi1 left22:18
editshare-ericf joined22:18
BBBThunda left22:18
Spacew00t left22:18
boombatower joined22:19
toogley left22:22
rubyonrailed left22:22
krawchyk left22:23
DolphinDream left22:24
nettoweb joined22:25
ImuMotive left22:25
_cyril_ joined22:25
Rodya_ joined22:28
AbigailBuccaneer joined22:30
Sendoushi joined22:30
Rodya_ left22:33
Rodya_ joined22:34
sgambino left22:34
italoacasas left22:34
uri_ left22:35
noteness left22:35
kolobyte joined22:36
thiago joined22:38
mwhooker joined22:38
dorkmafi1 joined22:38
noteness joined22:38
circ-user-aPkEg left22:39
Goobbue joined22:40
petaflot left22:40
Dougie187 left22:40
petaflot joined22:40
axl_ joined22:41
ska joined22:42
cagedwisdom left22:42
finisherr joined22:42
finisherr Is there a way to update the base so that I can avoid merge conflicts?22:42
toothrot joined22:42
finisherr it seems like my base is out of step for this one repo22:43
ska I have a develop branch that was tagged for rlease at point a, but was not release, and has subsequent commits.. how can i release to develop from point a (that is tagged as a1) for exampel/?22:43
cbonobo left22:43
_cyril_ left22:43
kevwil joined22:43
ska sorry.. s/release to develop/release to master from develop at tag a1/22:43
petaflot left22:45
Sucks joined22:45
petaflot joined22:45
petaflot left22:45
krawchyk joined22:47
krawchyk left22:47
aartist left22:47
mrx-420 left22:50
gopar left22:50
petaflot joined22:50
Poppa joined22:50
synthroid left22:51
Puhe joined22:52
nestor joined22:54
kinokoio left22:54
kinokoio joined22:54
otter768 joined22:54
kinokoio left22:56
crunchers left22:56
samw left22:57
fscala left22:57
faux___ joined22:58
fscala joined22:58
dstarh left22:58
otter768 left22:58
ncthom91 left22:59
bronson joined23:00
durham_ joined23:02
faux___ left23:02
tang^ left23:05
durham left23:05
dstarh joined23:05
bronson left23:05
puff left23:07
jrnieder joined23:07
BrianBlaze420 left23:08
samw joined23:08
chitopunk left23:09
puff joined23:09
diogenese left23:09
CKyle joined23:10
editshare-ericf left23:11
axl_ left23:11
roygbiv joined23:13
espindola left23:14
geri left23:14
justinmburrous joined23:16
justinmburrous left23:16
nvahalik left23:16
astronautlevel joined23:17
gitinfo set mode: +v23:17
zarubin_ left23:18
MistahKurtz joined23:19
codeman left23:20
durham_ left23:21
finisherr left23:21
durham joined23:22
rnsanchez joined23:22
dstarh left23:23
geri joined23:25
BtbN joined23:26
sonOfRa joined23:26
crayon joined23:28
adamm joined23:29
cvanball_ left23:29
eijk_ left23:31
kevwil left23:31
gopar joined23:33
juggle left23:35
ryoshu left23:35
madewokherd left23:36
tvw left23:41
Kicer86 left23:43
doener left23:43
woodruffw joined23:43
jost left23:44
samw left23:44
MattMaker left23:45
filisko left23:46
roxlu left23:46
wyoung Should i use git or mercurial?23:47
leonarth joined23:48
preaction whichever one fits your project requirements23:49
Goobbue left23:49
jonno11 left23:50
mrx-420 joined23:50
zeroed left23:51
Goobbue joined23:51
zeroed joined23:52
ome joined23:53
jonno11 joined23:55
diogenese joined23:55
samw joined23:55
_cyril_ joined23:56
dreiss left23:56
tfry left23:58
tfry joined23:58
kadoban wyoung: Yes.23:58
devoldmx joined23:58

Logs Search ←Prev date Next date→ Channels Documentation