| 2013-10-18 |
| → Algorithm joined | 00:00 |
| → caspingus joined | 00:00 |
| → cmpera joined | 00:00 |
| → vkz joined | 00:01 |
| ← maxorator left | 00:01 |
| ← hyperair left | 00:01 |
| ← ktosiek left | 00:02 |
| → frogonwheels_ joined | 00:02 |
| → Tok-A-Mak joined | 00:03 |
| → el3ctron joined | 00:03 |
| → ktosiek joined | 00:03 |
|
EugeneKay
| gdoteof - man git-format-patch | 00:04 |
|
gitinfo
| gdoteof: the git-format-patch manpage is available at http://jk.gs/git-format-patch.html | 00:04 |
| ← frogonwheels left | 00:04 |
| ← ZujkisNx left | 00:05 |
| → normanrichards joined | 00:05 |
| ← VictorCL left | 00:05 |
|
Tok-A-Mak
| is it possible to have a file in a repo, that doesn't keep any history, but is just the current version (it's a large jar and i don't want to bloat my repo with crap on every update)? if so, what should i read to understand what to do? | 00:06 |
| ← epicowl left | 00:06 |
| ← Zarthus left | 00:07 |
| ← kcj left | 00:08 |
| → bwreilly_ joined | 00:08 |
| → kcj joined | 00:08 |
| ← bwreilly left | 00:12 |
| → grilix joined | 00:13 |
| → R1KRDO1 joined | 00:13 |
| → valgrind joined | 00:13 |
| ← bwreilly_ left | 00:13 |
| ← imachuchu left | 00:14 |
| → hashpuppy joined | 00:15 |
| ← hashpuppy left | 00:16 |
| ← R1KRDO left | 00:16 |
| → Stygia joined | 00:16 |
| ← asQuirreL left | 00:16 |
|
imMute
| Tok-A-Mak: not directly, but have a look at git-annex | 00:17 |
|
Tok-A-Mak
| i will check it out. thanks | 00:17 |
| ← akurilin left | 00:18 |
| → rfoust joined | 00:19 |
| ← cenuij left | 00:20 |
| → Gamecubic joined | 00:20 |
| → akurilin joined | 00:20 |
| ← boblee left | 00:22 |
| → boblee joined | 00:22 |
| → reskp joined | 00:23 |
| → setmeaway joined | 00:24 |
| → tmcmahon joined | 00:24 |
| → thierryp joined | 00:26 |
| ← normanrichards left | 00:27 |
| ← jayrobot left | 00:28 |
| → hashpuppy joined | 00:29 |
| → normanrichards joined | 00:29 |
| → dyng joined | 00:30 |
| ← thierryp left | 00:30 |
| ← ehmatthes left | 00:30 |
| ← reskp left | 00:32 |
| ← chuckharmston left | 00:33 |
| ← jarr0dsz left | 00:34 |
| ← minim left | 00:34 |
| ← Fandekasp left | 00:36 |
| ← Stalkr^ left | 00:37 |
| ← AWinterman left | 00:39 |
| → Stalkr^ joined | 00:39 |
| → MavKen joined | 00:40 |
| → Fandekasp joined | 00:40 |
| ← Curtisbeef left | 00:41 |
| → cannonball joined | 00:41 |
| → BiggFREE joined | 00:42 |
| → ehmatthes joined | 00:42 |
| → delta6 joined | 00:42 |
| → ozette joined | 00:43 |
| ← simesy left | 00:43 |
| ← tmcmahon left | 00:44 |
| → simesy joined | 00:44 |
|
EugeneKay
| Tok-A-Mak - !annex | 00:46 |
|
gitinfo
| Tok-A-Mak: git-annex and git-media are two solutions to the !binary problem. They work by keeping the blobs outside of the repo, storing a reference to the blob in the repo instead. See http://git-annex.branchable.com/ and https://github.com/schacon/git-media | 00:46 |
| → Curtisbeef joined | 00:46 |
|
Tok-A-Mak
| i will look into it. thank you | 00:46 |
|
ojacobson
| Really wish there was a log.defaulttoupstream option for git-log that automatically ran 'git log @{u}..HEAD' | 00:48 |
|
| (yes, I can alias that.) | 00:48 |
| ← simesy left | 00:49 |
| → discord joined | 00:49 |
| → liquidmetal joined | 00:50 |
|
Tok-A-Mak
| !binary problem | 00:50 |
|
gitinfo
| Storing binary files in git causes repo balloon, because they do not compress/diff well. In other words, each time you change a file the repo will grow by the size of the file. See !annex for some solutions | 00:50 |
| → mmlac-bv joined | 00:55 |
| → rurufufuss joined | 00:55 |
| ← deuterium left | 00:56 |
| ← dorkmafia left | 00:56 |
| ← Mars` left | 00:57 |
| ← infynyxx left | 00:57 |
| → Mars` joined | 00:57 |
| → infynyxx joined | 00:57 |
| ← nicknisi left | 00:59 |
| → InvidFlower joined | 00:59 |
| ← devoldmx left | 01:00 |
| → nicknisi joined | 01:00 |
| ← normanrichards left | 01:00 |
| → dorkmafia joined | 01:01 |
| ← grilix left | 01:01 |
| → grilix joined | 01:02 |
| ← infynyxx left | 01:02 |
| ← DonRichie left | 01:02 |
| ← hashpuppy left | 01:02 |
| → weiyang joined | 01:04 |
| ← caspingus left | 01:04 |
| → Davey joined | 01:05 |
| → caspingus joined | 01:05 |
| → dhruvasagar joined | 01:06 |
| ← grilix left | 01:06 |
| ← cigarshark left | 01:07 |
| ← R1KRDO1 left | 01:08 |
| ← the_cybersphinx left | 01:09 |
| ← jfoy left | 01:09 |
| → mmitchell joined | 01:10 |
| ← PaulCapestany left | 01:10 |
| ← Gamecubic left | 01:10 |
| ← shinnya left | 01:10 |
| ← asedeno left | 01:10 |
| ← Mars` left | 01:11 |
| → asedeno joined | 01:11 |
| → the_cybersphinx joined | 01:11 |
| → Mars` joined | 01:11 |
|
fuzzybunny69y
| Hey guys I am working on this tutorial and I accidentally committed the completed file in one of my earlier commits. Is there anyway I can go back and change that file in the commit that I committed it in? | 01:12 |
| → chuckharmston joined | 01:12 |
|
frogonwheels_
| fuzzybunny69y: sure, use git rebase -i | 01:13 |
|
| fuzzybunny69y: there are a couple of ways you can do it, but if you can grok the 'edit' option on interactive rebase, that should do the trik. | 01:13 |
| → PaulCapestany joined | 01:14 |
| ← bartzy left | 01:14 |
| ← banisterfiend left | 01:15 |
|
fuzzybunny69y
| frogonwheels_: so if it was the first commit on my branch | 01:15 |
|
| would I type git rebase -i ae022f2 | 01:15 |
| zjason` → zjason | 01:15 |
| → jfoy joined | 01:16 |
| ← Mars` left | 01:16 |
| → banisterfiend joined | 01:16 |
| ← scroy left | 01:16 |
| ← v0n left | 01:18 |
| ← caspingus left | 01:19 |
| → normanrichards joined | 01:19 |
| → hyperair joined | 01:19 |
| → caspingus joined | 01:20 |
| → joshbetz joined | 01:20 |
| ← joshbetz left | 01:22 |
| → Swayz joined | 01:23 |
| → DrShoggoth joined | 01:23 |
| → dsdeiz joined | 01:23 |
| → rjhunter joined | 01:24 |
| ← caspingus left | 01:24 |
| → rchavik joined | 01:25 |
| → thierryp joined | 01:26 |
| ← richgilbank left | 01:26 |
| → ewnd9 joined | 01:27 |
| ← Stalkr^ left | 01:27 |
| → hashpuppy joined | 01:28 |
| → cesarkaw_ joined | 01:31 |
|
cesarkaw_
| Is it possible to add a pattern to the .git/info/exclude of a submodule? | 01:31 |
| ← thierryp left | 01:31 |
| ← NicolasTarzia left | 01:32 |
| → HenryG joined | 01:32 |
| → caspingus joined | 01:32 |
| ← ewnd9 left | 01:32 |
| → ZujkisNx joined | 01:33 |
|
cesarkaw_
| Ok, I'm an idiot. The .git file points to the correct .git dir to use | 01:33 |
| ← hahuang61 left | 01:35 |
| ← Algorithm left | 01:35 |
| → threesome joined | 01:35 |
| → lembacon joined | 01:37 |
| → bonhoeffer_ joined | 01:37 |
|
bonhoeffer_
| is there a way to prevent a single file from committing (i copied the wrong file over another) | 01:38 |
| bonhoeffer_ → bonhoffer | 01:38 |
| → mizu_no_oto joined | 01:38 |
| → minim joined | 01:38 |
| ← jfoy left | 01:40 |
|
bremner
| don't use commit -a? | 01:43 |
| ← aerlaut left | 01:43 |
| → v0n joined | 01:44 |
| ← rurufufuss left | 01:44 |
| ← discord left | 01:44 |
| → Sigma[Mtp] joined | 01:45 |
| ← Stygia left | 01:45 |
| → Vampire0_ joined | 01:47 |
| ← rchavik left | 01:49 |
| → mribeirodantas joined | 01:49 |
| ← Vampire0 left | 01:50 |
| ← harish left | 01:51 |
| → iamtakingiteasy joined | 01:53 |
| ← mizu_no_oto left | 01:54 |
| → m0ltar joined | 01:54 |
| → linelevel joined | 01:54 |
| ← mmlac-bv left | 01:54 |
| ← m0ltar left | 01:55 |
| → Gamecubic joined | 01:55 |
|
linelevel
| Hi, I have a repo that only me and one other person use. I had to do some rebasing on my local branch (I actually just edited commit message using `git rebase -i`), and when I `git push` it throws an error (and `git pull` corrupts my files so I have to `git reset --hard`). I tried to `git push --force`, but it still failed. | 01:56 |
|
| What am I doing wrong? | 01:56 |
| ← Malukenho left | 01:57 |
| → Wolfspyre joined | 01:57 |
|
linelevel
| When I use`--force`, the error I get is "remote: error: denying non-fast-forward refs/heads/master (you should pull first)". | 01:57 |
| ← threesome left | 01:57 |
| → rurufufuss joined | 01:58 |
|
ojacobson
| your local branch and the shared branch on the server repo have diverged (see !lol for a visualization) | 01:58 |
|
gitinfo
| A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 01:58 |
| → LuxuryMode joined | 01:58 |
| → Goplat joined | 01:58 |
|
ojacobson
| you will either need to rebase your branch onto the upstream branch, or merge them (which is what 'git pull' does by default; the "corruption" you're complaining about may well be conflict markers to show where the two sets of changes are incompatible). | 01:58 |
| → echo-area joined | 01:59 |
| ← normanrichards left | 01:59 |
| ← mribeirodantas left | 01:59 |
|
linelevel
| ojacobson: They do look like conflict markers, but it inserts them as text into my working tree. | 02:00 |
|
ojacobson
| That's the normal behaviour for merge conflicts, yes | 02:00 |
|
linelevel
| Okay, so how should I proceed? | 02:00 |
|
ojacobson
| You have a few options. | 02:00 |
| → neurodro1e joined | 02:01 |
|
ojacobson
| As I said, you can rebase your local work (assuming it's unpublished) and resolve the conflicts that arise; odds are good the conflicts will be finer grained, since rebase goes one commit at a time | 02:01 |
|
| You can merge the upstream changes (or 'git pull', same thing), and resolve the conflicts all at once. man git merge has some documentation on how to mark files as resolved, and !conflict probably has some other advice | 02:01 |
|
gitinfo
| [!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! | 02:01 |
|
| the git-merge manpage is available at http://jk.gs/git-merge.html | 02:01 |
|
ojacobson
| The resulting history is different in each case; if you don't care which one you get, use git-merge as it's history-preserving in some important ways | 02:02 |
| → daito joined | 02:02 |
| ← pigeon left | 02:02 |
| → zenpac joined | 02:02 |
|
linelevel
| `git pull` fails. The first run writes the conflict markers, and subsequent runs fail with "Pull is not possible because you have unmerged files." | 02:02 |
|
ojacobson
| If you want a sandbox to play around with merge conflicts in, have a look at https://github.com/ojacobson/conflicts :) | 02:02 |
|
zenpac
| If I revert to an older master (from devel), by doing "git checkout master" the newer devel files are still there too. | 02:03 |
| ← whunt left | 02:03 |
|
ojacobson
| Yep. After the first one, you need to either abort (with reset, or with git merge --abort) or complete the merge | 02:03 |
|
zenpac
| How do I clearn those out? | 02:03 |
|
ojacobson
| (by resolving conflicts and git-commiting the result) | 02:03 |
| → pigeon joined | 02:03 |
|
linelevel
| ojacobson: The "conflicts" seem to be my recent work. So, my origin (bare repo) is flat-- a single branch (master). All I did since my last sync with the origin is this: I made a few changes (which includes a few commits to my local branch), then I used `rebase -i` to reword some old commit messages. That's all I did. | 02:04 |
|
zenpac
| should I have rm -rf ? | 02:05 |
| ← joshh___ left | 02:06 |
| ← cmpera left | 02:06 |
|
zenpac
| git clean -f -d ???? | 02:06 |
|
ojacobson
| zenpac: tracked files will be cleaned up automatically. | 02:07 |
|
linelevel
| ojacobson: In particular, there's nothing in the origin branch that's not in my local branch-- so I really just want to completely overwrite the origin (bare repo) commit history with my local commit history. Put another way, my local `master` branch is exactly how I want the origin `master` branch to look. How can I achieve that? | 02:07 |
|
ojacobson
| linelevel: your wording suggests you think you did something wrong, or that the other guy did something wrong. | 02:07 |
| → tbmiller joined | 02:07 |
| ← LuxuryMode left | 02:08 |
|
ojacobson
| Neither of these is true. Conflicts are part of working on the same code at the same time. (SCM is not a replacement for communication; it's a tool for structuring communication.) | 02:08 |
| ← Sigma[Mtp] left | 02:08 |
| ← jkremser left | 02:08 |
|
ojacobson
| You, and the other collaborator, have made changes to the same lines. | 02:08 |
| → xjiujiu joined | 02:08 |
|
ojacobson
| It's up to you two to figure our how to combine your changes into a sensible whole -- that's what conflict resolution is *for*. | 02:08 |
|
linelevel
| ojacobson: No, the other person hasn't made any commits to the origin since the last time I cloned it. I checked. | 02:08 |
|
| This problem started when I changed commit messages with `rebase -i` locally. | 02:09 |
|
ojacobson
| Then your changes are based exactly on origin/master, and there are no conflicts. | 02:09 |
|
| Do you have any other untrue statements you'd like to try? | 02:09 |
| → natechan joined | 02:09 |
|
ojacobson
| Have a look a 'git fetch --all --prune' followed by !lol and you will see the "other" commits | 02:09 |
|
gitinfo
| A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 02:09 |
| ← eletuchy_ left | 02:09 |
|
linelevel
| ojacobson: Heh, I just checked though. :P So I don't know what to tell you. I cloned the origin in a new temp directory, looked at `git log` and all of the past 10 commits are from me. | 02:09 |
|
ojacobson
| Yours will be the chain ending with the one marked "master" (probably); the upstream ones you're conflicting with will be the ones marked 'origin/master' (probably) | 02:09 |
|
| it's entirely possible you're conflicting with yoursel | 02:10 |
| → eletuchy joined | 02:10 |
| → nutron joined | 02:11 |
|
linelevel
| ojacobson: Okay, bare with me, I'm trying to understand. You keep saying I need to "resolve the conflict" but I'm not sure what that entails. My ideal resolution would be for origin/master to look exactly like my local master does right now -- same exact commit log. | 02:11 |
| → AWinterman joined | 02:11 |
| → LuxuryMode joined | 02:12 |
|
zenpac
| ojacobson, they were not, or I have made a big mistake. | 02:12 |
| ← nutron left | 02:13 |
| → mribeirodantas joined | 02:14 |
| → pr0ton joined | 02:14 |
| ← j416 left | 02:14 |
| → j416 joined | 02:15 |
| → nutron joined | 02:15 |
| ← boblee left | 02:15 |
| → boblee joined | 02:16 |
| ← maestrojed left | 02:16 |
| ← salamanderrake left | 02:16 |
| → petey joined | 02:17 |
|
linelevel
| ojacobson: I ran the !lol command you showed me, and I see, starting from the bottom, all the commits in origin/master, followed by all the commits in my local master. Most of them are the same just with an edited commit message, but I have a few new commits at the top of my local master. | 02:19 |
|
gitinfo
| ojacobson: A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 02:19 |
| → salamanderrake joined | 02:19 |
|
ojacobson
| linelevel: can you paste it somewhere? | 02:19 |
|
linelevel
| ojacobson: sure. | 02:19 |
| → joshh__ joined | 02:20 |
| ← MoSal left | 02:21 |
| → Mars` joined | 02:22 |
| ← caspingus left | 02:22 |
| → caspingus joined | 02:22 |
| → Algorithm joined | 02:23 |
|
linelevel
| ojacobson: http://pastebin.com/g5NaqS5E | 02:23 |
| ← bonhoffer left | 02:24 |
| ← LuxuryMode left | 02:24 |
|
ojacobson
| Okay, can you !repro the commands that are failing, and how they fail? | 02:24 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting. | 02:24 |
|
linelevel
| As you can see, the bottom 5 commits are the same as the next 5 commits, the only differences are minor changes to the commit messages. | 02:24 |
| ← breck7_ left | 02:24 |
| → johnnyfuchs joined | 02:24 |
|
linelevel
| ojacobson: Okay, hold on. | 02:24 |
| → caspingu_ joined | 02:25 |
| ← pr0ton left | 02:25 |
| → breck7 joined | 02:25 |
| ← caspingus left | 02:25 |
| ← zenpac left | 02:25 |
| → Pyrogerg joined | 02:26 |
| ← Mars` left | 02:26 |
| ← MavKen left | 02:26 |
| ← cesarkaw_ left | 02:26 |
| ← neurodro1e left | 02:26 |
| → pr0ton joined | 02:27 |
| ← johnnyfuchs left | 02:27 |
| → thierryp joined | 02:27 |
| → LuxuryMode joined | 02:29 |
| ← breck7 left | 02:30 |
|
linelevel
| ojacobson: Here you go. I changed the server name and project name (mostly for readability, since they're long), and added some blank lines between terminal commands -- everything else is exactly as output: http://pastebin.com/iRAKA4x2 | 02:30 |
| ← thierryp left | 02:31 |
| ← BSaboia left | 02:32 |
| ← xjiujiu left | 02:32 |
|
ojacobson
| Is there a bunch of output missing after 'git pull'? | 02:32 |
|
linelevel
| ojacobson: Nope, I pasted everything. | 02:32 |
|
ojacobson
| Huh. | 02:32 |
|
| What does 'git branch -vv' tell you about master? (fine to paste here) | 02:33 |
| ← SoftwareMechanic left | 02:33 |
|
linelevel
| * master 2640e36 [origin/master: ahead 8, behind 5] Compile stylesheets for production. | 02:33 |
| ← fuzzybunny69y left | 02:33 |
| → dsdeiz_ joined | 02:33 |
| ← ozette left | 02:33 |
| MrDHat → MrDHat|offline | 02:33 |
| ← dsdeiz left | 02:34 |
|
ojacobson
| That's ... inconsistent with the graphlog output you pasted | 02:34 |
|
| has the graphlog output changed? 'git pull' runs 'git fetch', which can download new commits + branches | 02:34 |
|
linelevel
| The graphlog output was before my last `reset --hard` (which you'll see at the top of my last pastebin) | 02:34 |
|
| Let me do it again now. | 02:34 |
| → mribeiro1antas joined | 02:35 |
| ← valgrind left | 02:36 |
| ← mribeirodantas left | 02:36 |
|
linelevel
| ojacobson: The graphlog is exactly the same as what I pastebin'd earlier. | 02:36 |
|
ojacobson
| I'm clearly missing something. How much graph theory can you hold in your head? | 02:37 |
|
offby1
| thiiiis much (holds thumb and finger pretty close together) | 02:37 |
|
ojacobson
| I need to get to bed, but I can tell you my operating theory before I do, if it'd help you diagnose this | 02:37 |
|
linelevel
| Sure. | 02:37 |
|
| I was a math major, so I know some graph theory.. | 02:37 |
|
ojacobson
| So the ahead 8, behind 5 counts refer to two ranges | 02:37 |
| → hahuang61 joined | 02:37 |
|
ojacobson
| origin/master and master identify two nodes in a directed acyclic graph formed by commits | 02:38 |
| → xjiujiu joined | 02:38 |
|
linelevel
| Okay. | 02:38 |
|
ojacobson
| the "ahead 8" count should be the number of nodes reachable from the commit identified by 'master', minus the number of nodes reachable from the commit identified by 'origin/master' | 02:38 |
|
| that's consistent with your graphlog | 02:38 |
|
| (lines 1-8 are all only reachable from 'master') | 02:38 |
|
| the "behind 5" count is the number of nodes reachable from the commit identified by 'origin/origi... oh | 02:39 |
|
| I see the problem | 02:39 |
| → gzg joined | 02:39 |
|
linelevel
| so, in this graph, edges point toward their parent/previous commits? | 02:39 |
|
ojacobson
| yep | 02:39 |
| → jfoy joined | 02:39 |
|
ojacobson
| !cs !gcs | 02:39 |
|
gitinfo
| "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup | 02:39 |
|
| [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs/ | 02:39 |
|
linelevel
| Awesome. :) | 02:39 |
|
| I've read the latter. | 02:39 |
|
ojacobson
| The graphlog output is misleading me because normally vertical adjacency means there's an edge from the upper to the lower node | 02:39 |
|
| but in your output, there's no edge from line 8 (4203570) to line 9 (ed4be05) | 02:40 |
|
| you have two completely disjoint histories, probably because of the way you ran rebas | 02:40 |
|
| rebase | 02:40 |
| → normanrichards joined | 02:40 |
|
ojacobson
| IF (and that's a big if) I'm right, you can get to a sensible state "easily" by transplanting the last three commits from your history to the "official" history as a new branch, replacing your local 'master' branch | 02:41 |
| ← mobileblue left | 02:41 |
|
linelevel
| I see. (I just followed a stackoverflow answer for how to edit old commit messages.) | 02:41 |
|
ojacobson
| (I'm assuming that 54d0825 and ed4be05 are identical bar rebase damage, here) | 02:41 |
|
linelevel
| That's correct. | 02:42 |
|
ojacobson
| OKAY. You're on 'master' (2640e36) right now? 'git rev-parse HEAD' will confirm. | 02:42 |
|
linelevel
| Confirmed. | 02:42 |
| ← glebihan_ left | 02:43 |
| ← yhager left | 02:43 |
|
ojacobson
| okay. Are you comfortable with the commit message of 9603904 being forevermore "wrong"? Mistakes are okay, IMO, but it's a project conventions thing, not a thing IRC can answer for you. | 02:43 |
|
| I'm guessing that's the one you were trying to edit... :) | 02:43 |
| → mobileblue joined | 02:43 |
|
ojacobson
| eh, you know what | 02:43 |
|
linelevel
| I mean I'd rather use the newer commit messages obviously, but I'll take what I can get at this point. :) | 02:44 |
|
ojacobson
| I can give you what you actually asked for, if you're willing to put up with a lecture first and be responsible for fixing the other guy's clone after | 02:44 |
|
linelevel
| Deal. | 02:44 |
|
ojacobson
| Lecture: !rewrite | 02:44 |
|
gitinfo
| [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum | 02:44 |
| → mizu_no_oto joined | 02:44 |
|
ojacobson
| You've configured origin (the bare repo you're sharing) to reject force pushes. | 02:44 |
|
| which is a great safety net against accidental changes of the above kind | 02:45 |
|
| here, you're trying to do it intentionally | 02:45 |
| ← ZujkisNx left | 02:45 |
| → dsdeiz joined | 02:45 |
|
ojacobson
| if you're willing to help the other guy graft his local history onto the edited history (there are directions in man git-rebase, under "Recovering from upstream rebase"), then you can override the restriction | 02:45 |
|
gitinfo
| the git-rebase manpage is available at http://jk.gs/git-rebase.html | 02:45 |
| ← dsdeiz_ left | 02:45 |
|
ojacobson
| provided you can reconfigure the bare repo briefly | 02:45 |
| ← xjiujiu left | 02:46 |
| → fuzzybunny69y joined | 02:46 |
|
ojacobson
| Specifically, you'll need to configure it to allow force pushes: *in that repo*, 'git config --unset receive.denyNonFastForwards' will turn off the restriction, if it's enforced by git-config | 02:46 |
|
linelevel
| Sure. My guess is the other [girl]'s working tree hasn't changed recently, so she can probably just reclone and be done with it -- but if I'm wrong I will use the resource you gave me to help her with it. | 02:47 |
|
ojacobson
| Then 'git push --force origin master' to overwrite the repo's master branch with your fixed 'master' branch | 02:47 |
|
linelevel
| Okay, doing so now. | 02:47 |
|
| ojacobson updates pronouns. | 02:47 |
|
ojacobson
| Then for gods' sakes set the config back with 'git config receive.denyNonFastForwards true' in the shared repo. | 02:47 |
|
| Lest someone edit history accidentally (as you've seen, git doesn't do a lot to stop you from doing that) and overwrite your changes :) | 02:47 |
| ← tbmiller left | 02:48 |
| ← nicknisi left | 02:48 |
| → tbmiller joined | 02:48 |
|
linelevel
| Will the less explicit `git push --force` do the same thing (the `origin` and `master` are implied if not specified, right?) | 02:49 |
|
| ?* | 02:49 |
|
ojacobson
| Given the config you're in, yes, but only by accident | 02:49 |
|
| git 1.x's default mode is to match your local branches to the remote repo's branches by *name*, and push all matching pairs | 02:49 |
| ← hashpuppy left | 02:50 |
|
ojacobson
| you only have one local branch (master) and it matches the only remote branch (master). | 02:50 |
|
| (That's what that warning on unqualified 'git push' is about, actually.) | 02:50 |
|
| I find 'simple' mode easier, where unqualified 'git push' will (a) only push the current local branch, (b) only to a remote branch of the same name, and (c) only if the local branch tracks the remote branch | 02:50 |
|
| which stops me from eg. accidentally pushing a feature branch over origin/master, while making it easy to push merges on master without pushing other branches too | 02:51 |
|
| 'simple' will be the default in git 2.x | 02:51 |
|
linelevel
| Ah, I see. I was planning to read more about those options. | 02:51 |
|
ojacobson
| (yes, I recognize the irony behind "simple" mode having three steps' worth of conditions. Welcome to git.) | 02:51 |
| → xjiujiu_ joined | 02:51 |
|
EugeneKay
| !cuz | 02:51 |
|
gitinfo
| [!why] Why? Because screw you, that's why. | 02:51 |
| ← InvidFlower left | 02:52 |
|
linelevel
| ojacobson: After doing that, is it safe to `git reset --hard HEAD` again (locally) to get rid of those conflict markers in my working tree? | 02:52 |
| ← tbmiller left | 02:53 |
|
linelevel
| and then `git pull`? | 02:53 |
| ← pandeiro left | 02:53 |
|
ojacobson
| you should probably get out of the 'incomplete merge' state, first | 02:53 |
|
| I would generally use 'git merge --abort', not 'git reset --hard', though | 02:53 |
|
| expressing intent means git will warn you if you're not in the state you expect | 02:53 |
| ← pr0ton left | 02:53 |
|
ojacobson
| git reset will blithely fuck you up | 02:53 |
|
| ("hey, you asked for it") | 02:53 |
| mribeiro1antas → mribeirodantas | 02:54 |
| ← mribeirodantas left | 02:54 |
| → mribeirodantas joined | 02:54 |
|
fuzzybunny69y
| hey guys | 02:54 |
|
linelevel
| Okay, everything looks good now! | 02:54 |
|
fuzzybunny69y
| I am a trying to edit a file that is in the very first commit on my branch but I am not sure how to do it would someone be able to guide me through it | 02:55 |
|
| I think I have to type git rebase -i --root | 02:55 |
| ← xjiujiu_ left | 02:56 |
| → glebihan_ joined | 02:56 |
|
linelevel
| ojacobson: Thank you! And I know you need to go to sleep, but one thing still confuses me: At what point did my local branch get rid of those first 5 "old" commits? They don't show up in a graphlog anymore, and I'm just wondering which step caused them to go away. | 02:56 |
|
ojacobson
| linelevel: since you seem reasonably maths-friendly, spend some time with git-show-ref, the graphlog stanza I showed you, 'git fetch', and 'git push' in some scratch repos | 02:56 |
| ← raonyguimaraes left | 02:56 |
|
ojacobson
| git's not complicated but it pushes a lot of complexity off to the user, and a basic grounding in its theory will help you in the long term | 02:56 |
|
linelevel
| I'm assuming it wasn't the `push`, so was it the `merge --abort`? | 02:56 |
|
ojacobson
| linelevel: the rebase did | 02:57 |
|
| you created a whole new history, completely independent of the history of origin/master | 02:57 |
|
| I assume you ran 'git rebase --root ...options...' somewhere | 02:57 |
|
| (--root meaning "include this branch's root commits", which are the ones with no parents) | 02:57 |
| → xjiujiu joined | 02:57 |
|
linelevel
| ojacobson: I did, earlier, but it was still showing up in my graphlog until I just followed your instructions (the `push --force`, then the `merge --abort`). | 02:58 |
|
fuzzybunny69y
| ojacobson that is all I have so far | 02:58 |
|
linelevel
| ojacobson: The last time I rebased was before I entered this channel. | 02:58 |
|
ojacobson
| Anyways, that re-created all of the commits in the history of 'master' | 02:58 |
| ← jfoy left | 02:58 |
|
ojacobson
| for any commits you decided to touch, that will have changed their identities and the identities of all descendents | 02:58 |
|
| the "behind 5" commits were exactly the original branch, before the rebase | 02:59 |
|
| the "ahead 8" commits were exactly the re-created 5 commits from editing the first 5, plus your three local commits | 02:59 |
| ← mdiers left | 03:00 |
| → harish joined | 03:00 |
|
linelevel
| ojacobson: Right, I see that. For what it's worth, this was the stackoverflow post that seems to have caused this problenm for me: http://stackoverflow.com/questions/179123/how-do-i-edit-an-incorrect-commit-message-in-git/180085#180085 | 03:00 |
| → DonRichie joined | 03:01 |
|
ojacobson
| That's my problem with SO | 03:01 |
|
| its karma mechanic encourages "useful" over "thorough" | 03:02 |
|
| that is in fact how you rewrite old commit messages | 03:02 |
|
| it even mentions not wanting to touch published commits, but it doesn't do much to tell you how to identify them | 03:02 |
|
| or why it sucks | 03:02 |
|
linelevel
| ojacobson: Oh, and I then used `git -i --root` (no other arguments) to edit the initial commit message. (I got that from a different SO question.) Someone said that on git 1.7.12+, that would suffice. That may have been what caused the problem. | 03:02 |
|
ojacobson
| heh | 03:03 |
|
| and since that changes the identity of the root commit, and since commit identity is partially dependent on the identities of parent commits, that changes the identities of *every* commit | 03:03 |
| ← mizu_no_oto left | 03:03 |
| → mdiers joined | 03:03 |
|
ojacobson
| which is how you ended up with a completely duplicated copy of the branch, locally | 03:03 |
|
linelevel
| ojacobson: http://stackoverflow.com/a/17643063/575311 | 03:03 |
|
| For future reference, would this answer be a better way to achieve the same thing? http://stackoverflow.com/a/2119656/575311 | 03:05 |
|
ojacobson
| Given that the commits are already part of the "shared" history, the better approach is to leave them alone, wonky commit messages and all | 03:05 |
|
| and do better in the future | 03:05 |
| → jason237 joined | 03:06 |
|
ojacobson
| The approach in that post is equivalent to 'git rebase -i --root' with edits on the root commit, really | 03:06 |
|
| only more complicated :) | 03:06 |
| → juvenal joined | 03:06 |
| ← joki left | 03:06 |
| ← dreiss_ left | 03:06 |
| → ej joined | 03:06 |
|
ojacobson
| git's history-sharing bits don't actually care how you author the history graph you're trying to share; they operate on a graph-theoretic level, not a what commands did I run level | 03:07 |
|
linelevel
| Fair enough, heh. But, say that there was no public repo yet. Is there a safe way (i.e., without duplicating the entire commit tree ) to edit an initial commit message? | 03:07 |
|
ojacobson
| It's safe, but needlessly complicated | 03:07 |
|
| if it's a purely local history, 'git rebase -i --root' is equivalent and generally easier to use | 03:07 |
| ← banisterfiend left | 03:07 |
|
ojacobson
| Rebase only duplicated history because there was a remote that had the original history. | 03:08 |
| ← Gamecubic left | 03:08 |
| ← normanrichards left | 03:08 |
|
ojacobson
| You could just as easily have removed the remote repo (and possibly even deleted and re-created it) to solve the duplication. I picked a somewhat less destructive method, because I try not to lead you into destroying config/hooks/etc | 03:08 |
| → normanrichards joined | 03:09 |
|
linelevel
| Oh, got it. I think that just clicked for me. I thought the remote nodes were duplicated locally as well, but now I'm thinking it's the case that if nodes (vertices on the graph) become disconnected from any branch label (or HEAD), then they effectively cease to exist and won't show up in the graphlog. | 03:09 |
|
| Is that right or am I still confused? | 03:09 |
|
ojacobson
| p much | 03:10 |
|
| git operates by keeping labels for objects (usually, commits or tag objects) in the 'refs' system, which is where tags, branches, remote-tracking branches, and a few other things live | 03:10 |
| → MavKen joined | 03:10 |
|
ojacobson
| and then using graph-following to find history | 03:10 |
| → joki joined | 03:10 |
|
ojacobson
| eg. a branch is "just" a label for the most recent commit on that branch; there's a graph of parent commits, which are included implicitly | 03:11 |
| → bwreilly joined | 03:11 |
| ← rjhunter left | 03:11 |
|
ojacobson
| when you rebased refs/heads/master (the 'master' branch) the commits reachable from refs/remotes/origin/master (the 'origin/master' remote branch) are unaffected, but new commits are generated and refs/heads/master is adjusted to point to them | 03:11 |
| ← alvaro_o left | 03:12 |
|
ojacobson
| *generally* git-rebase is used to re-create commits that are already unique to a single branch, so this isn't an issue | 03:12 |
| → maestrojed joined | 03:12 |
|
linelevel
| So when objects become disconnected (i.e. there's no path in the DAG from any label to that object), then they'll stop showing up in logs and (I'm guessing) eventually be picked up by some sort of garbase collection? | 03:12 |
|
ojacobson
| (the branch is adjusted to point to the new commits, the old commits become unreferenced, and life goes on) | 03:12 |
|
| yep | 03:13 |
|
linelevel
| garbage* | 03:13 |
|
| Okay. Cool. :) | 03:13 |
| ← mribeirodantas left | 03:13 |
|
ojacobson
| git runs 'git gc --auto' periodically without your help, and you can run it yourself if you feel like it | 03:13 |
| → Sigma[Mtp] joined | 03:13 |
|
ojacobson
| and on that note | 03:14 |
| ← ojacobson left | 03:14 |
| → v0latil3 joined | 03:15 |
|
v0latil3
| h | 03:15 |
| ← ej left | 03:15 |
| → ej joined | 03:16 |
| ← petey left | 03:17 |
| → m0ltar joined | 03:18 |
| → mizu_no_oto joined | 03:18 |
|
v0latil3
| how can i use git with eclipse? do i just start the repo in my eclipse workspace? | 03:18 |
| → introom joined | 03:20 |
| ← ej left | 03:21 |
| ← introom left | 03:21 |
| ← fuzzybunny69y left | 03:21 |
| → Guest43791 joined | 03:21 |
| ← ianmcorvidae left | 03:23 |
| → bskywalker4 joined | 03:23 |
| → ianmcorvidae joined | 03:23 |
| ← g0bl1n left | 03:24 |
| → schemanic joined | 03:24 |
|
offby1
| if I were you I'd just use it on the command line -- I don't trust IDEs that attempt to integrate with git, and I certainly don't trust Eclipse | 03:25 |
|
| ☁ | 03:25 |
| Guest43791 → diegoviola | 03:25 |
| → therealGent joined | 03:26 |
|
v0latil3
| Yes. | 03:27 |
| ← Swayz left | 03:27 |
|
v0latil3
| but how can i have a git repository, but use eclipse as an editor? | 03:27 |
| → thierryp joined | 03:27 |
| ← mizu_no_oto left | 03:27 |
| → Sjors joined | 03:27 |
|
thiago
| just do it | 03:28 |
| ← nardev left | 03:28 |
| ← caspingu_ left | 03:28 |
| → mizu_no_oto joined | 03:29 |
|
fairuz
| v0latil3: they are not related. You can use any editor that you like. | 03:29 |
| ← SamB left | 03:31 |
| → simesy joined | 03:32 |
| ← thierryp left | 03:32 |
| → r0bby_ joined | 03:33 |
| → btree joined | 03:35 |
| → nardev joined | 03:35 |
| → breck7 joined | 03:35 |
| → Swayz joined | 03:37 |
|
v0latil3
| Okay thanks | 03:38 |
| ← revyd left | 03:38 |
| → revyd joined | 03:39 |
| ← breck7 left | 03:40 |
| → sqlnoob joined | 03:41 |
| → preflex_ joined | 03:43 |
| ← revyd left | 03:43 |
| ← preflex left | 03:43 |
| preflex_ → preflex | 03:44 |
| ← the_cybersphinx left | 03:44 |
| ← Sigma[Mtp] left | 03:45 |
| → rchavik_ joined | 03:45 |
| → nafg joined | 03:46 |
| → yhager joined | 03:46 |
| → emlun joined | 03:47 |
| → Sigma[Mtp] joined | 03:48 |
| → fuzzybunny69y joined | 03:48 |
| → iamjarvo joined | 03:48 |
| → lng joined | 03:48 |
| ← whoami left | 03:48 |
|
emlun
| so I found the --depth flag on git fetch. Now, does git have a CLI front-end to fetch only a given tree object (and any child trees/blobs)? | 03:48 |
|
| (that is, --depth lets me fetch only a single commit if I want. but what if I only want a specific subdirectory of the repo?) | 03:49 |
| → whoami joined | 03:51 |
| ← tirengarfio left | 03:52 |
| → jaseemabid joined | 03:53 |
| ← echo-area left | 03:53 |
| ← MavKen left | 03:53 |
|
fuzzybunny69y
| hey guys | 03:53 |
| ← AWinterman left | 03:53 |
|
fuzzybunny69y
| I just made a new branch and accidentally did a git rebase --root | 03:54 |
| rchavik_ → rchavik | 03:54 |
|
fuzzybunny69y
| and I a just wondering what it did | 03:54 |
| ← dhruvasagar left | 03:54 |
| ← Roots47 left | 03:54 |
| ← harish left | 03:55 |
| → relipse joined | 03:55 |
| → rjhunter joined | 03:55 |
|
relipse
| why does "git status" take over 2 minutes? | 03:55 |
|
| my repo isn't that big i dont think | 03:55 |
|
| maybe a lot of directories? | 03:55 |
| ← joshsmith left | 03:56 |
| ← kukks left | 03:57 |
| ← natechan left | 03:58 |
|
emlun
| fuzzybunny69y: what about it? :) | 04:00 |
| → dhruvasagar joined | 04:00 |
|
fuzzybunny69y
| well it did some stuff but I don't know what it id | 04:01 |
|
| did | 04:01 |
|
emlun
| relipse: uh, that doesn't sound right... how big is your repo and how fast is your computer? | 04:01 |
|
fuzzybunny69y
| I meant to do a git rebase -i | 04:01 |
|
relipse
| emlun, its on a shared hosting, probably over 100 other sites on it, and linux | 04:01 |
|
| it only happens when i make changes to like a bunch of files > 10 | 04:01 |
|
thiago
| so you have no idea how busy the machine is? | 04:01 |
| ← Norrin left | 04:02 |
|
relipse
| hmm not exactly no | 04:02 |
|
| how do i check? | 04:02 |
|
emlun
| fuzzybunny69y: unless you've kept working a lot since then you should be able to see what | 04:02 |
|
thiago
| is that a virtual machine you're logged into? | 04:02 |
|
emlun
| ... has happened by using git reflog | 04:02 |
|
relipse
| no its shared hosting | 04:02 |
| → joshbetz joined | 04:02 |
|
relipse
| so we each have our own home dir | 04:02 |
|
thiago
| both things can happen | 04:02 |
|
fuzzybunny69y
| emlun well the reabse did something but I am not sure what it is | 04:02 |
|
| did | 04:02 |
|
thiago
| run top and see if the machine is busy | 04:02 |
|
bskywalker4
| shared hosting sometimes runs really slow, we used to run on a generic shared hosting site and randomly a simple script execution would go from 10 seconds to taking 5 minutes to run | 04:03 |
|
fuzzybunny69y
| my log seems to be the same | 04:03 |
|
emlun
| fuzzybunny69y: rebase --root is allowed to create a new "root" commit (that is, one with no parents) | 04:03 |
|
fuzzybunny69y
| oh well it didn't even let me do anything | 04:04 |
| ← japaric left | 04:04 |
|
emlun
| fuzzybunny69y: if you do a git log --graph --all you should be able to tell if it did or not | 04:04 |
|
| or even git log --graph --all --oneline | 04:04 |
| ← mizu_no_oto left | 04:04 |
| → cads joined | 04:04 |
|
emlun
| fuzzybunny69y: if your command was only "git rebase --root" then it may very well have done exactly nothing :) | 04:04 |
|
fuzzybunny69y
| oh yeah that is what it was | 04:05 |
|
| it did something though | 04:05 |
|
| because it said it was doing some stuff | 04:05 |
|
| but my history looks the same | 04:05 |
| → Norrin joined | 04:05 |
| → ej joined | 04:05 |
|
fuzzybunny69y
| I have been trying to modify a file in my first commit | 04:05 |
|
emlun
| ah | 04:05 |
|
fuzzybunny69y
| but I am not sure what I have to do with git rebase -i | 04:05 |
|
emlun
| if you've committed the changes you want to make, then you can do git rebase -i --root | 04:06 |
| → angela joined | 04:06 |
|
emlun
| and then rearrange the commits in the order you want, and/or squash them | 04:06 |
|
angela
| hi, quick question, I have a git rebase in progress | 04:06 |
| → tirengarfio joined | 04:06 |
|
angela
| a file has a conflict I fixed it | 04:06 |
| ← bwreilly left | 04:06 |
|
angela
| I added it using git add FILE | 04:06 |
| → Roots47 joined | 04:06 |
| ← rchavik left | 04:06 |
|
angela
| but when I run git rebase --continue | 04:07 |
|
fuzzybunny69y
| emlun it brought up a vim window | 04:07 |
| ← Roots47 left | 04:07 |
|
angela
| I get No changes - did you forget to use 'git add'? | 04:07 |
|
emlun
| fuzzybunny69y: vim :D | 04:07 |
|
fuzzybunny69y
| so do I just choose the commit I want to edit | 04:07 |
|
emlun
| angela: git status | 04:07 |
|
offby1
| angela: you can do "git rebase --skip" | 04:07 |
|
angela
| git status shows '# rebase in progress; onto 00d24a4' | 04:07 |
|
fuzzybunny69y
| and replace pick with edit | 04:07 |
|
emlun
| fuzzybunny69y: have you used vim before? | 04:07 |
|
offby1
| this happens when your fix matches one of the exiting versions, I think | 04:07 |
|
fuzzybunny69y
| emlun yeah I love it | 04:07 |
|
angela
| offby1: but wouldn't that be not applying the changes? | 04:07 |
|
offby1
| angela: I think they already have been or will be. Try It And See™. | 04:08 |
| → blindingdawn joined | 04:08 |
|
emlun
| fuzzybunny69y: :D yeah, just rearrange them in the order you want. replacing "pick" with "edit" will make rebase pause and let you monkey around with the repo before continuing | 04:08 |
| → Roots47 joined | 04:09 |
|
fuzzybunny69y
| emlun ok I made the change I want to make | 04:09 |
| → japaric joined | 04:09 |
|
fuzzybunny69y
| now I am not sure what to do | 04:09 |
|
| should I do a amend or a continue | 04:09 |
|
emlun
| fuzzybunny69y: just commit it in any way you like | 04:09 |
|
relipse
| thiago: http://pastebin.com/HXP656AP | 04:10 |
|
emlun
| then git rebase --continue will continue where it left off and base the remaining changes on whatever HEAD you're currently at | 04:10 |
|
fuzzybunny69y
| hmmm | 04:10 |
|
| well I don't want the changes to show up in the latest commit | 04:10 |
|
emlun
| then an amend might be suitable | 04:10 |
|
fuzzybunny69y
| I want it to be as if they happened in the first commit | 04:10 |
|
emlun
| then again | 04:10 |
| ← lng left | 04:11 |
| ← diegoviola left | 04:11 |
|
emlun
| you could always just do it in its own commit, then git rebase --continue, then after that rebase again and squash the first two commits into one | 04:11 |
| ← ianmcorvidae left | 04:11 |
|
thiago
| relipse: high load average, 30% I/O, | 04:11 |
|
| relipse: that's quite high | 04:11 |
|
emlun
| pick whichever you fancy :) | 04:11 |
| ← iamjarvo left | 04:11 |
| ← maestrojed left | 04:11 |
|
relipse
| well then i guess i thank God he even let me install git on it | 04:11 |
|
emlun
| fuzzybunny69y: oh, and if you | 04:12 |
|
| gah | 04:12 |
|
relipse
| thiago: any suggestions from here? | 04:12 |
| → iamjarvo joined | 04:12 |
|
thiago
| relipse: yeah. Use a machine with lower use. | 04:13 |
|
emlun
| fuzzybunny69y: oh, and the commit you create now will immediately follow the current HEAD, which would in this case be your first commit. just as new commits always do. | 04:13 |
|
| unless you commit --amend | 04:13 |
|
| then the new commit will replace your first commit :) | 04:13 |
|
relipse
| thiago: what? | 04:13 |
|
fuzzybunny69y
| hmmm | 04:13 |
|
thiago
| relipse: use a different server | 04:13 |
|
fuzzybunny69y
| emlun so should I git add my change first | 04:13 |
|
relipse
| thiago, well ideallyy i shouldn't be developing on the same machine as my web server | 04:14 |
|
emlun
| fuzzybunny69y: yeah, otherwise you won't be able to commit it :P | 04:14 |
|
fuzzybunny69y
| or can I just do a git commit --amend or a git continue | 04:14 |
| ← m0viefreak left | 04:14 |
|
relipse
| ideally i should develop on my own machine and mimic the development and then rsync or something | 04:14 |
|
fuzzybunny69y
| ok I added it | 04:14 |
|
| so if I do a git commit --ammend | 04:14 |
| → ianmcorvidae joined | 04:15 |
|
relipse
| you can change the commit message Fullma | 04:15 |
|
| fuzzybunny69y, | 04:15 |
|
fuzzybunny69y
| it should replace my root commit with the change i just made | 04:15 |
|
| ? | 04:15 |
|
emlun
| fuzzybunny69y: there's no magic involved here - when git rebase hits an "edit" entry in the todo list it applies that commit, then exits and puts you back in your plain old shell | 04:15 |
|
| fuzzybunny69y: yeah | 04:15 |
|
fuzzybunny69y
| hmmm | 04:15 |
| ← minim left | 04:15 |
|
fuzzybunny69y
| so what would it do if I did a git rebase --continue | 04:15 |
|
emlun
| then you would start a new rebase command with the todo list prepopulated with what was left to do when it exited last time | 04:16 |
|
fuzzybunny69y
| like if I git added this file | 04:16 |
|
| but then just did git rebase --continue | 04:16 |
| → akiress joined | 04:17 |
| ← iamjarvo left | 04:17 |
|
emlun
| fuzzybunny69y: I'm actually not sure exactly what would happen. Perhaps your current index changes would be commited in their own commit, perhaps the first item in the rebase todo list would be applied before commiting | 04:17 |
|
| but at any rate | 04:17 |
|
| it would replay the changes saved in the rebase todo list on whatever state your repo is currently in | 04:18 |
|
fuzzybunny69y
| hmm ill try doing a git commit --amend | 04:18 |
| → germanoak joined | 04:18 |
|
emlun
| fuzzybunny69y: do you know how git models a repo? | 04:18 |
|
fuzzybunny69y
| no | 04:19 |
|
emlun
| the Directed Acyclic Graphs and stuff | 04:19 |
|
| ok | 04:19 |
|
fuzzybunny69y
| hmmm | 04:19 |
|
| this is why git always confuses me | 04:19 |
| ← ivan\ left | 04:19 |
|
emlun
| git may seem very complex at first, but it's actually exceedingly simple once you grasp how it works on a lower level | 04:19 |
|
fuzzybunny69y
| it brought up a window with the commit message of my latest commit | 04:19 |
|
| why would it be asking me to change the commit message of my latest commit when I want to change my root commit | 04:20 |
| → hahuang65 joined | 04:20 |
| ← akiress left | 04:20 |
|
emlun
| huh? | 04:20 |
| ← totte left | 04:20 |
| → SoftwareMechanic joined | 04:21 |
|
emlun
| that doesn't sound right | 04:21 |
|
fuzzybunny69y
| yeah | 04:21 |
|
| git is so confusing | 04:21 |
| → MoSal joined | 04:21 |
|
emlun
| try emptying the buffer (gg 100dd usually does the trick for me :P) | 04:21 |
|
fuzzybunny69y
| ecspecially rebasing | 04:21 |
|
emlun
| and then doing a git log | 04:21 |
|
fuzzybunny69y
| it never does what I think it is going to do | 04:21 |
|
| yeah I just aborted it | 04:21 |
|
| and the whole rebase | 04:22 |
| → kpreid joined | 04:22 |
| ← hahuang61 left | 04:22 |
|
fuzzybunny69y
| it seems like no matter what option I choose it always tries to edit my latest commit | 04:22 |
|
| not my root one | 04:22 |
| ← RitchieFlick left | 04:23 |
| → irqq joined | 04:23 |
| → Guest3820 joined | 04:23 |
|
emlun
| hm | 04:23 |
| ← Sigma[Mtp] left | 04:23 |
|
emlun
| are you in a REBASING state now? | 04:24 |
| → maestrojed joined | 04:24 |
| → rchavik joined | 04:24 |
|
fuzzybunny69y
| no I just aborted it | 04:24 |
|
emlun
| ok | 04:24 |
|
fuzzybunny69y
| I have no idea what it was doing | 04:24 |
| → akiress joined | 04:24 |
|
emlun
| what was the rebase command you used to start it all? | 04:24 |
| → ivan\ joined | 04:25 |
| → axl_ joined | 04:25 |
| emmajane → [emmajane] | 04:25 |
|
fuzzybunny69y
| ok | 04:25 |
| ← maestrojed left | 04:25 |
| → subhojit777 joined | 04:25 |
|
fuzzybunny69y
| so I just checked out my master branch | 04:25 |
|
| and erased my test branch | 04:25 |
|
| and now I am going to create another test branch | 04:25 |
| ← germanoak left | 04:25 |
|
fuzzybunny69y
| and check that out | 04:25 |
| ← johnf left | 04:25 |
|
fuzzybunny69y
| and then I will run git rebase -i --root | 04:25 |
|
emlun
| mm | 04:26 |
|
fuzzybunny69y
| and it brings up vim with a list of commits I can edit | 04:26 |
|
emlun
| mm | 04:26 |
| ← delta6 left | 04:26 |
| juvenal → juvenal_away | 04:27 |
|
fuzzybunny69y
| and so I will change pick to edit | 04:27 |
|
| for the commit I want to change | 04:27 |
| → johnf joined | 04:27 |
|
emlun
| mm | 04:27 |
|
| which is the root commit? | 04:27 |
| ← Guest3820 left | 04:27 |
| → germanoak joined | 04:27 |
| ← axl_ left | 04:27 |
|
fuzzybunny69y
| it is the very first commit on the branch | 04:28 |
| ← MoSal left | 04:28 |
| ← el3ctron left | 04:28 |
|
fuzzybunny69y
| the initial commit | 04:28 |
| → thierryp joined | 04:28 |
|
emlun
| mm | 04:28 |
|
fuzzybunny69y
| ok so I changed that to edit | 04:28 |
|
| then made my change | 04:28 |
| → Guest joined | 04:29 |
| → MoSal joined | 04:29 |
|
fuzzybunny69y
| and now i am going to do a git commit --amend | 04:29 |
|
emlun
| what does git show show now? | 04:29 |
| ← angela left | 04:29 |
|
fuzzybunny69y
| it just has changes to be committed with my change | 04:29 |
|
| and I can do a git rebase continue | 04:29 |
|
| or a git commit ammend | 04:29 |
| ← mmitchell left | 04:30 |
|
emlun
| in this case I think git rebase --continue will do | 04:30 |
|
| but either should work | 04:30 |
|
| they should be equivalent, even | 04:30 |
| → mmitchell joined | 04:30 |
| → Tommy[D]_ joined | 04:30 |
| → xxpor joined | 04:31 |
|
fuzzybunny69y
| hmmm | 04:31 |
|
| i think it might of worked | 04:31 |
| → harish joined | 04:31 |
| → totte joined | 04:31 |
| ← thierryp left | 04:32 |
|
emlun
| fuzzybunny69y: Git from the bottom up is a great introduction to how git works conceptually: http://newartisans.com/2008/04/git-from-the-bottom-up/ | 04:32 |
| → valgrind joined | 04:33 |
|
emlun
| fuzzybunny69y: having this understanding will make everything about git suddenly just make sense | 04:33 |
|
fuzzybunny69y
| I wonder why it worked this time | 04:33 |
| → h0bbit joined | 04:33 |
|
emlun
| fuzzybunny69y: :) | 04:33 |
|
fuzzybunny69y
| maybe I picked the wrong commit or something | 04:33 |
|
emlun
| maybe | 04:33 |
| ← Tommy[D] left | 04:34 |
| ← mmitchell left | 04:34 |
|
fuzzybunny69y
| thanks emlun | 04:35 |
| ← harish left | 04:35 |
|
fuzzybunny69y
| you are great | 04:35 |
|
emlun
| np :) | 04:36 |
|
fuzzybunny69y
| I will read that book | 04:36 |
|
emlun
| I really recommend you do | 04:36 |
|
| it worked wonders for me | 04:36 |
|
| git really is dead simple when you can see past the CLI commands and into what will be done to the DAG | 04:36 |
|
| complexity through simplicity - such a beautiful thing | 04:36 |
|
frogonwheels_
| fuzzybunny69y: !simple | 04:37 |
|
gitinfo
| fuzzybunny69y: At its heart git is made up of many concepts that are individually simple. Getting the whole picture right is often tricky, and it is usually about breaking up the complex concept into its simple, individual parts and grokking those. Both !bottomup and !cs will help with that. | 04:37 |
|
emlun
| simple rules, complex consequences :D | 04:37 |
|
frogonwheels_
| emlun: ^^ you might like that trigger :) | 04:37 |
|
fuzzybunny69y
| I guess it is because I never understand the help | 04:37 |
|
emlun
| frogonwheels_: that | 04:37 |
|
fuzzybunny69y
| and what all the terminology they use is | 04:38 |
|
emlun
| frogonwheels_: yup, that's exactly my point ^^ | 04:38 |
|
frogonwheels_
| fuzzybunny69y: ah yeah. Getting the terminology right with its very specific meaning under git is linked closely with understanding how it works. | 04:39 |
|
fuzzybunny69y
| !cs | 04:39 |
|
gitinfo
| "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup | 04:39 |
| → ewnd9 joined | 04:39 |
| ← LuxuryMode left | 04:39 |
|
fuzzybunny69y
| !concepts | 04:39 |
|
gitinfo
| "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs/ | 04:39 |
|
frogonwheels_
| fuzzybunny69y: a nice tip, you can /msg gitinfo !cs to get gitinfo to reply to you personally | 04:39 |
|
gitinfo
| fuzzybunny69y: "Git for Computer Scientists" is a quick introduction to git internals for people who are not scared by phrases like Directed Acyclic Graph. http://eagain.net/articles/git-for-computer-scientists/ See also !concepts !bottomup | 04:39 |
|
fuzzybunny69y
| oh lol | 04:40 |
| → lite_ joined | 04:40 |
|
frogonwheels_
| fuzzybunny69y: one or two is ok, - a whole series starts to get annoying (unless you're directing it at somebody else) | 04:41 |
|
fuzzybunny69y
| oh ok | 04:42 |
|
| well | 04:42 |
|
| now that I made that change on my test branch | 04:42 |
| ← akurilin left | 04:42 |
|
fuzzybunny69y
| what is the best way to get it into my master branch | 04:43 |
|
| or should I just rebase my master branch | 04:43 |
|
| with the same procedure | 04:43 |
| → tbmiller joined | 04:43 |
| ← jaimef left | 04:44 |
| → jaimef joined | 04:44 |
| → gverri joined | 04:44 |
| r0bby_ → robbyoconnor | 04:44 |
| ← rchavik left | 04:45 |
| ← Joshi3s` left | 04:45 |
| → minim joined | 04:46 |
| ← lite_ left | 04:46 |
|
emlun
| fuzzybunny69y: no | 04:46 |
| → lite_ joined | 04:47 |
|
emlun
| since you did rebase --root the test branch won't share any ancestors with the master branch | 04:47 |
|
| so what you probably want to do is make sure the test branch is what you want, and then rename the test branch to master, overwriting the old master | 04:47 |
| ← Swayz left | 04:48 |
|
emlun
| of course, this is usually a very bad idea to do if you've pushed the master branch to a remote repository | 04:48 |
|
| since then things will get messy if someone has cloned that and then tries to merge your new master | 04:48 |
| ← rjhunter left | 04:49 |
| → harish joined | 04:49 |
|
emlun
| the scenario is perfectly solvable, of course, but I'd say the gain (making the root commit prettier) isn't worth the trouble :P | 04:49 |
| → rjhunter joined | 04:50 |
| ← lite_ left | 04:51 |
| → cmpera joined | 04:52 |
| ← tpollard left | 04:52 |
| ← juvenal_away left | 04:54 |
| ← ej left | 04:54 |
| → juvenal joined | 04:54 |
| ← jaseemabid left | 04:55 |
| ← rjhunter left | 04:55 |
| → eaj joined | 04:55 |
| ← eaj left | 04:55 |
| ← germanoak left | 04:55 |
| → ej joined | 04:55 |
| → angela joined | 04:55 |
| → jaseemabid joined | 04:56 |
| ← jaseemabid left | 04:56 |
| ← fuzzybunny69y left | 04:57 |
| → jaseemabid joined | 04:57 |
|
angela
| hi I have a branch to work on a feature | 04:57 |
| ← johnf left | 04:57 |
|
angela
| and I pulled on the master branch | 04:57 |
|
| but now when I try to rebase, I get conflicts, which I have fixed | 04:58 |
| → Swayz joined | 04:58 |
|
angela
| but after fixing the conflict and adding them using git add, I'm still unable to do a rebase continue, or skip | 04:58 |
|
| or even checkout to another branch | 04:58 |
| → hoschi joined | 04:58 |
|
angela
| I get this when I try to checkout upload/catalog/view/theme/hitour/static/scripts/detail/main.js: needs merge error: you need to resolve your current index first | 04:58 |
| → johnf joined | 04:59 |
|
emlun
| angela: sounds like there are unstaged changes | 04:59 |
|
| (aka red stuff in git status) | 04:59 |
| → jfoy joined | 05:00 |
| → lite_ joined | 05:00 |
| ← sig left | 05:01 |
| → Mars` joined | 05:02 |
| → sig joined | 05:03 |
| ← gverri left | 05:03 |
| ← fairuz left | 05:04 |
| → AWinterman joined | 05:04 |
| ej → eaj | 05:06 |
| ← jfoy left | 05:07 |
| ← Swayz left | 05:07 |
| ← lite_ left | 05:07 |
| → lite_ joined | 05:08 |
| → fuzzybunny69y joined | 05:08 |
| → jfoy joined | 05:08 |
| → thierryp joined | 05:09 |
| ← PaulCapestany left | 05:10 |
| ← irqq left | 05:10 |
| ← AWinterman left | 05:10 |
|
fuzzybunny69y
| sorry guys I had a cock roach issue to take care of over here | 05:10 |
| ← daito left | 05:11 |
| → daito joined | 05:12 |
|
fuzzybunny69y
| and i got the boot | 05:12 |
| ← gzg left | 05:12 |
| ← lite_ left | 05:13 |
|
fuzzybunny69y
| ok | 05:13 |
|
| I renamed my test branch to master | 05:13 |
|
| and renamed my master branch | 05:13 |
| → epicowl joined | 05:14 |
| raijin → raininja | 05:14 |
| → gverri joined | 05:15 |
| → cff joined | 05:16 |
| → Swayz joined | 05:17 |
| → beautifulmind joined | 05:18 |
| → jceb_ joined | 05:18 |
| ← beautifulmind left | 05:18 |
| → JustinMac joined | 05:18 |
| ← JustinMac left | 05:18 |
| → beautifulmind joined | 05:19 |
| → JustinMac joined | 05:19 |
| ← Tobbi left | 05:20 |
| → TomyLobo joined | 05:20 |
| ← yhager left | 05:20 |
| → gzg joined | 05:21 |
| → varlog joined | 05:21 |
| ← scorphus left | 05:22 |
| ← brisbin left | 05:22 |
| ← jpalmer_ left | 05:22 |
| ← tbmiller left | 05:22 |
| → jpalmer joined | 05:22 |
| ← normanrichards left | 05:23 |
| → tbmiller joined | 05:23 |
| → Tobbi joined | 05:23 |
| ← johnf left | 05:23 |
| → marthinal joined | 05:24 |
| ← beautifulmind left | 05:24 |
| ← akiva left | 05:24 |
| → johnf joined | 05:24 |
| → scorphus joined | 05:25 |
| → h12o joined | 05:25 |
| ← fuzzybunny69y left | 05:26 |
| ← vkz left | 05:26 |
| ← DrShoggoth left | 05:27 |
| ← tbmiller left | 05:27 |
| → beautifulmind joined | 05:27 |
| ← beautifulmind left | 05:27 |
| ← therealGent left | 05:27 |
| ← JustinMac left | 05:29 |
| → JustinMac joined | 05:30 |
| juvenal → juvenal_away | 05:30 |
| ← yacks left | 05:30 |
| ← Algorithm left | 05:31 |
| ← jfoy left | 05:32 |
| ← gverri left | 05:33 |
| → glosoli joined | 05:33 |
| ← hoschi left | 05:33 |
| → gverri joined | 05:33 |
| → hoschi joined | 05:34 |
| → nickbelhomme joined | 05:34 |
| ← h12o left | 05:36 |
| → Xethron joined | 05:36 |
| → matanya joined | 05:36 |
| → h12o joined | 05:36 |
| ← eaj left | 05:37 |
| → fuzzybunny69y joined | 05:37 |
| → jfran joined | 05:38 |
| → ThomasLocke joined | 05:38 |
| ← johnf left | 05:38 |
| → jumperswitch joined | 05:40 |
| → mmitchell joined | 05:41 |
| ← Swayz left | 05:41 |
| ← jfran left | 05:42 |
| ← weiyang left | 05:43 |
| ← zjason left | 05:44 |
| → zjason joined | 05:44 |
| → lite_ joined | 05:44 |
| ← chepre` left | 05:45 |
| ← mmitchell left | 05:45 |
| ← lite_ left | 05:46 |
| → lite_ joined | 05:46 |
| ← Xethron left | 05:47 |
| ← nicedice left | 05:47 |
| → ciampix joined | 05:47 |
| → leeN joined | 05:47 |
| ← dorkmafia left | 05:47 |
| ← lite_ left | 05:47 |
| → lite_ joined | 05:47 |
| → Xethron joined | 05:48 |
| ← jdav_gone left | 05:51 |
| ← jaseemabid left | 05:52 |
| → beautifulmind joined | 05:52 |
|
emlun
| fuzzybunny69y: did you have some more questions? :) | 05:54 |
|
fuzzybunny69y
| ummm | 05:54 |
| → rath joined | 05:54 |
| → therealGent joined | 05:54 |
|
fuzzybunny69y
| I just renamed my branch lol | 05:54 |
|
| I always have more questions | 05:55 |
|
| I just don't know what they are yet lol | 05:55 |
| ← ewnd9 left | 05:55 |
| ← joshbetz left | 05:55 |
| → ezekielnoob joined | 05:55 |
| ← dhruvasagar left | 05:55 |
| ← Xethron left | 05:55 |
| → dhruvasagar joined | 05:57 |
| → Xethron joined | 05:57 |
| ← rue_XIV left | 05:57 |
| → rue joined | 05:58 |
| → pantsman joined | 05:58 |
| ← pantsman left | 05:58 |
| → pantsman joined | 05:58 |
| → reenignEesreveR joined | 05:58 |
| ← rue left | 05:58 |
| → rue joined | 05:59 |
| → codeFiend joined | 05:59 |
|
emlun
| fuzzybunny69y: ^^ | 06:01 |
| → DrShoggoth joined | 06:01 |
|
emlun
| well as long as you keep references to (branches at) commits you want to keep, your data is always safe | 06:01 |
|
| even if you don't, it is usually possible to salvage lost commits, but it may be more or less complicated depending on the circumstances | 06:02 |
| ← jceb_ left | 06:02 |
| → jceb joined | 06:03 |
| ← Xethron left | 06:03 |
| jceb → Guest51606 | 06:03 |
|
lite_
| so..ive got a bunch fo changes in a feature branch that may need to get stashed for now. I would however like to have them in a local branch | 06:06 |
|
| so: git stash - git checkout -b new_branch, git pop ? | 06:06 |
| → mishok13 joined | 06:06 |
| ← cmpera left | 06:06 |
| ← jumperswitch left | 06:07 |
| ← valgrind left | 06:07 |
| ← setmeaway left | 06:09 |
| → papegaaij joined | 06:10 |
| → fl0rian_ joined | 06:12 |
| ← Roots47 left | 06:14 |
| → dsdeiz_ joined | 06:14 |
| ← dsdeiz left | 06:14 |
| ← Guest51606 left | 06:14 |
| → cbreak-work joined | 06:15 |
| ← varlog left | 06:15 |
| ← pantsman left | 06:17 |
| ← Nicholas_Rishel left | 06:17 |
| → Roots47 joined | 06:17 |
| → saimaz joined | 06:17 |
| → SHyx0rmZ joined | 06:18 |
| → Raging_Hog joined | 06:21 |
| ← Goplat left | 06:23 |
| ← saimaz left | 06:23 |
| → saimaz joined | 06:23 |
| → Search12 joined | 06:23 |
| → fRAiLtY- joined | 06:23 |
| ← chuckharmston left | 06:24 |
|
emlun
| lite_: or just `git checkout -b stash_branch && git checkout other_branch` if I understand you correctly | 06:25 |
| → boo__ joined | 06:25 |
| ← boo__ left | 06:25 |
|
emlun
| that'll commit your staged changes on branch "stash_branch" and then check out "other_branch" | 06:25 |
| ← thierryp left | 06:27 |
| → dsdeiz joined | 06:27 |
| → thierryp joined | 06:27 |
| ← saimaz left | 06:28 |
| ← harish left | 06:28 |
| → thierryp_ joined | 06:28 |
| ← dsdeiz_ left | 06:29 |
|
lite_
| cool, thanks | 06:29 |
| ← epicowl left | 06:29 |
| → jdav_gone joined | 06:30 |
| ← bskywalker4 left | 06:30 |
| → saimaz joined | 06:30 |
| ← glebihan_ left | 06:32 |
| ← thierryp left | 06:32 |
| → glebihan_ joined | 06:33 |
| ← SoftwareMechanic left | 06:33 |
| → reskp_ joined | 06:34 |
| ← oops left | 06:34 |
| → ewnd9 joined | 06:34 |
| ← therealGent left | 06:38 |
| → jargon joined | 06:38 |
| → echo-area joined | 06:38 |
| → dreiss_ joined | 06:39 |
| → netiul joined | 06:39 |
| → reskp__ joined | 06:40 |
| → rchavik joined | 06:43 |
| ← reskp_ left | 06:43 |
| ← reskp__ left | 06:45 |
| ← TomyLobo left | 06:45 |
| ← thiago left | 06:46 |
| → jceb joined | 06:47 |
| jceb → Guest25896 | 06:47 |
| → Xethron joined | 06:48 |
| → _nova joined | 06:48 |
| ← dreiss_ left | 06:50 |
| ← tjj left | 06:50 |
| ← hahuang65 left | 06:53 |
| ← dhruvasagar left | 06:54 |
| → oops joined | 06:54 |
| ← saimaz left | 06:55 |
| → saimaz joined | 06:56 |
| → dhruvasagar joined | 06:56 |
| → kbart joined | 06:57 |
| → JohnBat26 joined | 06:57 |
| ← Wolfspyre left | 06:58 |
| → Wolfspyre joined | 07:00 |
| → ThomasCle joined | 07:00 |
| ← saimaz left | 07:01 |
| → jarr0dsz joined | 07:01 |
| → saimaz joined | 07:01 |
| → sr78ger joined | 07:03 |
| ← Search12 left | 07:04 |
| ← igalic left | 07:05 |
| → txwikinger2 joined | 07:05 |
| ← txwikinger2 left | 07:05 |
| → txwikinger2 joined | 07:05 |
| → jefferai_gone joined | 07:05 |
| ← BlaDe^ left | 07:05 |
| → zizzfizzix joined | 07:05 |
| ← zizzfizzix left | 07:05 |
| → zizzfizzix joined | 07:05 |
| ← jefferai left | 07:05 |
| ← txwikinger left | 07:05 |
| ← zorzar left | 07:05 |
| ← solution left | 07:05 |
| ← BtbN left | 07:05 |
| ← TheBrayn left | 07:05 |
| ← ezekielnoob left | 07:05 |
| → solution joined | 07:06 |
| → tokkee joined | 07:06 |
| → mika joined | 07:06 |
| ← Luke-Jr left | 07:06 |
| → Kuukunen joined | 07:06 |
| → BlaDe^ joined | 07:06 |
| → igalic joined | 07:06 |
| → zorzar joined | 07:06 |
| → TheBrayn joined | 07:06 |
| → Will| joined | 07:07 |
| → Luke-Jr joined | 07:07 |
| ← SporkWitch left | 07:07 |
| → harobed_ joined | 07:07 |
| ← sr78ger left | 07:08 |
| → manitu joined | 07:08 |
| → BtbN joined | 07:08 |
| ← freestyl3r left | 07:09 |
| → reenignEesreveR- joined | 07:09 |
| → SporkWitch joined | 07:09 |
| → threesome joined | 07:10 |
| → sr78ger joined | 07:10 |
| → Search12 joined | 07:11 |
| → RitchieFlick joined | 07:12 |
| ← reenignEesreveR left | 07:12 |
| ← saimaz left | 07:12 |
| → saimaz joined | 07:12 |
| → ezekielnoob joined | 07:13 |
| → germanoak joined | 07:14 |
| ← defaultro left | 07:14 |
| → chuckharmston joined | 07:16 |
| → MafooUK joined | 07:17 |
| ← saimaz left | 07:17 |
| → DanielHollands joined | 07:17 |
| ← ezekielnoob left | 07:18 |
| → starlays joined | 07:18 |
| ← LimeBlast left | 07:19 |
| ← covi left | 07:19 |
|
starlays
| hello to all, how can I merge the content from a git fetch? | 07:19 |
| → harish joined | 07:20 |
| ← ewnd9 left | 07:20 |
| → lb1a joined | 07:21 |
| ← dhruvasagar left | 07:21 |
|
starlays
| refs are stored in .git/FETCH_HEAD | 07:21 |
|
| fount it | 07:21 |
| → kewah joined | 07:23 |
| → brisbin joined | 07:23 |
| → gua_ould joined | 07:23 |
| → SergeyPenkin joined | 07:24 |
| → dhruvasagar joined | 07:24 |
|
frogonwheels_
| starlays: that's not the normal way to do it - what exactly were you doing it? | 07:24 |
| → ezekielnoob joined | 07:24 |
| ← chuckharmston left | 07:24 |
|
frogonwheels_
| starlays: oh, and you can just refer to that as FETCH_HEAD as a reference... but again, not normal to use it. | 07:25 |
| frogonwheels_ → frogonwheels | 07:25 |
|
frogonwheels
| starlays: !xy | 07:25 |
|
gitinfo
| starlays: Woah, slow down for a bit. Are you sure that you need to jump to that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective... | 07:25 |
| ← fl0rian_ left | 07:25 |
| → dreiss_ joined | 07:25 |
| → Balliad joined | 07:26 |
| ← jarr0dsz left | 07:27 |
| → saimaz joined | 07:27 |
| → Misan joined | 07:28 |
| → devoldmx joined | 07:28 |
| ← ezekielnoob left | 07:29 |
| ← Dreadnaught left | 07:30 |
| → GeertV joined | 07:30 |
| → h_kon joined | 07:30 |
| ← saimaz left | 07:32 |
| ← relipse left | 07:32 |
| → saimaz joined | 07:32 |
| ← dhruvasagar left | 07:33 |
| ← vigs left | 07:33 |
| ← gverri left | 07:33 |
| → ewnd9 joined | 07:35 |
| ← girishr left | 07:36 |
| ← beautifulmind left | 07:36 |
| → Naoe-Kanno joined | 07:36 |
| → dhruvasagar joined | 07:36 |
| → ezekielnoob joined | 07:36 |
| ← saimaz left | 07:37 |
| → cmpera joined | 07:37 |
| ← SHyx0rmZ left | 07:38 |
| ← hoschi left | 07:38 |
| → jarr0dsz joined | 07:38 |
| → intellix joined | 07:38 |
|
starlays
| frogonwheels: I've done a remote fetch with git fetch then done git diff and now i want to merge the fetched content in the current active branch | 07:40 |
| ← simesy left | 07:40 |
| → tatsuya_o joined | 07:41 |
| → simesy joined | 07:41 |
| → GT4066 joined | 07:41 |
|
frogonwheels
| starlays: When you do a normal fetch, it will fetch into the remote tracking branch.. which is something like remotes/origin/master | 07:41 |
|
| starlays: if you've set things up properly, then you can git merge @{u} | 07:41 |
|
| starlays: man git-parse-revs | 07:42 |
|
| starlays: man git-parse-rev | 07:42 |
|
| starlays: man git-rev-parse | 07:42 |
| ← ewnd9 left | 07:42 |
|
gitinfo
| starlays: the git-rev-parse manpage is available at http://jk.gs/git-rev-parse.html | 07:42 |
|
starlays
| ok | 07:42 |
|
frogonwheels
| bleh | 07:42 |
|
| the last one :) | 07:42 |
| ← minim left | 07:42 |
|
starlays
| :) | 07:42 |
|
| frogonwheels: ok, i'll read and see what is it about | 07:42 |
| → deuterium joined | 07:42 |
|
starlays
| frogonwheels: thank you | 07:42 |
| ← igalic left | 07:42 |
| → igalic joined | 07:42 |
|
frogonwheels
| starlays: no probs. | 07:43 |
| → untaken joined | 07:43 |
| ← JustinMac left | 07:44 |
| → Olea|2 joined | 07:44 |
| → hahuang65 joined | 07:44 |
| ← Naoe-Kanno left | 07:44 |
| → JustinMac joined | 07:45 |
|
untaken
| if I have a branch (B) and it has been rolled out on some servers, and I had roll the servers back to a older tag (A). If I then delete the B with 'git branch -D <branchName>; git push origin --delete <branchName>' would the servers work with this as it had B locally checked out from before. | 07:45 |
| ← cmpera left | 07:45 |
| ← simesy left | 07:46 |
| ← Tok-A-Mak left | 07:47 |
| → afuentes joined | 07:48 |
| ← reenignEesreveR- left | 07:49 |
| → jaseemabid joined | 07:49 |
| ← RitchieFlick left | 07:50 |
| ← mishok13 left | 07:51 |
| → hoschi joined | 07:52 |
| ← netiul left | 07:52 |
|
arand
| untaken: If non-fast-forwards are allowed, and if the repo is non-bare (which it sounds like, and that's a bit odd) if it allows updating the currently checked out branch... | 07:52 |
|
starlays
| frogonwheels: git branch -vv shows me that i have no @{u} for the current branch, i need to see how can i set remote reference for a branch that doesn't have one | 07:53 |
| ← angela left | 07:54 |
| ← dreiss_ left | 07:56 |
|
starlays
| hmm, git branch -u <remote> | 07:56 |
| → netiul joined | 07:57 |
| ← netiul left | 07:57 |
| → netiul joined | 07:57 |
| → cenuij joined | 07:57 |
| → reenignEesreveR joined | 07:57 |
| → alorence joined | 07:57 |
|
starlays
| frogonwheels: yey, problem solved, thank you once more, you saved my day | 07:57 |
| ← harish left | 07:58 |
| ← khushildep left | 07:58 |
| → samuel02 joined | 07:59 |
|
untaken
| arand: okay, so its down to the git configuration | 07:59 |
| → khushildep joined | 08:00 |
| ← ciampix left | 08:01 |
| → tobeplugged joined | 08:03 |
| ← Mars` left | 08:03 |
| → Mars` joined | 08:03 |
| ← Robert_L left | 08:04 |
| ← Roots47 left | 08:05 |
| → Robert_L joined | 08:05 |
| ← KillYourTV left | 08:08 |
| → Octalot joined | 08:08 |
| ← reenignEesreveR left | 08:08 |
| ← Mars` left | 08:08 |
| → reenignEesreveR joined | 08:09 |
| → saimaz joined | 08:13 |
| → avolz joined | 08:15 |
| ← saimaz left | 08:15 |
|
frogonwheels
| starlays: :) well done | 08:16 |
| → ciampix joined | 08:16 |
| → reskp_ joined | 08:16 |
| → dfanjul joined | 08:17 |
| ← cads left | 08:17 |
| → chuckharmston joined | 08:17 |
| ← reskp_ left | 08:17 |
| → g0bl1n joined | 08:17 |
| → reskp_ joined | 08:18 |
| ← rat_thing left | 08:20 |
| → mishok13 joined | 08:20 |
| ← h_kon left | 08:20 |
| ← germanoak left | 08:20 |
| → h_kon joined | 08:20 |
| ← chuckharmston left | 08:22 |
| → iderik joined | 08:22 |
| ← reskp_ left | 08:22 |
| ← Georg3 left | 08:23 |
| → juril joined | 08:23 |
| ← tchan left | 08:24 |
| → harish joined | 08:25 |
| → howlymowly joined | 08:25 |
| ← h_kon left | 08:25 |
| ← GodEater left | 08:27 |
| → chepre joined | 08:27 |
| ← reenignEesreveR left | 08:28 |
| → buibex joined | 08:29 |
| → m7w joined | 08:29 |
| ← zivester left | 08:30 |
| ← akitada left | 08:30 |
| ← beawesomeinstead left | 08:30 |
| ← raghunayyar left | 08:31 |
| ← scalability-junk left | 08:31 |
| ← jmcantrell left | 08:31 |
| ← _rgn left | 08:32 |
| ← Roch_ left | 08:32 |
| ← jab416171 left | 08:32 |
| ← arand left | 08:32 |
| ← deuterium left | 08:32 |
| → FabTG_ joined | 08:33 |
| ← Norrin left | 08:34 |
| ← wcpan left | 08:34 |
| → wcpan joined | 08:34 |
| → kini joined | 08:34 |
| → h_kon joined | 08:35 |
| ← Misan left | 08:35 |
| ← FabTG left | 08:36 |
| → Norrin joined | 08:36 |
| → Mars` joined | 08:36 |
| ← gzg left | 08:37 |
| → curvedmark joined | 08:39 |
| ← frgtn left | 08:39 |
| → frgtn joined | 08:40 |
| → reskp joined | 08:42 |
| → victorbjelkholm joined | 08:43 |
| ← frgtn left | 08:45 |
| ← victorbjelkholm left | 08:45 |
| → FrodoTheHobbit joined | 08:47 |
| ← JSharpe left | 08:47 |
| → zarubin joined | 08:48 |
| → asQuirreL joined | 08:50 |
| → simesy joined | 08:51 |
| → Stygia joined | 08:52 |
| ← kermit left | 08:53 |
| → nuclearkitten joined | 08:54 |
| ← echo-area left | 08:54 |
| ← JustinMac left | 08:55 |
| → arand joined | 08:55 |
| → ewnd9 joined | 08:55 |
| ← asQuirreL left | 08:56 |
| ← simesy left | 08:56 |
| ← rchavik left | 08:58 |
| → deuterium joined | 08:58 |
| → rchavik joined | 08:58 |
| ← rchavik left | 08:59 |
| → mateu joined | 08:59 |
| → nnyk_ joined | 08:59 |
| → ChrisAnn joined | 09:00 |
| ← glosoli left | 09:02 |
| ← zorzar left | 09:03 |
| ← xjiujiu left | 09:04 |
| ← leeN left | 09:04 |
| ← jaseemabid left | 09:05 |
| → xjiujiu joined | 09:05 |
| → irqq joined | 09:05 |
|
arand
| Is it possible to clone a git repo and store the result without any compression of objects? Intention is to adapt to an external non-git incremental backup, which would presumably be more effective if the underlying contents was not already compressed. | 09:06 |
|
moritz
| arand: I think you shouldn't bother | 09:07 |
| → ZujkisNx joined | 09:08 |
|
moritz
| arand: whether it's git or the backup that compresses the files is mostly irrelevant | 09:08 |
|
canton7
| objects are *always* compressed | 09:08 |
|
moritz
| and note that if you don't git-repack very often, the old packfiles don't change much | 09:08 |
| → Misan joined | 09:09 |
|
_ikke_
| When you clone, the objects already come packed | 09:09 |
| → tommyziegler joined | 09:09 |
| → raonyguimaraes joined | 09:11 |
| → PaddyPatPat joined | 09:11 |
| ← reskp left | 09:12 |
| → frgtn joined | 09:12 |
| → reskp_ joined | 09:12 |
|
arand
| Yeah, I was thinking you could make git unpack all packfiles after receive, though I guess you'd have to manually hack something like that. | 09:13 |
|
moritz
| arand: simply don't bother. | 09:14 |
| → szx joined | 09:14 |
|
_ikke_
| Git is much better at packing the objects than the backup sollution can | 09:15 |
| ← Mars` left | 09:15 |
| → Mars` joined | 09:16 |
| → reskp___ joined | 09:17 |
| ← reskp_ left | 09:17 |
| → chuckharmston joined | 09:17 |
|
PaddyPatPat
| Hello, I have the "fatal: CRLF would be replaced by LF" issue for a silverlight .xap file that contains multiple CRLF files (and perhaps a binary?), "plupupload.silverlight.xap" I'm trying to get them to LF. I'm on OS X 10.8. Suggestions? | 09:18 |
|
_ikke_
| !crlf | 09:18 |
|
gitinfo
| to fix problems with line endings on different platforms, check out http://line-endings.gitrecipes.de/ | 09:18 |
|
canton7
| also read core.safecrlf in man git-config | 09:19 |
|
gitinfo
| the git-config manpage is available at http://jk.gs/git-config.html | 09:19 |
| → rendar joined | 09:21 |
| ← Mars` left | 09:21 |
|
PaddyPatPat
| Thank you _ikke_ and canton7 | 09:21 |
| ← chuckharmston left | 09:22 |
| → cilly joined | 09:22 |
| → marhaban joined | 09:23 |
| → PeterBooker joined | 09:24 |
| → Ozch joined | 09:25 |
|
arand
| _ikke_: In a single repo at a single point in time, yes. With for example multiple repos, there's no guarantee that similar objects will have similar packfiles, right? | 09:25 |
|
| (Though I guess at that point I should be looking at leveraging .git/objects/info/alternates as well...) | 09:26 |
| → reenignEesreveR joined | 09:26 |
| ← fRAiLtY- left | 09:27 |
| → dsdeiz_ joined | 09:27 |
| → chuckharmston joined | 09:27 |
| ← dsdeiz left | 09:29 |
| ← khushildep left | 09:30 |
| → jkremser joined | 09:30 |
| ← jkremser left | 09:30 |
| → jkremser joined | 09:30 |
| → the_cybersphinx joined | 09:30 |
| → rat_thing joined | 09:31 |
|
_ikke_
| To get any advantage, you'd probably have to uncompress every object | 09:32 |
| ← chuckharmston left | 09:33 |
| → VictorCL joined | 09:33 |
| → Chryyz joined | 09:36 |
| ← rat_thing left | 09:36 |
| → banisterfiend joined | 09:37 |
| → stayarrr joined | 09:40 |
| ← dyng left | 09:40 |
| → dyng joined | 09:41 |
| → beautifulmind joined | 09:41 |
| → caseymcg joined | 09:41 |
| ← mdiers left | 09:42 |
| → rchavik joined | 09:43 |
| ← Davey left | 09:43 |
| ← xjiujiu left | 09:43 |
| → dyng_ joined | 09:43 |
| → bartzy joined | 09:43 |
| ← h_kon left | 09:44 |
| → xjiujiu joined | 09:44 |
| ← dyng left | 09:44 |
| ← harobed_ left | 09:48 |
| ← nnyk_ left | 09:48 |
| ← cilly left | 09:48 |
| → reenignEesreveR- joined | 09:50 |
| ← reenignEesreveR- left | 09:51 |
| ← reenignEesreveR left | 09:52 |
| → b4n1 joined | 09:55 |
| → fRAiLtY- joined | 09:55 |
| → jumperswitch joined | 09:57 |
| → saimaz joined | 09:57 |
| ← sword left | 09:57 |
| ← Baluse left | 09:58 |
| ← nafg left | 09:58 |
| → Baluse joined | 09:58 |
| ← Baluse left | 09:59 |
| → nnyk_ joined | 09:59 |
| ← maroloccio left | 10:00 |
| ← Chryyz left | 10:01 |
| ← m0ltar left | 10:02 |
| → bonhoeffer_ joined | 10:02 |
| → mklappstuhl joined | 10:03 |
| → jaseemabid joined | 10:03 |
| → maroloccio joined | 10:03 |
| ← saimaz left | 10:03 |
| → stamina joined | 10:03 |
| ← farciarz84 left | 10:04 |
| ← mitz_ left | 10:04 |
| → m0ltar joined | 10:05 |
| → farciarz84 joined | 10:05 |
| ← ezekielnoob left | 10:05 |
| ← Guest25896 left | 10:06 |
| → germanoak joined | 10:06 |
| → ezekielnoob joined | 10:06 |
| → rednaks joined | 10:08 |
| → jceb joined | 10:08 |
| ← jceb left | 10:08 |
| → jceb joined | 10:09 |
| jceb → Guest75579 | 10:09 |
| → mikecmpbll joined | 10:10 |
| ← ezekielnoob left | 10:11 |
| ← nickbelhomme left | 10:11 |
| ← ZujkisNx left | 10:11 |
|
martisj
| what is the difference between clone and fork? | 10:13 |
|
| is fork a term from github? | 10:13 |
|
iveqy
| martisj: that's a github term yes | 10:13 |
|
selckin
| they kinda redefined existing usage of the word fork | 10:13 |
|
iveqy
| martisj: and a fork on github have some references to the original repo | 10:13 |
| ← curvedmark left | 10:15 |
| → rat_thing joined | 10:16 |
| → ezekielnoob joined | 10:18 |
| ← tommyziegler left | 10:19 |
| ← lite_ left | 10:19 |
| → lite_ joined | 10:20 |
|
martisj
| iveqy: so if i wanted to submit a pull request to a repo on github i could either clone it or fork it, make some changes and submit a pull request? | 10:20 |
| ← glebihan_ left | 10:20 |
|
iveqy
| martisj: yes, but you can only use the github pull-request interface if you do a fork | 10:20 |
|
| usually you fork a project and then clone your fork | 10:20 |
| → glebihan_ joined | 10:21 |
| → lorenx_ joined | 10:22 |
| ← reskp___ left | 10:22 |
| → Roch_ joined | 10:22 |
| ← ping__ left | 10:22 |
| → reskp joined | 10:22 |
| → _goTAN joined | 10:22 |
|
lorenx_
| excuse me, why after checking out a previous commit git sometimes shows me some untracked files/dirs? i would expect a clean enviroment... | 10:23 |
| ← ezekielnoob left | 10:23 |
| ← dcpc007 left | 10:23 |
| ← harish left | 10:23 |
| → caraconan joined | 10:24 |
| → nickbelhomme joined | 10:24 |
| ← lite_ left | 10:24 |
| → lite_ joined | 10:24 |
|
caraconan
| Hi there. It is possible to revert local changes done in a file which is not even added for commit? Thanks | 10:24 |
| → brick joined | 10:24 |
| → dcpc007 joined | 10:25 |
| → h_kon joined | 10:25 |
|
iveqy
| lorenx_: that would mean that git would delete untracked stuff and since they are untracked you wouldn't get them back | 10:25 |
|
| caraconan: man git checkout | 10:25 |
|
gitinfo
| caraconan: the git-checkout manpage is available at http://jk.gs/git-checkout.html | 10:25 |
| ← glebihan_ left | 10:26 |
|
iveqy
| lorenx_: so that would be stupid. However if you still want to, there's man git clean | 10:26 |
|
gitinfo
| lorenx_: the git-clean manpage is available at http://jk.gs/git-clean.html | 10:26 |
| → spidererrol joined | 10:26 |
| → ezekielnoob joined | 10:26 |
|
M-ou-se
| can i get git svn to name all remotes for svn branches like 'svn/mysvnbranch' instead of just 'svnbranch'? that would avoid a lot of confusion when using local branches with those names | 10:26 |
|
caraconan
| The situation is that I modified let's say 5 files, but just 1 should be reverted to its initial status | 10:26 |
| → glebihan_ joined | 10:26 |
|
caraconan
| And then, I will do the commit (with the 4 files added) | 10:26 |
| → dbuch joined | 10:26 |
|
caraconan
| How to proceed with this 1 file? | 10:26 |
|
lorenx_
| iveqy: yeah, i expect that git deletes those files cause they are not in the commit i'm checking out. there are not lost actually, cause they'll be checked out with a later commit, what am i missing? | 10:27 |
| ← reskp left | 10:27 |
| ← HicksD left | 10:27 |
|
lorenx_
| iveqy: i know "git clean -fd" but i would expect git checkout to do that | 10:27 |
| ← spidererrol left | 10:27 |
| → ph88 joined | 10:27 |
|
ph88
| how can i let git diff print 2 spaces for a tab ? | 10:27 |
|
lorenx_
| i mean, i'm checking aout e previos situation where those files where not there | 10:28 |
|
iveqy
| caraconan: just checkout that file you want | 10:28 |
|
lorenx_
| s/aout/out/ | 10:28 |
| → raghunayyar joined | 10:28 |
| → jmcantrell joined | 10:28 |
|
iveqy
| lorenx_: no, git doesn't care about untracked files | 10:28 |
|
caraconan
| iveqy: ok, I'll try this | 10:28 |
| → scalability-junk joined | 10:28 |
| ← Fullma left | 10:28 |
|
caraconan
| I'm coming from svn and checkout still sounds somehow extrange for me | 10:29 |
|
iveqy
| lorenx_: I guess it's a matter of taste | 10:29 |
| → d8bhatta joined | 10:29 |
|
lorenx_
| iveqy: wait, they are untracked cause they didn't exists in that previous commit, git should know this | 10:29 |
|
iveqy
| caraconan: but in this case the flow is the same as in svn? Checkout the specific file you want and not more | 10:29 |
|
d8bhatta
| Hello everyone | 10:29 |
| ← h0bbit left | 10:29 |
|
caraconan
| svn revert I would say, maybe I'm wrong... | 10:29 |
|
iveqy
| lorenx_: yes that git knows, however have you edit them so that you've untracked changes in them? | 10:30 |
| → ismlages joined | 10:30 |
| → akitada joined | 10:30 |
|
iveqy
| caraconan: I guess that would also work with svn, but for git revert is something else | 10:30 |
| → h0bbit joined | 10:30 |
|
caraconan
| Anyway I understand (now) the checkout command, and it worked as expected | 10:31 |
|
| ivegy: many thanks | 10:31 |
| → xeqution joined | 10:31 |
| → beawesomeinstead joined | 10:31 |
|
iveqy
| caraconan: you're welcome | 10:31 |
| → _rgn joined | 10:32 |
|
lorenx_
| iveqy: no. let's say i have commit A. than i create a new file "newfile" and commit it in commit B. if i then do "git checkout A", i would expect no newfile and not an untracked one... | 10:32 |
|
d8bhatta
| I have release branch for my live site...develop branch for dev or staging site...multiple people works on develop branch and commit there.....i can merge develop branch to release branch but the problem merging i.e. git pull also pulls all those commit made on dev branch...I really need to pull only few commits in release branch | 10:32 |
| ← caraconan left | 10:32 |
| ← b4n1 left | 10:32 |
|
d8bhatta
| can you please let me know how can i do this without conflicts and all | 10:32 |
| → jab416171 joined | 10:32 |
|
d8bhatta
| there is cherry pick but not sure how can i use this ideally | 10:32 |
|
iveqy
| d8bhatta: yes you would need to do a cherrypick for that | 10:33 |
|
| however your workflow seems broken and a cherrypick isn't great | 10:33 |
|
| d8bhatta: !flow | 10:33 |
|
gitinfo
| d8bhatta: [!gitflow] The description of the gitflow branch workflow model is at http://nvie.com/posts/a-successful-git-branching-model/ while a tool to help implement this workflow is at https://github.com/petervanderdoes/gitflow See http://sethrobertson.github.com/GitBestPractices/#workflow for other workflow suggestions/references | 10:33 |
|
iveqy
| lorenx_: that's correct, and that's the behavior of git | 10:34 |
|
lorenx_
| so the actual command to restore a previous clean situation is: "git commit <commit-sha> && git clean -fd"? | 10:34 |
|
| iveqy: ^ | 10:34 |
|
iveqy
| lorenx_: no | 10:35 |
|
lorenx_
| iveqy: what do you mean | 10:35 |
|
iveqy
| lorenx_: that's not the correct way to use git commit | 10:35 |
|
| see man git commit | 10:35 |
|
gitinfo
| the git-commit manpage is available at http://jk.gs/git-commit.html | 10:35 |
|
iveqy
| lorenx_: Here's how I understand your problem and git does "clean tracked files": http://pastebin.com/YkrQnqYz | 10:36 |
|
lorenx_
| excuse me, i mean "git checkout <commit-sha> && git clean -fd" :P | 10:36 |
| ← ezekielnoob left | 10:37 |
|
d8bhatta
| iveqy: what i am thinking to do is: merge particular commit into release branch from dev branch and push it through my local sys. And just use git pull origin release in my live site | 10:37 |
|
| any thoguth? | 10:37 |
| → jalvarez joined | 10:37 |
|
d8bhatta
| thought | 10:37 |
| ← Misan left | 10:38 |
|
lorenx_
| iveqy: thanks for the paste but what if you do a git status? if file "b" untracked? | 10:38 |
| → reskp_ joined | 10:39 |
| ← jalvarez left | 10:39 |
|
iveqy
| d8bhatta: don't merge on a live site... see !deploy | 10:39 |
|
gitinfo
| d8bhatta: 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/the-list-and-irc/deploy.html | 10:39 |
|
iveqy
| lorenx_: as you can see from the ls the file b isn't there | 10:39 |
|
| so no, it won't show up as utracked since it doesn't exists | 10:39 |
|
d8bhatta
| iveqy: I am not merging it in live site..i am merging the stuffs in my local...and push it to repo...from live site i am just using git pull | 10:40 |
|
iveqy
| d8bhatta: !pull | 10:40 |
|
gitinfo
| d8bhatta: 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/ | 10:40 |
|
iveqy
| you pull, hence you merge | 10:40 |
|
thevishy
| I have 2 branches .... which is forked from the same master ... and the base is same ... I do the same change and commit it ... will the commit hash be the same ditto ? | 10:41 |
| → raf joined | 10:41 |
|
iveqy
| thevishy: git doesn't have something called a fork | 10:42 |
|
moritz
| thevishy: if absolutely everytihng in those two commits is identical, including the timestamps, then yet | 10:42 |
|
iveqy
| thevishy: but no, they won't since they'll have different timestamps | 10:42 |
|
thevishy
| time stamp comes into picture , thats intersting | 10:42 |
|
moritz
| s/yet/yes/ | 10:42 |
|
thevishy
| thank you moritz iveqy intersiting | 10:43 |
|
| interesting* | 10:43 |
|
iveqy
| thevishy: not at all, the commit-id is the sha1 of all the data in a commit and a commit is containing a timestamp | 10:43 |
| → Droolio joined | 10:43 |
|
thevishy
| however the file name hash will be same | 10:43 |
|
| because its same content | 10:43 |
| ← BiggFREE left | 10:43 |
|
iveqy
| thevishy: yes, but a commit is not a file, but a delta | 10:43 |
|
moritz
| no, a snapshot, not a delta :-) | 10:44 |
| ← lembacon left | 10:44 |
|
thevishy
| correct , thank you ... I will read up more .... | 10:44 |
| → lpapp joined | 10:44 |
|
iveqy
| moritz: are you sure about that? I'm pretty sure git doesn't store snapshots but deltas | 10:44 |
|
lpapp
| hi, is this a proper place for asking about gitweb | 10:45 |
|
| or this channel is purely for git itself. | 10:45 |
|
iveqy
| lpapp: you can try | 10:45 |
|
lpapp
| iveqy: fantastic | 10:45 |
|
thevishy
| ipapp if the contents has relevance to git , everyone would be happy to help | 10:45 |
|
lpapp
| http://gerrit.googlecode.com/svn/documentation/2.1/config-gerrit.html#commentlink -> do you know if this is supported by gitweb ? | 10:45 |
|
thevishy
| git is a service oriented thing these days :) | 10:45 |
| → ezekielnoob joined | 10:45 |
|
iveqy
| lpapp: no idea, see the gitweb manual? | 10:46 |
|
lpapp
| basically a dedicated match to jump to the relevant bugtracker entry. | 10:46 |
|
iveqy
| lpapp: I don't think so... | 10:46 |
|
lpapp
| gitphp supports it fwiw | 10:46 |
|
| and gitweb seems more widely used, so I would assume so.l | 10:46 |
|
| so.* | 10:46 |
| → yacks joined | 10:47 |
|
iveqy
| lpapp: sounds like a fair assumptions | 10:47 |
|
| s/s// | 10:47 |
| → sgambino joined | 10:48 |
| → dyng joined | 10:49 |
| ← lorenx_ left | 10:49 |
| ← dyng_ left | 10:50 |
| ← GT4066 left | 10:50 |
| ← tobeplugged left | 10:50 |
| → curvedmark joined | 10:50 |
| ← curvedmark left | 10:51 |
| ← _nova left | 10:52 |
| dwmw2_gone → dwmw2 | 10:52 |
| ← h_kon left | 10:52 |
| → tobeplugged joined | 10:52 |
| → _nova joined | 10:55 |
| ← mklappstuhl left | 10:55 |
| → h_kon_ joined | 10:56 |
| → mdiers joined | 11:00 |
|
catsup
| i have a strange problem. i can't push because "non-fast-forward" but it seems like it should be a fast-forward: the remote side's head is 52c0814503096f8301f33b6e9177e9548de24d8b and i have 52c0814503096f8301f33b6e9177e9548de24d8b as a parent in my log | 11:00 |
|
| git log|grep "$(git show remotes/joe/master|head -1)" | 11:01 |
|
| commit 52c0814503096f8301f33b6e9177e9548de24d8b | 11:01 |
| ← grahamsavage__ left | 11:01 |
| → grahamsavage__ joined | 11:01 |
|
catsup
| i did do some rebasing stuff, but i don't see how it could cause this | 11:01 |
| → kukks joined | 11:03 |
| ← paulweb515 left | 11:03 |
| → Misan joined | 11:03 |
| → mizu_no_oto joined | 11:03 |
| ← Vampire0_ left | 11:03 |
| ← Olea|2 left | 11:03 |
| ← matanya left | 11:04 |
| ← donmichelangelo left | 11:04 |
| ← mdiers left | 11:05 |
| → rnsanchez joined | 11:05 |
| → donmichelangelo joined | 11:05 |
| → mdiers joined | 11:06 |
|
catsup
| oh wow | 11:06 |
|
YoungFrog
| perhaps you have a merge commit and the other parent is older ? not sure what git does in this case | 11:06 |
|
catsup
| even after i do a pull, it won't let me push | 11:06 |
| → m3ga joined | 11:07 |
|
| YoungFrog capitulates | 11:07 |
|
catsup
| er, oh, nevermind that | 11:07 |
| ← kewah left | 11:07 |
|
m3ga
| "git branch" says i'm on branch 'prepare'. "git commit ..." says "Unknown branch 'prepare'." why? | 11:07 |
|
catsup
| i didn't merge with the pull, it said i needed to specify a branch. then it created a merge commit when i did | 11:07 |
| ← marhaban left | 11:07 |
| → marhaban joined | 11:08 |
| ← lite_ left | 11:08 |
|
catsup
| omg | 11:08 |
| ← marhaban left | 11:08 |
|
catsup
| there was acommit there, it wasn't a fastforward | 11:08 |
| → lite_ joined | 11:08 |
| → cmpera joined | 11:08 |
|
catsup
| it wasn't in remotes/joe/master after i did a fetch | 11:08 |
| ← DanielHollands left | 11:08 |
|
catsup
| probably the same branch name issue and i didn't read the output :/ | 11:09 |
|
| sorry | 11:09 |
| → LimeBlast joined | 11:09 |
| → dimitar joined | 11:09 |
| → Vampire0_ joined | 11:09 |
| ← kaendfinger[BNC] left | 11:09 |
| → spaceonline joined | 11:10 |
| dimitar → boichev | 11:11 |
| → harish joined | 11:11 |
|
boichev
| How to clone a repo inside an existing folder and then to add all the existing files in that folder to the project I cloned ? | 11:12 |
| → kaendfinger joined | 11:12 |
|
iveqy
| boichev: man git clone | 11:12 |
|
gitinfo
| boichev: the git-clone manpage is available at http://jk.gs/git-clone.html | 11:12 |
| ← lite_ left | 11:13 |
| ← rednaks left | 11:13 |
|
iveqy
| m3ga: !repro | 11:13 |
|
gitinfo
| m3ga: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting. | 11:13 |
| → jbnicolai joined | 11:13 |
| → asQuirreL joined | 11:14 |
|
jbnicolai
| Hi guys, I'm looking for a way to create a branch, remotely. So something like $ git create-remote-branch origin <branchname>. | 11:14 |
| → kolarski joined | 11:15 |
|
boichev
| iveqy: I saw the man but there it says "Cloning into an existing directory is only allowed if the directory is empty." | 11:15 |
|
jbnicolai
| This to avoid having to clone the repository locally, create a branch, push the new branch to origin. | 11:15 |
|
iveqy
| jbnicolai: you can't. But you can push a branch to a new remote branch, see man git push | 11:15 |
|
gitinfo
| jbnicolai: the git-push manpage is available at http://jk.gs/git-push.html | 11:15 |
|
iveqy
| boichev: then you've your answer =) | 11:15 |
|
jbnicolai
| iveqy: Yeah, I know I can push a branch, but I'm looking for a way to push a new branch without having to clone first. | 11:15 |
|
iveqy
| jbnicolai: you can't | 11:16 |
|
jbnicolai
| Could I do it with a hook on the server somehow? | 11:16 |
|
iveqy
| jbnicolai: or of course you can, just use git on the server | 11:16 |
|
boichev
| iveqy: what will happen if I clone it someware and move the .git folder inside my folder, then add the files ? | 11:16 |
|
moritz
| iveqy: (re snapshots vs. diffs) internally git stores commits as diffs, but from a user-facing point of view, it often makes much more sense to think of them as snapshots | 11:16 |
|
_ikke_
| jbnicolai: where should that new branch be based on? | 11:16 |
|
iveqy
| jbnicolai: how would you execute a hook if you don't have a repo? | 11:16 |
| ← subhojit777 left | 11:16 |
|
moritz
| iveqy: for example 'git checkout $commit' and 'git diff $c1 $c2' both make much more sense if you think of commits as snapshots | 11:16 |
|
iveqy
| boichev: git might be confused but it should work. But why would you do that? :S | 11:17 |
| ← reskp_ left | 11:17 |
| → reskp joined | 11:17 |
|
iveqy
| moritz: yes of course, but are the sha1 calculated as the snapshot or as the diff? | 11:17 |
|
_ikke_
| jbnicolai: why do you want to create a new branch on the remote? | 11:17 |
|
boichev
| iveqy: because I have a 2 Gb project that I want ot add to an empty GIT repo | 11:17 |
|
moritz
| iveqy: both, in some sense | 11:18 |
|
m3ga
| iveqy: https://gist.github.com/erikd/7040108 | 11:18 |
| → Olea|2 joined | 11:18 |
|
_ikke_
| moritzz, git stores snaoshoits | 11:18 |
|
| snaphots | 11:18 |
| ← jbnicolai left | 11:18 |
|
_ikke_
| moritz: Each commit contains the full state of the tree | 11:19 |
| ← reskp left | 11:19 |
|
moritz
| ... compressed by doing diffs | 11:19 |
|
_ikke_
| delta's | 11:19 |
|
moritz
| right | 11:19 |
|
iveqy
| boichev: then just cd in to the path and to a git init | 11:19 |
|
_ikke_
| Those are different things | 11:19 |
|
iveqy
| moritz: both? (and btw. it's the deltas and not the diffs that's tracked). | 11:19 |
|
boichev
| iveqy: and then git remote add origin ? | 11:19 |
|
_ikke_
| the delta's are only an implementation detail in the pack format | 11:20 |
|
| git itself works with snapshots, and git calculates diffs on the fly | 11:20 |
|
iveqy
| boichev: correct | 11:20 |
|
boichev
| thanks | 11:20 |
| ← raonyguimaraes left | 11:20 |
| → matanya joined | 11:21 |
|
iveqy
| m3ga: what's with all the strange characters? | 11:21 |
| → reskp__ joined | 11:21 |
| → lite_ joined | 11:21 |
|
moritz
| iveqy: well, by having the parent commit's sha1 inside the data that is hashed, in some sense it uniquely identifies both the diff and the snapshot | 11:21 |
|
m3ga
| thats the normal colour highlighting git uses | 11:21 |
| ← hyperair left | 11:21 |
|
iveqy
| _ikke_: so the commit sha1 is of the snapshot even if it's stored as deltas? | 11:21 |
| ← kolarski left | 11:22 |
|
_ikke_
| Yes, gits object model is about snapshots | 11:22 |
| ← glebihan_ left | 11:22 |
| → kolarski joined | 11:22 |
| → magu|q joined | 11:22 |
|
_ikke_
| the delta is only a storage format, and is a low level implementation detail | 11:22 |
| → glebihan_ joined | 11:22 |
|
iveqy
| _ikke_: yes, but it would make sense to not needing the complete worktree to calculate a sha1 | 11:23 |
|
| m3ga: very strange, I don't know actually | 11:24 |
|
_ikke_
| if you create a new repo, the objects are stored separately | 11:24 |
| → mklappstuhl joined | 11:24 |
|
_ikke_
| no delta's involved | 11:24 |
| ← bgerber left | 11:24 |
| ← bonhoeffer_ left | 11:24 |
| → dbr joined | 11:24 |
|
_ikke_
| iveqy: the sha *is* based on the whole tree | 11:24 |
| ← magu|m left | 11:24 |
|
iveqy
| _ikke_: yes but if've a worktree of 2 GB and do a commit I need a new sha1 calculated. That's expensive, if I instead just calc the sha1 of the deltas and the parents sha1, I will have the whole tree inside that sha1 anyway | 11:25 |
| ← sgambino left | 11:25 |
|
m3ga
| iveqy: damn, upstream project installed a pre-commit hook. | 11:26 |
|
j416
| iveqy: you don't have a worktree of 2 GB | 11:26 |
|
| iveqy: tree ≠ blob | 11:26 |
| ← matanya left | 11:27 |
|
iveqy
| m3ga: :) | 11:27 |
|
| _ikke_: never mind, you would get all files sha1 already from the objects... | 11:27 |
| → glosoli joined | 11:27 |
|
kolarski
| if you have 3 directories & change 1 file in 1 directory the sha of the other directories will be the same & will be ignored | 11:27 |
|
iveqy
| j416: yeah, I realised that, thanks | 11:27 |
|
m3ga
| iveqy: do i look like i'm smiling? | 11:27 |
|
j416
| m3ga: :) | 11:28 |
| → valtido joined | 11:28 |
|
iveqy
| kolarski: git doesn't track directories, git doesn't track files, git does track changes. So yes, only your changes will be commited | 11:28 |
|
| m3ga: commit hooks are funny =) | 11:28 |
| → Stalkr_ joined | 11:29 |
| ← WakiMiko left | 11:29 |
|
_ikke_
| git tracks content to be more precise | 11:29 |
|
| It's object model is based on contents of files | 11:29 |
|
iveqy
| m3ga: or wait, you won't be affected if your remote has a pre-commit hook. It won't run for you since you commit locally | 11:30 |
|
_ikke_
| two files with the same contents are stored as one object | 11:30 |
| → matanya joined | 11:30 |
| → menace joined | 11:31 |
| ← rat_thing left | 11:31 |
| → JoshuaA joined | 11:31 |
| ← Ozch left | 11:32 |
|
JoshuaA
| Hi guys, is there a way to trigger a manual/custom git hook (or basically any script) remotely through git? | 11:32 |
|
_ikke_
| no | 11:32 |
| ← _Vi left | 11:32 |
| → HicksD joined | 11:32 |
| → tommyziegler joined | 11:32 |
|
JoshuaA
| Something like $ git trigger-hook origin my-custom-hook | 11:32 |
|
_ikke_
| the git protocol is only about transfering history | 11:32 |
| → subhojit777 joined | 11:33 |
| ← lhunath left | 11:33 |
|
JoshuaA
| Fair answer, was hoping to be able to piggyback on the already established git credentials | 11:33 |
| ← matanya left | 11:33 |
| ← subhojit777 left | 11:33 |
| ← AAA_awright left | 11:33 |
| ← grahamsavage__ left | 11:33 |
| → bgerber joined | 11:33 |
| → subhojit777 joined | 11:34 |
| ← JoshuaA left | 11:34 |
| ← subhojit777 left | 11:34 |
|
j416
| JoshuaA: you could install the hook on the remote and trigger it on some git event, of course. But perhaps you already found that not sufficient. | 11:34 |
|
_ikke_
| What protocol are you using? | 11:35 |
| → subhojit777 joined | 11:35 |
| ← subhojit777 left | 11:35 |
| ← jaeckel left | 11:36 |
| → subhojit777 joined | 11:36 |
| ← kolarski left | 11:37 |
| ← gua_ould left | 11:38 |
| → kolarski joined | 11:38 |
| → khushildep joined | 11:38 |
| → mmitchell joined | 11:38 |
| → kewah joined | 11:38 |
| → AAA_awright joined | 11:39 |
| → gua_ould joined | 11:40 |
| ← dbuch left | 11:40 |
| ← mmitchell left | 11:41 |
| ← mizu_no_oto left | 11:41 |
| → mmitchell joined | 11:42 |
| → Ozch joined | 11:44 |
| → sgambino joined | 11:44 |
| ← threesome left | 11:45 |
| → grahamsavage__ joined | 11:45 |
| → grilix joined | 11:46 |
| ← chepre left | 11:47 |
| ← markovh left | 11:47 |
| ← mmitchell left | 11:47 |
| ← JohnBat26 left | 11:47 |
| → markovh joined | 11:47 |
| → jaeckel joined | 11:47 |
| ← jaeckel left | 11:47 |
| → jaeckel joined | 11:47 |
| → matanya joined | 11:48 |
| → threesome joined | 11:48 |
| ← kcj left | 11:50 |
| → InvidFlower joined | 11:50 |
| → m0viefreak joined | 11:51 |
| ← tobeplugged left | 11:53 |
| ← mobileblue left | 11:53 |
| → mobileblue joined | 11:54 |
| → svector joined | 11:56 |
| ← tirengarfio left | 11:56 |
| → babilen joined | 11:56 |
| → Entomo joined | 11:56 |
| → hashpuppy joined | 11:56 |
| ← menace left | 11:57 |
| ← Entomo left | 11:57 |
| → psoo joined | 11:57 |
| → saurabh joined | 11:57 |
| → tirengarfio joined | 11:58 |
| → gzg joined | 11:58 |
| → mizu_no_oto joined | 11:58 |
| ← _goTAN left | 12:01 |
| → pfFredd joined | 12:01 |
| → harobed_ joined | 12:01 |
| → chepre joined | 12:01 |
| ← juvenal_away left | 12:03 |
| ← stayarrr left | 12:04 |
| → juvenal joined | 12:04 |
| ← banisterfiend left | 12:05 |
| ← asQuirreL left | 12:05 |
| → milojaden joined | 12:08 |
| → banisterfiend joined | 12:08 |
| ← MafooUK left | 12:08 |
| → rednaks joined | 12:09 |
| ← mikecmpbll left | 12:10 |
| ← robbyoconnor left | 12:10 |
| → tobeplugged joined | 12:10 |
| ← milojaden left | 12:11 |
| ← ewnd9 left | 12:11 |
| → normanrichards joined | 12:13 |
| → WakiMiko joined | 12:13 |
| ← rednaks left | 12:15 |
| ← SicoWork left | 12:16 |
| → lattera_ joined | 12:16 |
| ← lattera left | 12:16 |
| → starlays1 joined | 12:16 |
| ← perlstein left | 12:17 |
| ← schemanic left | 12:17 |
| ← nioncode left | 12:17 |
| → kalleth_ joined | 12:17 |
| ← h34d3r left | 12:17 |
| ← ikanobori left | 12:17 |
| → SicoWork joined | 12:18 |
| → breakingthings joined | 12:18 |
| → averell joined | 12:18 |
| → ikanobori joined | 12:18 |
| ← starlays left | 12:18 |
| → nioncode joined | 12:18 |
| → AlexanderS joined | 12:18 |
| → Seveas joined | 12:18 |
| → btree_ joined | 12:18 |
| → Fuxx joined | 12:18 |
| → kenyon joined | 12:18 |
| → SegFaultAX joined | 12:19 |
| → SleePy joined | 12:19 |
| ← Stalkr_ left | 12:19 |
| → Stalkr_ joined | 12:19 |
| → MafooUK joined | 12:19 |
| → h34d3r joined | 12:20 |
| → decotii joined | 12:20 |
| ← btree left | 12:20 |
| → freeed joined | 12:21 |
| → mmitchell joined | 12:21 |
| juvenal → juvenal_away | 12:22 |
| ← matanya left | 12:22 |
| ← nnyk_ left | 12:22 |
| ← chepre left | 12:24 |
| juvenal_away → juvenal | 12:25 |
| ← sgambino left | 12:27 |
| → keller joined | 12:28 |
| ← Orbitrix left | 12:30 |
| → nnyk_ joined | 12:31 |
| → momomomomo joined | 12:32 |
| → paulweb515 joined | 12:32 |
| ← grilix left | 12:32 |
| ← keller left | 12:33 |
| → grilix joined | 12:33 |
| → IrishPrime joined | 12:33 |
| ← dyng left | 12:33 |
| → keller joined | 12:34 |
| → dyng joined | 12:34 |
| ← Stalkr_ left | 12:34 |
| → Stalkr_ joined | 12:35 |
| → dyng_ joined | 12:35 |
| ← dyng left | 12:35 |
| ← keller left | 12:35 |
| ← MoSal left | 12:36 |
| → keller joined | 12:36 |
| → wiherek joined | 12:36 |
|
wiherek
| hi, i have a repo and I added another repo as submodule inside a directory | 12:37 |
| ← lpapp left | 12:37 |
|
wiherek
| but that submodule is not pushed into my main repo. When i do a new clone, the directory is empty | 12:37 |
| ← grilix left | 12:37 |
|
iveqy
| wiherek: !submodule | 12:37 |
|
gitinfo
| wiherek: git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html | 12:37 |
|
iveqy
| wiherek: seems correct, you need to read up about submodules, see the link | 12:38 |
| ← dyng_ left | 12:38 |
| ← paulweb515 left | 12:38 |
| → dyng joined | 12:38 |
| → sword joined | 12:38 |
| → xjiujiu_ joined | 12:38 |
| → _Vi joined | 12:39 |
| ← sqlnoob left | 12:40 |
| → milojaden joined | 12:40 |
| → Orbitrix joined | 12:40 |
| ← Orbitrix left | 12:40 |
| → TheBrainWork joined | 12:40 |
| → grilix joined | 12:40 |
| ← mizu_no_oto left | 12:40 |
| → Orbitrix joined | 12:40 |
| ← dlan left | 12:41 |
| ← xjiujiu left | 12:41 |
| ← boichev left | 12:41 |
| → rat_thing joined | 12:42 |
| → dlan joined | 12:42 |
| → Guest1779 joined | 12:42 |
| → luxgeek joined | 12:42 |
| ← dyng left | 12:43 |
| → chepre joined | 12:43 |
| ← flaguy48 left | 12:44 |
| → intripoon joined | 12:45 |
| → m7w_ joined | 12:45 |
| ← intripoon_ left | 12:45 |
| → simesy joined | 12:45 |
| ← gzg left | 12:46 |
| ← m7w left | 12:46 |
| → R1KRDO joined | 12:46 |
| m7w_ → m7w | 12:46 |
| ← milojaden left | 12:46 |
| → rat_thin_ joined | 12:46 |
| ← rat_thing left | 12:46 |
| → schemanic joined | 12:47 |
| ← normanrichards left | 12:47 |
| → el3ctron_ joined | 12:47 |
| → normanrichards joined | 12:48 |
| → shuaib joined | 12:49 |
| → tchan joined | 12:49 |
| ← Stalkr_ left | 12:49 |
| → Streward joined | 12:49 |
| ← nnyk_ left | 12:49 |
| → paulweb515 joined | 12:50 |
| → Stalkr_ joined | 12:50 |
| → nnyk_ joined | 12:51 |
| ← schemanic left | 12:52 |
| → ewnd9 joined | 12:54 |
| ← pfFredd left | 12:54 |
| → rjhunter joined | 12:54 |
|
m3ga
| i'm using 'git send-email', how do i get the v2 part of the '[PATCH v2 X/Y]' subject line? | 12:54 |
| → flaguy48 joined | 12:55 |
| → btree joined | 12:55 |
|
m3ga
| i've read the man page | 12:55 |
| → Sigma[Mtp] joined | 12:56 |
| ← btree_ left | 12:57 |
| → jerius joined | 12:58 |
| ← normanrichards left | 12:59 |
| [emmajane] → emmajane | 13:00 |
| → kcj joined | 13:00 |
| → dsdeiz joined | 13:00 |
| ← dsdeiz_ left | 13:01 |
| → iamjarvo joined | 13:01 |
| ← dlan left | 13:01 |
| → dlan joined | 13:02 |
| ← R1KRDO left | 13:02 |
| ← Wolfspyre left | 13:02 |
| → psynor joined | 13:04 |
| → R1KRDO joined | 13:04 |
| ← _ikke_ left | 13:05 |
| → dsdeiz_ joined | 13:06 |
| ← dsdeiz left | 13:07 |
| → stephCoue joined | 13:08 |
| → gregsmith joined | 13:08 |
| → ozette joined | 13:08 |
| → Burer joined | 13:09 |
| ← Burer left | 13:09 |
| → Burer joined | 13:09 |
| → sgambino joined | 13:09 |
| → angelsl joined | 13:09 |
| ← Burer left | 13:10 |
| ← breakingthings left | 13:10 |
| → Burer joined | 13:11 |
| ← Burer left | 13:11 |
| → Burer joined | 13:11 |
| → stayarrr joined | 13:11 |
| ← tobeplugged left | 13:11 |
| ← starlays1 left | 13:13 |
| ← Raging_Hog left | 13:13 |
| ← tommyziegler left | 13:15 |
| ← MafooUK left | 13:15 |
| → normanrichards joined | 13:17 |
| ← reskp__ left | 13:17 |
| → reskp_ joined | 13:18 |
| ← cotton left | 13:19 |
| ← iamjarvo left | 13:20 |
| → dserodio joined | 13:20 |
| ← dsdeiz_ left | 13:20 |
| ← Burer left | 13:20 |
| → cotton joined | 13:20 |
| ← keller left | 13:20 |
| → iamjarvo joined | 13:21 |
| → devoldmx3 joined | 13:21 |
| → Burer joined | 13:21 |
| → waaadim joined | 13:21 |
|
waaadim
| hello everybody | 13:22 |
|
gitinfo
| waaadim: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on. | 13:22 |
| → reskp__ joined | 13:22 |
| → rideh joined | 13:22 |
| ← Burer left | 13:22 |
| → zorzar joined | 13:22 |
| ← devoldmx left | 13:22 |
| → tobeplugged joined | 13:22 |
| → iamjarvo_ joined | 13:22 |
| → breakingthings joined | 13:22 |
| → Burer joined | 13:23 |
| ← Burer left | 13:23 |
| → Burer joined | 13:23 |
| ← reskp_ left | 13:23 |
|
waaadim
| so I have 2 branches, and I want to create a third one from this 2 | 13:23 |
| ← _nova left | 13:23 |
| ← xjiujiu_ left | 13:23 |
| ← gdrc left | 13:23 |
|
waaadim
| what I did is: | 13:23 |
| → xjiujiu joined | 13:23 |
|
waaadim
| checkout branch1 | 13:23 |
|
| git checkout -b branch3 | 13:24 |
|
| git rebase branch2 | 13:24 |
| ← psoo left | 13:24 |
| ← kolarski left | 13:24 |
| → kolarski joined | 13:24 |
| → Zarthus joined | 13:24 |
|
waaadim
| and the problem is that now some changes were made on branch1 | 13:24 |
|
| what is the best way to add those changes to my branch3 (branch1 + branch2) | 13:25 |
| ← alorence left | 13:25 |
|
j416
| waaadim: rebase or merge | 13:25 |
|
| waaadim: possibly cherry-pick | 13:25 |
|
| waaadim: read about those three and decide | 13:25 |
| ← iamjarvo left | 13:26 |
| ← jaseemabid left | 13:26 |
| ← juril left | 13:26 |
| ← mklappstuhl left | 13:26 |
| ← iamjarvo_ left | 13:26 |
| → iamjarvo joined | 13:27 |
|
waaadim
| j416: ok I'll take a look at cherry pick. because rebase gave me some conflict in a few files witch I didn't change in branch1 | 13:27 |
| ← lite_ left | 13:27 |
|
j416
| waaadim: good luck. come back if you have more questions. | 13:28 |
| MrDHat|offline → MrDHat | 13:28 |
| → lite_ joined | 13:28 |
| → jaseemabid joined | 13:28 |
| ← jaseemabid left | 13:28 |
| → Roots47 joined | 13:28 |
| → asQuirreL joined | 13:28 |
| ← Roots47 left | 13:29 |
| → jaseemabid joined | 13:29 |
| → Roots47 joined | 13:29 |
| → tommyziegler joined | 13:30 |
| → mizu_no_oto joined | 13:31 |
| → MrV joined | 13:31 |
|
Roots47
| i just did a "git pull branchname" while i was on the wrong branch and now i have merge conflicts. How can I undo the pull and just keep my local changes from prior to the pull? | 13:31 |
| ← subhojit777 left | 13:31 |
| lattera_ → lattera | 13:32 |
| ← lite_ left | 13:32 |
| ← ezekielnoob left | 13:32 |
| → herdingcat joined | 13:32 |
| ← kcj left | 13:33 |
| → kcj_ joined | 13:33 |
|
arand
| Roots47: git merge --abort ? | 13:33 |
| → Dougie187 joined | 13:34 |
| ← waaadim left | 13:34 |
| ← reskp__ left | 13:34 |
| → reskp_ joined | 13:35 |
| → devoldmx joined | 13:35 |
| → apipkin joined | 13:35 |
| ← v0n left | 13:35 |
| ← reskp_ left | 13:35 |
| → mikecmpbll joined | 13:35 |
| → tham joined | 13:36 |
| → DoniRS joined | 13:36 |
| → user258467 joined | 13:37 |
| ← h_kon_ left | 13:38 |
| ← devoldmx3 left | 13:38 |
| → Chryyz joined | 13:38 |
| ← iamjarvo left | 13:38 |
| → iamjarvo joined | 13:39 |
| → echo-area joined | 13:39 |
| → ezekielnoob joined | 13:40 |
| → tbmiller joined | 13:41 |
| → aChatir joined | 13:41 |
| ← kcj_ left | 13:42 |
| → MafooUK joined | 13:42 |
| ← Guest75579 left | 13:42 |
| → kcj joined | 13:42 |
| ← iamjarvo left | 13:43 |
| ← freeed left | 13:44 |
| ← apipkin left | 13:44 |
| → freeed joined | 13:44 |
| ← tommyziegler left | 13:44 |
| → adac joined | 13:45 |
| ← devoldmx left | 13:45 |
| → richgilbank joined | 13:45 |
| → Baluse joined | 13:45 |
| → devoldmx joined | 13:47 |
|
adac
| I was wondering: If I have a local repository and I wanted to merge it wit a second repository from github: how to do that? My local repository should stay the default remote | 13:48 |
| → MyTallest joined | 13:49 |
| → reskp_ joined | 13:49 |
| → valgrind joined | 13:50 |
| ← MyTallest left | 13:50 |
| → phile joined | 13:50 |
|
lov
| git remote add secondRepo git://path/to/repo; git fetch secondRepo; git merge secondRepo/master; | 13:50 |
|
| this may or may not be what you actually want, however. | 13:50 |
|
| do you actually want a !submodule ? | 13:50 |
|
gitinfo
| git-submodule is ideal to add subsidiary git repositories to a git superproject when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes upstream. See http://book.git-scm.com/5_submodules.html | 13:50 |
| ← InvidFlower left | 13:50 |
| → Gooder joined | 13:52 |
| → freestyl3r joined | 13:52 |
| ← momomomomo left | 13:52 |
| ← marthinal left | 13:54 |
| → AaronMT joined | 13:54 |
| → _nova joined | 13:56 |
|
adac
| lov, actually i have my local git repo. I could add a new branch and call it "original" and then clone the master of the github repository into my branch "orignal" | 13:56 |
|
| donÄt know if taht is possible | 13:56 |
| ← thierryp_ left | 13:56 |
| → thierryp joined | 13:56 |
|
lov
| er... | 13:56 |
|
adac
| the remote of the branch then would point to the github repo | 13:56 |
| → joshbetz joined | 13:56 |
|
lov
| ok, so I'm not exactly sure what you're trying to do. | 13:56 |
|
| Are you just trying to add a remote? | 13:57 |
| ← devoldmx left | 13:57 |
|
lov
| if so, just use git remote add and add the github repo as a remote. Create a local branch as you see fit. | 13:57 |
|
| (don't forget to fetch) | 13:57 |
| → devoldmx joined | 13:57 |
| → v0n joined | 13:58 |
|
adac
| lov my "original" branch should have the github remote | 13:58 |
|
| my other branches should have the remote of my server | 13:59 |
| → mklappstuhl joined | 13:59 |
|
lov
| ok | 13:59 |
| ← japaric left | 13:59 |
| ← s0ber left | 13:59 |
| ← glosoli left | 13:59 |
|
lov
| git remote add github git://path/to/github/repo | 13:59 |
|
| git fetch github | 13:59 |
|
| git branch original github/master | 13:59 |
| → s0ber joined | 13:59 |
|
lov
| actually, you should probably do git branch --track original github/master | 14:00 |
| ← donmichelangelo left | 14:00 |
| → devoldmx3 joined | 14:00 |
|
lov
| (--track is the default unless you changed something) | 14:00 |
| ← tham left | 14:00 |
|
adac
| lov, that sounds good | 14:00 |
|
| :) | 14:01 |
| → juvenal_ joined | 14:01 |
| → donmichelangelo joined | 14:01 |
| ← herdingcat left | 14:01 |
| → tham joined | 14:01 |
| ← juvenal_ left | 14:02 |
| ← devoldmx left | 14:02 |
| ← Search12 left | 14:02 |
| ← juvenal left | 14:02 |
| → juvenal joined | 14:03 |
| ← el3ctron_ left | 14:03 |
| → japaric joined | 14:05 |
| → el3ctron_ joined | 14:06 |
| → devoldmx joined | 14:07 |
| ← kbart left | 14:07 |
| ← normanrichards left | 14:08 |
| → marthinal joined | 14:09 |
| ← MrV left | 14:09 |
| ← g0bl1n left | 14:10 |
| ← netiul left | 14:10 |
| → epicowl joined | 14:10 |
| ← devoldmx3 left | 14:11 |
| ← ezekielnoob left | 14:11 |
| ← simesy left | 14:12 |
| → simesy joined | 14:13 |
| → thannoy_ joined | 14:13 |
| → LuxuryMode joined | 14:13 |
| ← jaseemabid left | 14:13 |
| ← Guest left | 14:14 |
| ← chepre left | 14:14 |
| → perlstein joined | 14:15 |
| ← h0bbit left | 14:15 |
| → herdingcat joined | 14:17 |
| ← marccollin left | 14:17 |
| → hyperair joined | 14:17 |
| → keryell joined | 14:17 |
| ← simesy left | 14:17 |
| → ezekielnoob joined | 14:18 |
| ← mdiers left | 14:19 |
| ← rainbyte left | 14:19 |
| → cagedwisdom_ joined | 14:20 |
| → _ikke_ joined | 14:22 |
| ← cagedwisdom left | 14:22 |
| → fostertheweb joined | 14:23 |
| ← fostertheweb left | 14:23 |
| ← japaric left | 14:23 |
| ← epicowl left | 14:26 |
| → Wolfspyre joined | 14:26 |
| ← kewah left | 14:26 |
| ← R1KRDO left | 14:26 |
| → Malukenho joined | 14:27 |
| ← raf left | 14:27 |
| → notcharon joined | 14:28 |
| → tplaner joined | 14:29 |
| ← nickbelhomme left | 14:29 |
| → kewah joined | 14:29 |
| → mastro joined | 14:31 |
| → rainbyte joined | 14:32 |
| → PaulCapestany joined | 14:32 |
| → iamjarvo joined | 14:34 |
| ← xjiujiu left | 14:35 |
| ← Streward left | 14:35 |
| → chuckharmston joined | 14:35 |
| ← xobb left | 14:35 |
| ← iamjarvo left | 14:36 |
| → xobb joined | 14:36 |
| ← modInfo3 left | 14:36 |
| → iamjarvo joined | 14:36 |
| → bwreilly joined | 14:37 |
| ← notcharon left | 14:37 |
| ← bwreilly left | 14:37 |
| ← daito left | 14:37 |
| → marhinal_friday joined | 14:37 |
| ← thierryp left | 14:38 |
| → daito joined | 14:38 |
| ← marthinal left | 14:38 |
| ← marhinal_friday left | 14:39 |
| → acharlieh joined | 14:39 |
| → Stalkr^ joined | 14:39 |
| ← richgilbank left | 14:40 |
| → gzg joined | 14:40 |
| → davividal joined | 14:42 |
| ← beautifulmind left | 14:42 |
| ← Baluse left | 14:42 |
| ← jefferai_gone left | 14:43 |
| → Baluse joined | 14:43 |
| ← daito left | 14:43 |
| ← ezekielnoob left | 14:43 |
| → iamjarvo_ joined | 14:43 |
| → marhinal_friday_ joined | 14:44 |
| → benkay joined | 14:44 |
| → richgilbank joined | 14:45 |
|
benkay
| if I commit a thing | 14:45 |
| → matteo joined | 14:45 |
|
benkay
| checkout an old commit | 14:45 |
|
| and then reset HEAD | 14:45 |
|
| how fucked am I? | 14:45 |
| ← gregsmith left | 14:45 |
| ← blindingdawn left | 14:45 |
|
dr_lepper
| benkay: it won't do anything at all | 14:46 |
| ← iamjarvo left | 14:47 |
| marhinal_friday_ → marhinal_friday | 14:47 |
| → SHyx0rmZ joined | 14:47 |
| marhinal_friday → marthinal | 14:47 |
|
benkay
| mkay. i was briefly concerned because git log did not show commits forward in time from my detached head state | 14:47 |
|
| but then discovered git reflog | 14:48 |
|
valtido
| has anyone had an experience with Dev, Test, Production/live environment work flow? | 14:48 |
| ← tobeplugged left | 14:48 |
|
dr_lepper
| git log never shows commits forward in time | 14:48 |
| ← kewah left | 14:48 |
| → Jackneill joined | 14:48 |
| → thiago joined | 14:48 |
|
jeek
| i have dev/qc/test/prod experience, with an additional ops environment where the ops team gets to break and fix things | 14:48 |
| ← wiherek left | 14:49 |
| ← PaddyPatPat left | 14:49 |
| → devoldmx3 joined | 14:49 |
|
valtido
| is there something I can read on how to achieve that ? | 14:49 |
| → Swayz joined | 14:49 |
| → normanrichards joined | 14:50 |
|
benkay
| dr_lepper: i realize this now :) | 14:50 |
|
valtido
| coz my team and I are a little all over the place, with GIT workflow, using a single (master branch) but I know it should be different | 14:50 |
|
| @jeek | 14:50 |
|
benkay
| valtido: http://nvie.com/posts/a-successful-git-branching-model/ | 14:51 |
|
lov
| valtido: note that it's important to understand that git is not a deployment mechanism, just a source control mechanism. | 14:51 |
| ← devoldmx left | 14:51 |
| → ezekielnoob joined | 14:51 |
| ← richgilbank left | 14:51 |
|
lov
| having dev, qa, and prod endpoints is orthogonal to your source control choice | 14:51 |
|
benkay
| on the other hand, i like deploying on merges to master | 14:52 |
| ← saurabh left | 14:53 |
| ← anli left | 14:54 |
| → richgilbank joined | 14:56 |
|
valtido
| @benkay I have read that, but it's unclear if there is a person controlling the multiple branches or a number of people, what happened with us once when we had multiple branches is, that eventually they started to diverge | 14:56 |
| ← xxpor left | 14:56 |
|
valtido
| it was becoming a hussle | 14:56 |
| → dorkmafia joined | 14:56 |
| → RobW_ joined | 14:57 |
| → leeN joined | 14:58 |
| ← dcpc007 left | 14:58 |
| ← herdingcat left | 14:58 |
| → bwreilly joined | 14:58 |
| ← marthinal left | 14:58 |
|
RobW_
| Is there a way to respect only the gitignore rules of the gitignore in the cu rrent directory? | 14:58 |
| → natechan joined | 14:58 |
| ← Misan left | 14:58 |
|
RobW_
| FWIU gitignore settings cascade from top directories down. | 14:59 |
|
| top/parent | 14:59 |
| ← rath left | 14:59 |
| ← zjason left | 14:59 |
|
milki
| ignore anything with a / in them? | 14:59 |
|
| unignore* | 14:59 |
| ← rjhunter left | 14:59 |
| → herdingcat joined | 15:00 |
| ← VictorCL left | 15:00 |
|
benkay
| valtido: well, you do need to do some work to keep your branches up to date. | 15:00 |
| → tommyziegler joined | 15:00 |
| → zjason joined | 15:00 |
|
benkay
| valtido: you can't all work in a vacuum, that don't make no damn sense | 15:00 |
| → apipkin joined | 15:00 |
|
lov
| valtido: realistically, you don't want to have branches except for possibly your prod, where you'll potentially need to deploy cherry-picked commits rather than your whole upstream. | 15:01 |
| → King_Hual joined | 15:01 |
| → Davey joined | 15:01 |
|
lov
| or rather, while you do have branches, you want them to basically just be pointers, except for when you need to exclude certain commits. | 15:01 |
| dwmw2 → dwmw2_gone | 15:02 |
| ← ThomasLocke left | 15:02 |
|
valtido
| hmmmm, so how many branches do you have typically ? | 15:03 |
| → lmat joined | 15:03 |
|
benkay
| does ops just go off and do crazy things for weeks at a time? | 15:03 |
| → shinnya joined | 15:03 |
|
benkay
| on my local machine or the remote repository i maintain? | 15:03 |
|
| on my local machine i branch freely, and mostly always from master. | 15:04 |
|
RobW_
| milki: So just unignore everything at the top of the local gitignore then add back in? | 15:04 |
|
valtido
| ok I think I may have tapped into something :) you have different branches on local, and different on remote ? | 15:04 |
| ← jjasinski left | 15:04 |
|
benkay
| yes. | 15:04 |
|
| that is a particularly compelling feature of git. | 15:04 |
| → diegoviola joined | 15:04 |
|
valtido
| so on remote (to start with) how many u keep ? | 15:05 |
| MrDHat → MrDHat|offline | 15:05 |
| ← dhruvasagar left | 15:05 |
|
benkay
| branch locally, fuck everything up, cherry pick to a nice clean branch, merge to master and deploy. | 15:05 |
| → ojacobson joined | 15:05 |
| ← reskp_ left | 15:05 |
|
benkay
| daaah, 5? | 15:05 |
|
| maybe 7 | 15:05 |
|
| master and test | 15:05 |
|
| plus various features in the works | 15:05 |
| → reskp joined | 15:05 |
| → marthinal joined | 15:05 |
|
diegoviola
| hi | 15:06 |
| → tang^ joined | 15:06 |
|
valtido
| oh I see, that is enlightening ... | 15:07 |
| → chepre joined | 15:07 |
|
valtido
| how often do you do cherry picking? | 15:07 |
|
| nightly ? | 15:07 |
|
benkay
| as infrequently as possible. | 15:07 |
|
| devs are responsible for pushing clean branches. | 15:07 |
|
| devs *must* be responsible for pushing clean branches. | 15:07 |
| ← ph88 left | 15:07 |
|
benkay
| ain't nobody want to clean up your stinking pile of mess in the middle of the conference room :( | 15:07 |
| → Advocation joined | 15:08 |
|
benkay
| the ideal process is for a dev to have responsiblity for a feature, work that feature in a branch, and then push that branch up to the remote either when they're ready to share it with people or deploy it | 15:08 |
| → dreiss_ joined | 15:09 |
|
benkay
| in either event, the branch quality is the developers responsibility, not the repository maintainers. | 15:09 |
|
valtido
| what if for example I and another dev have both done clean pushes, but somehow when the two are there may pose a bug... | 15:09 |
| → tobeplugged joined | 15:09 |
|
benkay
| your branches won't conflict until you merge them both into a different branch | 15:09 |
|
| unless you named them the same thing, which, maybe don't do that. | 15:09 |
| → reskp___ joined | 15:10 |
|
benkay
| developers are responsible for keeping their local feature branches up to date with test and master | 15:10 |
| ← reskp left | 15:10 |
|
benkay
| a good continuous integration tool can help a lot with this: if a new merge hits master it can test that merge against all branches and auto-merge master into your developers branches without them even noticing | 15:11 |
|
ojacobson
| also SCM tools are not a replacement for communication :) | 15:11 |
|
benkay
| yeah that | 15:11 |
|
| it actually sounds like you don't have solid engineering practices | 15:11 |
|
| sorry that came off more harshly than i meant :( | 15:11 |
| → dhruvasagar joined | 15:11 |
| → kewah joined | 15:11 |
| → Mattias joined | 15:12 |
|
benkay
| another common pattern is "okay guys everbody pull" | 15:12 |
|
valtido
| it depends if I get offended easy, but no I don't | 15:12 |
| → jefferai joined | 15:12 |
|
benkay
| (that's nice. i try to err on the side of not pissing people off.) | 15:12 |
|
valtido
| we use jenkins for CI | 15:12 |
| ← adac left | 15:12 |
| ← cbreak-work left | 15:13 |
|
benkay
| anyways | 15:13 |
|
valtido
| it's better to ask stupid questions, than to not ask and be ignorant forever... or something along those lines... | 15:13 |
|
benkay
| yeah totally | 15:13 |
|
| once you smash through the barriers of ignorance into fluency with the toolchain you can do some pretty awesome stuff | 15:13 |
|
| but it takes the humility to say "i don't know" in public | 15:14 |
| → DABLGSG joined | 15:14 |
| ← ezekielnoob left | 15:14 |
| ← deuterium left | 15:14 |
| ← apipkin left | 15:14 |
|
benkay
| that said, the best knowledge i've ever gotten was from saying "hey so i have no idea what i'm doing here but this is what i think is going on and can someone please explain where my paradigms are broken?" | 15:15 |
| ← Xethron left | 15:15 |
| ← cagedwisdom_ left | 15:15 |
| ← banisterfiend left | 15:15 |
| → deuterium joined | 15:16 |
|
valtido
| I'll copy that :) and paste it (as Im sure I would be handy) | 15:16 |
|
| you have been very helpful, many thanks. | 15:16 |
|
benkay
| any time! | 15:17 |
| ← mishok13 left | 15:17 |
|
benkay
| give back to the community when you reach that point in your career :) | 15:17 |
| → Search112 joined | 15:17 |
|
valtido
| will do :) | 15:18 |
| ← rat_thin_ left | 15:19 |
| ← Mattias left | 15:20 |
| → ezekielnoob joined | 15:22 |
| → ngladitz joined | 15:22 |
|
valtido
| @benkay your CI is it something you share with others or have on your local machine or both ? | 15:22 |
| → rethus joined | 15:22 |
|
benkay
| i'm a fan of circleci | 15:22 |
|
| it watches the repository, runs tests and shows the results to everyone | 15:23 |
|
rethus
| how can i local with 2 git repos? I want to have one master. And create a clone of it for development. | 15:23 |
|
benkay
| but we also keep a pretty transparent development flow | 15:23 |
|
| lots of code sharing and peer education etc | 15:23 |
| ← deuterium left | 15:23 |
| → simesy joined | 15:24 |
|
benkay
| rethus do branches not work for your use case? | 15:24 |
| ← svector left | 15:24 |
| ← Stalkr^ left | 15:24 |
| ← mklappstuhl left | 15:24 |
| ← keryell left | 15:25 |
|
valtido
| Well, I myself am a newbie on git, just know the basics... other team members came from *caugh caugh* SVN, so they use git as an SVN * terrible but hey bad habbits die hard* | 15:26 |
|
lmat
| I use git svn find-rev "r"revnum to find a git commit name for an svn rev. The problem is that often there is no git hash for a given svn rev (say it's on a branch I don't have or something). What I would like to do is what svn does, go back to the latest rev before the one I gave. | 15:26 |
|
| Do I need to write a special script for this ? Or does git do it for me ? | 15:27 |
| → looper joined | 15:27 |
|
benkay
| branch agressively valtido | 15:27 |
|
| maybe use gitbox | 15:27 |
| ← tbmiller left | 15:28 |
| ← simesy left | 15:28 |
|
rethus
| benkay: I use eclipse with egit. I have git-main repo in /git, and my projekt in /projekts/Pro1. Than i fetch the "master" from my main git, but no files in my project-folder are visible | 15:28 |
| ← lb1a left | 15:30 |
|
benkay
| eclipse and egit are out of my domain, friend :( | 15:30 |
| ← mizu_no_oto left | 15:31 |
| ← TheBrainWork left | 15:31 |
| ← grilix left | 15:31 |
| → TheBrainWork joined | 15:31 |
| → grilix_ joined | 15:31 |
| ← _Vi left | 15:31 |
| ← arand left | 15:32 |
| ← PaulCapestany left | 15:32 |
| ← MafooUK left | 15:32 |
| → DeltaHeavy joined | 15:32 |
|
DeltaHeavy
| Is there any reason BitBucket would be giving me "No repository at given URL". I'm 100% sure I have a repo there, but idk how it'd even access it without a password so that's why I'm wondering. Anybody nkow why? git://example.com/home/decord/public_html/staging | 15:33 |
|
ojacobson
| !repro | 15:34 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting. | 15:34 |
| juvenal → juvenal_away | 15:34 |
|
ojacobson
| Your URL there is useless, being example.com-ish | 15:34 |
|
DeltaHeavy
| ojacobson: I don't really want to provide my whole URL but w/e, here it is - git://decorgroupinc.com/home/decord/public_html/staging | 15:34 |
| → deuterium joined | 15:34 |
|
ojacobson
| How does bitbucket get involved here? | 15:34 |
| ← hoschi left | 15:34 |
|
DeltaHeavy
| It's asking me for the repo URL | 15:34 |
|
| Trying to get this repo on here | 15:35 |
|
ojacobson
| If there's a git-daemon server on decorgroupinc.com, it's not listening to the internet | 15:35 |
|
| attempts to contact it stall, then time out | 15:35 |
| ← mikecmpbll left | 15:35 |
| juvenal_away → juvenal | 15:35 |
|
DeltaHeavy
| I don't have a git-daemon on there and can't really get one on there right now. | 15:35 |
| → mikecmpbll joined | 15:36 |
|
ojacobson
| Does that URL work for you if you clone it yourself? | 15:36 |
|
DeltaHeavy
| Yeah, but I'm using SSH | 15:36 |
|
ojacobson
| So "no", then | 15:36 |
|
| (a different URL does work, but not the one you're trying to use.) | 15:36 |
|
DeltaHeavy
| Thing is bitbucket doesn't have 'ssh' under protocols I can use =/ | 15:37 |
| → defaultro joined | 15:37 |
|
ojacobson
| Back up about eight steps and describe what goals you're trying to achieve here | 15:37 |
|
| When all of this "works", what will you have accomplished? | 15:38 |
| ← szx left | 15:38 |
|
ojacobson
| I need more context to make sense of what you're saying. :) | 15:38 |
|
DeltaHeavy
| Honestly I really just want a GUI to browser file changes. | 15:38 |
|
| That's it pretty much | 15:38 |
| → vkz joined | 15:38 |
|
DeltaHeavy
| Way to frustrating to do it via CLI | 15:38 |
|
ojacobson
| !gui | 15:38 |
|
gitinfo
| Graphical user interfaces are not supported here. If you want to get support, it needs to be through the git CLI. Reasons: 1) Because very few people here use the graphical interface. 2) Because giving instructions for GUI's is difficult. 3) The command line gives you a history of what commands you have executed. | 15:38 |
|
ojacobson
| wrong factoid | 15:38 |
|
| There are a few decent *local* GUIs you can run, on whatever repos you have cloned/mirrored locally - have you tried them? | 15:38 |
|
DeltaHeavy
| Nope | 15:39 |
|
ojacobson
| SourceTree, Tower, Tortoise, hell even git-gui and gitk :) | 15:39 |
|
DeltaHeavy
| What would you suggest? | 15:39 |
| → dyng joined | 15:39 |
|
ojacobson
| GitX is okay but completely stagnant | 15:39 |
| → erichynds joined | 15:39 |
|
benkay
| gitbox is pretty excellent | 15:39 |
| → Mattias joined | 15:40 |
| → TomyLobo joined | 15:40 |
|
DeltaHeavy
| Checkout out sourcetree right now | 15:40 |
| ← dreiss_ left | 15:41 |
| dwmw2_gone → dwmw2 | 15:43 |
| → dreiss_ joined | 15:43 |
| ← dhruvasagar left | 15:43 |
| ← dyng left | 15:44 |
| ← howlymowly left | 15:44 |
| ← irqq left | 15:44 |
| ← benkay left | 15:44 |
| ← Woet left | 15:45 |
| → irqq joined | 15:45 |
| → SoftwareMechanic joined | 15:45 |
| ← Dudalus left | 15:46 |
| → apipkin joined | 15:47 |
| ← valgrind left | 15:47 |
| ← gua_ould left | 15:48 |
| → glosoli joined | 15:48 |
| ← kewah left | 15:49 |
| → hoschi joined | 15:50 |
| ← ciampix left | 15:50 |
| → tyoc213 joined | 15:51 |
| ← aspiers left | 15:51 |
| → epicowl joined | 15:51 |
|
tyoc213
| suppose that the same project, was "published two times" but they both started on a diferent set of programmer changes... so there is A and B repos of the "same source" with different branches, now I want to "move" one branch of A -> B it is possible... I mean, I don think they started exactly with the same set of files.... | 15:52 |
| → yaymukund joined | 15:52 |
| ← rainbyte left | 15:52 |
|
tyoc213
| think as they have no "version system" before... and they started their own each one | 15:52 |
| ← ThomasCle left | 15:53 |
| → Woet joined | 15:53 |
| → maestrojed joined | 15:53 |
|
lmat
| Okay, I wrote the script http://sprunge.us/XXPI | 15:53 |
|
yaymukund
| I just did git rebase -i [60 commits ago] and tried to squash everything into one commit. how can that produce a conflict while merging? | 15:53 |
| ← papegaaij left | 15:53 |
| ← kcj left | 15:53 |
| → ThomasCle joined | 15:53 |
| qsusOFFcs → qsuscs | 15:53 |
|
yaymukund
| I thought it wasn't possible to conflict with squash, since it's just applying the commits in order | 15:53 |
| → infynyxx joined | 15:54 |
| ← glosoli left | 15:54 |
| ← ehmatthes left | 15:54 |
|
masak
| yaymukund: not with squash per se, I think. but if you're also rebasing to some other branch or commit, then there might be a conflict, as usual. | 15:55 |
|
yaymukund
| specifically, I'm doing `git rebase -i $(git merge-base master HEAD)` | 15:55 |
|
| that makes sense | 15:55 |
| → geekbri joined | 15:55 |
| ← bwreilly left | 15:56 |
| → Norm__ joined | 15:56 |
| juvenal → juvenal_away | 15:57 |
| ← Boohbah left | 15:57 |
| → mixed joined | 15:57 |
| → akiva joined | 15:57 |
| → glosoli joined | 15:57 |
| ← ThomasCle left | 15:57 |
|
mixed
| a few days ago i typed git checkout VERSION in order to checkout an older version; how can i know which version i've used? | 15:57 |
| ← user258467 left | 15:58 |
|
masak
| yaymukund: yes, then you're also rebasing on master, besides squashing. | 15:58 |
| ← mikecmpbll left | 15:59 |
| ← _Norm_ left | 15:59 |
|
yaymukund
| masak: ahhh, need to reread docs for rebase. thank you, that makes sense | 15:59 |
| → primitive joined | 16:00 |
| ← Balliad left | 16:00 |
|
esc
| http://dpaste.com/1421354/ | 16:01 |
|
| wtf | 16:01 |
| → gverri joined | 16:01 |
| ← Wolfspyre left | 16:01 |
| ← dreiss_ left | 16:01 |
| → Guest51606 joined | 16:01 |
| ← rethus left | 16:02 |
|
DeltaHeavy
| ojacobson: Working awesome. Thanks! | 16:02 |
| ← rchavik left | 16:02 |
| ← SergeyPenkin left | 16:02 |
| → MoHaX joined | 16:02 |
| → Wolfspyre joined | 16:02 |
| ← maestrojed left | 16:03 |
| → ehmatthes joined | 16:04 |
| ← hashpuppy left | 16:04 |
| ← Mattias left | 16:04 |
| → Mattias joined | 16:05 |
| → maestrojed joined | 16:06 |
| → krik joined | 16:06 |
| ← tommyziegler left | 16:06 |
| → h0bbit joined | 16:07 |
| ← ezekielnoob left | 16:07 |
| ← h0bbit left | 16:08 |
| ← Mattias left | 16:08 |
| → Mattias joined | 16:08 |
| → Destos joined | 16:09 |
| ← rurufufuss left | 16:10 |
| ← alip left | 16:10 |
| ← Ingmar left | 16:10 |
| → keryell joined | 16:10 |
| → GodEater joined | 16:11 |
| ← iamjarvo_ left | 16:11 |
| ← jargon left | 16:11 |
| → iamjarvo joined | 16:11 |
| → imachuchu joined | 16:12 |
| → mmlac-bv joined | 16:12 |
| ← deuterium left | 16:12 |
| ← GeertV left | 16:13 |
| → rath joined | 16:13 |
| ← Wolfspyre left | 16:13 |
| → GeertV joined | 16:13 |
| → johnnyfuchs joined | 16:14 |
| → juniorsilva7 joined | 16:15 |
| → yhager_ joined | 16:15 |
| ← iamjarvo left | 16:15 |
| → ezekielnoob joined | 16:15 |
| → Wolfspyre joined | 16:16 |
| ← Wolfspyre left | 16:16 |
| ← reskp___ left | 16:17 |
| → reskp_ joined | 16:17 |
| ← looper left | 16:17 |
| → yhager joined | 16:18 |
| → looper joined | 16:18 |
| ← tatsuya_o left | 16:18 |
| ← yhager left | 16:18 |
| ← looper left | 16:18 |
| yhager_ → yhager | 16:18 |
| ← GeertV left | 16:18 |
| ← JokerxHarley left | 16:19 |
| ← howitdo left | 16:19 |
| ← bartman left | 16:19 |
| ← RobW_ left | 16:20 |
| ← Gooder left | 16:20 |
| ← cenuij left | 16:21 |
| → bwreilly joined | 16:21 |
| ← bwreilly left | 16:21 |
| → bartman joined | 16:21 |
| juvenal_away → juvenal | 16:21 |
| ← reskp_ left | 16:21 |
| → bwreilly joined | 16:21 |
| → deuterium joined | 16:22 |
| → Misan joined | 16:22 |
| ← h12o left | 16:23 |
| ← deuterium left | 16:23 |
| → buibex_ joined | 16:23 |
| ← ChrisAnn left | 16:23 |
| → dtauzell joined | 16:24 |
| ← buibex left | 16:24 |
| ← keryell left | 16:25 |
|
dtauzell
| I'm switching from svn to git. Some of my files need to always have specific line endings (some are just LF ,some are just a CR) . Is there a way to force certain files to always have a specific line ending when checked out? | 16:25 |
|
ojacobson
| dtauzell: make sure automatic line conversion is turned off | 16:27 |
| ← chepre left | 16:27 |
|
ojacobson
| then check them in with the endings you want | 16:27 |
| → marhaban joined | 16:27 |
|
moritz
| and you an editor that picks up the line ending from the file | 16:27 |
|
| (all decent editors do) | 16:27 |
| ← thannoy_ left | 16:27 |
|
moritz
| s/you/use/ | 16:27 |
|
dtauzell
| so users should not have the "auto convert" setting then? | 16:27 |
| → JokerxHarley joined | 16:28 |
| → tommyziegler joined | 16:28 |
| ← buibex_ left | 16:29 |
| ← germanoak left | 16:29 |
| ← donmichelangelo left | 16:30 |
| → h12o joined | 16:30 |
| → donmichelangelo joined | 16:31 |
| ← mattp_ left | 16:31 |
| → howitdo joined | 16:32 |
| → dhruvasagar joined | 16:32 |
| → boombatower joined | 16:32 |
| → mattp_ joined | 16:33 |
| ← howitdo left | 16:33 |
| ← D9_ left | 16:33 |
| → howitdo joined | 16:34 |
| ← cmpera left | 16:35 |
|
rath
| dtauzell: read section "End-of-line conversion" in !man gitattributes | 16:35 |
|
gitinfo
| dtauzell: the gitattributes manpage is available at http://jk.gs/gitattributes.html | 16:35 |
|
Nevik
| .version | 16:36 |
| gitinfo changed the topic to: Welcome to #git, the place for git-related help and empty cardboard boxes | Current stable version: 1.8.4.1 | Start here: http://jk.gs/git | Seeing "Cannot send to channel" or unable to change nick? /msg gitinfo .voice | May the forks be with you | 16:36 |
|
Nevik
| \o/ | 16:36 |
| ← fRAiLtY- left | 16:36 |
| ← MoHaX left | 16:36 |
| ← infynyxx left | 16:37 |
| ← m0viefreak left | 16:37 |
| → AWinterman joined | 16:37 |
|
iveqy
| dtauzell: !crlf | 16:37 |
|
gitinfo
| dtauzell: to fix problems with line endings on different platforms, check out http://line-endings.gitrecipes.de/ | 16:37 |
| → infynyxx joined | 16:37 |
| → bamj0rb joined | 16:37 |
| gitinfo set mode: +v | 16:37 |
| → Mayumi joined | 16:38 |
|
Mayumi
| i have a c sharp mvc4 project that i want to put on github, are there any special things i should ignore? | 16:38 |
|
iveqy
| dtauzell: but IMHO this isn't something that git should be bothered with. | 16:38 |
|
| Mayumi: all autogenerated stuff that you can generate from the information you've in your repo | 16:38 |
| → shoshin joined | 16:38 |
| → Georg3 joined | 16:38 |
|
Mayumi
| iveqy: i know, but i'm not sure about some files. | 16:39 |
| → goshawk joined | 16:39 |
|
Mayumi
| i'm not super experienced in c sharp yet | 16:39 |
|
| and aren't sure about the things i can leave out | 16:39 |
| ← xobb left | 16:39 |
|
iveqy
| Mayumi: then you'll probably get a better answer in a c-sharp forum | 16:39 |
|
moritz
| Mayumi: it's pretty easy: if you do a build and then 'git status', it should be clean | 16:39 |
|
Mayumi
| good idea | 16:39 |
|
| thanks | 16:39 |
|
| =) | 16:40 |
|
iveqy
| moritz: no! :( | 16:40 |
|
moritz
| iveqy: no? | 16:40 |
|
iveqy
| moritz: that would mean he track binaries, right? | 16:40 |
|
| moritz: he should not track compiled code | 16:40 |
|
moritz
| iveqy: no, that .gitignore's binaries | 16:40 |
|
| *that he | 16:40 |
| → cmpera joined | 16:41 |
|
iveqy
| moritz: where does he say so? | 16:41 |
|
moritz
| iveqy: he doesn't, but he should :-) | 16:41 |
| → RobW_ joined | 16:41 |
| ← infynyxx left | 16:41 |
| → travisstaton joined | 16:43 |
| ← krik left | 16:43 |
| ← stayarrr left | 16:43 |
| ← maqr left | 16:43 |
| → Shusshu joined | 16:44 |
| ← Shusshu left | 16:44 |
| → germanoak joined | 16:44 |
| ← germanoak left | 16:44 |
| ← tobeplugged left | 16:44 |
| → germanoak joined | 16:44 |
| ← germanoak left | 16:45 |
| → germanoak joined | 16:45 |
| ← germanoak left | 16:45 |
| Sigma[Mtp] → Sigma | 16:45 |
| → germanoak joined | 16:46 |
| ← devoldmx3 left | 16:47 |
| → devoldmx joined | 16:48 |
| ← bobdobbs left | 16:48 |
| → bobdobbs joined | 16:49 |
| → cmpera_ joined | 16:49 |
| ← cmpera left | 16:50 |
| cmpera_ → cmpera | 16:50 |
| → banisterfiend joined | 16:52 |
| → whunt joined | 16:52 |
| → PaulCapestany joined | 16:53 |
| → iamjarvo joined | 16:53 |
| → keryell joined | 16:53 |
| ← Chryyz left | 16:53 |
| → rudak joined | 16:54 |
| ← btree left | 16:55 |
| ← v0latil3 left | 16:55 |
| ← richgilbank left | 16:56 |
| ← khushildep left | 16:57 |
| ← nuclearkitten left | 16:58 |
| ← mixed left | 16:58 |
| ← sword left | 16:58 |
| → ThomasCle joined | 17:00 |
| Vampire0_ → Vampire0 | 17:00 |
| ← Swayz left | 17:00 |
| ← hahuang65 left | 17:01 |
| ← jkyle left | 17:01 |
| → maqr joined | 17:02 |
| ← irqq left | 17:02 |
| ← dtauzell left | 17:03 |
| ← Advocation left | 17:04 |
| → cenuij joined | 17:04 |
| ← koki left | 17:04 |
| ← harobed_ left | 17:05 |
|
LuxuryMode
| Someone asked me to change my commit msg for a pull request on github, how do i do that? | 17:05 |
| ← juniorsilva7 left | 17:05 |
|
PerlJam
| They don't like your commit message? | 17:05 |
| → breck7 joined | 17:06 |
| ← aChatir left | 17:06 |
| → Swayz joined | 17:08 |
| → infynyxx joined | 17:09 |
| ← iamjarvo left | 17:09 |
| → Mars` joined | 17:09 |
| ← infynyxx left | 17:09 |
| ← ezekielnoob left | 17:11 |
| ← asQuirreL left | 17:11 |
| → jasom joined | 17:12 |
| ← normanrichards left | 17:12 |
| → grilix joined | 17:12 |
| ← maestrojed left | 17:12 |
| ← DoniRS left | 17:13 |
|
jasom
| Is there a config option to set pull to use --ff-only? | 17:13 |
|
| there's a merge.ff but not a pull.ff option | 17:13 |
| → hobodave joined | 17:14 |
|
iveqy
| jasom: !pull | 17:14 |
|
gitinfo
| jasom: 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/ | 17:14 |
| → aberrant joined | 17:14 |
|
aberrant
| hi all | 17:14 |
|
iveqy
| LuxuryMode: man git rebase | 17:14 |
|
gitinfo
| LuxuryMode: the git-rebase manpage is available at http://jk.gs/git-rebase.html | 17:14 |
| → dreiss_ joined | 17:15 |
|
iveqy
| LuxuryMode: look at -i | 17:15 |
| ← grilix_ left | 17:15 |
|
LuxuryMode
| PerlJam, nope. they have a very specific format bc it's a large multi-project thing | 17:15 |
| ← ewnd9 left | 17:16 |
|
jasom
| iveqy: I know the difference between fetch and pull. I prefer pull to do a fetch and a ff-only merge (which I can do with git pull --ff-only). I'm asking if I can make that the default behavior of git pull | 17:16 |
| → ewnd9 joined | 17:16 |
| kellysaurusx → ELLIOTTCABLE | 17:16 |
| ← ewnd9 left | 17:17 |
| → juniorsilva7 joined | 17:17 |
| → ewnd9 joined | 17:17 |
| → maestrojed joined | 17:18 |
|
iveqy
| jasom: so set the option for merge and be happy? | 17:18 |
| → ezekielnoob joined | 17:18 |
| → deuterium joined | 17:19 |
| ← Forkk left | 17:19 |
| ← Baluse left | 17:19 |
| ← zarubin left | 17:20 |
|
jasom
| iveqy: and then I have to pass different options to merge... I'll stick with what I'm doing now, which is an alias for pull --ff-only | 17:20 |
| → Forkk joined | 17:21 |
| ← DeltaHeavy left | 17:21 |
|
tang^
| you can set the pull to use rebase by default instead of merge | 17:21 |
|
jasom
| tang^: I don't want it to rebase by default | 17:21 |
| ← Davey left | 17:22 |
| ← ewnd9 left | 17:22 |
|
tang^
| jasom: merge --ff-only and rebase are effectively the same, no? | 17:22 |
|
jasom
| tang^: not even close | 17:22 |
| → a-l-e joined | 17:22 |
| → ewnd9 joined | 17:22 |
|
tang^
| okay | 17:22 |
|
| still, your merge.ff settings should affect your pull, since a pull is fetch+merge by default | 17:23 |
| ← Octalot left | 17:23 |
| ← glebihan_ left | 17:24 |
| ← marhaban left | 17:24 |
| ← ezekielnoob left | 17:24 |
| → Davey joined | 17:24 |
| ← GodEater left | 17:24 |
| → GodEater joined | 17:24 |
|
jasom
| In the simple case (where a ff is possible) they are the same, since there are no local changes to rebase; but if you have any changes not in the branch you pull from, then the ff-only will fail and the rebase will roll back your branch, do a ff-merge and then re-apply all your local changes | 17:24 |
| → glebihan_ joined | 17:24 |
| → hholtmann joined | 17:24 |
| ← joshbetz left | 17:25 |
| ← Droolio left | 17:25 |
| ← deuterium left | 17:25 |
| → deuterium joined | 17:27 |
|
iveqy
| jasom: do I miss something here? Since a pull is a fetch+merge the options set for merge will apply even if you pull | 17:27 |
| → revyd joined | 17:28 |
| → iamjarvo joined | 17:29 |
| → ezekielnoob joined | 17:30 |
| → koki joined | 17:31 |
| → hahuang65 joined | 17:31 |
| ← thomas_b left | 17:31 |
| ← Mars` left | 17:32 |
| ← nnyk_ left | 17:34 |
| ← stephCoue left | 17:34 |
| ← mastro left | 17:35 |
| ← avolz left | 17:36 |
| ← ezekielnoob left | 17:36 |
| → BiggFREE joined | 17:36 |
| ← dhruvasagar left | 17:36 |
| → minim joined | 17:37 |
| → Mars` joined | 17:38 |
| → infynyxx joined | 17:38 |
| ← tommyziegler left | 17:38 |
| → tommyziegler joined | 17:39 |
| → asQuirreL joined | 17:40 |
| → svector joined | 17:41 |
| ← Asenar left | 17:41 |
| → ezekielnoob joined | 17:43 |
| → raonyguimaraes joined | 17:44 |
| → zarubin joined | 17:44 |
| ← Search112 left | 17:45 |
| ← fling left | 17:46 |
| → Search112 joined | 17:46 |
| ← gdoteof left | 17:46 |
| ← Stygia left | 17:46 |
| ← devoldmx left | 17:46 |
| → jfoy joined | 17:47 |
| ← BiggFREE left | 17:47 |
| → richgilbank joined | 17:47 |
| → Advocation joined | 17:49 |
| ← nwertman_ left | 17:50 |
| ← shoshin left | 17:50 |
| → mdiers joined | 17:51 |
| ← Advocation left | 17:51 |
| → Advocation joined | 17:51 |
| → k4rtik joined | 17:51 |
| ← keryell left | 17:54 |
| ← ezekielnoob left | 17:54 |
| → danman joined | 17:55 |
| ← iamjarvo left | 17:55 |
| → iamjarvo joined | 17:56 |
| ← hyperair left | 17:56 |
| ← jfoy left | 17:56 |
| → iamjarvo_ joined | 17:58 |
| → bwreilly_ joined | 17:58 |
| → nicedice joined | 17:59 |
| ← Kronuz left | 17:59 |
| ← iamjarvo left | 17:59 |
| ← Advocation left | 18:00 |
| ← gverri left | 18:00 |
| → iamjarvo joined | 18:01 |
| ← bwreilly left | 18:02 |
| ← Guest51606 left | 18:03 |
| ← herdingcat left | 18:03 |
| ← bwreilly_ left | 18:03 |
| → Kronuz joined | 18:04 |
| ← maqr left | 18:04 |
| ← dfanjul left | 18:04 |
| → maqr joined | 18:05 |
| ← iamjarvo_ left | 18:05 |
| → gverri joined | 18:05 |
| ← iamjarvo left | 18:05 |
| ← RobW_ left | 18:05 |
| ← gverri left | 18:05 |
| → iamjarvo joined | 18:06 |
| → hashpuppy joined | 18:07 |
| → gverri joined | 18:09 |
| → pantsman joined | 18:09 |
| ← revyd left | 18:09 |
| → revyd joined | 18:09 |
| → keryell joined | 18:10 |
| ← svector left | 18:10 |
| ← luxgeek left | 18:10 |
| ← sr78ger left | 18:11 |
| emmajane → emmajane|lunch | 18:11 |
| → Prazanna joined | 18:11 |
| → dhruvasagar joined | 18:11 |
| ← angelsl left | 18:12 |
| ← minim left | 18:12 |
| → snql joined | 18:12 |
| → pr0ton joined | 18:13 |
| ← hashpuppy left | 18:13 |
| → byprdct joined | 18:13 |
| → koki__ joined | 18:13 |
| ← byprdct left | 18:14 |
| ← revyd left | 18:14 |
| → scelis joined | 18:14 |
| ← glosoli left | 18:14 |
| ← scelis left | 18:14 |
| → eephillip joined | 18:15 |
| → bwreilly joined | 18:15 |
|
dropdrive
| Sorry, newbie question, is there a short-hand for HEAD~1..HEAD, or $sha~1..$sha? | 18:16 |
| ← koki left | 18:17 |
|
EugeneKay
| To see the diff between the last two commits? | 18:17 |
|
| `git show HEAD` will do most of what you want | 18:17 |
| ← Mars` left | 18:17 |
| ← infynyxx left | 18:17 |
| → Mars` joined | 18:18 |
| → infynyxx joined | 18:18 |
|
EugeneKay
| Actually, just `git show` will assume HEAD, so that's really short. | 18:18 |
| → GeertV joined | 18:18 |
| → scelis joined | 18:18 |
|
dropdrive
| EugeneKay: I actually want something to pass to git-diff, git-log, etc., so I want something explicit | 18:19 |
| ← jarr0dsz left | 18:19 |
|
EugeneKay
| Then you've already got the most shortened version ;-) | 18:19 |
| → jarr0dsz joined | 18:19 |
| ← maqr left | 18:19 |
| ← keryell left | 18:20 |
|
grawity
| there's "HEAD^.." (or in future versions "@^..") | 18:20 |
|
| and there's `git log -n 1` or just `git log -1` | 18:20 |
| → infynyxx_ joined | 18:21 |
| → maqr joined | 18:21 |
| → pbujok joined | 18:22 |
| ← Malukenho left | 18:22 |
| ← Mars` left | 18:22 |
| → gdoteof joined | 18:22 |
| ← twoface88 left | 18:22 |
| ← infynyxx left | 18:22 |
| → Malukenho joined | 18:23 |
| ← magu|q left | 18:24 |
| → BSaboia joined | 18:24 |
| ← Olea|2 left | 18:24 |
| → nwertman joined | 18:26 |
| → hyperair joined | 18:26 |
| → zacts joined | 18:27 |
|
EugeneKay
| Does that work for "$SHA^.." too? Or just assumes HEAD at the end? | 18:28 |
|
| General case, yay | 18:28 |
| ← ewnd9 left | 18:29 |
| → darinm joined | 18:30 |
| ← babilen left | 18:31 |
| darinm → darinm_away | 18:32 |
| → MrV_ joined | 18:32 |
| ← Norm__ left | 18:34 |
| → Nicholas_Rishel joined | 18:34 |
| → tvw joined | 18:35 |
| ← Nicholas_Rishel left | 18:36 |
| ← GuySoft left | 18:38 |
| ← maqr left | 18:38 |
| ← przemoc left | 18:39 |
| ← Sigma left | 18:39 |
| → przemoc joined | 18:40 |
| → marcosc joined | 18:40 |
| → nessib joined | 18:40 |
| ← richgilbank left | 18:40 |
| ← bgerber left | 18:41 |
|
marcosc
| Hi, I'm having troubles trying to squash commmits... I tried to squash a set of commits, then someone checked in some code on upstream, so now I ended up with this big mess :( https://github.com/mozilla/servo/pull/1069/commits | 18:41 |
| → Norm__ joined | 18:41 |
| ← infynyxx_ left | 18:41 |
|
marcosc
| Now every time I try to squash, things just get worst :( | 18:41 |
| → richgilbank joined | 18:41 |
|
marcosc
| I should have a single "Implemented HTMLMainElement" | 18:42 |
| ← dougsland left | 18:42 |
| → Sigma joined | 18:42 |
| → mike_af joined | 18:43 |
| ← MrV_ left | 18:43 |
|
milki
| marcosc: how do the upstream commits play into your squash? | 18:44 |
|
marcosc
| milki: hopefully they shouldn't | 18:45 |
|
milki
| marcosc: they why did it make a mess? | 18:45 |
| ← mmlac-bv left | 18:46 |
|
marcosc
| milki: I don't think the upstream made a mess... those are all my commits (except 1), but they are just not squashing | 18:46 |
| ThomasCle → Bumblebee | 18:46 |
| Bumblebee → ThomasCle | 18:46 |
|
marcosc
| I just seems to end up with a new "Implement HTMLMainElement" every time I try to squash | 18:46 |
|
| instead of actually squashing | 18:47 |
| → infynyxx joined | 18:47 |
|
milki
| sounds like you should start over from a fresh branch, rebase your original changes, squash, and force-push to the pull branch again | 18:47 |
| → jackdempsey joined | 18:48 |
|
iveqy
| milki: force a puch is a bad idea usually | 18:48 |
|
| marcosc: !public | 18:48 |
|
gitinfo
| marcosc: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum | 18:48 |
| jackdempsey → jackdempsey|afk | 18:48 |
|
milki
| iveqy: its a pull request, thats how you clean up a pull reuqest | 18:48 |
| → Olea|2 joined | 18:48 |
|
milki
| you can either start a new pull request with a new branch, or fix the branch associated with the pull request | 18:48 |
| → irqq joined | 18:48 |
|
iveqy
| milki: sorry, missed the link | 18:48 |
| ← raonyguimaraes left | 18:48 |
| → kesha joined | 18:49 |
| → Andrevan joined | 18:49 |
|
marcosc
| gitinfo: they people who own the repo don't like having long commit histories because it makes it hard for them to find where bugs were introduced (that's what they tell me) | 18:49 |
| → bgerber joined | 18:49 |
| → raonyguimaraes joined | 18:50 |
|
iveqy
| marcosc: !bot | 18:50 |
|
gitinfo
| marcosc: [!gitinfo] I am an IRC bot which responds to certain keywords to provide helpful(?) information to humans. Please see http://jk.gs/git/bot for more information about how to use me. | 18:50 |
| → rat_thing joined | 18:50 |
| ← nardev left | 18:51 |
| → fobius joined | 18:51 |
| → maqr joined | 18:52 |
|
Dougie187
| marcosc: They are full of crap. :P Tell them to look at `git bisect` | 18:52 |
|
fobius
| I'm trying to merge in new files from a subtree. I did a pull on the subtree and if I check the subtree out the new files show up. Then I tried to do git merge -s subtree --squash --no-commit my_subtree and it said everything went okay but the new files aren't showing up. | 18:52 |
| → nardev joined | 18:52 |
| ← GeertV left | 18:53 |
|
marcosc
| Dougie187: the reviewer said " The majority of these commits won't build independently, which would make bisecting frustrating." | 18:54 |
| → GeertV joined | 18:54 |
|
Dougie187
| marcosc: That is true. It does make bisecting rather useless. | 18:54 |
|
| If you can't test it.... you can't debug it.. :P | 18:54 |
|
| marcosc still a bit unsure what to do :( | 18:54 |
|
marcosc
| should I try rebasing -i and then push -f ? | 18:55 |
|
iveqy
| marcosc: squash and push like milki said? | 18:55 |
| → krik joined | 18:55 |
| ← epta left | 18:55 |
|
marcosc
| iveqy: ok, will try | 18:55 |
| → epta joined | 18:55 |
| ← lmat left | 18:55 |
| ← rath left | 18:56 |
| ← jarr0dsz left | 18:58 |
| ← GeertV left | 18:58 |
| → dougsland joined | 18:58 |
| → mmlac-bv joined | 18:59 |
|
marcosc
| milki: when you say start over from a fresh branch, do you mean without any changes at all? | 18:59 |
|
| or branch from my current messy branch? | 18:59 |
| ← matteo left | 19:00 |
| → MoHaX joined | 19:00 |
| → alvaro_o joined | 19:01 |
| → rat_thin_ joined | 19:01 |
| ← k4rtik left | 19:01 |
| ← rat_thing left | 19:01 |
| → revyd joined | 19:02 |
| ← pr0ton left | 19:02 |
| → Mars` joined | 19:04 |
|
JesseC
| Does anyone know how you would select a specific value such as the title, from this json response? All of the items I'm finding on stackexchange iterate through the entire response with $.each, but there has to be a better way right? | 19:06 |
|
| http://gdata.youtube.com/feeds/api/videos/gzDS-Kfd5XQ?v=2&prettyprint=true&alt=jsonc | 19:06 |
| ← tham left | 19:07 |
|
sonOfRa
| JesseC, what does this have to do with git, exactly? | 19:07 |
|
JesseC
| sonOfRa, oops! wrong room, my bad | 19:07 |
|
sonOfRa
| (if using javascript, just treat that as json, and select response->title) | 19:08 |
| ← jerius left | 19:10 |
|
JesseC
| sonOfRa: yeah, I tried various things I found without success, gonna drop it in the correct room and write up a fiddle for an example. | 19:10 |
| ← revyd left | 19:11 |
| ← bwreilly left | 19:11 |
| → revyd joined | 19:11 |
| → vurma joined | 19:12 |
| → jerius joined | 19:12 |
| ← Pyrogerg left | 19:12 |
| ← mmlac-bv left | 19:12 |
| ← juniorsilva7 left | 19:13 |
|
fobius
| Does git merge -s subtree not add new files? I don't understand why the files exist in the subtree but aren't being added in the merge | 19:13 |
| ← germanoak left | 19:14 |
| → _Vi joined | 19:15 |
| → keryell joined | 19:16 |
| emmajane|lunch → emmajane | 19:16 |
| ← revyd left | 19:16 |
| → minim joined | 19:17 |
| → joshsmith joined | 19:18 |
| ← banisterfiend left | 19:19 |
| → robbyoconnor joined | 19:19 |
| → banisterfiend joined | 19:20 |
| → pfFredd joined | 19:25 |
| → relipse joined | 19:25 |
| → VictorCL joined | 19:26 |
|
bamj0rb
| result.data.title, from the looks of it. | 19:28 |
| ← infynyxx left | 19:28 |
| ← rendar left | 19:29 |
| ← banisterfiend left | 19:29 |
| ← MoHaX left | 19:30 |
|
bamj0rb
| fobius: I've never attempted to merge a subtree before. Are the new files in the current branch or the merged branch? | 19:30 |
| → petey_ joined | 19:30 |
| → banisterfiend joined | 19:31 |
| → Kismet010 joined | 19:31 |
| → darnir joined | 19:32 |
|
bamj0rb
| Sounds like subtree is a rather odd merge strategy. I assume its for when the repository is moved higher up the file system... | 19:32 |
|
Kismet010
| it's a good workflow to create a branch for each member in a team of two? something like: member1 -> master <- member2 | 19:32 |
| ← keryell left | 19:33 |
|
yaymukund
| Kismet010: why? I would just stick to feature branches | 19:33 |
| ← Olea|2 left | 19:34 |
| → keryell joined | 19:34 |
| ← asQuirreL left | 19:34 |
| kalleth_ → kalleth | 19:35 |
|
Kismet010
| to avoid conflicts when working on the same code lines at very separate dates | 19:35 |
| ← zjason left | 19:35 |
| → zjason joined | 19:35 |
| → tommyziegle joined | 19:36 |
| ← vurma left | 19:36 |
| ← Guest1779 left | 19:37 |
| → stayarrr joined | 19:37 |
| → jfoy joined | 19:38 |
| ← joki left | 19:38 |
| ← Search112 left | 19:38 |
| → Olea|2 joined | 19:39 |
| ← jfoy left | 19:39 |
| ← FrodoTheHobbit left | 19:40 |
| ← cff left | 19:40 |
| ← asakura left | 19:40 |
| ← pbujok left | 19:40 |
| ← dorkmafia left | 19:40 |
| ← tommyziegler left | 19:40 |
|
bamj0rb
| Kismet010: Don't try to avoid conflicts. That is what version control is for. The only way to avoid conflicts is communication, but generally it's unavoidable if you want software to get better (and want more than one person actually working on it). | 19:41 |
| → FrodoTheHobbit joined | 19:41 |
|
bamj0rb
| Kismet010: Use "topic" or "feature" branches instead. Make them temporary. Don't share them with each other unless the other person needs to look at/work on it. | 19:42 |
|
| Kismet010: Well, there are many different workflows to choose from, but that's what I like to do. | 19:42 |
| → MoHaX joined | 19:42 |
|
iveqy
| Kismet010: !panic | 19:42 |
|
gitinfo
| Kismet010: [!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! | 19:42 |
| ← darinm_away left | 19:42 |
|
iveqy
| Kismet010: you might also be interested in !flow | 19:43 |
|
gitinfo
| Kismet010: [!gitflow] The description of the gitflow branch workflow model is at http://nvie.com/posts/a-successful-git-branching-model/ while a tool to help implement this workflow is at https://github.com/petervanderdoes/gitflow See http://sethrobertson.github.com/GitBestPractices/#workflow for other workflow suggestions/references | 19:43 |
| → shoshin joined | 19:43 |
| ← shoshin left | 19:43 |
|
iveqy
| Kismet010: personal branches sounds stupid from a history point. Since branching is so simple in git you usually want more than one branch per user | 19:43 |
| → shoshin joined | 19:43 |
| ← ozette left | 19:43 |
| → mmlac-bv joined | 19:44 |
| → darinm joined | 19:44 |
| darinm → darinm_away | 19:44 |
| ← tyoc213 left | 19:45 |
| → bwreilly joined | 19:45 |
| ← shoshin left | 19:46 |
|
Kismet010
| bamj0rb: it's a project for learning a framework, so it will be many conflicts/commit reset to do for any mistake we do and we'll work separately in time, so I thought it will be a good idea merge to master when one has any code ready, we'll not work on features, we'll change a lot of code with no purpose but learn | 19:46 |
|
| it's still a bad idea? | 19:47 |
|
| iveqy | 19:47 |
| → germanoak joined | 19:48 |
| ← germanoak left | 19:48 |
| → germanoak joined | 19:48 |
| → luke_ joined | 19:49 |
|
bamj0rb
| In that case your "person1" and "person2" branches are really just your topic branches. | 19:50 |
|
| Note that if you do that it will be hard to merge. | 19:50 |
|
| If you split changes up into logic thoughts and keep them small it is much easier to merge that. | 19:50 |
| → pbujok joined | 19:50 |
| ← jackdempsey|afk left | 19:51 |
|
bamj0rb
| The problem with doing 50 unrelated things and trying to merge is that the conflicts are compounded by all of the unrelated work. Instead of figuring out how to merge one idea, you have to figure out how to merge all of the ideas at once. Often this is overwhelming and you'll make mistakes. | 19:51 |
| ← MoHaX left | 19:52 |
| → pr0ton joined | 19:52 |
| → devbug joined | 19:52 |
| ← nardev left | 19:52 |
|
fobius
| bamj0rb: The new files are in the subtree, i.e. I pulled them into the branch that I have for the subtree. But when I go to merge them into the main project i.e. master branch, nothing happens | 19:52 |
|
bamj0rb
| fobius: I'm not really the best person to help with the subtree merge strategy since I'm not sure how it works. I'm guessing. Maybe it would help to pastebin the tree structure of both branches? | 19:53 |
| → dvide joined | 19:53 |
| → infynyxx joined | 19:53 |
| ← gdoteof left | 19:53 |
| → g0bl1n joined | 19:53 |
| ← zacts left | 19:54 |
| ← maestrojed left | 19:54 |
| ← Mars` left | 19:54 |
| → Mars` joined | 19:55 |
|
Kismet010
| bamj0rb: I'm already inmersed in a mistake, this is way I'm reconsidering another options ^^ | 19:56 |
|
| problem is the other member doesn't know about git, I created his branch to just tell him: do checkout and commit | 19:57 |
| → sq-one joined | 19:57 |
|
Kismet010
| If I tell him to do branches, we'll run in very big mistakes I think | 19:58 |
|
fobius
| bamj0rb: Eh, I'd rather not because the log messages are a bit confidential. I'm sure this is something stupid. It literally does nothing, even if I delete the subdirectory before merging. It just says Automatic merge successful. | 19:58 |
| ← Mars` left | 19:59 |
| → ReachingFarr joined | 19:59 |
| ← snql left | 20:00 |
|
bamj0rb
| fobius: I wasn't asking for the logs. I was asking for the tree structure. i.e., the file system structure. Just so we're on the same page about what you're trying to do. Fair enough if that's confidential too... You could mock up an example with dummy names though. | 20:00 |
| → dofunc joined | 20:00 |
|
bamj0rb
| Kismet010: Ah, so the burden will be on you to merge. You can always let your collaborator do whatever he wants to do on master and then keep your own branch(es) separate. | 20:01 |
|
fobius
| bamj0rb: Do you just want like the output of ls -R? Sorry, a bit of a newb with git. | 20:01 |
|
bamj0rb
| Kismet010: Ultimately, the problem is the same in the end. It's going to be messy to merge. At least if your changes are organized nicely it will be easier, even if his are a nightmarae. | 20:01 |
| → infynyxx_ joined | 20:01 |
|
bamj0rb
| fobius: Sure. Just to give an idea of the structures. | 20:02 |
| → tmcmahon joined | 20:02 |
| ← paulweb515 left | 20:03 |
| → lmat joined | 20:03 |
|
lmat
| How do I compare the index to HEAD ? | 20:03 |
|
moritz
| git diff --cached | 20:03 |
|
fobius
| bamj0rb: http://pastebin.com/d8gZrUcr | 20:03 |
| ← relipse left | 20:04 |
|
fobius
| Basically, lib has been added as a remote branch but it's on the local filesystem. I read it in with git read-tree and now I'm trying to pull in some new files that weren't originally tracked in lib. | 20:04 |
| ← diegoviola left | 20:04 |
| ← gverri left | 20:04 |
| → relipse joined | 20:04 |
| ← infynyxx left | 20:04 |
|
Kismet010
| bamj0rb: he usually forgive to checkout to his branch and change master, I was considering master as the 'production' branch... but your idea sounds better: master branch for him, develop branch for me and production branch when code is ready | 20:04 |
| ← Luke-Jr left | 20:05 |
|
lmat
| moritz: super :) | 20:05 |
| → b_rare joined | 20:05 |
| → Luke-Jr joined | 20:05 |
| ← mmlac-bv left | 20:06 |
|
lmat
| moritz: I should have seen this. I did git help diff and searched for "index" (since the top line of DESCRIPTION says, "Show ... changes between the index and a tree...". | 20:06 |
|
Kismet010
| it's easier that creating a hook for locking master as I did... | 20:06 |
|
lmat
| moritz: Then, now I see the second synopsis explained as "This form is to view the changes you staged for the next commit..." they didn't say index! | 20:06 |
| ← g0bl1n left | 20:06 |
|
lmat
| moritz: Would you make sure the terminology is ironed out...soon ? :) thanks ^_^ | 20:06 |
|
ReachingFarr
| I have used the `git svn clone` command to import the trunk of an SVN project into Git. I would now like to import two SVN branches, with history. After they are imported, I don't want to push changes to these branches back up to the SVN repo. What should my next step be? | 20:07 |
| ← relipse left | 20:07 |
| ← iamjarvo left | 20:07 |
| → nardev joined | 20:07 |
| → relipse joined | 20:07 |
|
bamj0rb
| fobius: I'm not sure I understand where the subtree part comes in. There doesn't seem to be any similarities between lib/* and ./*. | 20:07 |
|
EugeneKay
| !beer | 20:07 |
|
gitinfo
| Beer! It's what's for dinner! | 20:07 |
| → joki joined | 20:07 |
|
moritz
| lmat: I won't make sure, because I'm not invovled with the git docs or anything | 20:07 |
|
bamj0rb
| EugeneKay: \o/ | 20:07 |
|
moritz
| lmat: if you want it improved, improve it yourself | 20:07 |
| → iamjarvo joined | 20:07 |
| ← zarubin left | 20:07 |
|
bamj0rb
| fobius: Honestly I don't know how to use --strategy=subtree so you should ask again in a bit. :) | 20:07 |
| → mmlac-bv joined | 20:08 |
| ← iamjarvo left | 20:08 |
| ← relipse left | 20:08 |
|
EugeneKay
| I'm not sure what the syntax is to fiddle with a svn repo's branches. My git-svn experience is limited to --stdlayout | 20:08 |
|
| But I'm sure alcohol will help. | 20:08 |
| → relipse joined | 20:08 |
| → iamjarvo joined | 20:08 |
|
_ikke_
| !beer | 20:08 |
|
gitinfo
| Beer! It's what's for dinner! | 20:08 |
|
fobius
| bamj0rb: No, there aren't - they are separate. The merge should go automatically. I'm following instructions from http://git-scm.com/book/ch6-7.html. Basically the idea is that lib has it's own branch and it just has an existence in the main directory. It's tracked by both its own branch and the master branch. | 20:08 |
|
bamj0rb
| EugeneKay: In my experience, it is easy to make a mess of things. I wish I understood it better so I could clean it up manually. I generally end up having to clone again and again after a while. :P | 20:08 |
| ← bwreilly left | 20:09 |
| → zarubin joined | 20:09 |
| ← relipse left | 20:09 |
|
fobius
| bamj0rb: I pulled to lib_branch successfully and if I check it out the files are there. But for some reason I can't merge the files into ./lib. | 20:09 |
| ← richgilbank left | 20:09 |
| → relipse joined | 20:09 |
| juvenal → juvenal_away | 20:10 |
| ← Tommy[D]_ left | 20:10 |
| → ZujkisNx joined | 20:12 |
| → gdoteof joined | 20:12 |
|
bamj0rb
| fobius: Oh neat. I never knew about that before. Thanks. :D | 20:13 |
|
| fobius: I think it will be hard to help without seeing what steps you took. And I imagine by now your command history is a mess from trying and retrying. | 20:13 |
|
| fobius: Perhaps you should try again, and then time try to keep the steps straight-forward and then pastebin the whole command history... | 20:13 |
| ← LuxuryMode left | 20:13 |
|
fobius
| bamj0rb: Okay, I'll try that. | 20:14 |
| → Tommy[D] joined | 20:15 |
| → GT4066 joined | 20:15 |
| ← pr0ton left | 20:16 |
| ← marthinal left | 20:16 |
|
bamj0rb
| Maybe you'll get lucky and the second time will be the charm. :D | 20:17 |
| juvenal_away → juvenal | 20:17 |
| → pr0ton joined | 20:19 |
| ← pr0ton left | 20:19 |
| ← DrNick left | 20:19 |
| ← IrishPrime left | 20:20 |
|
fobius
| bamj0rb: How do I delete the remote branch? It says branch lib/master not found but git checkout lib/master works fine. | 20:20 |
| ← geekbri left | 20:20 |
| ← zarubin left | 20:20 |
| ← iamjarvo left | 20:22 |
| → iamjarvo joined | 20:23 |
| ← tmcmahon left | 20:24 |
| → iamjarvo_ joined | 20:24 |
| ← iamjarvo_ left | 20:24 |
| ← AaronMT left | 20:25 |
|
_ikke_
| git branch -rd lib/master | 20:25 |
| → iamjarvo_ joined | 20:25 |
| ← Roots47 left | 20:26 |
| ← jkremser left | 20:27 |
| ← iamjarvo left | 20:27 |
| ← renatow_ left | 20:28 |
| → AaronMT joined | 20:29 |
| ← iamjarvo_ left | 20:29 |
| dofunc → subfunc | 20:29 |
| ← AaronMT left | 20:30 |
| → iamjarvo joined | 20:30 |
| ← subfunc left | 20:30 |
| → babilen joined | 20:30 |
| → subfunc joined | 20:30 |
| ← subfunc left | 20:31 |
| → subfunc joined | 20:31 |
| → DrNick joined | 20:31 |
| ← subfunc left | 20:32 |
| → marhaban joined | 20:32 |
| ← spaceonline left | 20:32 |
| → subfunc joined | 20:32 |
|
bamj0rb
| fobius: Hopefully you're trying this on a fresh clone of your repo too. That will eliminate any bleeding over. | 20:32 |
| ← hoschi left | 20:32 |
|
bamj0rb
| fobius: Never hurts to have a backup in case you royally f'something up too. >:) | 20:33 |
| ← infynyxx_ left | 20:33 |
| ← maroloccio left | 20:34 |
| ← koki__ left | 20:34 |
| → richgilbank joined | 20:34 |
| ← iamjarvo left | 20:34 |
| → infynyxx_ joined | 20:34 |
| → rurufufuss joined | 20:35 |
| ← marhaban left | 20:37 |
| → marhaban joined | 20:37 |
| → lavaman1 joined | 20:37 |
| ← lavaman left | 20:37 |
| ← Jackneill left | 20:40 |
| → Mars` joined | 20:40 |
| → user_ joined | 20:41 |
| → luxgeek joined | 20:41 |
| → sword joined | 20:42 |
| → DolphinDream joined | 20:42 |
| → jkremser joined | 20:43 |
| ← jkremser left | 20:43 |
| → jkremser joined | 20:43 |
| ← user_ left | 20:43 |
| → finisherr joined | 20:43 |
| ← keryell left | 20:43 |
| ← erichynds left | 20:44 |
|
fobius
| bamj0rb: I did everything over and it seems to be working okay now. I still don't know what was going on before. =( | 20:44 |
| ← petey_ left | 20:44 |
| → petey_ joined | 20:45 |
| ← gdoteof left | 20:45 |
| → gdoteof joined | 20:45 |
|
finisherr
| So, I have a bunch of local git repositories on my MacPro. I've also got a MacMini that I want to set up as a remote server. I've created a git user and set up ssh keys and that works fine. But, I'm not exactly sure how to get all of my repositories set up on the server. I followed some instruction from the documentation by created a bare version of one of my git repos, then copying that over to the server, then running git init --shared --bare or | 20:46 |
|
| something like that. Now, how on earth do I update the remote? | 20:46 |
|
iveqy
| man git remote | 20:46 |
|
gitinfo
| the git-remote manpage is available at http://jk.gs/git-remote.html | 20:46 |
| ← Kicer86 left | 20:46 |
| → Oishikatta joined | 20:46 |
| ← ehmatthes left | 20:46 |
|
iveqy
| finisherr: however, you're probably better off with !gitolite | 20:46 |
|
gitinfo
| finisherr: 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/ | 20:46 |
| → petey__ joined | 20:46 |
| ← petey_ left | 20:46 |
| ← richgilbank left | 20:47 |
|
finisherr
| git push? | 20:47 |
| → paulweb515 joined | 20:48 |
|
Oishikatta
| Is it possible with git/github to have a branch that applies a small patch, but otherwise stays in sync with master? | 20:48 |
| ← a-l-e left | 20:48 |
| ← banisterfiend left | 20:49 |
| → Cervantes joined | 20:49 |
| → keryell joined | 20:49 |
| → bwreilly joined | 20:51 |
| → corni joined | 20:52 |
|
finisherr
| oh, git --set-upstream | 20:53 |
|
| i'm all set | 20:53 |
|
| git push --set-upstream that is | 20:53 |
| ← Mars` left | 20:53 |
| → Algorithm joined | 20:53 |
| → jackdempsey joined | 20:53 |
| ← Algorithm left | 20:53 |
| → Mars` joined | 20:53 |
| ← subfunc left | 20:53 |
| → tagava joined | 20:54 |
| → tagava|2 joined | 20:54 |
| → Roots47 joined | 20:54 |
| → carbohydrate joined | 20:55 |
| ← Roots47 left | 20:55 |
| ← robbyoconnor left | 20:55 |
| ← tang^ left | 20:55 |
| ← howitdo left | 20:56 |
| ← tvw left | 20:56 |
| ← Mayumi left | 20:56 |
| ← cmpera left | 20:56 |
| → peroht joined | 20:56 |
| ← bwreilly left | 20:57 |
| → Reacto joined | 20:57 |
| ← minim left | 20:58 |
| → therealGent joined | 20:58 |
| ← freeed left | 20:58 |
| → ehmatthes joined | 20:59 |
| → avolz joined | 20:59 |
|
Oishikatta
| Or, say there's a branch with some changes, and master has other changes. How can I copy the changes from master to the other branch without replacing it's changes (assume there are no conflicts)? | 21:00 |
| → ubuntu__3 joined | 21:00 |
| ← mmlac-bv left | 21:00 |
| ← krik left | 21:01 |
| → richgilbank joined | 21:01 |
| ← Spyro left | 21:02 |
| → tjj joined | 21:02 |
|
EugeneKay
| Oishikatta - man git-cherry-pick | 21:02 |
|
gitinfo
| Oishikatta: the git-cherry-pick manpage is available at http://jk.gs/git-cherry-pick.html | 21:02 |
| ← Dougie187 left | 21:02 |
| → pr0ton joined | 21:02 |
|
Oishikatta
| Thanks | 21:03 |
|
EugeneKay
| It's not really a merge, you're just copy-pasting a commit onto another branch. But it sounds like that's what you want ;-) | 21:03 |
| → Spyro joined | 21:03 |
| → minim joined | 21:03 |
| ← mdiers left | 21:03 |
| → mdiers joined | 21:03 |
|
Oishikatta
| what I actually want is 'all commits since <branch> was created', but looks like that would work | 21:04 |
|
skorgon
| Oishikatta, probably rather man git rebase? | 21:04 |
|
gitinfo
| Oishikatta: the git-rebase manpage is available at http://jk.gs/git-rebase.html | 21:04 |
|
skorgon
| well, or merge, depending on your workflow | 21:05 |
| → zarubin joined | 21:05 |
| → dorkmafia joined | 21:05 |
| ← TheBrainWork left | 21:06 |
| ← onethfour3 left | 21:09 |
| → onethfour joined | 21:09 |
| ← therealGent left | 21:10 |
| ← vkz left | 21:10 |
|
EugeneKay
| merge will combine the two branches, if you want all changes from both | 21:11 |
|
| If you have conflicts you'll need to sort them out yourself(or use -Xours/-Xtheirs option to try resolving it automagically by favoring one side) | 21:12 |
| → robbyoconnor joined | 21:12 |
| ← breakingthings left | 21:13 |
| ← stayarrr left | 21:13 |
| qsuscs → qsusOFFcs | 21:14 |
| ← psynor left | 21:15 |
| ← rudak left | 21:15 |
| → rudak joined | 21:15 |
| → Bosox20051 joined | 21:15 |
| → maestrojed joined | 21:15 |
| ← ojacobson left | 21:17 |
|
bamj0rb
| fobius: It happens. :( The good news is that it's working. Sometimes doing it once helps you to better understand it the second time and helps you not miss or screw up steps. Sometimes gremlins. | 21:17 |
|
fobius
| bamj0rb: yeah, I think there was something funny about the way that it was attaching the subtree to that folder. | 21:17 |
| ← carbohydrate left | 21:18 |
| ← robbyoconnor left | 21:19 |
| → normanrichards joined | 21:19 |
| → MILLIONAIRE joined | 21:20 |
|
MILLIONAIRE
| can somene help me upload a project to github | 21:20 |
|
Oishikatta
| merge did what I was looking for, thanks skorgon / EugeneKay | 21:21 |
| ← chuckharmston left | 21:22 |
|
bremner
| MILLIONAIRE: #github can. | 21:22 |
| → robbyoconnor joined | 21:22 |
|
skorgon
| github has that documented, AFAIK | 21:22 |
| ← rudak left | 21:23 |
| → rudak joined | 21:23 |
|
jamesd
| i send a link to such documentation for a small fee, about $500 usd should do it | 21:23 |
| → r0bby_ joined | 21:23 |
|
bremner
| MILLIONAIRE: do you have a more specific question? | 21:23 |
| → marcuy joined | 21:27 |
| ← robbyoconnor left | 21:27 |
| → Lancien joined | 21:28 |
| ← Xiti left | 21:28 |
| ← SHyx0rmZ left | 21:29 |
| ← m0ltar left | 21:29 |
| ← donmichelangelo left | 21:30 |
| ← bamj0rb left | 21:30 |
| → donmichelangelo joined | 21:31 |
| → bonhoeffer_ joined | 21:32 |
| → pfFred joined | 21:33 |
| juvenal → juvenal_away | 21:33 |
| ← richgilbank left | 21:34 |
| ← cenuij left | 21:36 |
| → dbuch joined | 21:36 |
| → cenuij joined | 21:36 |
| ← tjj left | 21:37 |
| ← pfFredd left | 21:37 |
| ← peroht left | 21:38 |
| ← dvide left | 21:38 |
| ← ReachingFarr left | 21:40 |
| ← joshsmith left | 21:40 |
| → Roots47 joined | 21:41 |
| ← sq-one left | 21:41 |
| → ReachingFarr joined | 21:41 |
|
lmat
| So I guess "Lines starting with '#' will be ignored..." is not for git commit -F - < commitmessage ... | 21:42 |
| → Pyrogerg joined | 21:43 |
| → richwestcoast joined | 21:44 |
|
Kismet010
| so, instead of this http://nvie.com/img/2009/12/Screen-shot-2009-12-24-at-11.32.03.png | 21:44 |
| ← kesha left | 21:45 |
| ← johnnyfuchs left | 21:45 |
| ← PaulCapestany left | 21:45 |
| ← davividal left | 21:45 |
| → kesha joined | 21:45 |
| ← rfoust left | 21:46 |
| → dvide joined | 21:46 |
| ← Olea|2 left | 21:47 |
| → PaulCapestany joined | 21:47 |
|
Kismet010
| it's a good idea to have another branch for 'production' instead of master, and use master as 'development' branch? just for simplicity: master is defaulting, no need to change to develop every time and avoid mistake form others member in the production-ready branch | 21:49 |
| ← pr0ton left | 21:49 |
| ← zarubin left | 21:50 |
| → cff joined | 21:50 |
|
iveqy
| Kismet010: I thought the same and was "furious" when they changed it at my company | 21:50 |
| ← decotii left | 21:50 |
| → groglogic joined | 21:51 |
|
iveqy
| master is default and should be development IMHO however most projects have master as their "production" and it's less confusing to do as "everybody else" rather than doing "the right way" | 21:51 |
| ← TomyLobo left | 21:51 |
| ← kesha left | 21:52 |
|
Kismet010
| so master is standard just because everybody (as me) usually does? | 21:52 |
| → pr0ton joined | 21:52 |
| ← pr0ton left | 21:53 |
| ← irqq left | 21:53 |
|
iveqy
| Kismet010: master is standard for the production branch, as showed in the picture you linked | 21:54 |
| → pr0ton joined | 21:54 |
| ← pr0ton left | 21:54 |
| ← jerius left | 21:54 |
|
Kismet010
| and any project you'd see in github | 21:55 |
|
iveqy
| Kismet010: yes. | 21:55 |
| → pr0ton joined | 21:55 |
| → erichynds joined | 21:56 |
| ← pr0ton left | 21:56 |
|
Kismet010
| i'll look for something to change default branch | 21:56 |
|
bremner
| tbh, I don't think projects on github are a good place to get workflow ideas | 21:56 |
| → Xiti joined | 21:56 |
|
iveqy
| Kismet010: that's just to change the HEAD of your remote | 21:57 |
| → mdiers1 joined | 21:57 |
|
iveqy
| Kismet010: but I'm not sure you should bother, since noone else seem to do it. Better invest more in education for your users | 21:57 |
| → banisterfiend joined | 21:58 |
| ← phile left | 21:58 |
| → jumperswitch_ joined | 21:59 |
|
Kismet010
| you just said the more difficult way to solve this ^^ | 21:59 |
|
| most* | 21:59 |
| → howitdo joined | 21:59 |
| ← kylef left | 21:59 |
| ← jumperswitch left | 22:00 |
| → jnewt joined | 22:00 |
| ← mdiers left | 22:01 |
| → pr0ton joined | 22:01 |
| ← pr0ton left | 22:02 |
|
iveqy
| Kismet010: yes, but the correct one. | 22:02 |
| ← mdiers1 left | 22:02 |
|
iveqy
| Kismet010: why give developers a tool they can't use? How costly isn't it to have developers not knowing their tools? | 22:02 |
| → mdiers joined | 22:02 |
| ← infynyxx_ left | 22:03 |
| → jumperswitch joined | 22:03 |
| ← apipkin left | 22:04 |
| → pr0ton joined | 22:04 |
| ← v0n left | 22:05 |
| ← Ozch left | 22:05 |
| ← jumperswitch_ left | 22:05 |
| ← pr0ton left | 22:05 |
| ← idoru left | 22:05 |
| → jumperswitch_ joined | 22:05 |
| ← jackdempsey left | 22:06 |
| ← marhaban left | 22:06 |
| ← mmattice left | 22:06 |
| ← bonhoeffer_ left | 22:06 |
| ← s00pcan left | 22:06 |
| ← petey__ left | 22:06 |
| ← mmitchell left | 22:07 |
| → s00pcan joined | 22:07 |
| → petey_ joined | 22:07 |
|
Kismet010
| in a ideal world maybe, I have to prevent changes on master because it's default -with a hook I think- or change the usual workflow master as 'dev' branch | 22:07 |
| → mmitchell joined | 22:07 |
| → pr0ton joined | 22:07 |
| ← jumperswitch left | 22:08 |
| → JustinMac joined | 22:08 |
| ← eephillip left | 22:08 |
| → groglogi_ joined | 22:09 |
| → eephillip joined | 22:09 |
|
iveqy
| Kismet010: the thing is that nobody should ever work on the dev branch either, but in topic branches | 22:10 |
| → cagedwisdom joined | 22:10 |
| ← devbug left | 22:10 |
|
iveqy
| Kismet010: this ideal world thing actually exists, but I also know that it's not something that can exists in all corporate enviroments, I'm sure you're the better judge of what fits your enviroment | 22:10 |
| ← pbujok left | 22:11 |
| → mizu_no_oto joined | 22:11 |
| ← groglogic left | 22:11 |
|
iveqy
| Kismet010: you're on the right track, you can prevent pushes with hooks. If you're using gitolite you even can do access control on branch level | 22:11 |
| ← petey_ left | 22:12 |
|
Kismet010
| I found an option on bitbucket | 22:12 |
| ← mmitchell left | 22:12 |
|
jnewt
| i want to setup a directory on the server where a few people can push their repo's i don't want to have to create the bare repo for them to push to everytime they decide to create a repo, and i don't want them manually ssh to the server and poking around with all the repos. | 22:12 |
|
_ikke_
| jnewt: gitolite has support for that | 22:13 |
|
jnewt
| am i asking for the impossible? | 22:13 |
|
_ikke_
| look for wild repositories | 22:13 |
|
| http://gitolite.com/gitolite/wild.html | 22:13 |
| ← eephillip left | 22:14 |
| → kermit joined | 22:14 |
| ← Roots47 left | 22:14 |
| → rednaks joined | 22:14 |
| ← yaymukund left | 22:15 |
| ← marcosc left | 22:15 |
| → gdrc joined | 22:15 |
|
gdrc
| this git is driving me crazy! | 22:15 |
| → beastd joined | 22:15 |
| → jumperswitch joined | 22:16 |
| → epicowl_ joined | 22:16 |
|
iveqy
| gdrc: !refund | 22:16 |
|
gitinfo
| gdrc: If you are not satisfied with git, or the support provided by the volunteers in #git, you are entitled to a full refund of the purchase price, and are invited to use another VCS. Elsewhere. | 22:16 |
| → tjj joined | 22:16 |
|
gdrc
| :) | 22:16 |
|
iveqy
| :) | 22:16 |
|
_ikke_
| :) | 22:16 |
|
iveqy
| gdrc: git usually drives you crazy until you understand it, then it's really simple and powerful | 22:16 |
|
jnewt
| iveqy, until you want to do something new, then you start all over | 22:17 |
|
gdrc
| I'm trying to use it without studied that's becouse I can't use it ;) | 22:17 |
| ← epicowl left | 22:17 |
| epicowl_ → epicowl | 22:17 |
|
iveqy
| jnewt: nah, when you understand the underlying model, it's all simple =) | 22:17 |
| → jumperswitch__ joined | 22:18 |
|
iveqy
| gdrc: !book !talks, I specially recommend Jessicas | 22:18 |
|
gitinfo
| gdrc: 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 !parable | 22:18 |
|
| gdrc: 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) | 22:18 |
| ← jumperswitch_ left | 22:18 |
| ← grilix left | 22:18 |
|
gdrc
| oh nice tomorrow I will see torvalds video | 22:19 |
| → grilix joined | 22:19 |
|
iveqy
| gdrc: that video won't help you learn git, at all | 22:19 |
|
jnewt
| iveqy: BS, i've been using git for a year at least, every day. then you want to do something different, and you're back to the man, searching for something that looks similar to what you want for hours | 22:19 |
|
gdrc
| btw, want I want to do and fail it that is: roll back to commit #1 | 22:19 |
|
iveqy
| gdrc: it's very entertaining though | 22:19 |
|
| gdrc: !revert | 22:19 |
|
gitinfo
| gdrc: That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]? | 22:19 |
|
skorgon
| iveqy, but it'll motivate you to throw all alternatives over board | 22:19 |
|
iveqy
| skorgon: it sure will =) | 22:20 |
| ← Cervantes left | 22:20 |
| → jumperswitch_ joined | 22:20 |
| ← tjj left | 22:20 |
|
iveqy
| jnewt: I guess it depends on how you're using git. Using it frequently doesn't make you good at it. | 22:20 |
| ← jumperswitch left | 22:20 |
| ← homo_vitruvius left | 22:20 |
| ← hobodave left | 22:21 |
| ← Swayz left | 22:21 |
|
gdrc
| iveqy: with git log I get fatal: bad default revision 'HEAD' | 22:21 |
| ← Bosox20051 left | 22:21 |
|
iveqy
| gdrc: !repro | 22:22 |
|
gitinfo
| gdrc: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting. | 22:22 |
|
iveqy
| gdrc: have you broken your repo? | 22:22 |
|
gdrc
| I think so | 22:22 |
|
jnewt
| iveqy: agreed, and if you're using it the same way, every day, you'll obviously never have any problems, and will be happy in understanding your workflow, which could be only a fraction of what others use | 22:22 |
| ← jumperswitch__ left | 22:23 |
|
gdrc
| it broke my balls haha | 22:23 |
|
skorgon
| jnewt, usually google + stackoverflow have good answers for everything you could possibly try to do with git | 22:23 |
| ← defaultro left | 22:23 |
| ← hholtmann left | 22:23 |
| → v0n joined | 22:23 |
| ← grilix left | 22:23 |
| ← normanrichards left | 22:23 |
|
iveqy
| jnewt: yes, and in many cases git isn't the right tool for you then, because most people that uses git that way uses it in a svn way. (of course, there's people that uses branches and then they are right about using git) | 22:24 |
| ← pantsman left | 22:24 |
| dwmw2 → dwmw2_gone | 22:24 |
| → iamjarvo joined | 22:24 |
| → jackdempsey joined | 22:25 |
| ← rnsanchez left | 22:25 |
| → chrob joined | 22:25 |
| ← Stalkr_ left | 22:25 |
| ← rideh left | 22:25 |
| → pbujok joined | 22:25 |
| ← Sigma left | 22:27 |
| ← bartzy left | 22:28 |
| → jfoy joined | 22:28 |
| → rnsanchez joined | 22:29 |
|
gdrc
| iveqy: ok. I hard-reset the branch and I see all my commits (10 commits). I want to roll back to the first one. | 22:29 |
| → Roots47 joined | 22:29 |
| ← lmat left | 22:29 |
| ← ws2k3 left | 22:29 |
| ← danman left | 22:30 |
| → smlgs joined | 22:30 |
| → ws2k3 joined | 22:30 |
| ← corni left | 22:32 |
| ← pr0ton left | 22:32 |
|
iveqy
| gdrc: then hard-reset your branch | 22:33 |
| → tjj joined | 22:33 |
| ← sgambino left | 22:33 |
| ← iderik left | 22:34 |
| → v0latil3 joined | 22:34 |
| ← _Vi left | 22:35 |
| ← MILLIONAIRE left | 22:35 |
| ← dbuch left | 22:35 |
|
gdrc
| iveqy: get some issues :s | 22:35 |
| ← samuel02 left | 22:36 |
| ← Roots47 left | 22:37 |
| → samuel02 joined | 22:37 |
| → adlez joined | 22:37 |
| → Swayz joined | 22:38 |
| → mmitchell joined | 22:38 |
| ← rudak left | 22:38 |
| ← tjj left | 22:38 |
| ← jfoy left | 22:39 |
| ← Andrevan left | 22:40 |
| → tjj joined | 22:40 |
| → hashpuppy joined | 22:40 |
| ← natechan left | 22:41 |
| → yaymukund joined | 22:41 |
| ← mike_af left | 22:41 |
| ← cff left | 22:41 |
| ← samuel02 left | 22:42 |
| → reskp_ joined | 22:42 |
| → Roots47 joined | 22:42 |
| ← Burer left | 22:43 |
|
m3ga
| what's the secret of getting the v2 part of the '[PATCH v2 X/Y]' subject line when using git-send-email? i've read the man page but that doesn't help. do i really need to trawl through the perl code? | 22:43 |
|
skorgon
| man git format-patch | 22:44 |
|
gitinfo
| the git-format-patch manpage is available at http://jk.gs/git-format-patch.html | 22:44 |
|
skorgon
| look for -v (reroll count) | 22:44 |
|
| m3ga, or, if you git is too old, --subject-prefix and manually setting it to 'PATCH v2' | 22:44 |
| → madewokherd joined | 22:45 |
|
m3ga
| no i've got 1.8.4rc3. i didn't realise the patch had to be added during format-patch rather than send-emai. | 22:46 |
| ← mmitchell left | 22:46 |
|
m3ga
| skorgon: thanks | 22:46 |
| → pr0ton joined | 22:46 |
|
skorgon
| m3ga, i think send-email accepts most of the switches for format-patch and passes them on, but i never tried that | 22:46 |
| ← VictorCL left | 22:47 |
|
m3ga
| skorgon: thanks! working now. | 22:47 |
| juvenal_away → juvenal | 22:48 |
|
skorgon
| cool | 22:48 |
| ← jasom left | 22:48 |
| ← r0bby_ left | 22:49 |
| → bwreilly joined | 22:49 |
| ← yaymukund left | 22:49 |
| ← mizu_no_oto left | 22:49 |
| → thomas_b joined | 22:50 |
| ← reskp_ left | 22:51 |
| → reskp joined | 22:51 |
| → simesy joined | 22:52 |
| → Guest___ joined | 22:52 |
| ← ngladitz left | 22:52 |
| ← ReachingFarr left | 22:53 |
| ← jumperswitch_ left | 22:55 |
| ← Davey left | 22:56 |
| ← Prazanna left | 22:56 |
| ← falconfox left | 22:56 |
| → erbist joined | 22:56 |
| → epicowl_ joined | 22:56 |
| ← reskp left | 22:56 |
| ← darnir left | 22:57 |
| ← Pyrogerg left | 22:57 |
| → falconfox joined | 22:58 |
| → bonhoeffer_ joined | 22:59 |
| Smirnov_ → Smirnov | 22:59 |
| → Joshi3s` joined | 23:00 |
|
iveqy
| gdrc: what issues? | 23:00 |
| ← King_Hual left | 23:00 |
|
gdrc
| I solved with git push -f origin master | 23:00 |
| ← epicowl left | 23:00 |
| epicowl_ → epicowl | 23:00 |
| ← pbujok left | 23:01 |
| ← ThomasCle left | 23:04 |
| ← bonhoeffer_ left | 23:05 |
|
iveqy
| gdrc: correct | 23:05 |
|
| gdrc: however !publice | 23:05 |
| ← grahamsavage__ left | 23:05 |
| ← breck7 left | 23:08 |
| → breck7 joined | 23:09 |
| ← minim left | 23:09 |
| ← tplaner left | 23:09 |
| ← germanoak left | 23:10 |
| → therealGent joined | 23:11 |
| ← jnewt left | 23:11 |
| ← finisherr left | 23:12 |
|
gdrc
| iveqy: thx | 23:13 |
| ← darinm_away left | 23:13 |
| ← breck7 left | 23:13 |
| ← erbist left | 23:14 |
| → kcj joined | 23:14 |
| ← acharlieh left | 23:16 |
| ← m7w left | 23:16 |
| ← bwreilly left | 23:19 |
| ← Mars` left | 23:20 |
| → Mars` joined | 23:20 |
| ← pr0ton left | 23:20 |
| groglogi_ → groglogic | 23:20 |
| ← jackdempsey left | 23:21 |
| → pr0ton joined | 23:21 |
| → grahamsavage__ joined | 23:22 |
| ← _nova left | 23:25 |
| ← pr0ton left | 23:25 |
| → pr0ton joined | 23:26 |
| ← pr0ton left | 23:26 |
| ← boombatower left | 23:26 |
| → AWinterm_ joined | 23:27 |
| → asQuirreL joined | 23:27 |
| → jackdempsey joined | 23:27 |
| ← simesy left | 23:28 |
| → pr0ton joined | 23:28 |
| → simesy joined | 23:28 |
| ← cenuij left | 23:29 |
| → minim joined | 23:29 |
| Guest___ → Alc | 23:31 |
| ← AWinterm_ left | 23:31 |
| → Gamecubic joined | 23:31 |
| ← AWinterman left | 23:31 |
| → AWinterman joined | 23:31 |
| ← lavaman1 left | 23:32 |
| ← primitive left | 23:32 |
| → tengelic joined | 23:32 |
| ← simesy left | 23:33 |
| ← asQuirreL left | 23:33 |
|
iveqy
| gdrc: !public | 23:34 |
|
gitinfo
| gdrc: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum | 23:34 |
|
tengelic
| hello! I messed up my local repo. is there a way to remove all references, fetch the remote references to the unreferenced local files, and redo the last commit? | 23:35 |
| ← marcuy left | 23:35 |
| ← knigitz left | 23:36 |
| → knigitz joined | 23:36 |
| ← AWinterman left | 23:36 |
| ← leeN left | 23:36 |
|
grawity
| not entirely sure what you mean by "fetch remote references to the unreferenced local files" | 23:39 |
| ← bdavenport left | 23:39 |
| → devoldmx joined | 23:39 |
|
grawity
| (or why you think removing everything is necessary) | 23:40 |
|
tengelic
| my terminology might be wrong, but I try to explain | 23:42 |
| ← epicowl left | 23:42 |
| → drasko_ joined | 23:42 |
|
drasko_
| hi all. How to clean history from removed file? | 23:42 |
|
| I want to make .git directory smaller | 23:42 |
| → bdavenport joined | 23:43 |
|
drasko_
| by removing unnecessary snapshots of the history | 23:43 |
| ← travisstaton left | 23:43 |
|
drasko_
| of the binaries that I removed from repository | 23:43 |
| → _Norm_ joined | 23:44 |
| → Prazanna joined | 23:44 |
|
grawity
| https://help.github.com/articles/remove-sensitive-data#cleanup-and-reclaiming-space | 23:45 |
| → pfFreddd joined | 23:46 |
| → richgilbank joined | 23:46 |
| → psynor joined | 23:46 |
|
bremner
| man git-filter-branch is pretty decent | 23:46 |
|
gitinfo
| the git-filter-branch manpage is available at http://jk.gs/git-filter-branch.html | 23:46 |
| ← Norm__ left | 23:47 |
|
tengelic
| grawity, I made a commit and changed the author name on several old commits (while this wasn't really necessary), and now I can't push my repository to the remote one. I would like the redo everything with Git (get back the old history), and make that last commit again. | 23:47 |
| ← Prazanna left | 23:47 |
| ← pfFred left | 23:47 |
|
grawity
| "redo everything with Git" and "get back the old history" aren't synonyms | 23:48 |
|
| you still have the old history, you can just go back to it | 23:48 |
| ← richgilbank left | 23:48 |
|
grawity
| e.g. if you're on the 'master' branch, you can just `git reset --hard origin/master` | 23:48 |
| → adlez_ joined | 23:48 |
| ← erichynds left | 23:48 |
|
grawity
| (and use `git cherry-pick` to re-apply that commit) | 23:49 |
| ← deuterium left | 23:49 |
| → bwreilly joined | 23:50 |
| ← _Norm_ left | 23:50 |
| → Norm__ joined | 23:50 |
|
tengelic
| grawity, so git rebase doesn't rewrite the history? | 23:51 |
|
grawity
| it does | 23:51 |
|
| but more precisely, it creates new rewritten history | 23:51 |
|
| it doesn't immediately discard old one, just removes references to it | 23:51 |
|
| and lets git garbage-collect it sometime later | 23:51 |
|
| and 'later' can take a while, since the old history remains in the branch's reflog for about two weeks | 23:52 |
|
| (+ HEAD's reflog) | 23:52 |
| ← adlez left | 23:52 |
| ← Alc left | 23:53 |
| → AWinterman joined | 23:54 |
| ← jaimef left | 23:55 |
| → jaimef joined | 23:55 |
|
melee
| i pushed a commit with a bad message (referenced the wrong ticket) - is there an easy way to amend this or would that involve rewriting history? | 23:55 |
| ← iamjarvo left | 23:55 |
| → johnnyfuchs joined | 23:55 |
|
grawity
| amending *is* rewriting history | 23:55 |
| → alip joined | 23:55 |
| → iamjarvo joined | 23:56 |
|
melee
| that's what i thought :( suggestions for fixing? | 23:56 |
|
grawity
| but if you do `git commit --amend`, fix it, and `git push --force` REALLY QUICK, maybe nobody will notice :P | 23:56 |
|
melee
| i'm a solo developer, no one will notice | 23:56 |
|
| :P | 23:56 |
|
| BUT i do like to do things correctly haha | 23:56 |
|
grawity
| the largest issue with rewriting history is that it becomes annoying to other developers | 23:56 |
| ← JustinMac left | 23:57 |
|
grawity
| it's not really a technical problem – git does have the most extensive history rewriting commands out of most VCSes, after all | 23:57 |
| → ozette joined | 23:58 |
|
melee
| i just went ahead and forced it, haha | 23:58 |
|
| linus hates me | 23:58 |