IRCloggy #git 2016-01-25

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.

2016-01-25

lindenle_ left00:00
edakiri left00:00
King_Hual left00:03
Senecea joined00:03
dreiss left00:03
lindenle left00:03
codefo joined00:04
lindenle joined00:04
tpollard left00:05
skinux joined00:05
skinux How do I check which remote repo a project is setup to push to?00:05
thiago that's a complex question, actually00:06
let's start with the value of the config push.default. What is it?00:06
Senecea left00:06
Senecea joined00:06
baxx left00:07
ascarter joined00:07
jam_ left00:07
jam_ joined00:09
lindenle_ joined00:09
Senecea left00:09
lindenle left00:09
Senecea joined00:10
dama1138 joined00:10
mattfoo left00:11
skinux There is no push.default set00:12
mezod joined00:12
jam_ left00:12
thiago which git version?00:12
lindenle_ left00:13
lindenle joined00:14
Limes_ left00:15
bodom left00:16
tpollard joined00:16
Gitzilla joined00:17
mattfoo joined00:18
lindenle left00:19
AnwarS left00:19
StormLrd joined00:19
ketas- joined00:19
Chilley left00:19
hexagoxel_ joined00:20
lindenle joined00:20
codefo left00:21
mkopriva left00:21
BeatrixKiddo left00:23
hexagoxel left00:24
hexagoxel_hexagoxel00:24
lindenle left00:25
lindenle joined00:25
cagedwisdom left00:26
paddyez left00:31
lindenle_ joined00:31
lindenle left00:32
AAoK left00:32
lindenle joined00:33
lindenle_ left00:33
fahadash joined00:33
ahr3n joined00:34
MikeFair joined00:35
Chilley joined00:35
hyperair left00:35
MikeFair So I cloned a repo on GitHub locally, then ended up making some changes which I'd like to submit as a pull request00:36
I went ahead and hit "Fork" on the original project, and then created a branch in my copy of that fork00:37
nevyn MikeFair: so add a remote for your fork00:37
MikeFair But I'm not sure how to upload the changes on my local machine to the Branch I just created00:37
cagedwisdom joined00:38
lindenle left00:39
skinux thiango: Git version 2.5.2.windows.100:39
lindenle joined00:39
nevyn MikeFair: so add your upstream as a remote. then fetch the new branch00:39
MikeFair Won't that mess my changes up somehow?00:40
nevyn MikeFair: have you committed the changes in git?00:40
nidr0x left00:40
jteneyck joined00:40
jteneyck left00:40
MikeFair No, I have the changes on the FS locally00:40
yudi099 joined00:40
nevyn in the gitrepo?00:40
MikeFair git remote currently says "origin"00:40
yes00:40
nevyn have you setup git? like user.email and user.name?00:41
jteneyck joined00:41
MikeFair It's been a while seince I looked; I know I've done enough to push/pull from my Git account00:42
firstdayonthejob left00:42
rtail left00:42
MikeFair err Github00:42
indieross left00:42
nevyn MikeFair: so git 101 git config --global --set user.name 'your name here'00:42
then user.email00:42
lindenle left00:43
MikeFair nevyn: Ok, did those already00:43
MikeFair just looked at git config --get for those parameters.00:44
jor left00:44
lindenle joined00:45
elementalest joined00:45
elementalest left00:45
elementalest joined00:45
aidalgolatg`00:45
atg`aidalgol00:45
nevyn kso commit the changes00:45
ascarter left00:45
nevyn MikeFair: ^^ add and commit the changes.00:45
(on a branch if you want00:45
MikeFair nevyn: Well before we do that, help me understand the concepts here00:45
nevyn MikeFair: git checkout -b mychanges00:46
MikeFair: so fiddling about in github is not.. helpful unless you did it before starting to write the modifications00:46
MikeFair Ahh ok00:46
So I commit locally, then upload to GH00:47
nevyn MikeFair: you could clone your 'fork' then copy things in commit and push00:47
MattMaker joined00:47
MikeFair nevyn: I did that last time this happend and I knew I clearly didn't understand the concepts I was working with, I just new that would work00:47
nevyn commits are always local00:47
I like !gcs00:48
gitinfo [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs.html00:48
MikeFair So is it something like, make my local commits, then change the remote the local repo is attached to?00:48
nevyn but there's also !book !parable !videos00:48
gitinfo 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 !parable00:48
'The git parable' provides some good reasoning behind git. http://tom.preston-werner.com/2009/05/19/the-git-parable.html00:48
[!talks] Some good video talks about Git: [yt] http://goo.gl/z72s (Linus Torvalds: History&Concepts); [yt] http://goo.gl/R9H2q (Scott Chacon: Git basics, live examples); http://vimeo.com/35778382 (Randal Schwartz: Git basics, descriptional); http://vimeo.com/46010208 (Jesica Kerr: Git basics, descriptional)00:48
nevyn MikeFair: there's no limit on how many remotes your local repo can talk to00:48
MattMaker left00:49
lindenle left00:49
nevyn it's not a 1:1 requirement00:49
this isn't SVN00:49
MikeFair +nevyn: Let me rephrase, a make my local commits; and then remove the original and add my new branch00:49
nevyn nope00:49
still wrong00:49
MikeFair hehe :)00:50
nevyn add all the things to your local repo00:50
so a github 'fork' is a clone00:50
on githubs infra00:50
MikeFair right, I understand that00:51
lindenle joined00:51
nevyn a git repository can have as many remotes as you want00:51
so add a remote to your github fork in addition to the existing 'origin' which is the project upstream00:52
yudi099 left00:52
nevyn I'd rename thatremote to be clearer that it's the project upstream00:52
daito joined00:55
MikeFair ok, renamed origin -> upstream; and added "github"00:55
nevyn next00:56
so I'd commit your stuff00:56
jteneyck left00:56
MikeFair Oh I already did the commit00:56
nevyn ok.00:56
kadoban joined00:57
victortyau left00:57
nevyn so you know pull is fetch+merge right?00:57
lindenle left00:57
MikeFair yes00:57
nevyn so. if you were to pull (don't) you'd merge the new upstream stuff onto your changes00:57
that'd be bad.00:57
MikeFair But I've never been clear on what that would do with multiple remotes00:57
lindenle joined00:57
nevyn remotes are not at issue here.00:58
MikeFair nevyn: There isn't any new upstream atm, but I undersnta00:58
nevyn MikeFair: git branch -vv00:58
MikeFair: branches know what they're tracking00:58
MikeFair "master .... ahead 1"00:58
fstd left00:59
fstd joined00:59
MattMaker joined00:59
daito left01:00
nevyn see [origin/master]01:00
markgrady joined01:00
rclanan joined01:00
MikeFair Yes [upstream/master]01:00
nevyn that means that master is tracking origin/master (should actually say upstream/master for you)01:00
right01:00
MattMaker left01:00
nevyn fetch both upstreams01:01
fetch both remotes01:01
rather01:01
jalopez joined01:01
jalopezjalopezsilva01:01
nevyn git fetch --all01:01
marienz left01:01
MikeFair ok my GH account created some new branches01:02
nevyn yep01:02
well it shouldn't of01:02
lindenle_ joined01:02
nevyn if you run git branch you shouldn't see any of those01:02
MikeFair I odn't01:02
err don't01:02
nevyn right. because they're remote branches01:02
MikeFair nods.01:02
marienz joined01:02
lindenle left01:02
nevyn so git checkout -t github/<BRANCHNAME>01:03
where that's the github branch you want to create the pull request from01:03
LekeFly joined01:03
MikeFair Ok, done. It's saying something about detached HEAD01:04
abc123_ left01:04
jottr_ joined01:05
abc123 joined01:05
rclanan left01:05
MikeFair Hmm, I didn't use the -t switch on the checkout01:05
nevyn oh!01:06
that's super important01:06
MikeFair Just redid it01:06
it seemed to work01:06
nevyn right.01:06
AtnevRed joined01:06
nevyn so now do git merge -ff master01:06
lindenle_ left01:07
MikeFair hmm, doesn't like the command...01:07
nevyn oh?01:07
jottr left01:07
nevyn gist the result (also git status master )01:07
MikeFair Ahh, --ff01:08
nevyn ah yes01:08
mybad01:08
MikeFair nw01:08
m0viefreak left01:08
MikeFair ok, that seemed to do its thing01:08
nevyn so this should make this branch look just like master01:08
and pull your changes across01:08
MikeFair So that merged the changes from the "master" branch locally with the new branch "locally"01:09
nevyn yep01:09
so now you want to reset master to origin/master01:09
because you should never of written code against that branch (because you can't push it)01:10
italoacasas left01:10
nevyn so git checkout master01:10
MikeFair nods in understanding.01:10
nevyn git reset --hard origin/master01:10
lindenle joined01:10
nevyn so this branch now tracks.. upstreamupstream/master01:10
not origin01:10
MikeFair yep, ok done01:11
nevyn so that should now show a git status of 'up to date'01:11
?01:11
AtnevRed left01:11
MikeFair yes, working directory is "clean"01:11
stamina left01:12
nevyn if you checkout github/<modifiedbranch>01:12
you should be 1 ahead01:12
Rakkan joined01:12
nevyn and you should be able to push that.01:12
MikeFair nevyn: what does git checkout -b do01:12
nevyn makes a new local branch.01:13
from where you are right now01:13
MikeFair HEAD detached01:13
nevyn git checkout -b temp01:13
bronson joined01:13
nevyn oh you need ti give it a name01:13
yudi099 joined01:14
victortyau joined01:14
lindenle left01:14
MikeFair Well when I did a git checkout github/newbranch it said head detached01:14
I tried the -t but it said there's already a local branch with that name01:14
abc123 left01:15
abc123_ joined01:15
nevyn git branch01:15
lindenle joined01:16
nevyn oh.01:16
MikeFair * (HEAD detached at github/CreateSocketWithContext)01:16
CreateSocketWithContext01:16
master01:16
harish_ left01:17
Sazhen86 joined01:17
MattMaker joined01:17
nevyn git checkout CreateSocketWithContext01:17
Senecea left01:17
bronson left01:18
MikeFair ok so when I did the git checkout github/CreateSocketWithContext it put me on something different from the local CreateSocketWithContext branch... ?01:20
lindenle left01:20
nevyn yes01:20
git checkout github/CreateSocketWithContext will put you on what's in the remote01:20
hyphenated joined01:20
dsdeiz joined01:21
nevyn if you run git log on that detached head you would not have seen your commit01:21
jteneyck joined01:22
lindenle joined01:23
italoacasas joined01:23
MikeFair Ok so if I understand this correctly; and I was where I was where I couldn't push my changes against origin/master; Could I have done checkout -b NewBranch -t github/NewBranch?01:24
Then pushed01:24
or fetched then pushed01:24
yudi099 left01:24
nevyn so for that to work the local repo needs to know bout github/NewBranch01:25
MikeFair (I'd still need to reset --hard the local master branch in any event because I had the commit there that couldn't be pushed)01:25
nevyn you can push a new branch to github01:26
but that'd be git checkout -b newbranch ... <dostuff>01:26
daito joined01:26
hyphenated I have a feature branch off master, and want to merge it back to master and also to another branch (release-x.y) .. so I checkout master, merge feature-x, checkout release-x.y, merge feature-x .. according to everything I read, that should merge the changes on the feature branch to the checked-out branches, right?01:26
mingwandroid left01:26
nevyn git push github newbranch01:26
hyphenated but when I do the second one, it seems to include all sorts of additional changes that weren't on the feature-x branch (but differ between master and release-x.y)01:27
ojacobson hyphenated: yes -- have a look at the output of !lol afterwards01:27
gitinfo hyphenated: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all01:27
hyphenated should I be cherry-picking or..?01:27
ojacobson in the latter case, you'll merge the cumulative change since feature-x diverged -from release-x.y-01:27
hyphenated ojacobson: ok. that's not what I was hoping to have. what's the correct step to do for that branch?01:28
ojacobson That's what "that branch" is.01:28
Senecea joined01:28
nevyn hyphenated: if you want your changes ontop of current then you probably want to rebase.01:29
ojacobson If you had a time machine (and you do, this is git) I would branch feature-x off of the last common commit between master and release-x.y01:29
jottr_ left01:29
ojacobson since you plan on merging it to both01:29
MikeFair nevyn: Right -- so add the github remote, rename origin to upstream because it's just nice; fetch; then checkout -b NewBranch01:29
ojacobson that will ensure that the merge only brings in commits that are unique to feature-x, relative to both other branches01:29
nevyn MikeFair: yep01:29
MikeFair nevyn: Assuming I had also already created the new branch in GitHub; would I also need to add the -t to the checkout?01:30
ketas left01:30
sctskw left01:30
Senecea left01:31
sctskw joined01:31
MikeFair nevyn: checkout == local branchname ; -t == remote tracking branchname01:31
nevyn so checkout -t is a shortcut... for checkout -t <remotebranch> -b remotebranchnaem01:31
so this is properly a local tracking branch01:32
Senecea joined01:32
MikeFair nevyn: ahh, git checkout -b <branch> --track <remote>/<branch>01:32
nevyn the remote tracking brach is github/branchname (if you check this out you end up on detached head01:32
because you can't have the state of a remote that's possibly been updated locally01:33
MikeFair nods.01:33
nevyn the only way tracking branchnes move.. is when you fetch or push01:33
remote tracking branches that is01:33
MikeFair makes sense01:34
nevyn now...01:34
msonntag left01:34
nevyn let's imagine for a second that upstream had moved on and made changes that were not in your modified code.01:35
hyphenated ojacobson, nevyn: thanks, it helps me understand the mess I'm making :-)01:35
sctskw left01:35
nevyn hyphenated: if you're new to this stuff I do reccomend !book or !gcs01:35
gitinfo hyphenated: 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 !parable01:35
hyphenated: [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs.html01:35
hyphenated nevyn: not completely new, but getting a bit lost when things don't work smoothly01:36
nevyn hyphenated: if you're getting lost I'd suggest that your understanding of how git works is incorrect this is usually the problem01:38
hyphenated no doubt :-)01:38
nevyn hyphenated: git can appear simple and smooth until you hit a !conflict or something in your model doesn't match reality01:38
gitinfo hyphenated: [!eekaconflict] Merge conflicts are a natural part of collaboration. When facing one, *don't panic*. Read "How to resolve conflicts" in man git-merge and http://git-scm.com/book/ch3-2.html#Basic-Merge-Conflicts then carefully go through the conflicts. Picking one side verbatim is not always the right choice! A nice video explaining merge conflicts: https://www.youtube.com/watch?v=zz7NuSCH6II01:38
MikeFair +nevyn: Would just updating the push URL for origin to my GH branch have done the trick?01:39
hyphenated I'm marginally better than the guy in the xkcd comic01:39
j416 left01:40
Dazzyo left01:40
lindenle left01:40
nevyn hyphenated: in particular once you have multiple repo's (ie at least two people have repos) what people thing is happening and what's actually happening are usually different01:40
s/thing/think/g01:40
lindenle joined01:40
nevyn in particular if we all have a branch called master they're not the same thing.01:40
David1977 joined01:41
ome joined01:42
Dazzyp joined01:42
ribasushi left01:43
wagle left01:43
cwillu_at_work left01:44
relrod left01:44
lindenle_ joined01:44
canine left01:45
lindenle left01:45
j416 joined01:45
tpollard left01:45
plasticb1y left01:45
tkeith left01:45
wagle joined01:46
bollullera left01:46
tkeith joined01:46
rook2pawn left01:46
plasticboy joined01:46
rook2pawn joined01:46
relrod_ joined01:49
relrod_ left01:49
relrod_ joined01:49
Sucks left01:49
lindenle joined01:49
lindenle_ left01:50
ketas joined01:51
canine joined01:51
localuser- joined01:51
ribasushi joined01:51
tpollard joined01:51
hyphenated ojacobson: "I would branch feature-x off of the last common commit between master and release-x.y" .. I'm trying to figure out how that approach would work for hotfixes for example01:51
Noldorin left01:52
Orion3k joined01:54
lindenle left01:55
lindenle joined01:56
cwillu_at_work joined01:56
lindenle left02:00
moei left02:00
lindenle joined02:01
moei joined02:01
rclanan joined02:01
blckbit10 left02:01
flavi0 left02:01
wxg joined02:02
presto left02:02
David1977 left02:03
nevyn hyphenated: branch-hotfix-X is based on the latest common commit between master and release02:03
blckbit10 joined02:03
presto joined02:03
nevyn then rebased onto each and commited02:03
presto left02:03
nevyn or merged02:03
pks left02:04
lindenle left02:05
noyb joined02:05
hyphenated ok. I thought it'd be branched from HEAD of master, do some changes/fixes/tests, merged back to master then.. somehow get it to the other branches02:05
rclanan left02:06
xaa left02:06
codedmart left02:06
nevyn hyphenated: so you could do that too. and pull it back to the common point02:06
lindenle joined02:06
hyphenated ok. does that mean "rebase" ?02:06
pks joined02:07
nevyn or cherry-pick it back02:08
hyphenated awesome.02:09
mezod left02:09
ojacobson rebase is, in a lot of ways, cherry-pick machinery02:09
nevyn git checkout commoncommithash && git checkout -b hotfix-porttorelease && git cherry-pick startofhotfix ... master02:10
hyphenated: something like that ^^02:10
ojacobson git checkout master...release-x.y # a shorthand for "the last common ancestor of master and release-x.y02:11
up to git 2.6 for some idiotic reason the -b option disables the three-dot parsing there, so you have to create a branch separately from checking out the right commit02:11
donmichelangelo joined02:12
hyphenated that would have applied to me then.. git version 2.5.4 (Apple Git-61)02:12
lindenle left02:14
BillCriswell left02:15
michelangelo left02:15
lindenle joined02:15
watabou joined02:17
jteneyck left02:18
lindenle left02:19
lindenle joined02:20
victortyau left02:20
lindenle left02:23
localuser- left02:23
localuser- joined02:23
Arsonide left02:24
Arsonide joined02:24
tyll_ joined02:24
lindenle joined02:25
jottr_ joined02:25
nilsi joined02:26
joako left02:26
tyll left02:26
meloc joined02:27
lindenle left02:29
harish_ joined02:30
jottr_ left02:30
SimonNaa joined02:31
lindenle joined02:31
Lyqyd joined02:32
tristanp left02:33
joako joined02:33
abc123 joined02:33
SimonNa left02:34
abc123_ left02:34
abc123abc123_02:34
fracting1 joined02:34
lindenle left02:34
lindenle joined02:36
fracting left02:38
Vampire0 joined02:38
fracting1 left02:40
fracting1 joined02:40
Vampire0_ left02:41
lindenle left02:41
lindenle joined02:42
fracting1 left02:42
fracting joined02:42
victortyau joined02:43
abc123_ left02:45
abc123 joined02:45
lindenle_ joined02:47
lindenle left02:47
johnkevinmbasco joined02:47
mablae_ joined02:48
craigp left02:49
mablae__ left02:51
algae left02:51
lindenle_ left02:52
lindenle joined02:53
nfk left02:54
boombatower joined02:54
victortyau left02:54
lindenle_ joined02:58
lindenle left02:58
System42 Is it possible to have the same submodule in two different branches in different states?02:59
Ahmed90 left02:59
aidalgol How do I do a push/pull for *all* of my remote-tracking branches at once?02:59
System42 I tried to add a submodule on a new branch that didn't previously use a submodule and got a warning that " a git directory was already found locally"03:00
nevyn aidalgol: git fetch --all03:00
ojacobson push is easy03:00
pull is basically impossible, since merges require a work tree, and there's only one of those03:01
aidalgol ojacobson: oh, OK then.03:01
nevyn ojacobson: a little shell script but.. ewww03:01
ojacobson sure03:01
fetch is probably the right approach here03:01
System42 https://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches03:01
nevyn aidalgol: if they're pure tracking branches... I'd drop them03:01
aidalgol nevyn: I'm not sure what the correct term is.03:01
nevyn and deal with the detached head when you checkout the remote branch03:01
rclanan joined03:02
lindenle_ left03:02
apiarian left03:02
nevyn aidalgol: if they contain no local changes and only exist to track remote branches.. don't have them as local branches at all03:02
aidalgol nevyn: They are for making local changes.03:03
apiarian joined03:03
nilsi left03:03
snonez joined03:04
lindenle joined03:04
skcin7 left03:06
snonez left03:07
rclanan left03:07
AtnevRed joined03:07
snonez joined03:07
jteneyck joined03:08
jteneyck left03:08
jteneyck joined03:08
yongyung left03:09
lindenle left03:10
lindenle_ joined03:10
sangy joined03:10
jalopezsilva left03:10
yongyung joined03:10
jon-mac joined03:11
AtnevRed left03:11
rchavik joined03:12
ajf- left03:13
lindenle_ left03:14
LekeFly left03:14
bronson joined03:15
lindenle joined03:15
ahr3n left03:16
kadoban left03:16
System42 left03:16
trumee How can i force a user to be authenticated even for repo cloning?03:16
drodger left03:18
preaction trumee: don't put the repo in a place where unauthenticated users can get to it. are you using gitolite or something?03:18
johnnyfive left03:18
trumee preaction, no plain vanilla server. Out of the box it allowing to clone the repo and not asking for password. Is that how git works out of the box?03:19
preaction, i followed this tutorial https://forums.freebsd.org/threads/howto-build-a-jailed-git-repository.34878/03:19
diegoviola left03:19
lindenle left03:20
bronson left03:20
trumee i tried to clone from a new machine which doesnt have a ssh key. And cloning worked!!03:20
preaction trumee: yes. where you set up the git_daemon is where you allowed unauthenticated users. you could just use ssh03:20
italoacasas left03:20
drodger joined03:20
sctskw joined03:21
jalopezsilva joined03:21
trumee oh, how can i force git_daemon to authenticate?03:21
modocache left03:21
joako left03:21
lindenle joined03:21
preaction it doesn't. git-daemon, to my knowledge, doesn't do authentication. you can just use ssh for that. you don't need git-daemon at all, just an sshd, which i assume you already have03:21
modocache joined03:22
ketas- left03:22
trumee So i can stop git_daemon and still will be clone using git clone git://myserver/myrepo.git?03:23
ojacobson You can't.03:23
git:// is an unauthenticated protocol.03:23
If you want auth, use ssh or http/https03:24
preaction no, you'd use "git clone ssh://myserver/myrepo.git"03:24
johnnyfive joined03:24
preaction !gitolite03:24
gitinfo Gitolite is a tool to host git repos on a server. It features fine-grained access control, custom hooks, and can be installed without root. Download: https://github.com/sitaramc/gitolite Docs: http://gitolite.com/gitolite/03:24
lindenle left03:26
moncrey joined03:26
lindenle joined03:27
abra0 left03:28
johnkevinmbasco left03:29
moncrey hey, i need a little guidance from someone whos a bit more familiar with git. I've been trying to rebase for hours.03:29
just got a fresh git clone of my own repo03:29
i need to rebase/squash my commits down to one.03:29
nevyn ok03:30
trumee ok, i stopped git_daemon. and tried using git clone ssh://git@myserver/private/myrepo.git. I now get an error fatal:'/private/myrepo.git' does not appear to be a git repository. fatal:Could not read from remote repository03:30
moncrey i have git remote add originalrepoAddress03:30
then git checkout -b develop of my own branch03:30
nevyn moncrey: when you did the development did you pull as you went?03:30
or merge?03:30
moncrey no i havent nevyn. i assume its outdated from master03:31
thats a thing i dont quite understand how to do.03:31
nevyn ok.03:31
so let's deal with the first thing first03:31
make a new branch of your develop that we're going to rebase.03:32
moncrey make a new branch of the develop branch...03:32
nevyn yep03:32
because you want to keep develop incase this doesn't workout03:32
so git checkout -b develop-squash03:33
moncrey aha okay. that'll create a new branch out of the current branch?03:33
nevyn this is going to contain a single squashed commit of the changes you made03:33
moncrey alright.03:33
nevyn moncrey: yeah do that with develop checked out03:33
moncrey okay set03:33
nevyn moncrey: now look back through the log until you find where you started working03:34
then do git rebase -i <STARTINGPOINTHASH>03:35
moncrey okay03:36
nevyn this will open an editor. with every commit between starting point and tip of develop.03:36
jeffreylevesque joined03:36
mizu_no_oto joined03:36
trumee ah i had to give the full path like this git clone ssh://git@myserver/home/git/private/myrepo.git, and now it works03:37
chachasmooth left03:37
Ankhers left03:38
moncrey first nevyn… what im looking at in git log are other peoples changes.03:38
joako joined03:38
moncrey i made 13 commits to my develop branch03:38
when i type git log, they are not shown03:38
chachasmooth joined03:38
nevyn moncrey: when you ran checkout -b whcih branch were you on?03:39
jalopezsilva left03:39
ahr3n joined03:39
CheckDavid left03:39
moncrey i am pretty sure i was on develop.03:39
nevyn try it again03:39
make sure03:39
moncrey let me back up and start over03:39
nevyn meh03:39
moncrey: git reset --hard develop03:39
(given your on develop-squash now03:40
moncrey ohhh03:40
lindenle left03:40
mizu_no_oto left03:41
apiarian left03:41
moncrey okay so i just checked out again. then git remote add origRepo again. then git checkout -b develop03:42
git log currently shows other peoples changes03:42
m1dnight1 joined03:42
lindenle joined03:42
apiarian joined03:42
m1dnight_ left03:42
ahr3n left03:44
daito left03:44
moncrey so i did git pull moncrey develop and now git log shows my changes03:46
msonntag joined03:46
ome left03:47
jalopezsilva joined03:47
m1dnight1m1dnight_03:50
Limes_ joined03:50
rtail joined03:53
nevyn pull?03:55
pull is a merge!03:55
you almost certainly don't wantthat.03:55
moncrey well shit that explains all these extra commits in rebase heh03:55
howdoi joined03:56
nevyn !pull03:57
gitinfo pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/03:57
moncrey alright so. at a fresh clone. added the remote. switched to branch develop.03:57
so i should fetch! okay03:57
nevyn so if you pulled while you were working on develop03:57
then it's going to get messy03:58
moncrey deleted and started over once again03:58
nevyn because you have yourstuff... merged upstremastuff yourstuff mergedupstreamstuff03:58
moncrey exactly what i was looking at03:58
nevyn yeah...03:58
moncrey so i *should* be doing git fetch now?03:58
MikeFair left03:58
nevyn if it looks like that.03:58
then your best bet is to cherry-pick out yourstuff and build something that cleanly applys on tip of upstream03:59
MikeFair joined03:59
drupald left03:59
nevyn moncrey: it doesn't matter what you do now03:59
it matters what happened while you were writing develop03:59
if you pull'd as you went then you've got to unravvel that04:00
harish_ left04:00
nevyn so if you look at a git log of develop04:00
does it have yourstuff back to upstream or is it intermingled?04:00
moncrey it looks like all my stuff, but then i take that hash and i run git rebase -i ${hash} i get intermingled commits04:01
aidalgol left04:01
lindenle left04:02
ojacobson protip: !lol (or at least `git log --graph --decorate`) is incredibly useful for picking apart the kinds of complicated topologies you're dealing with04:02
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all04:02
nilsi joined04:02
lindenle joined04:03
jteneyck left04:03
drupald joined04:03
abc123 left04:05
abc123_ joined04:05
moncrey so nevyn whats with that? log looks like im only going back to my own commits, but then git rebase -i [hash-of-first-commit] shows me more commits04:05
nevyn not first commit.04:06
hash of first commit before your commits04:06
moncrey oh...04:06
nevyn moncrey: are you comefortable sharing the git log --graph --decorate?04:06
jteneyck joined04:07
jteneyck left04:07
jteneyck joined04:07
lindenle left04:08
moncrey i took the hash right below it and that seems to be correct. now i have a list of 13 commits in rebase -i which is what i was expecting04:08
lindenle joined04:08
apiarian left04:11
apiarian joined04:11
lindenle left04:12
jteneyck left04:12
lindenle joined04:14
nevyn so now change the start of those lines to squash to sqash things into the previous commit.04:14
kadoban joined04:16
moncrey so i i took that rebase -i screen, reworded the first and squashed the rest. then it opened EDIT_MSG and i rephrased that one commit… now its showing me all 12 previous commits?04:16
dEPy joined04:16
lindenle left04:17
wxg left04:17
blackwind_123 left04:17
lindenle joined04:18
nevyn first? or last04:21
daito joined04:21
nevyn first in the graph or first as in the 'top'?04:21
moncrey top04:21
nevyn is that the oldest one?04:21
moncrey im pretty sure that was the first one04:22
yes oldest04:22
nevyn ok04:22
meloc left04:22
lindenle left04:22
nevyn so then change the string at the start of the rest to 'squash'04:22
?04:22
moncrey yep. did that. then it opened up another page after i save/quit04:22
Senecea left04:22
nevyn that's the new commit04:23
jalopezsilva left04:23
moncrey okay i updated that, replaced what was there which was my oldest commit msg04:23
nevyn so that's for your new commmit log04:23
ok04:23
moncrey now theres a page that starts "this is a combination of 12 commits"04:23
lindenle joined04:24
nevyn oh..04:25
firstn the reword04:25
so because you said you wanted to reword the first commit that happens first04:25
then the squash commit04:25
(shouldof left it as pick)04:25
moncrey oh darn04:25
i can start over, since i've done so about 50 times by now04:25
Senecea joined04:25
moncrey sigh/lol04:26
jottr_ joined04:26
kadoban left04:26
nevyn nah. just barrel through04:26
rewriting history is rewriting history.04:26
moncrey okay.04:26
so whats up with this "this is a combination of 12 commits" page04:27
Senecea left04:27
moncrey do i edit it?04:27
nevyn so that's the actual commit for the new squashed change04:27
drodger left04:27
moncrey aha okay.04:27
ohhhh i understand04:27
so the second page would have been the reword04:28
i assume04:28
drodger joined04:28
lindenle left04:29
lindenle joined04:29
moncrey alright, exited emacs04:30
success so far!04:30
so now im on branch develop04:30
ra0 joined04:31
jottr_ left04:31
fscala left04:31
moncrey can i git push origin develop at this point?04:31
nevyn no.04:32
well you could try but it'll fail04:32
localuser- left04:32
nevyn or be a no-op04:32
moncrey aha okay…04:32
nevyn if you did that on a seperate branch. like I said nothing has changed on develop04:32
if you did it on develop then develop and origin/develop are diverged and you need to do a force push04:33
it's still behind upstream04:33
fscala joined04:33
nevyn you need to rebase that work forward onto upstreams current tip still04:33
Sazhen86 left04:33
moncrey im pretty sure my own fork is origin/develop04:33
nevyn sure04:34
so04:34
origin/develop you'd pushed this stuff to already right?04:34
you just rewrote the history of that by squashing the commits.04:34
amdi_ left04:35
moncrey yes04:35
thats where im at now04:35
nevyn so as the current history and the remote history have diverged.04:35
you need to force push to replace the 12 commits with 1 on the remote04:35
moncrey the remote being my github repo, right?04:36
nevyn yes04:36
MattMaker left04:37
lindenle left04:37
moncrey so is that simply git push —force origin develop04:38
lindenle joined04:38
sparetire left04:40
moncrey this would be a bad step to be making a mistake at04:40
nevyn meh.04:41
you've got everything locally04:41
so yes that's correct04:42
(while on the rebased branch04:42
assuming push.default = current04:42
moncrey nevyn thank you so much for your help.04:42
lindenle left04:43
moncrey you dont know how valuable your help is to me right now.04:43
i need to go thoroughly step through Ry's git tutorial04:43
Goplat joined04:43
moncrey but i needed to get that done promptly for a job im very excited about getting.04:43
lindenle joined04:43
moncrey fingers crossed. Everybody's gotta be a beginner at something at some point04:44
MattMaker joined04:44
abc123 joined04:46
abc123_ left04:46
abc123abc123_04:46
lindenle left04:48
skcin7 joined04:49
MattMaker left04:49
rilril[away]04:49
lindenle joined04:49
fracting left04:50
daito left04:51
hahuang65 left04:51
mizu_no_oto joined04:51
abc123 joined04:51
FireArrow133 left04:52
joki left04:52
lindenle left04:53
abc123_ left04:53
abc123abc123_04:53
irqq joined04:53
localuser- joined04:55
mizu_no_oto left04:56
daito joined04:58
Chilley left04:58
ayaz joined04:58
tristanp joined04:59
MikeFair left04:59
MikeFair joined04:59
joki joined04:59
localuser- left05:00
xvx left05:02
Manikandan joined05:02
blckbit10 left05:03
nnyk joined05:07
AtnevRed joined05:08
GT joined05:09
jteneyck joined05:09
blckbit10 joined05:10
moncrey left05:11
tristanp left05:11
ril[away]ril05:11
AtnevRed left05:13
jteneyck left05:15
rtail left05:15
rtail joined05:17
bronson joined05:17
modocache left05:19
madewokherd left05:19
MattMaker joined05:21
bronson left05:22
ril left05:22
MattMaker left05:26
Macaveli joined05:28
craigp joined05:28
Chilley joined05:28
scarcry left05:31
skorgon joined05:32
Chilley left05:32
Macaveli left05:33
Gamecubic left05:34
tildes joined05:35
strayPuppy joined05:38
d0lph1n98 joined05:40
irqq left05:41
ril joined05:41
holodoc left05:42
d0lph1n98 left05:43
moncrey joined05:44
holodoc joined05:45
tristanp joined05:45
moncrey left05:45
fedexo joined05:46
drodger left05:46
ril left05:46
drodger joined05:47
Cabanossi left05:47
hahuang65 joined05:47
moncrey joined05:48
Cabanossi joined05:49
ril joined05:49
ril left05:54
skinux left05:54
ayaz_ joined05:55
tildes left05:55
Algebr joined05:55
Algebr I used git lfs track "*.dump" and then tried pushing to master but still got this is 106.52 MB; this exceeds GitHub's file size limit of 100.00 MB error as before, the .gitattributes also correct existed, says: +*.dump filter=lfs diff=lfs merge=lfs -text05:56
So I'm confused what's the issue.05:56
ayaz left05:57
[1]MikeFair joined05:59
MikeFair left05:59
tpollard left06:01
sdothum left06:05
sctskw left06:05
tildes joined06:05
samw joined06:06
thiago Algebr: the file is too big06:07
ojacobson At least one commit you're pushing contains at least one file over 100.00MB06:07
even if you replaced the file with an lfs entry in a subsequent commit, it's still there in the history06:08
Algebr so if I blow away the commit then lfs will work?06:08
drodger left06:09
thiago how many commits are you trying to push?06:09
Algebr 106:10
nilg joined06:10
jteneyck joined06:10
thiago are you sure? git whatchanged @{u}..06:10
(including the two dots)06:10
samw left06:11
drodger joined06:12
apiarian left06:12
Algebr yes. its a brand new repo06:12
scarcry joined06:12
apiarian joined06:12
sulky left06:12
ayaz_ left06:12
Algebr yes, did it and never before seen prompt appeared06:12
git LFS06:12
thiago do you see any "A" for new files?06:13
Algebr i just blew away .git and re inited06:13
skorgon left06:13
scarcry left06:14
scarcry joined06:14
jteneyck left06:15
leeN left06:16
ojacobson and nothing of value was gained06:16
Chilley joined06:17
Algebr What? I achieved my objective, that's the value.06:18
noyb left06:18
samw joined06:19
samw left06:22
rscata joined06:24
daito left06:25
ril joined06:25
abra0 joined06:26
jottr_ joined06:27
eijk_ joined06:27
rtail left06:28
sssilver left06:29
circ-user-ohseJ joined06:30
noyb joined06:30
nanga left06:30
geoid joined06:31
Chilley_ joined06:32
wxg joined06:32
apotry joined06:32
jottr_ left06:32
nanga joined06:32
Chilley left06:34
geoid left06:35
noyb left06:35
ThomasLocke joined06:35
zeroed joined06:40
zeroed left06:40
zeroed joined06:40
scottschecter left06:43
daito joined06:44
apiarian left06:45
tildes left06:45
apiarian joined06:46
dreiss joined06:46
PCatinean joined06:48
localuser- joined06:50
Motoko joined06:50
LucaTM joined06:52
shiriru joined06:52
SOLDIERz joined06:53
Lyqyd left06:56
dreiss left06:58
MikeFair joined06:59
[1]MikeFair left06:59
wethu left07:00
Raging_Hog joined07:03
Manikandan left07:03
Anwar joined07:04
googolhkl joined07:04
googolhkl left07:05
rilril[away]07:07
aleksandar2810 joined07:08
blckbit10 left07:10
boombatower left07:10
blckbit10 joined07:10
apiarian left07:11
jteneyck joined07:11
apiarian joined07:12
ril[away]ril07:12
freimatz joined07:15
Motoko left07:15
localuser- left07:15
localuser- joined07:15
rewt left07:16
jteneyck left07:16
abc123_ left07:16
rewt joined07:16
fedexo left07:17
abc123 joined07:17
Manikandan joined07:17
diogenese left07:18
codefo joined07:18
thiago left07:18
tomog999_ joined07:18
thiago joined07:19
dreiss joined07:19
diogenese joined07:20
acolson joined07:20
tomog999 left07:21
elementalest left07:21
BSaboia joined07:22
weox left07:22
jceb joined07:23
elementalest joined07:25
elementalest left07:25
elementalest joined07:25
Sazhen86 joined07:26
jaafar left07:27
netj left07:27
jnavila joined07:28
netj joined07:28
David1977 joined07:29
Xethron joined07:30
Manikandan left07:31
t0by joined07:31
dopesong joined07:32
firstdayonthejob joined07:36
lucido joined07:37
alanwill left07:37
meloc joined07:38
Sceorem joined07:38
alanwill joined07:38
zeroed left07:38
howdoi left07:38
zeroed joined07:39
zeroed left07:39
zeroed joined07:39
izhak joined07:40
izhak Hi, guys is it a way to archive branch to send whilst keeping it easy to restore on the other side. Say I have a branch A which not from a top of the master but several commits below. How do I send this branch keeping it's position?07:42
lamppid joined07:42
lamppid left07:42
Manikandan joined07:43
lamppid joined07:44
karstensrage joined07:44
moosbart joined07:44
Goplat left07:45
donnib left07:46
mariuscc joined07:51
moosbart left07:52
hyphenated left07:52
localuser- left07:52
skorgon joined07:52
alanwill left07:53
strayPuppy left07:55
AnwarS joined07:55
joel_falcou joined07:55
Limes_ left07:55
sagittarian joined07:55
Anwar left07:55
izhak left07:56
davidosomething left07:56
dan2k3k4 joined07:57
shiriru left07:58
hyphenated joined07:58
Algebr left07:58
harish joined07:58
MikeFair left07:59
MikeFair joined07:59
tinajohnson__ joined08:00
pantsman_ joined08:01
Rakkan left08:01
JeroenT joined08:01
dopesong left08:02
PHPanos joined08:02
Chilley_ left08:03
skylite joined08:03
moritz_s left08:03
PHPanos left08:06
fees joined08:06
discipline left08:08
JeroenT left08:09
discipline joined08:09
joel_falcou left08:10
tobeplugged joined08:10
thierryp joined08:10
Chilley joined08:10
JeroenT joined08:11
mzmz left08:11
_noblegas joined08:11
jteneyck joined08:12
jteneyck left08:12
jteneyck joined08:12
TomyWork joined08:13
skorgon left08:14
mzmz joined08:16
tobeplugged left08:17
dreiss left08:17
jteneyck left08:17
Kulrak left08:17
snonez left08:18
Segfault_ joined08:18
bronson joined08:20
markgrady left08:21
{AS} joined08:22
acetakwas joined08:23
howdoi joined08:23
pantsman_ left08:23
dopesong joined08:24
Kulrak joined08:24
Kulrak left08:24
Kulrak joined08:24
thiago left08:24
MikeFair left08:25
bronson left08:25
kaiza left08:28
tobeplugged joined08:28
dopesong left08:28
jottr_ joined08:29
aleksandar2810 left08:29
aleksandar2810 joined08:30
tobeplugged left08:31
Balliad joined08:31
apiarian left08:33
apiarian joined08:33
jottr_ left08:34
blckbit10 left08:35
moncrey left08:35
blckbit10 joined08:35
acetakwas left08:36
lamppid left08:37
dEPy left08:38
mrkat joined08:40
nowhere_man left08:40
firstdayonthejob left08:40
JanC left08:40
QF-MichaelK joined08:43
Afdla joined08:44
_rgn joined08:45
moncrey joined08:45
aleksandar2810 left08:45
Kulrak left08:46
Kulrak joined08:46
Kulrak left08:46
Kulrak joined08:46
herr_barium joined08:46
lb joined08:47
lindenle joined08:49
mahendra_ joined08:50
lamppid joined08:51
|node left08:51
AAoK joined08:51
zivester joined08:53
lindenle left08:54
Vgr_ joined08:55
Vgr_ left08:55
Vgr_ joined08:55
Vgr_ left08:55
Vgr_ joined08:55
Vgr_ left08:55
Vgr_ joined08:55
Vgr_ left08:55
Vgr_ joined08:56
Vgr_ left08:56
Vgr_ joined08:56
Vgr_ left08:56
Vgr left08:56
Vgr joined08:56
Vgr left08:56
Vgr joined08:56
Vgr left08:56
JanC joined08:56
Vgr joined08:56
Vgr left08:56
Vgr joined08:56
Vgr left08:56
Vgr joined08:56
Vgr left08:56
Vgr joined08:57
Vgr left08:57
Vgr joined08:57
Vgr left08:57
Vgr joined08:57
Vgr left08:57
AtnevRed joined08:57
Vgr joined08:57
Vgr left08:57
Vgr joined08:57
Vgr left08:57
Vgr joined08:57
Vgr left08:57
Vgr joined08:57
Vgr left08:57
Afdla left08:57
Vgr joined08:58
Vgr left08:58
Vgr joined08:58
Vgr left08:58
Vgr joined08:58
Vgr left08:58
Vgr joined08:58
Vgr left08:58
jaguarmagenta left08:58
kaiza joined08:59
jaguarmagenta joined08:59
codefo left09:00
nowhere_man joined09:00
AtnevRed left09:02
kaiza left09:02
kaiza joined09:02
blur3d joined09:03
roxlu joined09:04
jaguarmagenta left09:04
codefo joined09:06
acetakwas joined09:07
ShapeShifter499 left09:07
lamppid left09:08
zeroed left09:09
dopesong joined09:09
zeroed joined09:10
zeroed left09:10
zeroed joined09:10
jceb left09:11
flavi0 joined09:11
Diabolik what's the easiest way to move a git branch to a new repo whilst keeping the histroy09:12
*history09:12
nnyk left09:12
cbreak Diabolik: git fetch09:12
or git push09:12
depending on the direction09:12
Diabolik cbreak i want to take branch x from repo a09:13
and make it master on repo b09:13
jteneyck joined09:13
Diabolik which is a new repo09:13
kurkale6ka joined09:13
wxg left09:13
cbreak Diabolik: yeah, then do what I told you09:14
JeroenT left09:14
lb Diabolik, clone repo a into repo b, git reset --hard <sha> the master branch to whatever it should point to, delete all unneeded branches git branch -D <branch>09:14
linuxmint joined09:14
cbreak lb: then you have tones of garbage in unreachable history :)09:15
easier to only fetch / push what is needed09:15
lb cbreak, i'd argue that your solution is better, while mine is easier ;D09:15
pseudonymbezaban09:15
cbreak git push ssh://server/git/repo.git localbranch:master09:16
done09:16
lb cbreak, i know that ;) but it mybe not that self explainary to Diabolik :D09:16
cbreak :/09:16
clmsy joined09:17
lb Diabolik, what cbreak wanted to tell you: create an empty repo (bare) and just push the branch you want to keep from your old repo into the new repo . the command you need is what cbreak seaid above :)09:17
said*09:18
Diabolik thanks guys09:18
jteneyck left09:18
Diabolik il have a go and see where i get ot09:18
*to09:18
much obliged09:18
cbreak surely the first arg to git push won't link to that branch09:19
unless i can get a direct ssh link to the branch09:19
cbreak the url is to the repository09:19
QF-MichaelK left09:19
cbreak the DESTINATION09:19
lb Diabolik, you push from a local clone of the old repo09:20
cbreak indeed09:20
JeroenT joined09:20
Diabolik ah so im pushing from repo a09:20
cbreak just like with any other push09:20
Silenced joined09:21
lamppid joined09:21
nd left09:22
JeroenT left09:22
jceb joined09:23
Silenced Can push stuffs to my repo. How to do so ? http://pastebin.com/QtngfNY309:23
moritz Silenced: the error message tells you how09:24
jaguarmagenta joined09:24
Silenced I did a git pull then tried to push it . Never worked09:25
Orion3k left09:25
Diabolik you might need to rebase on top of your changes09:25
Jellyg00se joined09:26
powered joined09:26
watabou left09:27
harish left09:28
vkngpmhc joined09:29
lb Diabolik, a rebase might be the last option for a newcomer :D09:29
moritz Silenced: show the error message when you pull first, and then push?09:30
jaguarmagenta left09:30
AnwarS left09:31
ShapeShifter499 joined09:31
daito left09:31
Dennis84 joined09:32
Dennis84 hi all09:32
gitinfo Dennis84: 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.09:32
craigp left09:32
`{^^}` !backup09:32
gitinfo Worried about your data while trying stuff out in your repo? The repository in its entirety lives inside the .git directory in the root of your work tree so to backup everything `cp -a path/to/workdir path/to/backup` or equivalent will suffice as long as the repo is not modified during backup. See also http://sethrobertson.github.com/GitBestPractices/#backups09:32
jaguarmagenta joined09:33
nd joined09:33
aleksandar2810 joined09:33
Dennis84 can anybody give me an advice which ready to start git server for windows to use? i want active directory support and limit access rights on branches09:34
freimatz left09:34
Dennis84 bonobo git server is now in use, but don't have the access rules for branches09:34
scwizard joined09:35
scwizard anyone know why receiving objects would hang in this instance?09:36
https://gist.github.com/paulfgps/881a12e44e2e97357f2809:36
bonswouar joined09:36
craigp joined09:36
scwizard this is git version 2.7.0.windows.109:36
and it's cloning via https09:36
jaguarmagenta left09:38
reim left09:38
Jackneill joined09:39
sbasso joined09:39
sbasso left09:39
sbasso joined09:40
jceb left09:41
jaguarmagenta joined09:41
nettoweb joined09:43
blur3d left09:44
Xethron left09:44
ShapeShifter499 left09:45
linuxmint left09:45
Chilley left09:46
pantsman_ joined09:47
linuxmint joined09:50
moncrey man git has a funny learning curve09:51
gitinfo the git manpage is available at http://jk.gs/git.html09:51
moncrey its like an S09:51
JeroenT joined09:51
moncrey easy, then really hard09:51
andyr joined09:53
jceb joined09:57
stamina joined09:57
temhaa joined09:58
temhaa hello09:58
I want to change committer of spesific commit09:58
My commits also in origin side09:58
I used another machine during commit, I forgot change global settings :(09:59
ronskisika joined10:00
moritz temhaa: and is that worth rewriting public history?10:01
Raging_Hog left10:03
temhaa moritz: my origin is in github10:04
moritz temhaa: so, public10:04
jottr_ joined10:04
temhaa moritz: how can I do, Its realy important for me10:04
jast keeping in mind that this will screw it up for everyone who has fetched your current history... !fixup10:05
gitinfo So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history!10:05
canton7 temhaa, how many commits?10:05
ronskisika left10:05
moritz temhaa: http://stackoverflow.com/a/1320317/1413210:05
temhaa: if there are others that work on that project, talk to them first10:05
andyr left10:05
canton7 he doesn't mention the easy way of doing multiple commits10:06
.. and his rebase response doesn't handle merges, as he says later10:07
if you want to do multiple commits, see man git filter-branch, search for "The --env-filter option can be used to modify committer and/or author identity"10:08
gitinfo the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html10:08
King_Hual joined10:08
King_Hual left10:08
King_Hual joined10:08
BSaboia left10:11
fahadash left10:11
Silenced left10:12
leonarth joined10:12
temhaa canton7: I want to change last 3 commits10:12
canton7 then see my link10:12
nnyk joined10:13
jteneyck joined10:14
jteneyck left10:14
jteneyck joined10:14
chll joined10:14
Manikandan left10:15
Manikandan joined10:15
aleksandar2810_ joined10:16
aleksandar2810 left10:16
acetakwas left10:16
wethu joined10:17
temhaa canton7: I didnt see your link10:18
canton7 <canton7> if you want to do multiple commits, see man git filter-branch, search for "The --env-filter option can be used to modify committer and/or author identity"10:18
gitinfo the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html10:18
jteneyck left10:19
zivester left10:19
rnsanchez joined10:21
notebox joined10:21
moncrey i have a question:10:22
bronson joined10:22
moncrey how can i do a rebase while ignoring changes in my local branch10:22
simply rewrite the commit message10:23
canton7 moncrey, stash, rebase, stash pop10:23
moncrey, newer gits have an --autostash flag to rebase to automatically stash and pop10:23
Alienpruts joined10:24
arcane-methods joined10:24
arcane-methods left10:25
Chilley joined10:25
moncrey okay im having a strange problem.10:26
aleksandar2810_ left10:26
moncrey canton7 the changes were irrelevant so i deleted and re cloned my copy of the repo.10:26
switched to my develop branch10:26
_ikke_ !rmrf10:26
gitinfo [!startover] There’s usually no need to start over / rm -rf everything and reclone or so. Most situations can be fixed by other means.10:26
moncrey git log , found the hash before my changes, did git rebase -i hash10:27
left the first commit, squashed the rest10:27
bronson left10:27
moncrey and i have a could not apply error10:27
with a fresh clone10:27
_ikke_ can you paste the full error?10:28
canton7 any merges in the stuff you squashed?10:28
mischat joined10:28
moncrey just error: could not apply [commit message]10:28
andyr joined10:29
canton7 by that, _ikke_ means please make a pastebin with the full command, and the full response10:29
moncrey okay10:29
temhaa moritz: canton7 I applied http://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git/1320317#1320317 this intructions but I dont know what is next after git rebase --continue10:29
moritz: canton7 It seems true git log in now in my local Should I git push origin ?10:30
canton7 temhaa, I'm not going to support you if you decide to do something different to what I suggested ;) Go and bug moritz: he's the one who suggested that approach10:30
daito joined10:32
temhaa canton7: I just asked. anyway thank you10:33
jast moncrey: my guess is there was a merge commit in there somewhere. rebase does a fun remixing operation with merges unless you pass -p (preserve merges)10:34
moncrey yeah thats whats confusing me. i want to just let it take the version in origin/develop10:35
Amnesia joined10:36
moncrey how will preserve merges affect the merge10:36
Amnesia question, I accidentally executed "git reset HEAD^" two times instead of one, how can I undo the last one?10:36
daito left10:37
jast moncrey: it will re-create the merge (assuming that's one of your commits), with the same contents and all. if the merge is part of what you're squashing together, it should do what you expect.10:37
Amnesia: find the correct commit in the output of 'git log -g' (probably HEAD@{1}) and reset to that10:37
Anwar joined10:37
jast moncrey: another way to do this without interactive rebase: 1) discard or stash all uncommitted changes. make sure you're on the branch you want to squash. 2) git reset --soft origin/develop (this will rewind your branch to that place but keep all your changes staged) 3) git commit10:39
Amnesia jast: tyvm10:39
jast Amnesia: further reading: man git-reflog :)10:40
gitinfo Amnesia: the git-reflog manpage is available at http://jk.gs/git-reflog.html10:40
a3Dman left10:40
moritz temhaa: you wil need to push with --force10:43
Amnesia jast: tyvm10:43
vkngpmhc left10:43
a3Dman joined10:45
aleksandar2810 joined10:45
temhaa moritz: I pushed to origin my commits seems good but also It shows wrong auther10:45
moritz: Can I delete wrong auther from logs.10:45
mellernoia joined10:46
harish joined10:46
moncrey jast: i'm trying to rebase to combine and rewrite a commit message, but it says —preserve-merges and —interactive dont play well together10:48
Ekho left10:48
jast moncrey: in my experience it usually works well, and your case should be simple enough10:49
moncrey youd think. clone the repo. checkout origin/develop. rebase -i parentHash10:50
error10:50
TomyWork left10:51
moncrey ok so i tried git rebase -i hash -p10:51
error: could not apply bd438af...10:52
TomyWork joined10:52
moncrey Could not pick bd438af1279cee530ce6d7e7fff32a9c754751a510:52
jast is it the same error?10:52
acetakwas joined10:52
moncrey i did not get "could not pick …" at the end before10:54
before trying with -p10:54
but otherwise yes10:54
jast hmm10:54
no idea what might be going on there. it's not too late to try my other suggestion, though :)10:55
temhaa moritz: It seems same commit both by me and by wrong auther.10:55
jast to make sure we're on the same page: it condenses everything in your branch after origin/develop into a single new commit10:55
acetakwas left10:55
Calrik_ joined10:55
jast in the third step I gave it doesn't fetch a commit message for you, you can add '-c <commit ID>' to populate the editor with another commit's message so you can edit it10:56
aleksandar2810 left10:56
moncrey soft reset to origin/develop. nothing to commit10:56
aleksandar2810 joined10:56
jast weird, that would mean the overall outcome of your changes is... nothing10:57
and that's a rather pessimistic outlook :)10:58
moncrey in code yes, but im trying to reword a commit message10:58
3 rather10:58
AtnevRed joined10:58
acetakwas joined10:58
jast no, I mean the changes that are already there10:58
moncrey the number of commits listed on github is still 3 when i'm trying to reduce to 1 and rename10:59
jast if git is right with its 'nothing to commit', your series of commits is effectively a no-op, and then squashing that into a single commit would create a commit that does nothing10:59
moncrey but rebase reword is significant isnt it?11:00
there are no changes in the rebase, other than consolidation11:00
of commit message11:00
jast this bit doesn't care about rebases. it doesn't see what happened during previous rebases, only what's there now11:00
did you abort your rebase before trying the next thing, by the way?11:01
moncrey yes11:01
liamonade joined11:01
moncrey again same error11:01
sheesh!11:01
AtnevRed left11:02
jast unfortunately I can't look into it any deeper right now, I'm kind of busy...11:02
moncrey you know, i can just roll back before the merge.11:02
circ-user-ohseJ left11:03
mkopriva joined11:04
dan2k3k4 left11:04
JeroenT left11:06
moncrey fuck11:06
jast don't panic, if anything is gone and you didn't 'rm -rf' we can bring it back11:07
moncrey heh i've done that maybe 40 times now11:07
jast in fact virtually all problems can be fixed without 'rm -rf'11:07
moncrey so i tried git rebase [parentSHA] -p and that worked, so then i tried to rebase -i to fix the commit messages and it gave me the error still11:08
Calrik_ left11:08
moncrey so i aborted11:08
flavi0 left11:10
scwizard left11:11
a_l_e joined11:11
zarubin joined11:11
zarubin left11:12
zarubin joined11:12
Internet13 left11:13
indieross joined11:13
jteneyck joined11:14
dsdeiz left11:15
codeman joined11:15
tvw joined11:15
Internet13 joined11:17
phillly joined11:18
irqq joined11:18
jteneyck left11:19
abc123 left11:19
abc123 joined11:20
moncrey heyyy jast you still there11:21
i managed to accidentally revert my changes entirely11:21
xaa joined11:21
moncrey they are still there in the history i think11:21
i tried to revert to before a bunch of useless commits that were attempts to rebase11:22
and i reverted to before my work entirely11:22
samw joined11:23
irc-5225225 left11:23
jast moncrey: git log -g <name of branch> keeps a record of everything you do, so all you have to do is figure out which point in time you want to travel back to, and reset to the corresponding commit11:23
dopey joined11:24
freimatz joined11:24
UniFreak joined11:24
moncrey hows this sound? git rebase i [parent comment] then delete the lines that were all mistakes11:24
dopey Hi, can anyone recommend the simplest windows git gui client? Ideally like a folder browser that an end user can drag/drop a single file and commit/push it?11:24
Have a non technical person that I need to update some files in a git repo.. being a linux/cli user, struggling to find the simplest windows gui :(11:25
temhaa hi again, I want to change author in origin commits. And I applied these intructions http://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git/1320317#1320317 . my commits seems good but also It shows wrong auther.Can I delete wrong auther from logs.11:26
It seems same commit both by me and by wrong auther.11:27
_ikke_ temhaa: A commit records both the author of a commit and the comitted11:27
satbyy joined11:27
satbyy left11:27
satbyy joined11:27
_ikke_ comitter*11:27
Anwar left11:27
samw left11:28
Anwar joined11:28
temhaa _ikke_: so I couldn't change author correctly, right?11:28
_ikke_ temhaa: Yes, you can11:29
temhaa _ikke_: can you help me11:29
_ikke_ Can you post a !transcript of what you already have done?11:29
gitinfo Please paste (using https://gist.github.com/ or similar) a transcript ( https://gist.github.com/2415442 ) of your terminal session.11:29
pagios joined11:32
pagios hello dear community, i am having a problem where a subdirectory is not being commited and pushed to repo11:32
i tried git add --all ; git commit -m "push" git pull11:33
but the directory doesnt upload11:33
xelxebar joined11:33
Kartagis pagios: is it in .gitignore?11:33
HD|Laptop joined11:33
HD|Laptop Hi all11:33
pagios Kartagis: no i dont have that file11:33
moritz left11:34
temhaa _ikke_: https://gist.github.com/ackepenek/733975ee7ce480013a1e11:34
Kartagis git commit -m "push" git pull is so wrong11:34
HD|Laptop how do I absolutely reset a repository? Like, delete all untracked files, all files that are under .gitignore, all local changes11:34
Kartagis git commit -m "push";git push11:34
pagios Kartagis: how can i include that subdir11:35
git add --all doesnt do it11:35
Kartagis git add -A;git status11:35
irc-5225225 joined11:35
Kartagis that works?11:35
mohabaks joined11:35
pagios no changes added to commit11:35
Kartagis maybe you have git rm'd it?11:36
camason joined11:36
moncrey shit. i accidentally removed commits that i didnt mean to11:36
astrofog joined11:37
pagios Kartagis: what can i do?11:37
camason Hi guys. I have an issue when moving a submodule. I moved a submodule using `git mv` and it changed the details in my .gitmodules file. However, the ls11:37
EduardoMartins joined11:37
Manikandan left11:37
pagios Kartagis: the files are there11:37
moncrey http://pastebin.com/mDLTv5Ey11:37
camason (lol ls).. however, the .git/modules/folder also changed, but .git with gitdir:/ didn't update11:38
so now when we deploy to servers, it can't checkout11:38
Meteorhead left11:39
Manikandan joined11:39
HD|Laptop left11:39
_ikke_ temhaa: after you rebased, a normal push is rejected11:40
Meteorhead joined11:40
MeteorheadGuest9527011:40
cagedwisdom left11:40
Guest95270 left11:40
JeroenT joined11:41
temhaa _ikke_: Yes I couldn't push and I executed git pull origin master after than git push origin master I worked11:42
_ikke_: *it worked11:42
_ikke_ temhaa: Now you merged your old history with your new history..11:42
temhaa _ikke_: yes. right. how can I fix11:43
_ikke_ Is the pull the last change you made?11:44
moritz joined11:44
temhaa _ikke_: I couldnt understand, my english is not good11:44
moncrey i'm sorry this is awful but i'm unable to revert to a previous commit for some reason. i just deleted work accidentally. this is my current state http://pastebin.com/mDLTv5Ey11:44
pagios Kartagis: any iea?11:44
_ikke_ temhaa: Is the pull the last thing you did?11:44
s8321414 joined11:44
italoacasas joined11:45
linuxmint left11:45
mkoskar joined11:45
lb left11:45
temhaa _ikke_: yes I did. my status is in "I merged your old history with your new history"11:45
Voyage joined11:45
Voyage HI11:45
_ikke_ temhaa: git reset --keep HEAD@{1}11:46
Kartagis pagios: with git rm --cached, files are there but you are telling git not to track them11:46
Voyage I have branch 1 and 2. I am on 1 and also pushing it to remote branch 1. How do I shift the lastest code in 1 to 2 and then push 2 to remote 2?11:46
Kartagis !untrack | pagios11:46
gitinfo To remove a file from git's tracking, without deleting it from your working tree, `git rm --cached <file>`. Note that any repo which pulls this change will delete their local copy of that file. You can "bring it back" using `git checkout HEAD@{1} file` immediately after pulling / merging11:46
fbwnd joined11:47
Kartagis Voyage: git checkout 211:47
moncrey can anyone give me any guidance?11:47
_ikke_ moncrey: what are you trying to 'revert'?11:48
Voyage Kartagis, ok, git checkout 2 will switch me to the 2 branch. But 2 has old code. I want to shift the latest changes made in 1 to 211:48
temhaa _ikke_: I changed two commit. anyway should I use git reset --keep HEAD@{1}. And is it enough?11:48
moncrey _ikke_ easier if i show you https://github.com/mxjxn/eris-cli/commits/develop i want to undo the most recent two commits , then squash the other three11:48
Kartagis Voyage: I think what you want is merge11:49
Voyage hm. ok. so how to do something 'merge'?11:49
Kartagis Voyage: to confirm, ask someone more experienced11:49
Voyage ok.11:49
Voyage waits for more experienced people11:49
linuxmint joined11:50
_ikke_ moncrey: rebase -i c0424f9a11:50
moncrey: then remove the lines with the commits you want to undo11:51
moncrey: and select squash for all but the first commit you want to squash11:52
moncrey it showed me a single line, so i saved it11:52
and error: src refspec develop does not match any.11:52
error: failed to push some refs to 'https://github.com/mxjxn/eris-cli'11:52
_ikke_^11:52
dopesong left11:52
_ikke_ moncrey: I didn't mention anything about push11:53
moncrey ah. okay11:53
it looked successful11:53
well anyway push failed11:53
i've rebased it. it gave me one commit, but said it was combining commits11:54
temhaa _ikke_: you're talking about my problem or another issue*11:54
_ikke_: I wonder11:54
flavi0 joined11:54
moncrey pick ed0bd5c Fixed #291 `eris update --tool` downloads the most recent binary if go is missing.11:54
_ikke_ temhaa: I'm now talking to moncrey11:54
temhaa _ikke_: ah, ok :)11:54
moncrey im sorry, thank you i really appreciate your help11:54
_ikke_ temhaa: The reset is in order to undo the pull you did11:54
temhaa _ikke_: ok I reseted. I got back to before change to author.11:56
EduardoMartins left11:57
pagios Kartagis: i deleted the whole folder, recopied all, git add . ; git add * ; git commit -m "ok" ; git push origin master and still that folder doesnt copy!11:57
dan2k3k4 joined11:57
Chilley left11:57
fbwnd left11:58
osse is the folder empty?12:00
mase-tech joined12:01
temhaa _ikke_: what should I do in next step12:01
Amnesia left12:01
pagios www/html/config/www this is the director that is not copied12:03
osse is the folder empty?12:03
pagios no12:03
it has files in it but when i commit that folder is not listed12:03
osse does it have its own .git inside?12:04
Voyage Hi12:04
I have branch 1 and 2. I am on 1 and also pushing it to remote branch 1. How do I shift the lastest code in 1 to 2 and then push 2 to remote 2?12:04
pagios yes12:04
osse then git won't add it12:04
pagios osse: ok!12:04
osse you have to add it as a submodule12:04
pagios should i deleted the .git from it?12:04
osse up to you12:04
it's a separate repo with its own history12:05
reim joined12:05
_ikke_ osse: nice find12:05
pagios so if i do an add again after deleting it should be fine?12:05
osse i think so12:05
astrofog left12:06
_ikke_ might be that you need to do a git rm --cached path/to/dir if git recorded it as a submodule12:06
moncrey _ikke_ who are you speaking to?12:07
italoacasas left12:07
Voyage waits12:08
osse he is speaking to pagios12:09
tinajohnson__ left12:09
Asenar joined12:10
moncrey thanks. sorry to be just another person asking for help in a busy room. im sort of at a loss as to how to proceed12:10
i've been reading thru man files all day12:10
dopesong joined12:11
fbwnd joined12:11
osse moncrey: looks like you're trying to push a branch that does not exist12:11
moncrey: status says you're on 'devsquash' but you're trying to push12:11
'develop'12:11
Voyage: git merge 112:12
mellernoia-work joined12:13
italoacasas joined12:13
moncrey osse: develop does exist. but there maybe be some missing steps in there. this error is coming right after accidentally deleting one too many lines in interactive rebase. the commits still seem to exist on github but in my own repo they arent the same12:14
Voyage osse, am well, I am on branch 1 already.12:14
italoacasas left12:14
osse Voyage: git checkout 2 && git merge 112:14
Sceorem_ joined12:14
Voyage hm12:14
jottr_jottr12:14
italoacasas joined12:14
weox joined12:14
Orion3k joined12:14
Voyage osse, just like that? and then how to push 2 to remote 2?12:15
mellernoia left12:15
jteneyck joined12:15
osse Voyage: git push remoteName branchName12:15
italoacasas left12:15
Voyage osse, branch name is 2, whats remoteName?12:16
osse Voyage: i have no idea12:16
hyphenated left12:16
jast if you don't know, probably "origin"12:16
Voyage hm12:16
italoacasas joined12:16
osse if that's the case then what is the name of remote 1 ?12:16
jast git remote -v for a list completely with URLs12:16
s/ly//12:16
Voyage thats 'remote name'? can I have multiple remote names ?12:16
jast sure12:16
man git-remote12:16
gitinfo the git-remote manpage is available at http://jk.gs/git-remote.html12:16
temhaa _ikke_: could you please look my issue12:16
osse moncrey: sure, develop exists on the remote, but do you have it locally? (aka. do you see it in `git branch`)12:17
mizu_no_oto joined12:17
Sceorem left12:18
moncrey i just did git checkout origin/develop and it says detached from origin/develop12:18
osse12:18
osse that's unrelated to my question12:18
italoacasas left12:18
dopey left12:18
Voyage osse, thanks12:19
italoacasas joined12:19
Voyage jast, I wonder why would anyone need multiple remote names for same server and giturl12:19
osse they probably don't12:19
but you can have multiple servers and multiple giturls12:20
jteneyck left12:20
moncrey okay osse i have the branch now.12:20
in git branch12:20
Voyage osse, 'they'? probbably dont?12:20
they == anyone?12:20
osse yes12:20
Voyage oh12:20
clmsy left12:22
osse moncrey: well, that's why the push failed to begin with. but presumably you want to push the 'devsquash' branch instaed12:22
moncrey i was pushing that to the develop branch12:22
i had made a duplicate branch just in case i messed something up12:22
osse then you should write git push origin devsquash:develop12:23
abc123 left12:23
abc123_ joined12:24
GT left12:24
Kicer86 joined12:25
mohabaks left12:25
bannakaffalatta left12:29
mohabaks joined12:31
Marqin left12:33
daito joined12:33
M-ixi left12:35
presto joined12:37
hvoigt_hvoigt12:38
daito left12:38
Sceorem_ left12:39
acetakwas left12:39
pagios thanks osse it works12:39
acetakwas joined12:39
Jusle joined12:44
JeroenT left12:45
sdothum joined12:45
a_l_e left12:46
temhaa _ikke_: are you there?12:46
Sceorem_ joined12:46
dopesong left12:47
nnyk left12:47
JeroenT joined12:48
darkbit joined12:49
camason left12:50
Meteorhead joined12:51
UniFreak left12:57
fstd left12:59
mase-tech left12:59
fstd joined12:59
moncrey is anyone still around who might be able to help? I'm still trying at this on repeat.13:00
trying to rebase / squash13:00
Atm0spher1c left13:01
moncrey osse?13:01
toogley joined13:01
osse i don't know what's left. did git push origin devsquash:develop not work ?13:02
moncrey no it didnt work.13:03
osse what happened13:03
moncrey Updates were rejected because a pushed branch tip is behind its remote13:03
but the thing is, i am trying to revert and rebase13:03
osse you have rewritten history. it's common then to have to use --force13:03
moncrey aha okay thanks i will try that13:03
excellent.13:04
clmsy joined13:04
osse moncrey: but you're happy with how the devsquash branch looks right?13:04
you want the develop branch on thr remote repo to look the same way?13:04
moncrey i've been happy with both branches for hours. devsquash was unneccessary at this point.13:04
osse oh13:04
moncrey been trying to fix this literally all night!13:04
i think its taken care of13:04
that was the last tip i needed.13:05
so thank you very much13:05
osse "taken care of" in the same way the mafia "takes care" of people? :O13:05
moncrey i took care of it...13:05
moncrey throws laptop off back of truck13:05
osse you should make the laptop take a long walk on a short pier13:05
moncrey give it an offer it cant refuse13:06
dopesong joined13:06
codedmart joined13:07
moncrey god damn it13:07
its still the same13:07
im baffled right now13:08
osse rekt13:08
filisko joined13:08
osse soo13:08
!lol I guess13:09
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all13:09
osse pastebin that, unless it contains sensitive information.13:09
moncrey it wasnt finished but i'm making progresss13:09
somehow my rebase ended up including someone elses work13:10
probably happened when i merged at some point13:10
mizu_no_oto left13:10
osse would you go so far as to say that your "shit is fucked" ?13:10
rilril[away]13:11
ril[away]ril13:11
Imaginativeone joined13:11
moncrey id go so far as to say i've proven to this company that i dont know my stuff inside and out, but god damn am i going to be persistent13:11
osse If the answer is anything but a clear "no" then I suggest you use the reflog to get stuff back to how it was, and then start over.13:11
moncrey reflog??13:11
osse reflog!!13:11
!reflog13:11
gitinfo The git reflog (`git log -g`) records the SHAs of your HEADs for 2+ weeks. `git checkout -b myrestore OLDSHA` and `git reset --hard OLDSHA` will relink to that state via a new and current branch respectively, see http://sethrobertson.github.com/GitFixUm/ for full details. WARNING: reset --hard will trash any uncommitted changes! Visualize with: gitk --all --date-order `git log -g --pretty=%H`13:12
osse basically, unrelated to the commit log itself, it's a log of where branches "used to be"13:12
leonarth left13:13
osse I don't know exactly what you've done and to which branches you've done it, so I can't really help with specifics13:13
but I can be a spirtual guidance in these troubling times13:13
italoacasas left13:15
osse ... unless you start over, that is13:16
jomofcw joined13:17
jomofcw Hello !13:17
osse World !13:18
jomofcw ... easy one :P.13:18
sgambino joined13:18
jomofcw Is that possible that a pull erase the modification done on the master or will it list conflict ?13:18
moncrey got it thankkkk FSM in the skyyyyyyy13:19
also thank you osse13:19
MoSal joined13:19
moncrey what a fucking mess that was!13:19
LBV_User joined13:19
osse ♫ ♪ The wheel in the sky keeps on turning ♪13:19
wethu left13:19
moncrey it was like a chef telling an orangutan to serve pasta to the patrons13:20
i didnt even fucking KNOW about serving spoons13:20
theres pasta everywhere13:20
and that guy over there didnt even ORDER pasta13:20
marscher joined13:20
nonconvergent joined13:20
osse jomofcw: if modifications have been done on master *after* the branch was created then no it's not possible. It will result in a conflict13:20
Biopandemic2 left13:20
MoSal Is there a way to specify the first commit after a certain tag?13:21
wethu joined13:23
rwb joined13:23
nnyk_ joined13:24
osse MoSal: in general, no.13:24
MoSal osse: Okay. thanks/13:24
osse MoSal: you would have to search for the commit that has the tag as parent13:24
moncrey left13:25
osse MoSal: and in prinicple it can be more than one. Though in practive the answer is probably this one: git rev-list tag..master | tail -113:25
or something to that effect13:26
temhaa how can I change author with history13:26
I want to change author last 2 commit13:26
j416 temhaa: man git-filter-branch check for env-filter GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL13:26
gitinfo temhaa: the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html13:26
j416 temhaa: you might find rebase easier, rebase on the commit before those two, edit both, 'git commit --amend --reset-author' on each13:27
MoSal osse: yeah. I just wanted to make sure there was no syntax for it like ~-1 ^-1 ..etc13:27
j416 (after setting your author info to the correct one)13:27
bbbthunda joined13:27
EduardoMartins joined13:28
temhaa j416: Yes I tired rebase. I applied these intructions http://stackoverflow.com/questions/750172/change-the-author-of-a-commit-in-git/1320317#1320317 . my commits seems good but also It shows wrong auther.Can I delete wrong auther from logs. It seems same commit both by me and by wrong auther.13:29
j416: my status in now: "I merged your old history with your new history"13:30
mezod joined13:30
temhaa j416: sorry, I merged my old history with my new history13:30
j416 not sure what you're doing13:30
you can change the author using any of the above two methods i suggested13:31
temhaa j416: I want to change author of last 2 commit13:31
j416 I know that.13:31
temhaa j416: I think --amend doesnt work for me without using rebase.13:31
j416: so I used rebase for this. and after than I used git --amend13:32
moncrey joined13:32
imack joined13:32
phillly left13:33
temhaa j416: but I chouldnt push beacuse. It forced me to pull. I pulled once and I pushed to origin.13:33
mohabaks left13:33
cyan__ left13:33
cyan__ joined13:33
temhaa j416: but in now, It is keeeping both old history(wrong author) and new history(new author) for two commits13:33
junw_ joined13:34
daito joined13:34
mzmz apologies if this is a silly question... what is a sane way to deal with files you still wanna be able to somehow access later if they ever prove to be needed, but don't need right now in the project, in fact the chances of them being useful again are pretty slim BUT like I said still want the option of getting them back/be greppable13:35
EduardoMartins left13:35
temhaa j416: nevermind, I hava new question. You suggested git-filter branch. If I use that13:35
mzmz tl;dr - compulsive hoarding 10113:35
temhaa j416: will wrong author remove from history?13:35
mzmz let me rephrase this, is git-rm the way to go for "I don't need this, probably NEVER will, but if I do I will be able to get it back"13:36
imack left13:37
ToxicFrog mzmz: git rm removes something from the next commit (and, depending on the arguments, from the working copy). It doesn't retroactively delete it from history, so you can get it back if needed with git checkout.13:37
ril left13:37
j416 temhaa: yes.13:37
ToxicFrog (if you did want to retroactively delete something from history, you'd use git filter-branch, probably(13:37
mohabaks joined13:38
daito left13:39
mizu_no_oto joined13:39
imack joined13:39
hyperair joined13:39
Dougie187 joined13:40
aleksandar2810 left13:40
moncrey left13:41
mzmz ToxicFrog: so in other words I can safely git rm anything I will probably never need ever again with the blissful awareness that if the someone (including me) is going to complain about those file missing I can "undelete" them?13:41
UniFreak joined13:42
imack left13:42
imack joined13:42
ToxicFrog mzmz: yes. (If they were previously committed at some point, but if they weren't "git rm" will refuse to touch them)13:43
mizu_no_oto left13:43
imack left13:43
mzmz ToxicFrog: I know that much, thank you13:43
Rakkan joined13:43
imack joined13:43
Noldorin joined13:44
mzmz (I mean, that they have to have been commited at some point in order to be "revived")13:44
*had13:44
ToxicFrog mzmz: there are relatively few commands that can edit history -- git rebase, git filter-branch, and git commit --amend. rm isn't one of them :)13:44
mzmz I mean guessed it13:44
ToxicFrog: I see13:45
knownasilya joined13:45
s8321414 left13:46
Gitzilla left13:46
mzmz in other words 'git rm' is relatively harmless, I can go on a removing frenzy knowing it all can be restored if anyone cares enough13:46
thanks13:46
it's time to take out some garbage13:47
JeroenT left13:48
MoSal left13:50
subhojit777 joined13:50
italoacasas joined13:50
gitinfo set mode: +v13:52
chernjie So I realize I tend to do a lot of "ssh+cd git-repo" a lot, and I can't seem to find a tool or convenient function for it on git or ssh13:52
specifically something along the lines of:13:53
git ssh <remote> # ssh to a git remote13:53
git ssh <remote> <command> # execute some command and exit13:53
Vgr joined13:55
Vgr left13:55
rclanan joined13:55
sangy left13:55
zarubin left13:55
Vgr joined13:55
Vgr left13:55
zarubin joined13:55
Rakkan left13:55
JeroenT joined13:56
Vgr joined13:56
Vgr left13:56
subhojit777 left13:57
joako left13:57
chernjie I wrote a tool for it https://github.com/chernjie/git-ssh feedback welcomed :)13:58
Chilley joined13:58
ash_workz joined13:58
chitopunk joined13:59
dabd joined14:00
ajue joined14:01
SimonNaa left14:01
ajue left14:01
__builtin left14:01
yn5 joined14:02
synthroid joined14:02
joako joined14:02
Ankhers joined14:03
__builtin joined14:03
skcin7 left14:03
Vgr joined14:03
craigp left14:03
Vgr left14:03
Bennux joined14:03
skcin7 joined14:03
nickthetait left14:04
subhojit777 joined14:05
EduardoMartins joined14:05
Vgr joined14:05
_noblegas left14:06
mbrzuzy joined14:06
EduardoMartins left14:07
nickthetait joined14:07
zivester joined14:07
Manikandan left14:08
iota_pi joined14:08
ShapeShifter499 joined14:12
eijk_ left14:12
nickthetait left14:12
cdg joined14:13
codefo left14:13
modocache joined14:16
jteneyck joined14:16
Voyage left14:16
jteneyck left14:16
jteneyck joined14:16
hyperair left14:17
circ-user-ohseJ joined14:17
Chill_Surf joined14:17
govg joined14:18
DeltaHea_ joined14:18
neurodrone_ joined14:18
notebox left14:19
herr_barium left14:20
jteneyck left14:21
Manikandan joined14:22
moncrey joined14:22
diegoviola joined14:24
acetakwas left14:24
Seveas chernjie: nifty idea. I think the implementation is a bit broken though (spaces in ssh opts will break it, the host/directory extraction could be more efficient)14:26
wethu left14:27
bronson joined14:27
bongjovi joined14:27
fbwnd left14:28
BeerBuddy joined14:28
cbonobo joined14:28
Manikandan left14:29
nettoweb left14:30
daniel_rose joined14:30
pantsman_ left14:31
bronson left14:31
DeltaHea_ left14:32
jaafar joined14:32
bitkiller joined14:34
notebox joined14:34
_ikke_ Does it handle url style remotes properly?14:35
uranellus left14:35
uranellus joined14:35
pantsman- joined14:36
mezod left14:36
AnwarS joined14:36
Anwar left14:37
Chilley left14:39
JeroenT_ joined14:39
fahadash joined14:39
dopesong left14:39
JeroenT_ left14:40
cyan__ left14:41
JeroenT_ joined14:41
dopesong joined14:41
Puffball_ left14:41
temhaa left14:41
Puffball joined14:41
JeroenT left14:42
dopesong left14:42
JeroenT joined14:42
JeroenT_ left14:43
zotherstupidguy joined14:43
mrcuic joined14:44
sulaiman joined14:44
alanwill joined14:44
UniFreak left14:44
UniFreak joined14:45
chernjie Seveas: can you give some examples that I can work with?14:46
settermjd joined14:47
chernjie _ikke_: it supports ssh://, git+ssh:// and user@hostname formats14:47
hyperair joined14:47
Seveas chernjie: expect a pull request soon.14:47
goTAN joined14:47
_ikke_ chernjie: ok, nice14:47
strype joined14:48
flavi0 left14:48
gitinfo set mode: +v14:48
gitinfo set mode: +v14:48
gitinfo set mode: +v14:49
strype left14:49
dopesong joined14:49
gitinfo set mode: +v14:49
mezod joined14:50
subhojit777 left14:50
mrcuic hi, when I put files to .gitignore then I remove from the cache (git rm --cached app / webroot / *. pdf) but remain as untraked files.14:50
flavi0 joined14:50
chernjie Seveas: thanks! Looking forward to it14:50
aleksandar2810 joined14:52
AaronMT joined14:52
subhojit777 joined14:54
moncrey left14:56
supsup joined14:57
sparetire joined14:58
supsup what git formating just gives you the files in the commit or do you have to pipe it?14:58
canton7 --name-only, --name-status, etc14:58
see man git diff14:58
gitinfo the git-diff manpage is available at http://jk.gs/git-diff.html14:58
samw joined14:59
alanwill left14:59
frem joined14:59
AtnevRed joined15:00
dopesong left15:00
rscata left15:01
rchavik left15:02
CheckDavid joined15:03
ShapeShifter499 left15:03
a3Dman left15:03
mohabaks left15:03
samw left15:04
jwest left15:04
AtnevRed left15:05
sburgess joined15:06
craigp joined15:06
sangy joined15:06
sulky joined15:07
Gamecubic joined15:07
pantsman- left15:07
BeerBuddy left15:08
roxlu left15:09
nilg left15:09
EduardoMartins joined15:10
Sceorem joined15:10
nickthetait joined15:11
InfoTest joined15:11
Manikandan joined15:13
Sceorem_ left15:13
dimi1947 joined15:13
subhojit777 left15:13
HanClinto joined15:14
temhaa joined15:17
subhojit777 joined15:17
powered left15:21
IrishPrime joined15:21
Gitzilla joined15:22
govg left15:22
EduardoMartins left15:23
mellernoia joined15:23
Bennux left15:24
zivester left15:25
quark1 joined15:25
melter joined15:25
mellernoia-work left15:25
temhaa left15:27
junw_ left15:27
govg joined15:27
dopesong joined15:28
_UniFreak joined15:28
subhojit777 left15:28
AnwarS left15:28
temhaa joined15:28
jceb left15:28
kevwil joined15:28
livingstn joined15:30
UniFreak left15:30
nonconvergent left15:31
Sceorem_ joined15:33
lethalspoons joined15:33
lethalspoons left15:34
pantsman- joined15:35
acetakwas joined15:35
daito joined15:35
truenito joined15:35
settermjd left15:35
JeroenT left15:36
davidosomething joined15:36
Sceorem left15:36
phaleth joined15:36
JeroenT joined15:36
drodger left15:37
localuser- joined15:38
nilsi left15:38
skylite left15:38
darkbit left15:38
nilsi joined15:39
mrcuic left15:39
temhaa left15:39
drodger joined15:39
daito left15:39
modocache left15:40
sssilver joined15:41
fees left15:41
reim left15:42
modocache joined15:42
fees joined15:43
SimonNa joined15:43
nilsi left15:43
noyb joined15:45
cryzlr left15:46
dopesong left15:46
GingerGeek left15:47
acolson left15:50
acetakwas left15:50
KnightsOfNi joined15:52
mohabaks joined15:52
linuxmint left15:52
cStubing joined15:52
mariuscc left15:52
dreiss joined15:53
cStubing left15:53
nilg joined15:54
drodger left15:54
temhaa joined15:56
treaki_ joined15:56
dmto joined15:56
mellernoia-work joined15:57
thierryp left15:57
DWestCoast left15:58
mellernoia left15:58
goTAN left15:58
DWestCoast joined15:59
kilo_bravo joined15:59
diegoviola left15:59
drodger joined16:00
clmsy left16:01
drodger left16:01
mariuscc joined16:01
Manikandan left16:02
nettoweb joined16:02
blckbit10 left16:02
diegoviola joined16:02
relrod_relrod16:02
ahmedelgabri joined16:03
_UniFreak left16:03
dopesong joined16:04
ash_workz if you do `git pull origin something` while on master, you're not pulling *to* master, right?16:05
moriko joined16:05
jason237 left16:05
moritz ash_workz: you're pulling to your current branch, whatever that is16:06
bango2 joined16:06
ToxicFrog ash_workz: you are. See !pull416:06
gitinfo ash_workz: [!fetchfour] [pre 1.8.4 only] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge).16:06
jason237 joined16:06
ToxicFrog 'git pull <remote>' is 'fetch updates from remote and merge into the current branch the remote branch corresponding to it'16:06
dopesong left16:07
ToxicFrog 'git pull <remote> <branch>' is 'fetch that branch from remote and then merge it into the temporary branch, whether they "match" or not, and without updating the remote-tracking branch heads16:07
The latter is usually not what you want.16:07
ash_workz ToxicFrog: so `git pull origin something` while on master is not pulling *to* temporary branch "something" ?16:07
blackwind_123 joined16:07
sssilver left16:07
ash_workz ToxicFrog: Like, I did a `git fetch` and I didn't see the new branch I anticipated16:08
daniel_rose left16:08
blckbit10 joined16:09
ToxicFrog ash_workz: "git pull origin something" fetches something to a temporary (FETCH_HEAD, IIRC) and then merges it into your currently checked out branch.16:10
It does not update origin/something the way "git fetch origin" or "git pull origin" would.16:10
dmto left16:11
drodger joined16:11
ash_workz ToxicFrog: update origin/something ?16:11
drodger left16:11
ash_workz update from* origin/something ?16:11
Sceorem_ left16:12
Ahmed90 joined16:13
Sucks joined16:13
lamppid left16:13
eijk_ joined16:13
ToxicFrog ash_workz: your local remote tracking branch16:13
tang^ joined16:13
ash_workz I don't understand16:14
further16:14
ToxicFrog Like, if you git clone, you have 'master' and 'origin/master'; the former is where you do work, the latter is a local copy of 'master' as it exists in the 'origin' repo16:14
'git fetch' updates 'origin/master'; 'git pull' updates 'origin/master' and then merges it into 'master'.16:14
Those '<remote name>/<branch name>' branches are called "remote tracking branches" and can be viewed with "git branch -a"16:14
ash_workz I don't understand how `git pull origin something` mistakenly while on master does not revert when I do `git pull origin master` ... I hope I didn't accidentally update master... I will probably have to roll that back or something16:14
herr_barium joined16:15
ToxicFrog I'm not sure what you mean by "does not revert" here.16:15
ash_workz ToxicFrog: so when you say, "origin/master" you mean, it updates the local master branch with what's on the remote as specified by origin?16:16
truenito left16:16
drodger joined16:16
aalawlx left16:16
truenito joined16:16
ToxicFrog ash_workz: when I say "origin/master", I mean exactly "the remote tracking branch for 'origin' on remote 'master' that is automatically created by clone and updated by fetch"16:17
ash_workz ToxicFrog: I made changes to something, pushed it, jumped on the server, and accidentally pulled something while on master instead of switching first (I thought I was supposed to switch first, but I didn't see the branch when I did `git fetch` so I thought I was wrong, but alas, I should've I guess done `git fetch something` right?) and so I thought just doing `git pull origin/master` would...16:17
...get master back to where it should be16:17
truenito left16:18
diegoviola left16:18
ToxicFrog Ok, let's back up a bit16:18
King_Hual left16:18
King_Hual joined16:18
King_Hual left16:18
King_Hual joined16:18
ToxicFrog First of all, if all you want to do is "get master back where it should be", and you haven't pushed it, you can just 'git reset --hard <commit to rewind to>' and you're done.16:18
ash_workz ToxicFrog: re: updating origin/master, that sounds unintuitive to me because how can fetching or pulling update a remote?... you're taking *from* that remote right? So I guess you're updating a reference to the remote?16:19
TomyWork left16:19
JeroenT left16:19
ToxicFrog ash_workz: yes. origin/master is a local branch that exactly mirrors the state of master in the remote repo 'origin' (as of last time you fetched from it)16:19
crose joined16:19
ToxicFrog 'git fetch <remote>' just updates all of these locally-stored remote-tracking branches to match the current state of the remote.16:20
King_Hual left16:20
ToxicFrog (things you might find helpful: git branch -a to list all branches, including remote-tracking; gitk --all to visualize all history and branches, including remote-tracking ones)16:20
King_Hual joined16:20
King_Hual left16:20
King_Hual joined16:20
mohabaks left16:21
supsup left16:21
ash_workz "gitk"16:22
?16:22
kadoban joined16:22
ToxicFrog ash_workz: graphical history viewer.16:22
Anyways. You're correct, fetching or pulling never updates a remote. But it does (or can) update your locally stored remote-tracking branches.16:23
The "gotchas" with "git pull <remote> <branch>" (rather than just "git pull <remote>") are twofold:16:23
ash_workz ToxicFrog: okay, I really don't get this16:23
my local machine is on master16:23
it has the file in the state it should be in16:24
I did `git push origin master` while on that branch16:24
ToxicFrog - it doesn't update the remote-tracking branch, so if you try to (e.g.) "git log origin/master..master" it won't show you everything16:24
ash_workz jump on the server16:24
zivester joined16:24
JeroenT joined16:25
ash_workz `git pull origin master` while on master and it says "up-to-date" and the file has the changes I made (didn't want in master)16:25
ToxicFrog - it merges <remote>/<branch> into your currently checked out branch rather than the one it matches up with, so if you go "git checkout master; git pull origin totally-unsafe-experimental-stuff" you just merged totally-unsafe-experimental-stuff into master.16:25
delboy1978uk joined16:25
delboy1978uk how do i check one file out from a specific commit?16:25
sssilver joined16:25
ToxicFrog ash_workz: so, to clarify -- you have local machine, and server, and both have clones of the same repo, which is stored in some third location as a bare repo they can push to and pull from?16:25
I.e. "server" here is "test server" or similar, not "git server"?16:25
delboy1978uk: git checkout <commit> -- ,path>16:26
<path> rather16:26
ash_workz ToxicFrog: that is correct16:26
lindistock joined16:26
delboy1978uk cheers ToxicFrog :)16:26
acetakwas joined16:26
ToxicFrog ash_workz: so...you commited a file to master by mistake, and pushed that mistake? That's what you mean by "didn't want in master"?16:26
italoacasas left16:26
ash_workz ToxicFrog: erm I pulled to master by mistake16:27
ToxicFrog But in both cases you already had master checked out, and it was master you were pushing to/pulling from16:27
So the branches all matched up16:27
ash_workz ToxicFrog: no locally I was on "something"16:27
ToxicFrog So your line that starts "`git pull origin master` while on master" should have read "git pull origin something"?16:28
xvx joined16:28
ash_workz oh16:28
ToxicFrog Because in your explanation of what you did, the only branch you ever mention is master16:28
ash_workz yes, I think16:28
lemme look16:28
ToxicFrog And if you don't actually know what you did, figuring out where it went wrong and how to fix it will be hard :)16:28
bronson joined16:28
Guest55 joined16:29
ash_workz yes, `git pull something`16:29
ToxicFrog ...but you originally committed it to and pushed to master? Or you committed it to something locally, pushed that, and then accidentally pulled it into master on the server?16:29
scottschecter joined16:29
ThomasLocke left16:30
ash_workz ToxicFrog: I will paste my commands16:30
something is "iss01" ... not that that matters, I just figured since I started out with a hypothetical I would just run with it16:30
JeroenT left16:31
jnavila left16:32
ascarter joined16:32
mbrzuzy left16:32
reim joined16:32
bollullera joined16:32
daniel_rose joined16:33
_ikke_ temhaa: Sorry, I had to work16:33
italoacasas joined16:33
bronson left16:33
Sonderblade left16:33
dopesong joined16:33
Sonderblade joined16:34
ToxicFrog ash_workz: that will be easier to make sense of, thanks16:35
daniel_rose left16:35
lindenle joined16:35
zivester left16:36
acetakwas left16:36
Chilley joined16:37
Alienpruts left16:37
acetakwas joined16:37
dopesong left16:38
tlaxkit joined16:38
localuser- left16:38
localuser- joined16:38
Balliad left16:39
noyb left16:39
st0opkid left16:39
lindenle left16:40
govg left16:40
acetakwas left16:40
abc123 joined16:40
abc123_ left16:40
govg joined16:41
thiago joined16:41
alanwill joined16:41
ash_workz ToxicFrog: http://dpaste.com/3J0SBC016:41
daniel_rose joined16:41
fahadash left16:41
citizen-stig joined16:41
BillCriswell joined16:41
mbrzuzy joined16:41
daniel_rose left16:41
sssilver left16:42
daniel_rose joined16:42
ash_workz I guess origin/master *thinks* it's up-to-date ?16:42
mohabaks joined16:42
synthroid left16:42
Manikandan joined16:42
ascarter left16:43
ToxicFrog It is up to date, because it contains all the commits on origin/master. It just also contains iss01.16:43
What happened here is:16:43
TomyLobo joined16:43
ToxicFrog - you updated master on localmachine, so it's up to date16:43
- you created iss01 based on it, committed your changes, and pushed16:43
sulaiman left16:44
ToxicFrog - then on the server, you downloaded iss01 and merged it into master16:44
acetakwas joined16:44
tyll joined16:44
tyll_ left16:44
ToxicFrog So master on the server now contains an up to date master + your commit on iss01, so it's "up to date" because it's not missing anything, it just has extra stuff.16:44
More in a bit, standup meeting16:44
FIQ left16:44
Es0teric joined16:45
FIQ joined16:45
ash_workz poop16:46
joako left16:46
zivester joined16:49
ToxicFrog ash_workz: ok, so, to get master on the server back in sync with master on origin, that's easy16:51
daniel_rose left16:52
ToxicFrog 'git checkout master; git reset --hard origin/master'16:52
That resets master to exactly match origin/master, throwing away any additional commits on it16:52
reim left16:52
daniel_rose joined16:53
sssilver joined16:54
jfran joined16:54
reim joined16:54
blckbit10 left16:55
abc123 left16:56
abc123_ joined16:56
alanwill left16:56
ahmedelgabri left16:57
madewokherd joined16:57
Thorn__Thorn16:57
blckbit10 joined16:57
lindistock left16:57
alanwill joined16:57
flexd left16:58
CheckDavid left16:59
ash_workz ToxicFrog: ah ha!16:59
ToxicFrog: thanks so much17:00
flexd joined17:00
gusnan left17:00
{AS} left17:01
gusnan joined17:01
gusnan left17:01
gusnan joined17:01
Karkus joined17:02
nettoweb left17:02
BeerBuddy joined17:02
tinajohnson__ joined17:02
sgambino left17:02
Jellyg00se left17:03
dreiss left17:03
BeerBuddy left17:03
nettoweb joined17:06
yn5 left17:07
modocache left17:07
sgambino joined17:08
yn5 joined17:08
bb010g left17:08
ToxicFrog ash_workz: so, breaking down what happened there -- when you did the git fetch, it pulled down the new branch as a remote-tracking branch, but didn't create a corresponding "first class" local branch17:08
petersr joined17:09
petersr left17:09
ToxicFrog This is the default behaviour because some repos have loads of branches and you're only likely to be interested in one or two of them, so you don't want "git branch" to drop hundreds of branch names on you after a fetch17:09
XVar left17:09
ToxicFrog "git branch -a" would have listed all branches, including remote-tracking ones, so you would have seen something like:17:09
* master17:09
origin/master17:09
origin/iss0117:10
XVar joined17:10
reim left17:10
gfixler left17:11
ToxicFrog And then "git checkout iss01" does the clever thing and realizes that, while you don't have "iss01", you do have "origin/iss01", so you probably want a normal local branch connected to it -- so it creates such a branch and switches to it.17:11
imachuchu joined17:11
unreal left17:11
thm joined17:12
hfp Hi, if I remove a commit during a rebase on a branch, will that commit disapear from git or will it still be present in another branch's history that incorporates it?17:12
zivester left17:12
ToxicFrog Instead, you did a "git pull origin iss01", which is "fetch the latest state of iss01 from origin, and then merge it into your currently checked out branch, in this case master"17:12
ash_workz ToxicFrog: thank you for clearing that up... I get baffled by strange behaviour with git sometimes17:12
thm is there a way to configure stash {pop,apply} to use --index by default?17:12
alanwill left17:12
ToxicFrog hfp: it will be removed from the branch you are rebasing. It will not be removed from other branches that incorporate it, nor will tags pointing to it break.17:12
ash_workz: git pull <repo> <ref> confuses a lot of people, because it's an intuitive thing to type but it's almost never what you actually want. There's a reason we have a warning about it in the bot.17:13
alanwill joined17:13
ash_workz `almost never what you want` ... is there something that is "usually" what you want?17:13
terminal_echo joined17:13
ash_workz ToxicFrog: ^17:14
bonswouar left17:14
editshare-ericf joined17:14
hfp ToxicFrog: Thanks17:14
dan2k3k4 left17:15
ToxicFrog ash_workz: check out the branch you want and then "git pull" with no other arguments.17:15
sssilver_ joined17:15
modocache joined17:16
ToxicFrog That will (a) fetch all updates from origin, and then (b) look for the remote-tracking branch corresponding to one you have checked out, and merge it into your current branch17:16
DWestCoast left17:16
tiagobarreto joined17:16
|node joined17:17
acetakwas left17:17
ash_workz ToxicFrog: I see17:17
thiago left17:17
ToxicFrog Or, if it's a new branch (as in this case): git fetch (to get the branch); git checkout <branch>17:18
howdoi left17:18
Anwar joined17:18
dsdeiz joined17:19
reim joined17:19
sssilver left17:19
jomofcw left17:19
terminal_echo left17:20
crose left17:20
bsanford left17:20
terminal_echo joined17:20
craigp left17:21
d10n-work joined17:22
junw joined17:22
mbrzuzy left17:22
doener left17:23
nettoweb left17:23
craigp joined17:23
gfixler joined17:23
temhaa left17:24
zivester joined17:25
synthroid joined17:25
zotherstupidguy left17:26
alanwill left17:28
Manikandan left17:28
Manikandan joined17:29
alanwill joined17:29
d4rklit3 joined17:30
kevwil left17:31
daniel_rose left17:31
jottr left17:32
kevwil joined17:32
durham joined17:32
delboy1978uk left17:32
triuba joined17:32
diegoviola joined17:32
herr_barium left17:32
kurkale6ka left17:33
bsanford joined17:33
crose joined17:33
mbrzuzy joined17:33
alanwill left17:33
{AS} joined17:34
yqt joined17:34
raghu left17:34
daito joined17:36
flavi0 left17:36
jjttjj left17:38
jor_ joined17:39
daito left17:40
jor_jor17:40
NimeshNeema joined17:42
avgn5 left17:43
freimatz left17:43
avgn5 joined17:43
craigp left17:43
junw left17:43
liamonade left17:44
aleksandar2810 left17:44
indieross left17:44
mischat left17:44
modocache left17:44
quark1 left17:45
modocache joined17:45
craigp joined17:45
David1977 left17:46
sulaiman joined17:46
mostlybadfly left17:47
francjay_ joined17:48
espindola joined17:48
sangy Hello, I'm reading the git fetch manpage and I don't see an atomic fetch option. Is that a thing? (2.7.0)17:48
jfran left17:50
ojacobson define atomic17:51
yn5 left17:51
sangy all refs are fetched successfully or none are updated (e.g., if the connection drops), or if someone pushes in between17:52
nettoweb joined17:52
sangy similar to what atomic pushes provide17:52
ojacobson Ah, no, not reasonably possible given how Git stores refs. However, if the connection drops, _no_ refs will be updated.17:52
Similarly, pushes that start after a fetch finishes negotiation will have no effect on the fetch17:52
zeroed left17:52
ojacobson (fetch transfers objects first in one large batch, then updates refs afterwards.)17:53
zotherstupidguy joined17:53
ril joined17:53
sangy ojacobson: thanks! Is there a place I can find low-level details about the protocol? I think the book doesn't dig too deep into this does it?17:53
sfz- left17:54
jjttjj joined17:54
ojacobson https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols and ftp://www.kernel.org/pub/software/scm/git/docs/v1.7.2.5/technical/pack-protocol.txt17:54
There's probably a more-recent version of that 2nd link, but the fundamentals haven't changed much17:54
mostlybadfly joined17:54
dopesong joined17:54
zeroed joined17:54
zeroed left17:54
zeroed joined17:54
sangy Ok, I'll take a look. I wanted to know details about how locks are acquired/released and stuff like this.17:55
I already read the first link, but I might have missed details. Thanks a lot :)17:56
MistahKurtz left17:56
ojacobson None of the locking is spelled out. You can infer the relevant properties by the order of operations, though17:56
daniel_rose joined17:56
govg left17:57
PaulCapestany left17:57
Asenar left17:58
dopesong left17:59
PaulCapestany joined17:59
notebox left18:00
notebox joined18:00
sangy ojacobson: cool, I do like this rfc-like document. I'll dig into it. I guess the last resort is to read the source code?18:00
pantsman- left18:01
rilril[away]18:01
sangy ojacobson: is there a module that manages this (pack protocol) or this belongs to the transport modules18:01
ril[away]ril18:01
ojacobson it's all in git-upload-pack and git-receive-pack18:01
joako joined18:02
samw joined18:02
alanwill joined18:03
Motoko joined18:04
jjttjj left18:04
samw left18:04
govg joined18:04
dsdeiz left18:05
SimonNa left18:05
dabd left18:05
subhojit777 joined18:07
StyXman joined18:07
Guest55 left18:07
a-l-e joined18:07
StyXman I'm trying to spin off one of the directories of my project into its own repo. I cloned the original one and then git filter-branch --subdirectory-filter Elevation/ --tree-filter 'rm -fv Elevation.dgml Makefile sea.png', which does almos what I want except filtering out the files Iḿ removing. what's missing?18:09
govg left18:09
Es0teric left18:10
samw joined18:11
heroux left18:11
sburgess left18:12
Sucks left18:12
Es0teric joined18:12
delboy1978uk joined18:12
Limes_ joined18:12
mizu_no_oto joined18:12
dimi1947 left18:12
nour_ joined18:12
thiago joined18:13
zeroed left18:13
skcin7 left18:13
kadoban StyXman: Use 'git subtree'. That's basically exactly what it's for.18:17
StyXman kadoban: ok18:17
settermjd joined18:18
rossome joined18:19
mariuscc left18:19
Sasazuka joined18:19
karstensrage left18:19
Rakkan joined18:20
jimi_ joined18:21
drodger left18:21
paddyez joined18:22
paddyez left18:22
paddyez joined18:22
EvilPeng1 joined18:24
alanwill left18:25
drodger joined18:26
irqq left18:27
sfz- joined18:28
dopesong joined18:28
Ldip joined18:28
alanwill joined18:28
Seveas chernjie: https://github.com/chernjie/git-ssh/pull/1 :D18:28
bb010g joined18:29
heroux joined18:29
gitinfo set mode: +v18:29
InfoTest left18:30
nnyk_ left18:30
evil-t0by joined18:30
bronson joined18:31
shinnya left18:32
dopesong left18:32
t0by left18:32
settermjd left18:32
jjttjj joined18:33
drodger left18:33
francjay__ joined18:33
EvilPeng1 left18:34
dopesong joined18:34
m0viefreak joined18:35
heroux_ joined18:35
francjay_ left18:35
drodger joined18:35
craigp left18:36
heroux left18:36
bronson left18:36
heroux_heroux18:36
PCatinean left18:37
arch-nemesis joined18:37
maletor_ joined18:37
lucido left18:38
liamonade joined18:39
Chilley left18:40
thomas left18:40
liamonade left18:40
polyzen left18:40
skcin7 joined18:41
chll left18:41
shymega left18:41
notebox left18:42
marscher left18:43
drodger left18:43
drodger joined18:44
qsx Seveas: lol.18:44
jellytux joined18:46
jellytux Hi, I forgot to add some files to my commit18:46
ajf- joined18:46
liamonade joined18:46
jellytux or rather18:46
shymega joined18:46
jellytux I want to add some files to the merge18:46
`the merge commit`18:47
blckbit10 left18:47
jellytux how can I do this?18:47
grawity you can commit --amend18:47
ojacobson does amend still flatten merge commits? I know it used to.18:47
ajf- left18:47
grawity no, it definitely doesn't18:47
blckbit10 joined18:47
ajf- joined18:48
ajf- left18:48
thomas joined18:48
dhcpfreely joined18:49
roxlu joined18:49
jellytux grawity: oh, so if I `git add somefile.txt` after the merge and then do `git commit --amend` it will add the file to the previous commit?18:49
grawity yes18:50
jellytux grawity: that's awesome, thank you!18:50
delboy1978uk left18:51
_ikke_ !evil18:53
gitinfo [!evil_merge] What you describe _can_ be done, but results in an "evil merge": a commit that purports to be a merge, but does not actually take all changes from all sides. This violates the assumptions that tools and humans make about merges, and usually results in confusion and pain down the road.18:53
EvilPeng1 joined18:53
firstdayonthejob joined18:53
nettoweb left18:53
dopesong left18:53
thm can I somehow configure stash pop (stash apply) to use --index by default?18:56
samw left18:56
d4rklit3 left18:56
ojacobson I think my most-evil merge was an octopus merge containing conflict resolutions18:56
(created using git-commit-tree, because at the time git-merge refused)18:56
rwb left18:57
EvilPeng1 left18:57
codedmart left18:57
EvilPeng1 joined18:57
victortyau joined18:58
daniel_rose left18:58
ril left19:00
SOLDIERz left19:00
modocache left19:00
Karkus left19:00
mohabaks left19:01
daniel_rose joined19:01
Es0teric left19:02
tiagobarreto left19:02
dreiss joined19:02
mahendra_ left19:03
Sazhen86 left19:05
stamina left19:06
sbasso left19:06
rwb joined19:07
ahmedelgabri joined19:07
Es0teric joined19:07
cvanball joined19:08
samw joined19:08
Guest55 joined19:08
craigp joined19:08
cagedwisdom joined19:09
mbrzuzy left19:09
jjttjj left19:10
kerrick joined19:10
codedmart joined19:12
DonVitoCorleone joined19:12
kerrick I have branch A that I pulled from upstream. Branch B has new work on it, including some work that's already on A. I want to take the state of the tree from B and use that as a new commit on A. What's a succinct way to do this?19:13
Rebasing B onto A doesn't work because A contains some of the changes B has, so there's a merge conflict19:13
Hmm looks like git reset B; git commit -am 'My message' does what I want19:14
nettoweb joined19:14
kadoban kerrick: If you throw out every workflow in git that involves a merge conflict, you're going to have a bad time.19:15
kerrick err, no, that doesn't work19:16
doing reset B is changing the commit history19:16
jellytux left19:17
thiago left19:19
thiago joined19:19
herr_barium joined19:19
nnyk_ joined19:19
diegoaguilar left19:20
mbrzuzy joined19:20
kerrick OK, so it looks like this does what I want: git checkout B; git reset --soft A; git commit -m 'My message', git checkout A; git reset --hard <commit SHA from 'My message'>19:20
Is there a faster way to do this?19:20
sgen joined19:22
wethu joined19:22
dreiss left19:22
tlaxkit left19:23
sagittarian left19:23
evil-t0by left19:23
bollullera left19:24
jjttjj joined19:25
Macaveli joined19:25
LBV_User left19:26
mellernoia-work left19:26
t0by joined19:26
eka left19:26
fbwnd joined19:27
drodger left19:27
zivester left19:27
nydel07 left19:28
italoacasas left19:28
drodger joined19:28
eka joined19:29
modocache joined19:30
irqq joined19:31
diegoaguilar joined19:32
Chilley joined19:32
elastix joined19:32
foo I'm migrating a project from php to python (learning python day 1). I'm trying to understand workflow changes. With PHP, I've been committing in git, and pushing to main repo. Then from repo, I've been checking out to live dir when ready. I assume this same workflow in a python virtualenv is the way to go, correct? Thank you. (I realize this is part python/part git)19:33
tvw left19:33
tvw joined19:34
dreiss joined19:34
t0by left19:34
localuser- left19:35
localuser- joined19:35
cdg left19:35
nydel07 joined19:36
daito joined19:36
soerenb !deploy19:36
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.html19:36
ril joined19:37
MarkyC_ joined19:38
Domhack joined19:38
foo soerenb: thanks, read that, I'm thinking this same method will work.19:40
Macaveli left19:40
t0by joined19:40
MarkyC left19:40
zivester joined19:40
daito left19:41
fbwnnd joined19:42
radsy joined19:44
italoacasas joined19:45
jwest joined19:46
subhojit777 left19:47
polyzen joined19:47
drodger left19:48
drodger joined19:50
t0by left19:50
cvanball left19:51
sanketdg left19:52
EvilPeng1 left19:54
flavi0 joined19:54
sgambino left19:56
EvilPeng1 joined19:56
circuitCarre joined20:00
mbrzuzy left20:00
TheZeroNine joined20:01
herr_barium left20:01
liamonade left20:02
chris2 left20:03
doener joined20:03
[zarubin] left20:03
herr_barium joined20:03
hyphenated joined20:03
sgambino joined20:03
zarubin_ joined20:03
majorseitan joined20:04
jteneyck joined20:04
jteneyck left20:04
jteneyck joined20:04
nilg left20:05
hyphenated left20:05
_noblegas joined20:06
zarubin left20:06
zarubin_ left20:07
zarubin joined20:07
leeN joined20:08
Walex suppose I am listing all commits in a repository, by hash. Usually most of the tree of each commit will be shared, as won't have been modified. Which means that I can skip looking at any tree objects that I have seen previously. But if I do that I don't see some blobs that I see if I look at evert tree object. What am I missing? I was under the impressions that if two tree nodes have the same hash, they and anything below them is identicaly20:08
MattMaker joined20:08
t4nk195 joined20:08
ojacobson That's correct.20:08
Up to collisions in SHA1, anyways, which: no20:09
zarubin left20:09
zivester left20:10
ahmedelgabri left20:10
ril left20:10
DeltaHeavy joined20:10
moei left20:11
Walex ojacobson: gah. I then suspect a bug in GitPython's 'traverse' function... I'll double check that.20:11
citizen-stig left20:11
Walex ojacobson: thanks for the answer BTW20:12
ojacobson (in fact of two objects have the same hash, _they are the same object_ -- git only stores up to one object for any given hash.)20:12
(So even if you did find a collision, you'd still only find one of the colliding objects in your repo)20:12
bongjovi left20:12
Walex I am writing a simple tools that scans all commits and lists all blobs that pass an "include" test and don't pass an "exclude" test, that's the context.20:13
terminal_echo left20:13
moei joined20:13
mbrzuzy joined20:14
monokrome Anyone know why I don't get history from another repo if I merge it into my current repo using `read-tree` with `--prefix`?20:14
ahr3n joined20:14
monokrome I'm trying to merge two repos and keep history20:14
[Saint] left20:14
elastix left20:15
monokrome This is what I'm running: https://gist.github.com/monokrome/33581b53fb912559b0f420:15
but read-tree just pulls in "new" files20:15
not sure how to keep history20:15
ojacobson use git-merge or git-subtree here20:15
FIQ left20:15
monokrome Oh. I was mistaken that read-tree worked like git-subtree. This article feels a bit confusing if not: http://www.git-scm.com/book/en/v1/Git-Tools-Subtree-Merging20:16
Manikandan left20:16
[Saint] joined20:17
rnsanchez left20:17
kitsu joined20:17
jalnt left20:18
MrWoohoo left20:19
ahr3n_ joined20:19
herr_barium left20:20
FIQ joined20:20
herr_barium joined20:21
TheZeroNine left20:21
kitsu Hi! How can I move some commits from master to another branch?20:21
monokrome ojacobson: All the docs I'm reading say to use "read-tree" to copy the history20:21
marienz left20:21
monokrome and when I run it, I end up with a bunch of "new files" and the same filenames also "deleted"20:22
ojacobson git read-tree will splat out the files from one commit into the work tree and staging area20:22
drodger left20:22
ojacobson but it won't do jack shit with the history of wherever those files came from20:22
monokrome got it20:22
_ikke_ kitsu: with rebase20:22
ojacobson I would argue that the git book should not suggest read-tree here at all20:22
buMPnet joined20:22
monokrome yeah, it's confusing20:22
all the docs follow this method, and call it subtree - so I can't find docs on the right way20:22
kitsu _ikke_ ok, thanks20:23
marienz joined20:23
samw left20:23
zivester joined20:23
ahr3n left20:23
drodger joined20:23
jalnt joined20:23
malidegrammar_nazi20:23
Imek joined20:24
samw joined20:25
FireArrow133 joined20:25
samw left20:26
grammar_nazimalide20:26
StyXman left20:26
Calrik left20:26
liamonade joined20:27
circuitCarre left20:28
dreiss left20:28
jaguarmagenta left20:29
jaguarmagenta joined20:30
EvilPeng1 left20:30
dsdeiz joined20:30
uri_ joined20:30
zivester left20:31
citizen-stig joined20:31
King_Hual` joined20:31
alanwill left20:32
gnudon joined20:32
Arsonide if I want to stop tracking an old branch, but not delete it from origin, what's the command there20:32
I want to not have to see it locally20:32
_ikke_ git branch -D <branchname>20:32
bronson joined20:33
sgambino left20:34
w0bni joined20:34
Anwar left20:34
King_Hual left20:35
w0bni I need to create my completely own copy of a repository, without any connection to the original repo20:35
Is the correct way to just replace the origin with my new repo and push?20:35
samw joined20:35
nour_ left20:35
_ikke_ correct20:36
ril joined20:36
loneclock joined20:37
modocache left20:37
bronson left20:38
sgambino joined20:39
hyphenated joined20:39
timlegrand joined20:39
dreiss joined20:40
gnudon left20:40
gitinfo set mode: +v20:40
timlegrand Hello, is there Git developers here?20:40
modocache joined20:40
loneclock Hello, I'm new to programming and trying to get everything set up properly. I'm using Codeblocks IDE and I have downloaded Git Bash for windows. I made a folder with my codeblocks files, I used the git init command and I used git add on my project file (.cbp) file....I'm still wondering about the process for all this and the best way to set it up...I also made a Github account hopefully I can get that set up too20:41
|node left20:41
timlegrand I am looking for the answer to this question: http://article.gmane.org/gmane.comp.version-control.git/39194/match=index+lock+status20:41
sfan786 joined20:41
{AS} left20:41
timlegrand Is it planned to prevent git from writing files when performing a simple 'git status'?20:41
uri_ left20:42
noteness left20:42
pikajude joined20:42
yoink left20:42
daniel_rose left20:43
pikajude i'm in the middle of an interactive rebase and i'm trying to run a test without the current commit applied20:43
what's the best way to do that?20:43
uri_ joined20:43
_ikke_ git checkout HEAD^20:43
drodger left20:44
pikajude ok cool. and how do I undo that?20:44
_ikke_ git checkout -20:44
zeroed joined20:44
localuser- left20:44
pikajude ok thanks _ikke_20:44
zivester joined20:45
localuser- joined20:45
drodger joined20:45
noteness joined20:45
_ikke_ you're welcome20:46
pikajude ok, so I don't want to include the commit represented by HEAD. that's what rebase --skip does, right?20:46
codefo joined20:46
_ikke_ yes20:46
mase-tech joined20:47
DarkElement joined20:47
pikajude ok so i skipped, then i looked at git show HEAD and the changes for the next commit are applied on top of the ones that I thought I just skipped. why are they in there?20:48
nnyk_ left20:48
rpdprd left20:48
rpdprd joined20:49
pikajude here's a gist: https://gist.github.com/pikajude/9e88211dcb83dd8bb574 diff1.diff is what i saw first, then i skipped it, now i see diff220:49
localuser joined20:50
tvw left20:50
DarkElement I am putting an MIT license on my github repository with the work I have done for the company I work for atm. Would it be the right format to do Copyright (c) DarkElement @ CompanyName ?20:50
Never mind, I have learned it is just the company name20:51
Seveas that depends on who holds the copyright20:51
e.g. at my workplace we don't use the company name when releasing software as open source20:51
IrishPrime left20:51
DarkElement You use your own name?20:51
Seveas yes.20:51
t0by joined20:52
aidalgol joined20:52
DarkElement I am going to add a Written By X line between the c line and the rights reserved line, as a friend in another channel just advised me.20:54
drodger left20:54
DarkElement Everyone wins, yay :D20:54
localuser- left20:54
{AS} joined20:54
drodger joined20:55
modocache left20:55
aidalgol If I have a branch 'iss42' that I have just pushed to my remote 'origin', is the command `git merge origin/iss42` any different from `git merge iss42`?20:56
modocache joined20:56
_ikke_ No20:57
well20:57
yes20:57
aidalgol *head explodes*20:57
DolphinDreamm (scripting) is there a way to get the local branches without the extra characters shwoing the current branch ?20:57
fbwnd left20:57
_ikke_ git for-each-ref --format="%(refname:short)" refs/heads20:58
DolphinDreamm ah.. i remember that. thx20:58
_ikke_ managed to get it right from the top of my head20:58
:P20:59
DolphinDreamm right :) on20:59
cdg joined20:59
aidalgol _ikke_: I've read the "Remote Branches" (sub)chapter in the Git Book, and it doesn't appear to answer this.20:59
daniel_rose joined20:59
skcin7_ joined21:00
kevwil left21:00
_rgn left21:00
kerrick left21:01
_ikke_ aidalgol: I think the difference is minute21:01
kerrick joined21:01
_ikke_ The actual merge is the same21:01
aidalgol Also, lemme check that I have the terminology right: origin/iss42 is a "remote-tracking branch", correct?21:01
_ikke_: OK, good.21:01
_ikke_ aidalgol: that's correct21:01
_rgn joined21:02
_rgn left21:02
_rgn joined21:02
skcin7 left21:02
aidalgol So what is the term for the local branch 'iss42' that is tied to the remote-tracking branch?21:02
DarkElement left21:02
_ikke_ Just branch or local branch21:02
It has no separate name21:03
a-l-e left21:03
aidalgol So how is it tied to the remote branch?21:03
zivester left21:03
kerrick left21:04
Seveas with a piece of string21:04
kerrick joined21:04
_ikke_ :D21:04
daniel_rose left21:04
_ikke_ 2 pieces actually :P21:04
aidalgol No duct tape and chewing gum?21:04
kitsu left21:04
rclanan left21:05
Seveas aidalgol: cat .git/config21:05
the config tells git that 'iss42' is related to 'origin/iss42'21:05
aidalgol Oh, I see.21:06
kerrick left21:07
aidalgol For some reason, I thought it didn't have to keep an entry for each branch.21:07
mbrzuzy left21:07
codefo left21:07
_ikke_ How else would it know?21:07
local branch a can track remote branch b21:08
aidalgol *black* magic? :P21:08
*grumble*21:08
_ikke_ they don't have to have the same name21:08
phaleth left21:08
aidalgol wishes git gui's didn't pollute .git/config21:08
mzmz left21:09
modocache left21:09
flavi0 left21:09
paul424 joined21:09
flavi0 joined21:09
aranea joined21:10
nickthetait left21:10
Domhack left21:10
nickthetait joined21:10
samw left21:10
toogley left21:10
nickthetait left21:11
aidalgol Some of my coworkers seem to think that `git merge origin/somebranch` is more correct than `git merge somebranch` (at least for our workflow). I'm not sure where they get this from. Any ideas on how such a misunderstanding may come about?21:11
zivester joined21:11
monokrome tmux at -d21:12
oops21:12
jellytux joined21:13
jellytux Hi, is the git tag referencing the commit? So even if I am amending I don't have to worry about recreating the tag file, right?21:14
modocache joined21:14
ferr joined21:14
jellytux "A lightweight tag is very much like a branch that doesn’t change – it’s just a pointer to a specific commit."21:15
so I take it, that it references it by ID21:15
_ikke_ yes21:15
so if you ammend it, the tag will still point to the old commit21:15
herr_barium left21:17
kerrick joined21:17
codefo joined21:17
zivester_ joined21:17
zivester left21:18
localuser- joined21:18
strayPuppy joined21:18
tinajohnson__ left21:19
skcin7_ left21:19
nickthetait joined21:19
kitsu joined21:20
MarkyC_ left21:20
jellytux _ikke_: thanks as always21:20
aidalgol Fast-forward merges don't create a "merge" commit, correct?21:21
jellytux _ikke_: do you have a dotfiles repo? If you do, how do you deal when sharing it through multiple devices? Right now I have a branch for each device21:21
Noldorin left21:21
_ikke_ aidalgol: correct21:21
irqq left21:21
aidalgol Yay, I got something right! \o/21:21
_ikke_ jellytux: I do have one, though, I haven't updated it in ages21:21
crose left21:22
jokajak left21:22
meejah jellytux: i have one, and have per-host customizations in ~/dot-files/bash/post-<hash of hostname>.sh21:22
jellytux _ikke_: I don't know if its good practice, I have accidently done somet stupid things by doing this, but I have the cloned version in ~21:22
jokajak joined21:22
jellytux _ikke_: so whenever I make a change I just commit straight from ~21:22
NimeshNeema left21:22
_ikke_ I use symlinks in my homedir to the repo21:23
Soni can git do empty commits?21:23
localuser left21:23
_ikke_ yes21:23
jellytux symlinks are much better21:23
thanks for the tip21:23
Soni like, can I make a commit without changes, just a commit message?21:23
meejah Soni: I think it's "git commit --allow-empty"21:24
_ikke_ meejah: correct21:24
Shentino left21:25
Shentino2 joined21:25
Soni cool21:25
Shentino2 left21:25
Shentino joined21:25
Soni so if I disallow force-push and abuse branches I can have a git-powered issue tracker21:25
ojacobson you have invented: bugs-everywhere21:26
fbwnd joined21:26
alanwill joined21:27
daniel_rose joined21:27
rwb left21:27
Soni I can also store git patches on the branch for pull requests (and only allow "allowed users" to push commits that change them, while allowing everyone to push empty commits - again no force-push)21:28
bb010g left21:28
Soni I could also call it "AbusiveTracker"?21:29
so what do I need to write this?21:29
t4nk195 left21:30
aidalgol ugh, Git For Windows and MSYS2 Git have different ideas on line endings...21:30
samw joined21:31
zivester_ left21:31
diegoviola left21:32
zivester joined21:32
chris2 joined21:32
aidalgol Git on Windows is a misery...21:32
daniel_rose left21:33
elastix joined21:33
aidalgol of course, Windows itself is a misery...21:33
codefo left21:34
blckbit10 left21:34
localuser joined21:34
timlegrand left21:35
samw left21:36
daito joined21:37
namikr joined21:37
localuser- left21:39
zivester left21:40
ahr3n_ left21:40
samw joined21:41
daito left21:41
blckbit10 joined21:42
localuser- joined21:42
FunkyELF left21:44
jjttjj left21:45
localuser left21:47
jjttjj joined21:48
drodger left21:49
jellytux aidalgol: not according to #chat room :(21:49
slick left21:49
wanderer left21:50
jellytux according to them windows can do everything *nix can do and more :/21:50
off-topic, gotta go bye21:50
jellytux left21:50
rubber-soul left21:51
synthroid left21:51
blckbit10 left21:52
sulaiman left21:52
blckbit10 joined21:53
modocache left21:53
jimi_ left21:53
drodger joined21:55
droid909 joined21:56
modocache joined21:57
namikr left21:57
liamonade left21:57
droid909 i have this message Your branch and 'origin/master' have diverged21:57
slick joined21:57
droid909 and have 2 and 6 different commits each, respectively.21:58
how do i see the difference before pulling?21:58
wanderer joined21:58
wandererGuest5691321:58
uber joined21:59
grawity left22:00
jeffreylevesque left22:00
sfan786 left22:01
cyan__ joined22:01
grawity joined22:02
skcin7 joined22:02
blackwind_123 left22:03
rclanan joined22:03
victortyau left22:04
JanC left22:05
MattMaker left22:06
Soni what's a minimal self-hosted git service with a permission system?22:06
Gamecubic left22:06
moritz Soni: gitolite22:06
strayPuppy left22:06
preaction ssh22:07
_ikke_ a filesystem22:07
rclanan left22:08
Soni moritz, can I let anyone push empty commits and create branches, but disallow rewriting history and deleting branches and stuff?22:08
_ikke_ Soni: gitolite can do that22:08
ferr left22:08
droid909 guys, the master has changed, how can i see what's changed before pulling? using cli tuls?22:09
tools22:09
yohnnyjoe left22:09
_ikke_ git fetch22:09
Soni ugh the website ;_;22:09
_ikke_ git log ..@{u}22:09
Soni: it's functional22:09
it's not a shiny silicon valey startup22:09
Soni _ikke_, what about lua.org? is it functional? because lua.org looks better than the gitolite website22:10
droid909 _ikke_: what does log..@{u} do?22:10
Soni (sorry I'm a bit excited)22:10
droid909 Soni: i vote for gitolite22:11
Soni: try both and see22:11
_ikke_ Soni: it's in the same ballpark22:11
drodger left22:11
rook2pawn left22:11
rook2pawn joined22:11
_ikke_ droid909: the space is not optional22:11
it shows you the commits that are in the upstream branch, but not in your local branch22:12
"git log ..@{u}"22:12
rook2pawn is there a standard thing to identify when a commit is part of a branch? its evident to obtain the branchtip commit from the branchname, but what about earlier commits?22:12
droid909 _ikke_: thank you22:12
diegoviola joined22:12
imack left22:12
_ikke_ rook2pawn: What is it that you are asking?22:12
lindenle joined22:12
_ikke_ Do you want git to tell you, or do you want something else?22:13
MattMaker joined22:13
pasky left22:13
rook2pawn when i say git branch foo; git checkout foo; git add bar.txt ; git commit; at this point this commit is deirectly identified by foo22:13
jjttjj left22:13
rook2pawn but if i do a second commit, it's somewhat lost that the previous commit was the first commit at the point of the branch22:14
_ikke_ a commit does not store which branch in belong(s|ed) to22:15
s/in/it22:15
daniel_rose joined22:15
rook2pawn what im asking is if there is an existing git paradigm that tracks this22:15
ok22:15
LucaTM left22:15
_ikke_ Offically, it belongs to a branch when it's reachable from that branch22:16
lindenle_ joined22:16
_ikke_ that means the root commit belongs to all branches (ignoring multiple roots)22:16
kitsu left22:16
Walex let's ask again: support a 'tree' object has the same hash as another 'tree' object: oes that means that ll subobjects (trees and blobs) also have the same hashes, recursively?22:16
mizu_no_oto left22:16
_ikke_ yes22:16
lindenle left22:17
drodger joined22:17
_ikke_ It's a so called merkle tree22:17
Walex because my understanding is that a 'tree' object is a manifest of all the hashes od the subobjects...22:17
droid909 how can i "save" current local git state, do git pull, and revert back to the state if i didn't like what git pull did?22:17
ash_workz left22:17
Walex _ikke_: thanks again...22:17
_ikke_ droid909: git pull does 2 things: git fetch + git merge22:18
droid909: git fetch is not (easily) undoable22:18
the merge is22:18
rook2pawn _ikke_: Ah, thanks.22:18
paul424 left22:18
tvw joined22:19
_ikke_ rook2pawn: What most people consider a branch is when you exclude the commits reachable from some other main branch22:19
elastix left22:19
mezod left22:19
_ikke_ git log master..dev shows all commits only reachable by dev, not by master22:19
it's the same as git log ^master dev22:19
daniel_rose left22:19
lindenle_ left22:20
_ikke_ show all commits from dev, but exclude commits reachable from master22:20
Walex vim22:20
oops22:20
JanC joined22:20
_ikke_ VIM - Vi IMproved22:20
HanClinto left22:20
_ikke_ version 7.4.108922:20
borodin joined22:20
_ikke_ by Bram Moolenaar et al.22:20
Vim is open source and freely distributable22:21
:P22:21
yohnnyjoe joined22:21
lindenle joined22:21
drodger left22:21
Walex :-)22:21
borodin I'm having trouble getting git push to work from a non-interactive process. I have a job in Jenkins which I do git clone, then edit some stuff, then git add, git commit git push origin master. I see this error:22:22
apotry left22:22
borodin fatal: could not read Username for "my-server-url" no such device or address22:22
drodger joined22:22
borodin So, it can git clone but it can't git push22:22
I have checked in the jenkins workspace and I see in the workspace dir there is .git and the project name22:23
the .git there contains config with remote "origin" and branch "master" but it has no username info in it22:24
lindenle left22:24
_ikke_ borodin: do you use git credential helpers?22:24
Imek left22:25
borodin there's also a .git dir within the project - it also has no username info22:25
I don't know what a credential helper is22:25
_ikke_ man gitcredentials22:25
gitinfo the gitcredentials manpage is available at http://jk.gs/gitcredentials.html22:25
lindenle joined22:26
borodin do I need to use this?22:27
kevwil joined22:27
borodin on my mac I can git push without entering a password - does that mean I use gitcredentials?22:27
pasky joined22:27
codefo joined22:28
lindenle left22:30
ferr joined22:30
__main__ left22:31
jteneyck left22:31
modocache left22:31
lindenle joined22:31
__main__ joined22:32
citizen-stig left22:32
soerenb left22:33
paul424 joined22:33
soerenb joined22:33
modocache joined22:33
DeltaHeavy borodin It means you use Public/Private Keys via for SSH authentication.22:33
_ikke_ No, was just wondering22:33
drodger left22:34
_ikke_ It's the closest thing I could think of that would give this kind of error message22:34
__main__ left22:34
DeltaHeavy Not so sure what gitcredentials is. Wouldn't be surprised if it just abstracts that process and/or isolates those keys specifically for git.22:34
MrWoohoo joined22:35
__main__ joined22:35
bronson joined22:35
zeroed left22:35
lindenle left22:35
livingstn left22:35
eka left22:35
eka joined22:36
lindenle joined22:36
namikr joined22:38
Jackneill left22:39
localuser joined22:40
EvilPeng1 joined22:40
bronson left22:40
drodger joined22:40
namikr left22:41
namikr joined22:41
majorseitan left22:41
faux___ joined22:42
Seveas borodin: it may mean you use gitcredentials.22:43
borodin: git remote -vv22:43
if it shows ssh urls, you'll be using keys. Otherwise it's a credential helper indeed22:43
localuser- left22:43
namikr left22:44
faux___ gitflow question - does one tag the release/* branch or the master branch after merging a release/* branch? according to the gitflow blog post, http://nvie.com/posts/a-successful-git-branching-model/, you tag the master branch. but then, even after merging the release branch into develop, the `git describe` output for develop won't have the latest tag, and that's confusing. any thoughts? thanks22:44
lindenle left22:46
Dougie187 left22:47
lindenle joined22:47
modocache left22:47
borodin left22:47
herr_barium joined22:47
davidosomething borodin -- is the job configured with a user.name and user.email22:49
the system user the job runs under that is22:49
e.g. if the job is running as the root user (bad idea) then the when the root user types `git config --get user.name` it should return some name22:50
daniel_rose joined22:50
madewokherd left22:50
mezod joined22:51
mezod left22:51
codeman left22:51
lindenle left22:51
lindenle joined22:52
liamonade joined22:52
mezod joined22:52
modocache joined22:53
fees left22:54
fahadash joined22:54
daniel_rose left22:55
drodger left22:56
lindenle left22:56
Kicer86 left22:56
drodger joined22:57
lindenle joined22:57
roxlu left22:58
herr_barium left22:58
jimi_ joined22:59
bango2 left23:00
hobodave joined23:00
blckbit10 left23:01
TalkToMe joined23:02
Soni can I have an empty root commit?23:02
blckbit10 joined23:02
faux___ left23:03
lindenle_ joined23:03
Seveas yes23:04
fbwnnd left23:04
Seveas spirit:/tmp$ git init foo23:04
Initialized empty Git repository in /tmp/foo/.git/23:04
spirit:/tmp$ git -C foo commit --allow-empty -m'Empty!'23:04
[master (root-commit) 75138cf] Empty!23:04
fbwnd left23:04
skcin7 left23:04
lindenle left23:04
Chilley left23:06
drodger left23:06
_noblegas left23:06
Es0teric left23:06
Soni cool23:07
DeltaHeavy left23:07
Soni now how do I make gitolite only allow empty commits?23:07
aidalgol left23:07
Seveas that makes no sense whatsoever23:08
bremner use a hook.23:08
Seveas but you could make your update hook check that all commits point to the same tree23:08
aidalgol joined23:08
sgambino left23:11
drodger joined23:11
lindenle_ left23:12
TalkToMe left23:13
harish left23:13
lindenle joined23:13
skcin7 joined23:14
fscala left23:14
fscala joined23:15
nettoweb left23:15
liamonade left23:16
lindenle_ joined23:17
lindenle left23:17
liamonade joined23:17
modocache left23:20
hobodave left23:20
modocache joined23:20
lindenle joined23:21
circ-user-ohseJ left23:21
King_Hual` left23:21
lindenle_ left23:21
{AS} left23:21
mase-tech left23:21
lindenle left23:24
madewokherd joined23:25
circ-user-ohseJ joined23:25
lindenle joined23:26
wethu left23:26
skcin7 left23:26
modocache left23:26
drodger left23:28
sheilong joined23:29
lindenle left23:29
filisko left23:30
lindenle joined23:30
italoacasas left23:31
jimi_ left23:31
EvilPeng1 left23:32
Poppabear joined23:32
Poppabear left23:32
Poppabear joined23:32
paddyez left23:33
David1977|2 joined23:33
David1977|2David197723:33
eijk joined23:34
drodger joined23:34
lindenle left23:34
BillCriswell left23:35
faux___ joined23:35
lindenle joined23:36
faux___ left23:38
daito joined23:38
eijk_ left23:38
EvilPeng1 joined23:40
drodger left23:40
lindenle_ joined23:40
lindenle left23:41
d4rklit3 joined23:42
eijk left23:42
daito left23:42
citizen-stig joined23:43
sssilver_ left23:43
daniel_rose joined23:44
uri_ left23:45
sssilver joined23:45
chitopunk left23:45
samw left23:45
drodger joined23:45
yarnfive8 left23:47
samw joined23:47
citizen-stig left23:48
lindenle_ left23:48
|node joined23:48
lindenle joined23:49
editshare-ericf left23:49
daniel_rose left23:50
lindenle left23:52
felixn joined23:52
samw left23:52
abc123 joined23:52
lindenle joined23:53
rclanan joined23:53
abc123_ left23:54
herr_barium joined23:55
aranea left23:56
lindenle_ joined23:57
lindenle left23:57
rclanan left23:57
loneclock left23:58
Limes_ left23:58

Logs Search ←Prev date Next date→ Channels Documentation