| 2014-05-14 |
| → cjsarette joined | 00:00 |
|
Oran
| and i can play around with it to test if git works as i suppose them to do, without to ask some to commit stuff or somethink to try it out | 00:00 |
|
bremner
| If you want the second clone to be automatically updated every time you push to the first, then you have to understand the deploy link people keep posting | 00:00 |
|
| otherwise, it's no different than a clone on your workstation. | 00:00 |
|
| you decide. | 00:00 |
| ← codeurge left | 00:00 |
|
Oran
| i want every clone to be updated everytime | 00:00 |
|
bremner
| then read the link | 00:01 |
|
Oran
| i did | 00:01 |
|
| but iam confused | 00:01 |
| → rfoust joined | 00:01 |
|
Oran
| rith now i think i jsut got 1 branch per repo | 00:01 |
|
| and 1 repo per "project" | 00:01 |
| ← Balliad left | 00:01 |
|
Oran
| (rigth now there is just 1 project | 00:01 |
|
bremner
| well, it's not a great "beginner's task" for git. | 00:01 |
|
| there's nothing I can do to make something complicated easy, other than suggest that you maybe don't really want to do that now. | 00:02 |
| → LucasKA joined | 00:02 |
|
Oran
| but is there any other way all the workstations always get the uptodate version on its own? | 00:02 |
| ← JorgeRuiz left | 00:03 |
|
bremner
| not really. it amounts to the same thing | 00:03 |
| ← bwreilly left | 00:04 |
|
bremner
| maybe git is not what you are looking for, if keeping things in lockstep is your main goal. | 00:04 |
|
Oran
| so can u point out what i need to do please | 00:04 |
|
| i guess the figthclub option seem to be what i need | 00:04 |
| ← imachuchu left | 00:06 |
| → heedly joined | 00:07 |
|
heedly
| How do I manage remote branches properly? | 00:07 |
| ← Blaster left | 00:07 |
|
heedly
| It seems like no combination of push or pull keeps them in sync on different computers. | 00:07 |
| ← martinklepsch left | 00:09 |
| → espringe joined | 00:10 |
|
ToxicFrog
| heedly: how do you mean? | 00:10 |
|
heedly
| ToxicFrog: I do push origin local_branch | 00:10 |
|
| then I make some changes, commit, and push again. | 00:10 |
|
ToxicFrog
| push and fetch/pull are both pretty simple, so if you're undirectedly experimenting with them in the hopes that something will happen the way you want, you probably have an understanding gap | 00:10 |
|
| Ok, sounds good so far | 00:11 |
| ← godgodgodgo left | 00:11 |
|
heedly
| Then I pull on another computer and get the first push | 00:11 |
| ← vanillajohn left | 00:11 |
| → johnkevinmbasco joined | 00:11 |
| → rchavik joined | 00:11 |
| → Lemony joined | 00:13 |
| → Reskp joined | 00:13 |
|
ToxicFrog
| heedly: you're sure you're pulling from the same origin? You're sure the second push succeeded? | 00:14 |
| ← bluesm left | 00:14 |
|
heedly
| would a basic git pull, be sufficient? | 00:15 |
|
ToxicFrog
| I would expect it to either be sufficient, or tell you why it isn't. | 00:15 |
|
| It should not silently fail or give you the "wrong" branch head. | 00:15 |
| → vanillajohn joined | 00:15 |
|
ToxicFrog
| So double check that all your pushes are working and that you are using the right remotes and branches. | 00:15 |
| ← dannymichel left | 00:16 |
| ← dik_dak left | 00:16 |
|
heedly
| ok, a basic git pull, doesn't work | 00:16 |
|
| I need to specify origin and branch | 00:16 |
| → hellopat joined | 00:17 |
|
ToxicFrog
| heedly: as in 'git pull origin master' | 00:17 |
|
| Hang on there's a faq for that, it may not do what you think it does | 00:17 |
|
| !pull4 | 00:17 |
|
gitinfo
| [!fetchfour] [pre 1.8.4 only] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge). | 00:17 |
| → codeFiend joined | 00:18 |
| ← Reskp left | 00:18 |
|
ToxicFrog
| 'git pull origin master' will update FETCH_HEAD and your local master branch but not origin/master | 00:18 |
| → johnkevi_ joined | 00:19 |
| → gargola_ joined | 00:20 |
| → Blaster joined | 00:21 |
| ← Blaster left | 00:21 |
| → Blaster joined | 00:21 |
| ← hellopat left | 00:21 |
| → SilverBln joined | 00:21 |
| → jason237 joined | 00:21 |
| ← SilverBln left | 00:21 |
| ← johnkevinmbasco left | 00:22 |
|
Vampire0
| Oran, you can't do what you want if you want to do what you said | 00:22 |
|
Oran
| o.O ? | 00:22 |
|
| could u explan this to me please? | 00:23 |
| → fragamus joined | 00:23 |
|
Vampire0
| You can't automatically keep the local clones of all your mates automatically updated if something gets pushed to the remote repo | 00:23 |
| ← fragamus left | 00:23 |
|
Vampire0
| besides setting up some background service on all the mates machines that does check for updates | 00:23 |
|
Oran
| is there a way how i can do this ? | 00:25 |
|
Vampire0
| Well, with a serious amount of fiddling you could get somewhere beneath this, with hooks in the remote repo that connect to all local repos, pushing the just-pushed changes into them and then some hooks in those repos that does some other magic | 00:25 |
|
Hello71
| a simpler way to put it would have been "that won't do what you want". | 00:25 |
|
Vampire0
| But this is definitely not a beginnners task, not even an advanced task | 00:25 |
| → ianmcorvidae joined | 00:25 |
|
Vampire0
| And it will for sure break as it sound very fragile | 00:25 |
|
Oran
| so any way to get the job done? | 00:26 |
|
Vampire0
| and is completely reverting the concepts Git or and DCVS builds on | 00:26 |
|
Oran
| perhaps ide funktions which always fetch | 00:26 |
|
Vampire0
| You can also set up a hook in the local repos that does a fetch on each commit or something like that | 00:27 |
|
| But it is all not really optimal and not really what Git is built for | 00:27 |
|
| Maybe you are actually searching for another tool | 00:27 |
| ← zzing left | 00:27 |
|
Oran
| i thoug the fancy stuff of git is thats decentrale | 00:28 |
|
| btw what about ides ? doesnt they got anythink like auto fetch ? | 00:28 |
| ← kukks left | 00:29 |
|
Vampire0
| That's the point Oran, it is decentral | 00:30 |
|
| But you want to centrally push out new changes to the satellites, this is non-decentral | 00:30 |
|
| I don't know, I didn't see any that does | 00:30 |
|
| Because it is not how you work with git | 00:30 |
|
| I guess | 00:30 |
|
| Good UGT night | 00:31 |
| ← cjsarette left | 00:32 |
| → lyang0 joined | 00:33 |
|
nightcracker
| by the way, I asked yesterday about having a subrepo as a subdirectory in a parent repo, and you guys answered with subtrees and it works perfectly, thanks | 00:33 |
|
| the syntax could be a bit sugared, but other than that it does exactly what I want | 00:33 |
| ← pbrobst left | 00:34 |
| → LuxuryMode joined | 00:35 |
| → cjsarette joined | 00:35 |
| → pbrobst joined | 00:35 |
| ← cjsarette left | 00:36 |
| → kcj joined | 00:36 |
| ← LuxuryMode left | 00:37 |
| → ErKa joined | 00:37 |
| → luc_ joined | 00:37 |
|
Oran
| so what the plan Vampire0 just always use fetch and be happy with this? | 00:37 |
| ← akushner left | 00:38 |
| ← jhuntley left | 00:39 |
| ← astrofog left | 00:40 |
| ← Nae|Air left | 00:40 |
| ← luc_ left | 00:41 |
| → cjsarette joined | 00:41 |
| ← EminenceHC left | 00:41 |
| ← cjsarette left | 00:41 |
| ← beyondcreed left | 00:41 |
| ← Maadison left | 00:41 |
| → EminenceHC joined | 00:42 |
| → SilverBln joined | 00:42 |
| ← aspiers left | 00:42 |
| ← Skrypter left | 00:43 |
| ← latenite left | 00:43 |
| → laserbeam joined | 00:44 |
| ← vanillajohn left | 00:44 |
| → jftf joined | 00:45 |
| → hellopat joined | 00:45 |
| ← EminenceHC left | 00:46 |
| → cjsarette joined | 00:46 |
| → debajit joined | 00:48 |
| ← cjsarette left | 00:48 |
| ← laserbeam left | 00:48 |
|
Primer
| A full migration of svn to git using "git svn ..." is taking over a day to finish. I'm wondering if I can just do the official migrate, then have people continue to commit to svn, then pick up the difference when we're ready to make the move? | 00:49 |
| ← kenneth left | 00:50 |
| ← jftf left | 00:51 |
|
markmarkmark
| Oran: it is up to the clients to keep their local repositories in sync | 00:51 |
| → cjsarette joined | 00:52 |
| → maglnet joined | 00:54 |
| ← ascarter left | 00:55 |
| → thiago joined | 00:55 |
| ← DolphinDream left | 00:55 |
| ← pheaver left | 00:57 |
| ← jhulten left | 00:57 |
| ← moritzs left | 00:58 |
| ← moritzschaefer left | 00:58 |
| ← kcj left | 00:58 |
| ← fenerlitk left | 00:59 |
| ← boombatower left | 00:59 |
| ← whitby left | 00:59 |
| ← LucasKA left | 01:00 |
| → ivan\ joined | 01:01 |
| → moritzschaefer joined | 01:01 |
| ← espringe left | 01:01 |
| → Goplat joined | 01:01 |
| ← hyperair left | 01:02 |
| → espringe joined | 01:03 |
| → delight joined | 01:05 |
| → JorgeRuiz joined | 01:05 |
| ← JorgeRuiz left | 01:05 |
| ← moritzschaefer left | 01:05 |
| ← shinnya left | 01:05 |
| → JorgeRuiz joined | 01:05 |
| ← JorgeRuiz left | 01:05 |
| ← debajit left | 01:06 |
| → moritzs joined | 01:06 |
| → JorgeRuiz joined | 01:06 |
| ← JorgeRuiz left | 01:06 |
| → JorgeRuiz joined | 01:07 |
| ← JorgeRuiz left | 01:07 |
| → JorgeRuiz joined | 01:07 |
| ← JorgeRuiz left | 01:07 |
| → JorgeRuiz joined | 01:08 |
| ← JorgeRuiz left | 01:08 |
| ← JosephFerano left | 01:08 |
| → ilyam joined | 01:08 |
| → JorgeRuiz joined | 01:09 |
| ← JorgeRuiz left | 01:09 |
| → quazimodo joined | 01:09 |
| → JorgeRuiz joined | 01:09 |
| ← JorgeRuiz left | 01:09 |
| → Devastatr joined | 01:10 |
| → JorgeRuiz joined | 01:10 |
| ← JorgeRuiz left | 01:10 |
| → timmymarion joined | 01:10 |
| → codeurge joined | 01:10 |
| → JorgeRuiz joined | 01:10 |
| ← JorgeRuiz left | 01:11 |
| → nicksloan joined | 01:11 |
| → diegoviola joined | 01:11 |
| → JorgeRuiz joined | 01:11 |
| ← JorgeRuiz left | 01:11 |
| ← ilyam left | 01:11 |
| ← the_hugme left | 01:12 |
| → ilyam joined | 01:12 |
| → Vampire0_ joined | 01:13 |
| → DolphinDream joined | 01:13 |
| ← codeurge left | 01:13 |
| → Reskp joined | 01:14 |
| ← happytux left | 01:15 |
| ← delight left | 01:16 |
| ← espringe left | 01:16 |
| ← Vampire0 left | 01:16 |
| → daito joined | 01:17 |
| ← codeFiend left | 01:17 |
| → tokik joined | 01:17 |
| ← Reskp left | 01:18 |
| → Diemuzi joined | 01:19 |
| gitinfo set mode: +v | 01:19 |
| ← Blaster left | 01:20 |
| → robustus joined | 01:21 |
| → reaverb joined | 01:21 |
| ← timmymarion left | 01:21 |
| → Skrypter joined | 01:21 |
| → espringe joined | 01:22 |
| ← pbrobst left | 01:22 |
| ← jxf left | 01:22 |
| → pbrobst joined | 01:25 |
| → woollyams joined | 01:25 |
| ← tpollard left | 01:26 |
| ← Lemony left | 01:27 |
| ← Diemuzi left | 01:28 |
| → otter768 joined | 01:29 |
| ← Oran left | 01:29 |
| ← woollyams left | 01:30 |
| → mizu_no_oto joined | 01:30 |
| ← dreiss left | 01:32 |
| → Blaster joined | 01:32 |
| ← Blaster left | 01:32 |
| → Blaster joined | 01:32 |
| ← aartist left | 01:32 |
| ← cjsarette left | 01:33 |
| ← espringe left | 01:33 |
| → mjsmith2 joined | 01:34 |
| → k_sze[work] joined | 01:35 |
| → Entomo joined | 01:35 |
| → hgl joined | 01:35 |
| → cjsarette joined | 01:37 |
| ← Blaster left | 01:37 |
| → watabou joined | 01:38 |
| → ojacobson joined | 01:38 |
| ← ojacobson left | 01:38 |
| → tpollard joined | 01:38 |
| → mdub joined | 01:38 |
| → ojacobson joined | 01:39 |
| → mmoretti joined | 01:40 |
| ← recycle left | 01:40 |
| ← cjsarette left | 01:40 |
| ← awc737_ left | 01:40 |
| → GT4066 joined | 01:41 |
| → awc737 joined | 01:41 |
| ← Celm left | 01:42 |
| ← DolphinDream left | 01:43 |
| → danecando joined | 01:43 |
| → pwnz0r joined | 01:43 |
| → jhuntley joined | 01:43 |
| → cjsarette joined | 01:44 |
| → DolphinDream joined | 01:44 |
| ← cjsarette left | 01:44 |
| → cjsarette joined | 01:44 |
| ← cjsarette left | 01:44 |
| → Mitchbones joined | 01:44 |
| → laserbeam joined | 01:45 |
| → Pigeon_ joined | 01:46 |
| → jftf joined | 01:46 |
| ← Devastatr left | 01:46 |
| → Devastatr joined | 01:46 |
| Devastatr → Devastator | 01:46 |
| → cjsarette joined | 01:47 |
| ← cjsarette left | 01:47 |
| ← mmoretti left | 01:47 |
| gitinfo set mode: +v | 01:47 |
|
Pigeon_
| hello | 01:47 |
|
gitinfo
| Pigeon_: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on. | 01:47 |
| → Gooder joined | 01:48 |
| ← rchavik left | 01:48 |
| → jxf joined | 01:48 |
| → rchavik joined | 01:49 |
| ← laserbeam left | 01:49 |
|
Pigeon_
| I am searching for help: I got a git repository on a server which is accessible over ssh with but with a custom port 1337, on my linux os with eclipse i was fine afte rchanging the port in the /etc/ssh/ssh_config, but my friend is on windows and uses eclipse with the egit plugin, How can he change to a custom ssh port? | 01:50 |
| ← awc737 left | 01:50 |
| → Blaster joined | 01:50 |
| ← jftf left | 01:50 |
| ← adamm left | 01:51 |
| → moparsthbest joined | 01:51 |
|
Pigeon_
| I am searching for help: I got a git repository on a server which is accessible over ssh but with a custom ssh port, 1337, on my linux os with eclipse i was fine after changing the port in the /etc/ssh/ssh_config, But my friend is on windows and uses eclipse with the egit plugin, How can he change to a custom ssh port? | 01:51 |
| ← moparisthebest left | 01:51 |
| → adamm joined | 01:52 |
|
Pigeon_
| I am searching for help: I got a git repository on a server which is accessible over ssh but with a custom ssh port, 1337, on my linux os with eclipse i was fine after changing the port in the /etc/ssh/ssh_config, But my friend is on windows and uses eclipse with the egit plugin, How can he change to a custom ssh port? | 01:52 |
| ← DolphinDream left | 01:52 |
|
Pigeon_
| someone here? | 01:52 |
|
| I am searching for help: I got a git repository on a server which is accessible over ssh but with a custom ssh port, 1337, on my linux os with eclipse i was fine after changing the port in the /etc/ssh/ssh_config, But my friend is on windows and uses eclipse with the egit plugin, How can he change to a custom ssh port? | 01:54 |
| → megawac joined | 01:54 |
|
Mitchbones
| jesus dude | 01:54 |
|
Pigeon_
| yep? | 01:54 |
|
| call me pigeon... :D | 01:54 |
|
Mitchbones
| I can't help you with your problem, but flooding the channel won't get you an answer any faster :\ | 01:55 |
| → digital-shokunin joined | 01:55 |
|
Pigeon_
| are you willing to help me? so thanks in advance... | 01:55 |
|
mattcen
| Asking a question more than once in a row isn't productive | 01:55 |
|
Pigeon_
| ok | 01:55 |
| → dsdeiz_ joined | 01:55 |
|
Pigeon_
| i am sorry | 01:55 |
|
mattcen
| In fact, it's really annoying. We're not glued to this channel 24/7 | 01:55 |
|
Pigeon_
| got it, so when do you suggest me to push this question again? | 01:55 |
|
mattcen
| That sounds like a question for the egit devs or, at a pinch, eclipse | 01:56 |
|
| In general though... | 01:56 |
| ← dsdeiz left | 01:56 |
|
mattcen
| If it supports standard git URLs it should look something like this: | 01:56 |
|
Pigeon_
| egit uses msysgit portable, which github site got me here... https://github.com/msysgit/msysgit/wiki/GetHelp | 01:56 |
|
diegoviola
| i have a 'foo' branch and i have some specific commits i'd like to merge from my master branch in my foo branch, how do i pick those commits for merging into the foo branch? | 01:56 |
| ← lucastt left | 01:57 |
|
mattcen
| ssh://git.example.net:1337/path/to/git/repo | 01:57 |
|
| Pigeon_: ^^ | 01:57 |
|
| Pigeon_: As is clearly explained in the !git-clone manpage | 01:58 |
|
Pigeon_
| tried this^^ | 01:58 |
|
| also found this answer on stackoverflow.. | 01:58 |
|
mattcen
| Well why don't you tell us everything you tried so we don't have to go looking up stuff you've already found? | 01:58 |
|
| mattcen has a day job, and, believe it or not, doesn't get paid to sit in #git | 01:58 |
| ← moritzs left | 01:59 |
| → xcesariox joined | 02:00 |
|
| Pigeon_ is sorry for bothering him and asks himself if this channel actually is for support purposes? | 02:00 |
|
skorgon
| diegoviola: git cherry-pick <commit> | 02:00 |
| ← kriks left | 02:01 |
| ← pbrobst left | 02:01 |
| ← otter768 left | 02:01 |
| → cjsarette joined | 02:02 |
|
Pigeon_
| what i have tried: the ssh:// uri with the port, searching all the directories for config like files at the mysisgit portable included in eclipse (none ssh port config found) | 02:02 |
| ← cjsarette left | 02:02 |
|
Pigeon_
| isnt it pretty common to change the ssh port to a custom one? i cant get why it is that complicated to set this thing up on windows... | 02:03 |
| ← mjsmith2 left | 02:04 |
| → happytux joined | 02:05 |
|
sreich
| because development tends to be overcomplicated on windows | 02:05 |
|
SamB
| Pigeon_: I think it'd be most common to have an extra port (in case you had to deal with moronic firewall operators that decided to blacklist port 22) | 02:05 |
|
diegoviola
| skorgon: thanks | 02:05 |
| → armyriad joined | 02:05 |
| → cjsarette joined | 02:06 |
|
Pigeon_
| now, i pref dev on debian, but his frined... :D and because it was me to want a custom port (because of some great firewall...) i am allowed to figure out how (and right now im close to asking if) it may work on windows... | 02:07 |
| → hyperair joined | 02:07 |
|
SamB
| Pigeon_: which ssh client is it using? | 02:07 |
| → Droolio joined | 02:08 |
|
Pigeon_
| i think theres one in the mysisgit folder, i dont know which and found no config file | 02:08 |
| ← SilverBln left | 02:09 |
| → jrvs joined | 02:09 |
| ← amikiri left | 02:10 |
| → richwest joined | 02:10 |
| → amikiri joined | 02:10 |
| ← akim left | 02:12 |
| → akim joined | 02:12 |
|
SamB
| Pigeon_: well is it plink.exe or ssh.exe ? | 02:12 |
|
Pigeon_
| ssh | 02:12 |
| ← Blaster left | 02:13 |
|
Pigeon_
| ssh.exe | 02:14 |
|
SamB
| your ssh_config(5) manpage should be able to tell you how to fix it, if you can figure out where ~ is ... | 02:14 |
| → Reskp joined | 02:14 |
| ← jrvs left | 02:15 |
| → sdwrage joined | 02:15 |
| → Celm joined | 02:15 |
| → mjsmith2 joined | 02:16 |
|
Pigeon_
| well | 02:16 |
| → espringe joined | 02:16 |
| ← RyPeck left | 02:16 |
| → RyPeck joined | 02:16 |
|
RyPeck
| How could someone new to git "accidentally" create a commit without a parent? Without using the --orphan option for checkout. | 02:17 |
| → codeFiend joined | 02:17 |
| → razrunelord joined | 02:17 |
| ← xcesariox left | 02:19 |
| ← Reskp left | 02:19 |
| ← Celm left | 02:19 |
| → zajn joined | 02:21 |
| ← razrunelord left | 02:22 |
| ← codeFiend left | 02:22 |
|
Pigeon_
| there is also a git-bash.bat in the folder and when i cd ~ i come to my | 02:22 |
|
| users dir | 02:22 |
| → jrvs joined | 02:23 |
|
Pigeon_
| i try now to make a .ssh dir and the config file in there, thanks for help so far... | 02:23 |
| ← jrvs left | 02:23 |
| → Blaster joined | 02:25 |
| ← Blaster left | 02:25 |
| → Blaster joined | 02:25 |
| → lb1a joined | 02:26 |
| ← ianmcorvidae left | 02:27 |
| → otter768 joined | 02:28 |
| ← Cheaterman left | 02:28 |
| → kenneth joined | 02:31 |
| → DolphinDream joined | 02:31 |
| ← Ethix left | 02:31 |
| → ianmcorvidae joined | 02:32 |
| ← Noldorin left | 02:33 |
| → ianmcorvidae|alt joined | 02:35 |
| ← ianmcorvidae left | 02:35 |
| → zzing joined | 02:35 |
| ← Pigeon_ left | 02:36 |
| → mike5w3c joined | 02:36 |
| → bgerber joined | 02:37 |
| → agorecki joined | 02:38 |
| → jonanin joined | 02:39 |
| ← mizu_no_oto left | 02:39 |
| → Gooder` joined | 02:41 |
| ← kburdett left | 02:42 |
| → BlooAlien joined | 02:42 |
| → mizu_no_oto joined | 02:42 |
| ← Tuna-Fish left | 02:42 |
| ← Gooder left | 02:42 |
| → the_hugme joined | 02:42 |
| → kburdett joined | 02:43 |
| ← espringe left | 02:43 |
| → EminenceHC joined | 02:45 |
| → laserbeam joined | 02:45 |
| → Tuna-Fish joined | 02:46 |
| ← Skrypter left | 02:46 |
| → jftf joined | 02:47 |
| → kukks joined | 02:48 |
| ← Kitty- left | 02:48 |
| ← the_hugme left | 02:48 |
| → zoso joined | 02:49 |
| ← EminenceHC left | 02:49 |
| ← laserbeam left | 02:50 |
| ← kukks left | 02:51 |
| ← jftf left | 02:51 |
| ← CheckDavid left | 02:52 |
| ← mellernoia left | 02:52 |
| → codeFiend joined | 02:52 |
| → bambams__ joined | 02:52 |
| bambams__ → bambams | 02:52 |
| ← zivester left | 02:55 |
| → awc737 joined | 02:56 |
| ← sreich left | 02:57 |
| ← thiago left | 02:58 |
| → rnsanchez joined | 02:59 |
| ← kburdett left | 02:59 |
| → bwreilly joined | 03:00 |
| → kburdett joined | 03:00 |
| ← ifdm_ left | 03:00 |
| ← bwreilly left | 03:00 |
| → recycle joined | 03:00 |
| ← zoso left | 03:00 |
| → thiago joined | 03:01 |
| ← cjsarette left | 03:05 |
| ← momomomomo left | 03:06 |
| → johnny2600 joined | 03:07 |
| → Celm joined | 03:07 |
| ← zzing left | 03:08 |
| ← awc737 left | 03:09 |
| → treehug88 joined | 03:09 |
| ← pwnz0r left | 03:10 |
| ← amikiri left | 03:10 |
| ianmcorvidae|alt → ianmcorvidae | 03:11 |
| → cjsarette joined | 03:11 |
| ← cjsarette left | 03:11 |
| ← ezio left | 03:13 |
| → quazimod1 joined | 03:14 |
| → zumba_ad_ joined | 03:15 |
| → Reskp joined | 03:15 |
| → zumba_a__ joined | 03:16 |
| ← zumba_ad_ left | 03:16 |
| ← koell left | 03:16 |
| ← mizu_no_oto left | 03:16 |
| → cjsarette joined | 03:17 |
| ← cjsarette left | 03:17 |
| → ezio joined | 03:17 |
| ← zumba_addict left | 03:18 |
| ← johnkevi_ left | 03:20 |
| ← Reskp left | 03:20 |
| → cjsarette joined | 03:20 |
| ← cjsarette left | 03:20 |
| ← yhager left | 03:20 |
| → cjsarette joined | 03:24 |
| ← daito left | 03:24 |
| ← Segfault_ left | 03:25 |
| ← St_Marx left | 03:25 |
| ← Exio4 left | 03:25 |
| ← asakura left | 03:25 |
| → yhager joined | 03:26 |
| → dreiss joined | 03:26 |
| → ifdm_ joined | 03:26 |
| → Skrypter joined | 03:28 |
| → Junior joined | 03:29 |
| ← thiago left | 03:35 |
| ← Celm left | 03:35 |
| → Sleepy63 joined | 03:36 |
| → Segfault_ joined | 03:36 |
| → Exio4 joined | 03:36 |
| → thiago joined | 03:36 |
| → yacks joined | 03:37 |
| → Sample joined | 03:38 |
| ← Sample left | 03:38 |
| → Sample joined | 03:38 |
| → fobelx joined | 03:40 |
| → Celm joined | 03:40 |
|
fobelx
| i want to get a list of files that differ between two branches. how? | 03:40 |
| → pheaver joined | 03:41 |
| → asakura joined | 03:42 |
| → liuzhoou joined | 03:43 |
|
mike5w3c
| so I have a ref "refs/remotes/origin/pr/991" and I have in my git config [branch "pr/991"] remote = origin merge = refs/heads/pr/991 (with newlines in there of course). But when I'm on the pr/991 branch I I do a git pull, git says "Your configuration specifies to merge with the ref 'pr/991' from the remote, but no such ref was fetched." | 03:43 |
|
| fobelx: git diff foo..bar | 03:43 |
|
| right? | 03:43 |
| ← tummy left | 03:43 |
|
mike5w3c
| fobelx: though I guess that gives you the full diff, not just the files that differ. You could filter that output easily enough. pipe | 03:44 |
| ← johnny2600 left | 03:45 |
| ← jonanin left | 03:45 |
| → tummy joined | 03:45 |
| → Cheaterman joined | 03:45 |
| → beautifulmind joined | 03:45 |
| ← mdub left | 03:45 |
| ← recycle left | 03:46 |
| → EminenceHC joined | 03:46 |
| ← ErKa left | 03:46 |
| → laserbeam joined | 03:46 |
|
mike5w3c
| fobelx: git diff branch1..branch2 | grep "diff --git" | cut -c14- | 03:46 |
| → recycle joined | 03:46 |
|
mike5w3c
| for something quick and dirty | 03:46 |
| → skorgon joined | 03:47 |
| → ErKa joined | 03:47 |
| → jftf joined | 03:48 |
| → laserbea_ joined | 03:48 |
| ← otter768 left | 03:48 |
| ← beautifulmind left | 03:48 |
| → ariscop joined | 03:50 |
| ← EminenceHC left | 03:50 |
| ← laserbeam left | 03:50 |
| ← nb_bez_ left | 03:51 |
| ← jftf left | 03:52 |
| ← laserbea_ left | 03:52 |
|
fobelx
| okay thank you | 03:53 |
| → beautifulmind joined | 03:54 |
| ← mjsmith2 left | 03:54 |
| → laserbeam joined | 03:54 |
| ← ErKa left | 03:54 |
| ← armyriad left | 03:55 |
| ← laserbeam left | 03:55 |
| ← agorecki left | 03:56 |
| ← hyperair left | 03:57 |
|
fobelx
| and i have another query. | 03:57 |
|
| how do i increase context of diff? | 03:58 |
| → aspiers joined | 03:58 |
| → fatalhalt joined | 03:58 |
|
mike5w3c
| fobelx: -C4 or so | 03:59 |
|
| where "4" is the number of more lines of context you want | 03:59 |
| ← recycle left | 03:59 |
|
mike5w3c
| assuming that git's diff supports the -C switch | 03:59 |
| → recycle joined | 04:00 |
|
mike5w3c
| ah maybe it doesn't | 04:00 |
| ← JerryT left | 04:01 |
|
fobelx
| i found a -U switch that works. thank you mike5w3c | 04:01 |
|
mike5w3c
| fobelx: ah -U4 I guess | 04:01 |
|
| yeah | 04:01 |
|
fobelx
| hehe yes i just found it :) | 04:01 |
|
mike5w3c
| cheers | 04:01 |
| ← recycle left | 04:02 |
| → recycle joined | 04:03 |
| → Tommy[D]_ joined | 04:03 |
| → daito joined | 04:04 |
| ← aretecode left | 04:04 |
| → woollyams joined | 04:04 |
| → acharlieh joined | 04:05 |
| → aretecode joined | 04:06 |
| → fatalhalt_ joined | 04:09 |
| ← aretecode left | 04:09 |
| ← acharlieh left | 04:09 |
| → robzilla joined | 04:11 |
| ← yhager left | 04:12 |
| → codeurge joined | 04:12 |
| ← fatalhalt left | 04:12 |
| → yhager joined | 04:13 |
| → JerryT joined | 04:13 |
| ← JerryT left | 04:14 |
| → Reskp joined | 04:16 |
| ← Sample left | 04:16 |
| ← daito left | 04:16 |
| → sdwrage_ joined | 04:16 |
| → agrajag42 joined | 04:16 |
| → St_Marx joined | 04:16 |
| → astrofog joined | 04:17 |
| ← nnyk_ left | 04:17 |
| ← recycle left | 04:18 |
| ← codeurge left | 04:18 |
| ← sdwrage left | 04:18 |
| → recycle joined | 04:18 |
| → nnyk_ joined | 04:18 |
| ← nnyk_ left | 04:18 |
| → nnyk_ joined | 04:18 |
| ← dreiss left | 04:19 |
| → razrunelord joined | 04:19 |
| → acharlieh joined | 04:20 |
| ← Reskp left | 04:21 |
| ← CKyle left | 04:22 |
| ← razrunelord left | 04:24 |
| → fatalhalt joined | 04:26 |
| ← nkouevda left | 04:26 |
| → nkouevda joined | 04:27 |
| ← fatalhalt_ left | 04:28 |
| ← cjsarette left | 04:30 |
| → EveBird joined | 04:31 |
| ← nkouevda left | 04:31 |
| → JerryT joined | 04:31 |
| ← kermit left | 04:34 |
| → codeman joined | 04:35 |
| → kermit joined | 04:35 |
| → e^0 joined | 04:35 |
| ← Arkaniad left | 04:36 |
| → cjsarette joined | 04:38 |
| → mennea joined | 04:38 |
| ← RyPeck left | 04:39 |
| ← cjsarette left | 04:40 |
| → Sample joined | 04:41 |
| ← knownasilya left | 04:42 |
| → Bombe joined | 04:43 |
| ← scarabx left | 04:43 |
| → kalimist joined | 04:43 |
| ← kalimist left | 04:43 |
| ← recycle left | 04:43 |
| → recycle joined | 04:44 |
| → kalimist joined | 04:45 |
| ← robzilla left | 04:45 |
| ← hellopat left | 04:45 |
| → awc737 joined | 04:47 |
| ← Tuna-Fish left | 04:47 |
| → jonanin joined | 04:48 |
| → jftf joined | 04:49 |
| → maveneagle joined | 04:49 |
| → EminenceHC joined | 04:50 |
| → nhayashi joined | 04:51 |
| → Tuna-Fish joined | 04:51 |
| → kcj_ joined | 04:51 |
| ← jftf left | 04:53 |
| ← pheaver left | 04:54 |
| ← yhager left | 04:54 |
| ← EminenceHC left | 04:55 |
| ← k_sze[work] left | 04:55 |
| → hyperair joined | 04:56 |
| → xcesariox joined | 04:56 |
| ← danecando left | 04:57 |
| ← liuzhoou left | 04:58 |
| → Lyqyd_ joined | 04:58 |
| ← JerryT left | 04:59 |
| → hoschi joined | 04:59 |
| ← awc737 left | 05:00 |
| ← Zengod2 left | 05:00 |
| ← Lyqyd left | 05:01 |
| → JerryT joined | 05:01 |
| ← JerryT left | 05:02 |
| → zumba_addict joined | 05:02 |
| ← fatalhalt left | 05:03 |
| → dccc joined | 05:03 |
| → daito joined | 05:04 |
| ← megawac left | 05:05 |
| → sinkensabe joined | 05:05 |
| ← zumba_a__ left | 05:05 |
| ← Skrypter left | 05:07 |
| → LucasKA joined | 05:07 |
| ← akim left | 05:09 |
| → armyriad joined | 05:10 |
| ← Junior left | 05:11 |
| → kulkarp joined | 05:12 |
| → pantsman joined | 05:13 |
| ← pantsman left | 05:13 |
| → pantsman joined | 05:13 |
| → Raging_Hog joined | 05:15 |
| → Anatidaephobia joined | 05:16 |
| ← recycle left | 05:16 |
| ← Cheaterman left | 05:16 |
| → Reskp joined | 05:17 |
| → recycle joined | 05:17 |
| → MagePsycho joined | 05:17 |
| ← mennea left | 05:17 |
| → mennea joined | 05:17 |
| → zumba_ad_ joined | 05:18 |
| → awc737 joined | 05:19 |
| → ErKa joined | 05:19 |
| → JerryT joined | 05:19 |
| ← zumba_addict left | 05:20 |
| → zumba_addict joined | 05:21 |
| ← FreezingCold left | 05:21 |
| ← Reskp left | 05:21 |
| ← Sample left | 05:22 |
| ← daito left | 05:22 |
| → marthinal joined | 05:23 |
| → daito joined | 05:23 |
| ← zumba_ad_ left | 05:23 |
| → eaj joined | 05:26 |
| ← daito left | 05:27 |
| → FreezingCold joined | 05:28 |
| ← acharlieh left | 05:28 |
| → tokkee joined | 05:28 |
| ← awc737 left | 05:30 |
| → luc_ joined | 05:30 |
| → luc__ joined | 05:31 |
| → yhager joined | 05:31 |
| ← codeman left | 05:31 |
| ← astrofog left | 05:32 |
| ← Lyqyd_ left | 05:33 |
| ← Entomo left | 05:34 |
| ← luc_ left | 05:34 |
| ← jonanin left | 05:37 |
| ← gargola_ left | 05:39 |
| → Junior joined | 05:39 |
| → gargola joined | 05:40 |
| ← nnyk_ left | 05:40 |
| → hellopat joined | 05:40 |
| ← JerryT left | 05:41 |
| ← mennea left | 05:42 |
| ← pantsman left | 05:43 |
| → lite joined | 05:43 |
| ← codeFiend left | 05:43 |
| ← diegoviola left | 05:43 |
| → k_sze[work] joined | 05:44 |
| → dobalina joined | 05:44 |
| ← recycle left | 05:44 |
| ← hellopat left | 05:45 |
| → recycle joined | 05:45 |
| ← tpollard left | 05:45 |
| → diegoviola joined | 05:45 |
| → ThomasLocke joined | 05:46 |
| → pwnz0r joined | 05:46 |
| ← kulkarp left | 05:46 |
| → jftf joined | 05:49 |
| → sanjayu joined | 05:50 |
| ← pwnz0r left | 05:52 |
| → Sample joined | 05:53 |
| ← jftf left | 05:54 |
| → a-l-e joined | 05:54 |
| → bwreilly joined | 05:54 |
| ← ezio left | 05:54 |
| ← kcj_ left | 05:54 |
| → albel727 joined | 05:55 |
| → kcj joined | 05:55 |
| ← recycle left | 05:55 |
| ← Junior left | 05:55 |
| ← Mitchbones left | 05:55 |
| → EminenceHC joined | 05:56 |
| → jonanin joined | 05:56 |
| → dfinly joined | 05:56 |
| ← dfinly left | 05:56 |
| → dfinly joined | 05:57 |
| → msm joined | 05:58 |
| → mishok13 joined | 05:58 |
| ← Gamecubic left | 05:59 |
| → Junior joined | 06:00 |
| ← EminenceHC left | 06:00 |
| → FilipNortic joined | 06:01 |
| → teran joined | 06:02 |
| → codeFiend joined | 06:03 |
| → kulkarp joined | 06:03 |
| → papegaaij joined | 06:04 |
| ← ErKa left | 06:04 |
| → ezekielnoob6 joined | 06:05 |
| → nfk joined | 06:05 |
| → freimatz joined | 06:05 |
| → twb joined | 06:06 |
| → Macaveli joined | 06:06 |
| → jceb joined | 06:06 |
| ← starkhalo left | 06:07 |
|
twb
| When I'm on a branch and I want the branch to look like some other commit, I can "git reset --hard abcdefg". | 06:07 |
| ← woollyams left | 06:07 |
| ← sinkensabe left | 06:07 |
|
twb
| When I'm on commit abdefgh, how do I do the same thing for branch "foo" ? | 06:07 |
|
| plan B is to do "git checkout foo" then "git reset --hard abcdefg" but there's probably a one-step way | 06:07 |
| → sinkensabe joined | 06:07 |
| → Gooder`` joined | 06:07 |
| ← ezekielnoob5 left | 06:08 |
|
j416
| twb: git-symbolic-ref iirc | 06:08 |
| ← Gooder` left | 06:08 |
|
j416
| but it's not something you'd normally use | 06:09 |
| → Yomi joined | 06:09 |
|
twb
| I'm doing Bad Things rebasing topic branches | 06:10 |
|
j416
| git-update-ref, sorry | 06:11 |
| ← sinkensabe left | 06:11 |
| → nkouevda joined | 06:12 |
| → daito joined | 06:13 |
| → cvanball joined | 06:14 |
|
osse
| twb: git config alias.resetbr '!f() { head=$(git rev-parse HEAD); git checkout "$1"; git reset "$head"; }; f' | 06:14 |
|
| there, now it's one step | 06:15 |
|
| ooops, forgot the hard | 06:15 |
| → Skrypter joined | 06:15 |
| ← codeFiend left | 06:16 |
|
j416
| if you have so many branches that you are saving a lot of time by that shorthand, perhaps you have a strange workflow | 06:16 |
| ← armyriad left | 06:16 |
|
twb
| thanks | 06:16 |
|
j416
| twb: ^ | 06:16 |
|
osse
| on second thought, that alias shouldf probably use symbolic-ref under the hood | 06:17 |
|
twb
| j416: yeah it is a dumb workflow. I have a handful of branches I keep pushing to the top of master so the graph is pretty and it looks like I never made any mistakes | 06:17 |
| → armyriad joined | 06:17 |
| → Flowinho joined | 06:17 |
| ← jonanin left | 06:17 |
| Flowinho → Flowinho|away | 06:17 |
| → roelmonnens joined | 06:19 |
| → _FvG joined | 06:19 |
|
osse
| twb: why is 'git checkout abcdefg' part of that work? | 06:20 |
|
twb
| oh well I was doing "git rebase --onto master orig/master topic" | 06:20 |
|
| And that was fine, but then some topics branched off before orig/master | 06:20 |
|
| So then I did "git rebase --onto master 23ab123 topic", but that isn't updating the local branch to point to the end result. | 06:21 |
| → maqr joined | 06:21 |
| → Manny joined | 06:22 |
|
j416
| twb: it should | 06:23 |
|
twb
| Oh, it does that *if* I'm already on the topic branch | 06:23 |
|
| Since I was specifying all three points I wasn't bothering to checkout topic first | 06:24 |
| ← joelm left | 06:24 |
| ← zajn left | 06:24 |
|
twb
| Nope, I'm wrong. | 06:24 |
| → sinkensabe joined | 06:24 |
| → jagob joined | 06:25 |
|
twb
| Oh well whatever, I'm nearly done | 06:25 |
| ← fobelx left | 06:25 |
| → FunkyAss joined | 06:25 |
|
j416
| :) | 06:26 |
|
| get those merged already | 06:26 |
| ← Rastus_Vernon left | 06:26 |
| → Hardcheese joined | 06:26 |
|
j416
| twb: another reason that your workflow sucks is that rebase recreates commits on top of something new | 06:27 |
|
| meaning, there's a good chance you may get errors introduced | 06:27 |
|
twb
| nod | 06:27 |
|
j416
| so you _should_ check each branch out anyway, to test that it works as expecged | 06:27 |
|
| expected* | 06:28 |
| ← treehug88 left | 06:28 |
|
twb
| I can't easily test it because it's a repo of a script that builds an OS rootfs, so testing it would involve not only building it, but booting it in the special network it expects to run in. | 06:28 |
|
| If this was a C program I'd being doing "make test" out the wazoo tho | 06:29 |
| → ferreum joined | 06:30 |
| ← quazimod1 left | 06:30 |
| → Gizburdt joined | 06:30 |
|
j416
| tests are not all | 06:30 |
| ← quazimodo left | 06:30 |
|
j416
| tests don't and shouldn't cover every inch of your code | 06:30 |
| ← teran left | 06:31 |
| ← maveneagle left | 06:32 |
|
twb
| Not sure what you mean then. | 06:32 |
| ← agrajag42 left | 06:33 |
|
j416
| if you test every inch of your code, it will make it much safer. But the downside is changing it costs a lot. | 06:33 |
| ← Sample left | 06:34 |
|
j416
| I have a friend who works at a company where they test their stuff to the extreme, so even a very small change takes a very long time to do. | 06:34 |
|
| in any case | 06:34 |
| ← thiago left | 06:34 |
| → teran joined | 06:34 |
| → nikita joined | 06:35 |
| → Zathrus joined | 06:35 |
|
j416
| what I'm getting at is, your tests probably don't cover _all_ cases anyway, so you probably want to manually check that your code still looks sane | 06:35 |
| → thiago joined | 06:35 |
| ← GT4066 left | 06:36 |
| ← FreezingCold left | 06:36 |
| ← mishok13 left | 06:36 |
|
twb
| oh just eyeballing it | 06:37 |
|
| yeah I do that | 06:37 |
| → SunilJoshi joined | 06:37 |
| → toomanysecrets joined | 06:37 |
| → zapotek6 joined | 06:37 |
| ← zapotek6 left | 06:37 |
|
j416
| :) | 06:38 |
|
| point was, it's often easier to do that when you have the branch checked out | 06:38 |
| → ayaz joined | 06:39 |
| teran → teran[p] | 06:39 |
| teran[p] → teran | 06:40 |
| → Slarv joined | 06:40 |
| ← thiago left | 06:40 |
| → _Vi joined | 06:41 |
| → PeterBooker joined | 06:41 |
| → mennea joined | 06:41 |
| ← bwreilly left | 06:42 |
| → robbyoconnor joined | 06:42 |
| → Sample joined | 06:42 |
| gitinfo set mode: +v | 06:43 |
| → bluesm joined | 06:43 |
|
Slarv
| If I have a git repo established at ./myproject/../somecode/, what happens to it if I run git init at ./myproject/? Does this break anything? | 06:44 |
| ← Manny left | 06:44 |
| → Entomo joined | 06:44 |
|
j416
| Slarv: it'll ignore your other repo iirc | 06:45 |
|
| Slarv: but, really, don't nest repos | 06:45 |
| ← MagePsycho left | 06:45 |
|
Slarv
| what would be a better solution to nesting repos when ./myproject/../somecode/ is a self contained module already in version control? | 06:48 |
| → jnavila_ joined | 06:49 |
|
osse
| Slarv: git submodule | 06:49 |
|
| or start maintaining them as one | 06:49 |
| → rob_w joined | 06:49 |
|
dfinly
| Unless the dependency is updated frequently... Then it becomes a bit of a chore | 06:50 |
| → jftf joined | 06:50 |
|
dfinly
| in which case, hope your project has a built in dependency management system :) | 06:50 |
| ← Gizburdt left | 06:50 |
|
osse
| you can now track a submodule's branch instead of single commits. that helps. | 06:51 |
| → Xethron joined | 06:51 |
|
dfinly
| I didn't know that. It's been ~6months since I last dealt with one. Thats exciting | 06:52 |
| → LeMike joined | 06:52 |
|
dfinly
| actually, thats really exciting. the single commit was a real drag | 06:52 |
|
osse
| it's been infinity since I did :O | 06:52 |
|
| well, 13.7 billion years or whatever it is | 06:52 |
| → msm` joined | 06:52 |
|
dfinly
| Better at keeping up than me, that is for sure. | 06:53 |
|
Slarv
| the context is a CMS that has one or more themes installed. The themes are kept in their own repos and are updated more often than the CMS itself. | 06:53 |
|
dfinly
| Submodules is the way to go for that then | 06:53 |
| → hkon__ joined | 06:53 |
|
osse
| themes, eh. To be honest I'd experiment with not tracking them at all. In the CMS make a .gitignore that ignores themes/ | 06:54 |
|
dfinly
| Do you use git to deploy? | 06:54 |
| ← msm left | 06:54 |
| ← jftf left | 06:55 |
|
Slarv
| Don't use git to deploy at this stage but would like to set it up that way. | 06:55 |
| ← dobalina left | 06:57 |
|
dfinly
| Submodules might be good for that over untracked themes, otherwise they could end up in a weird undefined state | 06:57 |
| ← jceb left | 06:57 |
| ← kulkarp left | 06:58 |
|
osse
| I'm not a web dev, but are themes so dependent on the CMS (or vice versa) that it's useful keep them "in sync"? | 06:58 |
| → ciampix joined | 06:59 |
| → Gizburdt joined | 06:59 |
| → johnkevinmbasco joined | 06:59 |
|
dfinly
| No, but i've seen some shitty themes break components outside their realm before | 06:59 |
|
| and knowing when the change was would help | 07:00 |
| → EminenceHC joined | 07:00 |
| → snql joined | 07:00 |
| ← Raging_Hog left | 07:00 |
|
dfinly
| but if he wants to deploy with git, submodules make it a onestep process, vs fetching other external resources | 07:00 |
| → woollyams joined | 07:00 |
| ← kalimist left | 07:00 |
| ← ifdm_ left | 07:01 |
| → m0nkmaster joined | 07:02 |
| → cjsarette joined | 07:02 |
| ← gargola left | 07:02 |
| ← EveBird left | 07:03 |
| → bvi joined | 07:03 |
| ← bvi left | 07:03 |
| ← il left | 07:03 |
| → xificurC joined | 07:03 |
| ← SunilJoshi left | 07:03 |
| → SunilJoshi joined | 07:03 |
| → Jeremy_Nodasys joined | 07:04 |
| → ngladitz joined | 07:04 |
| ← cjsarette left | 07:04 |
| → MagePsycho joined | 07:04 |
|
dfinly
| Plus, when you have a marketer freaking out because the buttons are in the wrong place, it's always good to have a way to tell wtf they are talking about. | 07:04 |
| → jargon joined | 07:04 |
| ← EminenceHC left | 07:04 |
| ← hgl left | 07:05 |
|
osse
| I see your point(s) | 07:06 |
| → cjsarette joined | 07:07 |
| → alorence joined | 07:07 |
| → Gonzo89 joined | 07:07 |
| → rishabh_ joined | 07:08 |
| ← ThomasLocke left | 07:08 |
| ← Gizburdt left | 07:10 |
| ← jagob left | 07:11 |
| ← teran left | 07:11 |
| → MouseTheLuckyDog joined | 07:12 |
| → endiruna joined | 07:12 |
| → teran joined | 07:12 |
| → mishok13 joined | 07:12 |
| → bailon joined | 07:13 |
| ← Gonzo89 left | 07:13 |
| → martinklepsch joined | 07:13 |
| → TomyWork joined | 07:14 |
|
MouseTheLuckyDog
| I have a project that I'm making modifications to. I thought the project was going to be easy, but it turns out harder then I thought. I would like to work on it oin a seperate branch. How can I create a branch that begins at the last commit without losing the changes that I have made to files. | 07:14 |
| → Ardenzi joined | 07:14 |
| → HelperW joined | 07:14 |
| → blackmesa joined | 07:15 |
|
Slarv
| Thanks for your help dfinly, osse, j416. | 07:15 |
| → hebz0rl joined | 07:15 |
|
_ikke_
| What do you mean with the last commit? | 07:15 |
|
nkouevda
| MouseTheLuckyDog: git checkout -b branchname | 07:15 |
|
_ikke_
| MouseTheLuckyDog: ^ | 07:15 |
| → jceb joined | 07:16 |
|
MouseTheLuckyDog
| nkouevda, won't that overwrite any changes, and cause me to lose anything staged? | 07:17 |
|
Jupelius
| I have a github repo for one of my projects but right now I'm the only one working on it and I have a lot of wip commits I don't want to push all the time | 07:17 |
|
_ikke_
| MouseTheLuckyDog: nope | 07:17 |
|
Jupelius
| And I have to computers at home which I frequently use | 07:17 |
| → Gavrisimo joined | 07:17 |
|
_ikke_
| MouseTheLuckyDog: It will only create a new branch based on the current commit and check it out | 07:17 |
|
Jupelius
| Can I easily pull commits between these two machines without the need to push the commits to github? | 07:17 |
| → ifdm_ joined | 07:17 |
|
_ikke_
| the working tree won't be touched | 07:17 |
| → harobed joined | 07:18 |
| ← harobed left | 07:18 |
|
_ikke_
| Jupelius: If you can use ssh it,s quite easy to do | 07:18 |
|
Jupelius
| My desktop machine has sshd running | 07:18 |
| → harobed joined | 07:19 |
|
_ikke_
| well, both should ideally | 07:19 |
|
MouseTheLuckyDog
| _ikke_, git commit -m "latest commit"; edit file1; git add file1; edit file2; edit file3 ; now branch based at the last commit. | 07:19 |
| → MafooUK joined | 07:19 |
| → Kicer86 joined | 07:19 |
|
_ikke_
| MouseTheLuckyDog: then what nkouevda said | 07:19 |
| → Lemony joined | 07:20 |
|
Jupelius
| _ikke_: well, the other machine is a laptop and rarely have the need to push things to that one | 07:20 |
| ← endiruna left | 07:20 |
|
MouseTheLuckyDog
| _ikke_, it kind of seems to me that when I check it out the checked out files will overwrite any changes I made? | 07:20 |
|
nkouevda
| MouseTheLuckyDog: assuming you're making a new branch, checkout -b will create it at HEAD and switch you onto it, without affecting the working tree | 07:20 |
|
| if you try to checkout an existing branch with uncommitted changes, git will yell at you | 07:21 |
| → Gizburdt joined | 07:21 |
|
_ikke_
| Jupelius: In this workflow, it's best to only pull, not push | 07:21 |
|
| So the machine you want to pull from should have sshd | 07:21 |
| → razrunelord joined | 07:22 |
| ← Slarv left | 07:22 |
|
_ikke_
| Jupelius: Pushing is possible, but only to non-checked out branches | 07:22 |
|
Jupelius
| So I would push and then merge the branch? | 07:23 |
| → gua_ould joined | 07:24 |
| ← Sample left | 07:24 |
|
_ikke_
| Do you know what remote-trackin branches are? | 07:24 |
| → _W_ joined | 07:24 |
|
Jupelius
| Not really | 07:25 |
| ← albel727 left | 07:25 |
| → anry joined | 07:25 |
|
_ikke_
| origin/master is an example of one | 07:25 |
| ← razrunelord left | 07:26 |
| → jagob joined | 07:27 |
|
_ikke_
| You basically push to a branch prefixed with a name: git push desktop master:refs/remotes/laptop//master | 07:27 |
|
| on your desktop, you can then merge laptop/master for example | 07:27 |
| ← cvanball left | 07:28 |
| → hellopat joined | 07:28 |
| ← hebz0rl left | 07:29 |
| ← snql left | 07:29 |
| → teran_ joined | 07:29 |
| → albel727 joined | 07:30 |
| ← eaj left | 07:30 |
| → ThomasLocke joined | 07:30 |
| → hebz0rl joined | 07:30 |
|
_ikke_
| That way you keep your local branches and things you push seperate, avoiding problems | 07:30 |
| → eaj joined | 07:30 |
| ← blackmesa left | 07:32 |
| → cvanball joined | 07:32 |
| ← teran left | 07:32 |
|
HelperW
| For some reason there are some ZIP files in my GIT prpoject | 07:33 |
|
| am I allowed to remove them? | 07:33 |
|
| There are +10 like: /.git/objects/f6/41f0f73fd1cf6d1cecf8f079c74434e73a7f16 [56.26MB] | 07:33 |
|
Jupelius
| Well, it's your project | 07:33 |
|
HelperW
| Can I just remove them without problems/conflicts? | 07:33 |
| ← hellopat left | 07:33 |
|
_ikke_
| You cannot just remove those blobs | 07:33 |
|
| You can remove them in your project, and commit it | 07:33 |
|
| But that won't remove those blobs | 07:34 |
|
HelperW
| hmm the thing is those are back-up files generated by the system but I got them arlready stored somewhere else. | 07:34 |
|
| And I don't need them in my GIT repo | 07:34 |
| ← eaj left | 07:34 |
| → eaj joined | 07:35 |
|
_ikke_
| You have to rewrite history to get those eliminated | 07:35 |
| → elbeardmorez joined | 07:35 |
|
HelperW
| hmmm | 07:35 |
|
nkouevda
| HelperW: if past commits relevant to those files were exclusive to those files, you can rebase and drop them, then prune the blobs | 07:35 |
| → intellix joined | 07:36 |
|
nkouevda
| otherwise the process would be much more involved | 07:36 |
|
_ikke_
| filter-branch does the job | 07:37 |
|
HelperW
| That sound all so new to me :p | 07:37 |
| → ghostlines joined | 07:37 |
| ← cjsarette left | 07:38 |
| → konadr joined | 07:38 |
| ← konadr left | 07:38 |
| → konadr joined | 07:38 |
| → zapotek6 joined | 07:38 |
| ← daito left | 07:38 |
| → xai_beha joined | 07:39 |
| → lavong joined | 07:39 |
| ← eaj left | 07:39 |
| ← beautifulmind left | 07:39 |
| → dreiss joined | 07:40 |
| → cjsarette joined | 07:41 |
| → joki joined | 07:41 |
|
xai_beha
| i’m managing a visual studio project on mac (much faster and the VS is in a VM anyway); however i have constant line ending conversion issues. what’s the recommended settings for “keeping everything windows” but still running the git on mac? unsetting autocrlf on the project and setting eol=crlf didn’t seem to do it. | 07:41 |
| → matteo joined | 07:41 |
| → CodePulsar joined | 07:42 |
| ← cjsarette left | 07:42 |
| → aworkerbee joined | 07:43 |
|
aworkerbee
| hi. how to set git ignore to everything except for *.pl or other files ? | 07:44 |
|
dfinly
| Is the working directory on HFS drive or the NTFS? | 07:44 |
|
xai_beha
| hfs. parallels share in the vm. | 07:44 |
| → Exancillatus joined | 07:44 |
|
dfinly
| Yeah, your screwed | 07:44 |
|
| I tried that | 07:44 |
|
nkouevda
| xai_beha: i have no experience with that but maybe http://stackoverflow.com/q/2825428/ (which points to http://stackoverflow.com/q/170961/ ) | 07:44 |
|
dfinly
| I'm in VS2010 now :) | 07:44 |
| ← roelmonnens left | 07:45 |
| → roelmonnens joined | 07:45 |
|
xai_beha
| dfinly: have a hard time believing that contents of regular files have much dependency on the fs the repo is on | 07:45 |
|
dfinly
| Its not the contents | 07:45 |
|
| I found that VS acts strangely when working from a network drive | 07:46 |
|
| you should be able to get the line endings work | 07:46 |
|
| ing | 07:46 |
|
| But until I moved it over to the VM i had issues. It could just be me. | 07:47 |
| → user258467 joined | 07:47 |
|
xai_beha
| never had a problem with vs on its own; just unwanted conversion happening in git | 07:47 |
|
dfinly
| So git is converting from crlf to newlines? | 07:48 |
|
xai_beha
| need the files on the mac because that’s where the backups are. basic yak shave limiting not to have a fourth kind of backups. | 07:48 |
|
| dfinly: yeah, partially | 07:48 |
| → cjsarette joined | 07:48 |
|
_ikke_
| xai_beha: !crlf | 07:48 |
|
gitinfo
| xai_beha: to fix problems with line endings on different platforms, check out http://line-endings.gitrecipes.de/ | 07:48 |
| ← Goplat left | 07:48 |
|
xai_beha
| nkouevda: thx, but that’s the usual stuff (turn off autocrlf, possibly do eol=crlf). that got me mixed results. | 07:48 |
| → Sonderblade joined | 07:48 |
| ← Sonderblade left | 07:49 |
|
nkouevda
| xai_beha: i meant the .gitattributes bit | 07:49 |
| ← Celm left | 07:49 |
|
dfinly
| did you set core.eol = crlf | 07:49 |
|
xai_beha
| _ikke_: ? | 07:49 |
| → Sonderblade joined | 07:49 |
| ← jxf left | 07:50 |
|
_ikke_
| xai_beha: check the link gitinfo gave | 07:50 |
| ← sdwrage_ left | 07:50 |
| ← ifdm_ left | 07:50 |
| → jftf joined | 07:51 |
|
jast
| eol=crlf is pointless, and the article doesn't recommend that at all | 07:51 |
|
xai_beha
| gitinfo: huh, so .gitattributes is the way to go. hoped to find one/a few settings, not a pattern list to be maintained with every new .extension | 07:52 |
|
jast
| gitinfo is a bot | 07:52 |
|
xai_beha
| jast: well, now i feel smarter | 07:52 |
|
| thx | 07:53 |
| → shingshang joined | 07:53 |
|
jast
| well, the thing is that you don't want binary files to go through line ending conversion | 07:53 |
|
| you *can* tell git to go with its best guess for all file extensions | 07:53 |
|
| but if it gets it wrong your binary files get hosed :) that's not a risk I'm willing to take, myself | 07:53 |
|
dfinly
| the other option would to be using git FROM the windows VM, but leave the repo on the OSX machine | 07:53 |
|
xai_beha
| jast: core.safecrlf should take care of that, though | 07:54 |
|
jast
| in most cases, yes... but not all | 07:54 |
|
xai_beha
| dfinly: my experience, msysgit a *lot* slower than git on any unix, even osx | 07:54 |
|
jast
| if a binary file contains both 0x0d 0x0a and lone 0x0a sequences, safecrlf will prevent corruption | 07:54 |
|
dfinly
| Absolutely it is | 07:54 |
|
jast
| otherwise it won't | 07:54 |
|
xai_beha
| since i’m using magit, which generally invokes git for every keystroke, that’s a pain | 07:54 |
|
dfinly
| ah, yeah that would be burdensome | 07:55 |
| ← xcesariox left | 07:55 |
|
xai_beha
| jast: assuming, everyone has the same platform & git settings where stuff actually gets used (as opposed to backed up & stored) there *is* no corruption | 07:55 |
|
| which is iffy, i know, but unless there’s visual studio for unix soon in this case it’s a good bet | 07:55 |
| → Balliad joined | 07:56 |
| ← jftf left | 07:56 |
| ← m0nkmaster left | 07:56 |
|
xai_beha
| i guess i’ll go with safecrlf for safety and the gitattributes for .cs files, which is by far most of the files; the rest i can take care of when it comes up. thx again. | 07:56 |
|
dfinly
| Hope it works | 07:57 |
| ← cvanball left | 07:57 |
| → tvw joined | 07:58 |
|
user258467
| Hi, I pushed a new branch in a the wrong repo it is not a not problem because the branch doesn't exists before so no overwrite but now the repo is dirty how do I remove in the repo as it didn't exist? does git branch -d <branch> in the repo dir is enough? | 07:58 |
| ← xai_beha left | 07:58 |
| → watermel0n joined | 07:58 |
| → oodavid joined | 07:58 |
| → eaj joined | 07:59 |
| → Raging_Hog joined | 08:00 |
| ← tvw left | 08:02 |
| → shruggar joined | 08:03 |
| → cvanball joined | 08:03 |
| → daito joined | 08:03 |
| → maveneagle joined | 08:03 |
| ← maveneagle left | 08:03 |
| ← eaj left | 08:04 |
| ← jnavila_ left | 08:04 |
| → ws2k3 joined | 08:04 |
| → jnavila_ joined | 08:04 |
| → EminenceHC joined | 08:05 |
| ← kburdett left | 08:05 |
| ← konadr left | 08:05 |
| → vurma joined | 08:05 |
| ← githogori left | 08:06 |
| ← dreiss left | 08:07 |
| → ifdm_ joined | 08:07 |
|
moritz
| user258467: git push --delete <remote> <branchname> | 08:08 |
| → m0nkmaster joined | 08:08 |
| → eaj joined | 08:08 |
| ← EminenceHC left | 08:09 |
| → konadr joined | 08:10 |
| → kburdett joined | 08:10 |
| → Kayra joined | 08:10 |
| → ArSn joined | 08:11 |
| ← mike5w3c left | 08:12 |
| → _tpavel joined | 08:13 |
| ← Xethron left | 08:14 |
|
user258467
| moritz, thanks | 08:14 |
|
nkouevda
| user258467: or git push <remote> :<branchname> | 08:16 |
| → eletuchy_ joined | 08:17 |
| ← Exancillatus left | 08:17 |
|
davve__
| or just. git push :branch // right? | 08:17 |
| → cvanball_ joined | 08:17 |
| ← Hardcheese left | 08:18 |
| ← Lemony left | 08:18 |
| → Hardcheese joined | 08:18 |
| ← Gizburdt left | 08:19 |
| ← sinkensabe left | 08:19 |
|
c0rnel
| in 'git diff commitfoo commitbar', which is the "new" commit, which can be created by applying the resulting patch?? | 08:19 |
|
j416
| davve__: need the remote name afaicr | 08:19 |
| ← toomanysecrets left | 08:19 |
| → sinkensabe joined | 08:20 |
|
j416
| c0rnel: not sure I understand your question, please clarify | 08:20 |
|
nkouevda
| davve__: $ git push :master -> fatal: You are pushing to remote ':master', which is not the upstream... | 08:20 |
|
c0rnel
| i want to create a patch, using the difference between two commits | 08:20 |
|
j416
| c0rnel: your command will produce the diff of the changes between commitfoo and commitbar, i.e. the patch that makes commitfoo into commitbar | 08:20 |
|
c0rnel
| than i want to use this diff and aplly it as a patch | 08:20 |
| ← cvanball left | 08:20 |
| ← eletuchy left | 08:20 |
|
j416
| c0rnel: but, git format-patch | 08:20 |
|
| c0rnel: that'll include author info and that as well, and the patch can be applied using 'git am' | 08:21 |
|
| very handy | 08:21 |
|
c0rnel
| j416, is this available in git 1.7? | 08:21 |
|
j416
| yes | 08:21 |
| ← Skrypter left | 08:21 |
|
c0rnel
| j416, thank you very much | 08:21 |
| ← eletuchy_ left | 08:21 |
|
| j416 bows 15° | 08:21 |
|
c0rnel
| :) | 08:21 |
|
j416
| !next | 08:21 |
|
gitinfo
| Another satisfied customer. NEXT! | 08:21 |
| → razrunelord joined | 08:22 |
|
j416
| c0rnel: fwiw, you can also use 'git apply' to apply something created by 'git diff' | 08:23 |
|
| c0rnel: but 'git format-patch' + 'git am' keeps the author info so it's nicer if both sides are using git | 08:23 |
| → mikecmpbll joined | 08:23 |
| → githogori joined | 08:24 |
| → kulkarp joined | 08:24 |
|
c0rnel
| thank you, j416 | 08:24 |
|
j416
| c0rnel: as for compatibility between 'git diff' and regular 'patch', I'm not sure. Git has some extra things, iirc. | 08:24 |
|
c0rnel
| i'm applying the patch outside of git :( | 08:24 |
|
j416
| c0rnel: binary diffs for instance, not sure patch supports those, does it? | 08:24 |
|
| ah | 08:24 |
| ← sinkensabe left | 08:24 |
| → WormDrink joined | 08:25 |
| → plitzenberger joined | 08:25 |
| ← m0nkmaster left | 08:26 |
| → dipendra joined | 08:26 |
| → dipendra12 joined | 08:26 |
| ← razrunelord left | 08:27 |
| → GT4066 joined | 08:27 |
| → canton7-mac joined | 08:27 |
| ← Hardcheese left | 08:29 |
| ← GT4066 left | 08:29 |
| → Hardcheese joined | 08:29 |
| ← kcj left | 08:30 |
| → tango_ joined | 08:30 |
| → Xethron joined | 08:32 |
| ← Xethron left | 08:32 |
| → Xethron joined | 08:32 |
| ← Kayra left | 08:32 |
| → Gizburdt joined | 08:33 |
| ← aworkerbee left | 08:34 |
| → johnkevi_ joined | 08:34 |
|
j416
| c0rnel: I'm not sure how that can be achieved | 08:34 |
| ← _W_ left | 08:34 |
|
j416
| c0rnel: please do report if you find it | 08:34 |
| → welly joined | 08:35 |
| → allay joined | 08:35 |
|
c0rnel
| j416, git diff foo bar > patchfile, then patch -p1 < patchfile | 08:36 |
|
j416
| yes, I suspect that'd work in most cases | 08:36 |
| → sinkensabe joined | 08:36 |
| → johnkev__ joined | 08:36 |
|
j416
| c0rnel: what if you have a binary file though? | 08:36 |
|
| c0rnel hopes will never face this problem :) | 08:37 |
| ← johnkevinmbasco left | 08:37 |
|
j416
| format-patch ftw | 08:37 |
| → kcj joined | 08:37 |
|
c0rnel
| i noted that | 08:37 |
| → Sicp joined | 08:37 |
| → kirin` joined | 08:37 |
| ← Hardcheese left | 08:37 |
| ← polyzen left | 08:37 |
| ← yhager left | 08:38 |
| ← SunilJoshi left | 08:39 |
| ← johnkevi_ left | 08:40 |
| ← sinkensabe left | 08:41 |
| → sinkensa_ joined | 08:41 |
| → bezet joined | 08:41 |
| → toomanysecrets joined | 08:43 |
| → jooools joined | 08:45 |
| ← johnkev__ left | 08:47 |
| ← gua_ould left | 08:47 |
| → eletuchy joined | 08:48 |
| → m0nkmaster joined | 08:48 |
| → Celm joined | 08:50 |
| → datafly joined | 08:51 |
| ← eletuchy left | 08:51 |
| → eletuchy joined | 08:51 |
| ← eletuchy left | 08:51 |
| → eletuchy joined | 08:51 |
| → jftf joined | 08:52 |
| ← woollyams left | 08:52 |
| ← reaverb left | 08:52 |
| → _Harm_B_ joined | 08:53 |
| ← m0nkmaster left | 08:53 |
| ← toomanysecrets left | 08:53 |
| ← Celm left | 08:54 |
| → maveneagle joined | 08:54 |
| → goTAN joined | 08:56 |
| ← jftf left | 08:56 |
| ← mishok13 left | 08:57 |
| → Workinho joined | 08:57 |
| → mulinux joined | 08:57 |
|
mulinux
| hi | 08:58 |
| → mishok13 joined | 08:58 |
| ← cvanball_ left | 09:02 |
| → h0bbit joined | 09:03 |
| ← hkon__ left | 09:03 |
| → InFierno joined | 09:04 |
| → snql joined | 09:04 |
|
InFierno
| Anyone have any ideas why 1 particular user has really slow Push/pull speeds on our git repo? | 09:04 |
| ← jnavila_ left | 09:04 |
| Vampire0_ → Vampire0 | 09:07 |
|
Vampire0
| InFierno, maybe you should investigate where the time is spent. Maybe over the wire? Maybe his connection sucks? | 09:07 |
| → EminenceHC joined | 09:07 |
| → wagle joined | 09:07 |
| ← kulkarp left | 09:07 |
|
Vampire0
| Broken network cable e. g., or VPN, or too bad WLAN reception | 09:07 |
| → zacts joined | 09:08 |
| → ubilli8 joined | 09:08 |
|
mulinux
| hello, can you help me: | 09:08 |
|
InFierno
| he gets 800Kb/sec over ftp to the same server and 1MBsec to a google code SVN, just git he is stuck at max 300kbsec | 09:08 |
|
mulinux
| error: refs/heads/master does not point to a valid object! | 09:08 |
|
| fatal: failed to read object faaa509ff527076e00b48de007ea69b28f7858d6: Permission denied | 09:08 |
|
| error: unpack failed: unpack-objects abnormal exit | 09:08 |
|
| git reflog master | 09:08 |
|
| 4bf0037 master@{0}: branch: Created from refs/remotes/origin/master | 09:08 |
|
ubilli8
| please i want to learn everying thing about git is that possible... how to use it what it is and github | 09:08 |
| → Korvin joined | 09:09 |
| Korvin → Guest61078 | 09:09 |
|
Vampire0
| mulinux, As the error says "Permission denied" I'd guess you have a permissions problem. Check that your user has appropriate file system rights | 09:10 |
| ← tokik left | 09:10 |
|
Vampire0
| Hm, no idea InFierno then, sorry | 09:10 |
|
| ubilli8, !book | 09:11 |
|
gitinfo
| ubilli8: 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 | 09:11 |
|
lb1a
| Vampire0, up so early again? :D | 09:11 |
| → SLY1986 joined | 09:11 |
| ← goTAN left | 09:12 |
| ← maveneagle left | 09:12 |
| ← EminenceHC left | 09:12 |
|
Vampire0
| lb1a, since 4 hours, yes | 09:13 |
|
| Need to work :-( | 09:13 |
| → blackmesa joined | 09:13 |
|
ubilli8
| but gues you can help from here just buy comments please i want to learn to use this stuff but i dont have the time for books.. | 09:13 |
| → drean joined | 09:13 |
|
Vampire0
| Lotto didn't work out yet | 09:13 |
| → Zariel joined | 09:13 |
|
j416
| ubilli8: if you don't have time, that's impossible I'm afraid | 09:14 |
|
| ubilli8: !book | 09:14 |
|
gitinfo
| ubilli8: 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 | 09:14 |
|
j416
| that'll get you going way faster than asking random questions here | 09:14 |
|
ubilli8
| well cool... just the book way i guess... | 09:15 |
|
InFierno
| There is also the other way | 09:15 |
|
| run your own git server | 09:15 |
|
| and go nuts | 09:15 |
|
tobiasvl
| ubilli8: if you have specific questions, feel free to ask them here. but if you don't have the time to read a book to learn git, we don't have the time to teach you everything about git | 09:16 |
|
j416
| well said | 09:16 |
| ← ferreum left | 09:16 |
|
j416
| there should be a !rtfb for that | 09:16 |
|
| :P | 09:16 |
|
InFierno
| But guys I want to have a git related brain-transfer or knowledge | 09:16 |
| ← ilyam left | 09:16 |
| ← LucasKA left | 09:16 |
| → hellopat joined | 09:17 |
| → rath joined | 09:17 |
|
ubilli8
| ok... thanks | 09:17 |
|
| moritz sucks out his brain, and serializes it for IRC transfer | 09:18 |
| ← Internet13 left | 09:18 |
| ← mulinux left | 09:18 |
| → hgl joined | 09:18 |
|
InFierno
| Vampire0, No worries - Ive tried everything i can think of from out of date openSSL/openSSH (gettign him to reinstall) to using Plink Based auth and even tunneling | 09:18 |
| → hexagoxel joined | 09:19 |
| → Hounddog joined | 09:19 |
| → cvanball joined | 09:19 |
| ← hgl left | 09:19 |
| → xcesariox joined | 09:19 |
| ← xcesariox left | 09:19 |
| → hgl joined | 09:19 |
|
lb1a
| ssh -i nsa-backdoor.key brain@moritz | 09:20 |
| ← hexagoxel left | 09:20 |
| ← martinklepsch left | 09:20 |
| ← diegoviola left | 09:21 |
| → Internet13 joined | 09:21 |
| ← hellopat left | 09:21 |
| → hexagoxel joined | 09:22 |
| ← hoschi left | 09:23 |
| → hoschi joined | 09:23 |
| → razrunelord joined | 09:23 |
| ← blackmesa left | 09:23 |
|
| Vampire0 initiates mitm between lb1a and moritz | 09:24 |
|
| moritz -> afk | 09:25 |
| ← Sonderblade left | 09:25 |
| → nnyk_ joined | 09:25 |
| → Sonderblade joined | 09:26 |
| → adac joined | 09:27 |
| ← razrunelord left | 09:27 |
| → Fandekasp joined | 09:27 |
| → ferreum joined | 09:29 |
| → latenite joined | 09:31 |
| → xcesariox joined | 09:32 |
| → Kayra joined | 09:33 |
| → snql|bad_interne joined | 09:34 |
| → jnavila_ joined | 09:36 |
| ← hgl left | 09:37 |
| ← snql left | 09:37 |
| → hkon__ joined | 09:38 |
| ← e^0 left | 09:38 |
| → bu5hm4n joined | 09:39 |
|
bu5hm4n
| hi, I did git add -p added a few files, now I realiezed I made a misstake, what can I do now ? | 09:40 |
| → wrouesnel1 joined | 09:40 |
|
bu5hm4n
| to get this not hunged | 09:40 |
|
Vampire0
| hunged? | 09:41 |
|
tobiasvl
| bu5hm4n: just ctrl+c ? | 09:41 |
|
| it's asking you for input | 09:41 |
|
| so just kill it | 09:41 |
| ← watabou left | 09:41 |
|
bu5hm4n
| tobiasvl: I did that but this it is still known as commit :/ | 09:41 |
|
tobiasvl
| known as commit? | 09:41 |
|
Vampire0
| Did you commit already? | 09:42 |
|
| Or just git add? | 09:42 |
|
bu5hm4n
| no, just git add -p | 09:42 |
| → hgl joined | 09:42 |
|
Vampire0
| Do you want to revert everything and start over, or just revert some hunks? | 09:42 |
|
| for all git reset for just som e hunks git reset -p | 09:42 |
|
bu5hm4n
| awesome thx ! | 09:43 |
| → zoso joined | 09:43 |
| → toomanysecrets joined | 09:43 |
|
bu5hm4n
| this interactive feature is new for me toooo much to handle :o | 09:43 |
|
Vampire0
| you'll get it :-) | 09:43 |
|
| Btw., did you know this channel records !karma? ;-) | 09:44 |
|
gitinfo
| This channel tracks karma based on who has gotten lots of thanks for being helpful. If you want to help someone reach karmic nirvana, please mention their name when thanking them. Try ".karma <nick>" or ".topkarma", but please do it via private message to avoid mass highlighting people. | 09:44 |
| gitinfo set mode: +v | 09:44 |
|
bu5hm4n
| Vampire0: thx :p | 09:45 |
|
| :) | 09:45 |
|
Vampire0
| :-) | 09:45 |
|
| It seems you lost your nose :-D | 09:45 |
| ← kburdett left | 09:48 |
|
bu5hm4n
| Vampire0: wait, I found it :~) | 09:48 |
|
InFierno
| !karma isabitch | 09:50 |
|
gitinfo
| This channel tracks karma based on who has gotten lots of thanks for being helpful. If you want to help someone reach karmic nirvana, please mention their name when thanking them. Try ".karma <nick>" or ".topkarma", but please do it via private message to avoid mass highlighting people. | 09:50 |
| → kburdett joined | 09:50 |
|
Vampire0
| good for you bu5hm4n :-) | 09:51 |
| → jftf joined | 09:52 |
|
xender
| How to grep whole repo for change that introduced specific string (not whole line!)? | 09:53 |
| → pwnz0r joined | 09:53 |
|
xender
| s/change/commit/ | 09:54 |
|
canton7
| xender, man git log -S and friends | 09:54 |
|
gitinfo
| xender: the git-log manpage is available at http://jk.gs/git-log.html | 09:54 |
|
Vampire0
| Hm, in gitk you can just use the GUI to do it, not sure about the command | 09:54 |
| → soc42 joined | 09:55 |
|
Vampire0
| ah, git log -S it is, I have to remember that | 09:55 |
|
xender
| Vampire0: Wow, that gitk search is nice | 09:56 |
|
Vampire0
| Though it is only of limited use when a code block was moved as it would not trigger if the doku is right | 09:56 |
|
| git log -S I mean, dunno about gitk, could suffer from the same | 09:56 |
|
xender
| Does gitk have some keybindings to use in test fields? | 09:56 |
|
| What is doku? | 09:57 |
|
bremner
| ,u | 09:57 |
| ← jftf left | 09:57 |
|
bremner
| !u | 09:57 |
|
| bremner curses lazy bots. | 09:57 |
|
Vampire0
| Ah, git log -G is for that case, nice | 09:57 |
| ← hkon__ left | 09:57 |
| ← pwnz0r left | 09:58 |
|
Vampire0
| xender, keybindings in test fields? | 09:59 |
| → blackmesa joined | 09:59 |
|
Vampire0
| and doku is man git log | 09:59 |
|
gitinfo
| the git-log manpage is available at http://jk.gs/git-log.html | 09:59 |
|
Vampire0
| The gitk key bindings you can see in "Help -> Key Bindings" | 10:00 |
| ← eaj left | 10:02 |
| → eaj joined | 10:03 |
| → stamina joined | 10:03 |
|
Vampire0
| bremner, did you expect that trigger to do? | 10:03 |
|
bremner
| Vampire0: say something useless but funny about how only silly people shorten you to u | 10:04 |
|
| Vampire0: I sometimes confuse this channel with #emacs because offby1 is in both. | 10:04 |
|
xender
| Vampire0: I mean basic text-editing keys in search field etc. | 10:04 |
| → martinklepsch joined | 10:04 |
| → maveneagle joined | 10:04 |
| ← maveneagle left | 10:05 |
|
xender
| Like "← to move a character backwards" | 10:05 |
|
| Tk ;_; | 10:05 |
|
| And Vim or Emacs keybingd doesn't seem to work either | 10:05 |
|
| Should i Just install qgit? | 10:05 |
| → SilverBln joined | 10:07 |
| ← eaj left | 10:07 |
|
Vampire0
| !cake | 10:09 |
|
gitinfo
| [!botsnack] Om nom nom | 10:09 |
| ← supernaut left | 10:09 |
|
Vampire0
| Still not sure what you mean xender. If I am in the text field besides the dropdown, I can move the caret with the arrow keys. That is what you asked for, isn't it? | 10:09 |
| → mlechner joined | 10:10 |
|
xender
| Vampire0: I can't move it o_O | 10:10 |
|
| Arrow keys just do nothing | 10:10 |
| → nepochal joined | 10:10 |
| ← nepochal left | 10:10 |
| ← sinkensa_ left | 10:10 |
| → sinkensabe joined | 10:11 |
| → hkon__ joined | 10:11 |
| ← ubilli8 left | 10:11 |
| ← armyriad left | 10:11 |
| → armyriad joined | 10:12 |
| → supernaut joined | 10:13 |
| ← hgl left | 10:13 |
| ← nnyk_ left | 10:13 |
| ← Fandekasp left | 10:14 |
|
Vampire0
| strange xender | 10:14 |
|
xender
| qgit is meh | 10:14 |
|
Vampire0
| It always worked fro me on linux and on windows with git on cygwin | 10:14 |
|
| dunno about msysgit | 10:14 |
| ← Gizburdt left | 10:15 |
|
xender
| Hmm | 10:15 |
|
| Any other alternatives to gitk? | 10:15 |
| ← sinkensabe left | 10:15 |
| → eaj joined | 10:15 |
|
xender
| Qgit requeires you to click on "diff" every time you select another commit ;_; | 10:15 |
| → moritzs joined | 10:16 |
|
xender
| It just show log by default. Because remembering on which tab user was previously would be too hard | 10:16 |
| → moritzschaefer joined | 10:16 |
| → rnsanchez_ joined | 10:17 |
|
Vampire0
| I guess there are many GUI tools out there | 10:18 |
|
| beginning with !tig as ncurses commandline alternative to gitk | 10:18 |
|
gitinfo
| https://git.wiki.kernel.org/index.php/Tig - An ncurses (terminal) alternative to gitk. | 10:18 |
| ← maqr left | 10:18 |
|
Vampire0
| over gitk which is shipped with git | 10:18 |
| ← twb left | 10:18 |
| ← Tuna-Fish left | 10:18 |
| → nafg joined | 10:19 |
| ← rnsanchez left | 10:19 |
|
Vampire0
| up to tools that are tightly integrated into the windows explorer like TortoiseGit | 10:19 |
|
| I actually use command line most of the times and just start gitk if I want to see a nicer overview or want to search for commits containing a string. But with knowing git log -S and git log -G now, the last point may be void. | 10:20 |
| → beautifulmind joined | 10:21 |
| ← beautifulmind left | 10:21 |
| → amcsi_work joined | 10:22 |
| → Tuna-Fish joined | 10:22 |
| ← rnsanchez_ left | 10:23 |
| → Vampire0_ joined | 10:23 |
| ← Vampire0_ left | 10:23 |
| → Vampire0_ joined | 10:23 |
| ← Vampire0_ left | 10:23 |
|
xender
| Just tried gitg | 10:24 |
|
| Complete fail ;_; | 10:24 |
| ← moritzs left | 10:24 |
| → fr33 joined | 10:24 |
| ← kyb3r_ left | 10:24 |
|
xender
| Font is just too lanrge and... What did the author do to make it incompatible with tiling WMs? | 10:24 |
| ← moritzschaefer left | 10:24 |
|
xender
| But it has nice syntax coloring of files in tree view | 10:25 |
|
Industrial
| xender: great. theres about 50 pages of google listing git clients, and a wiki page etc. | 10:25 |
| ← plitzenberger left | 10:25 |
| → tvw joined | 10:25 |
|
xender
| Industrial: Welp, trying out 50 clients doesn't sound exciting | 10:26 |
| → treehug88 joined | 10:26 |
|
Industrial
| so pick one and go, or use the terminal :) | 10:26 |
|
xender
| What to say of 50 pages of clients | 10:26 |
| → King_Hual joined | 10:26 |
|
masscrx
| hi, when I make git rm --cached file, do I have to commit ? | 10:26 |
|
| because I see in git status Changes to be committed: deleted: config/deploy.rb | 10:26 |
|
Vampire0
| If you want to commit it, you need to commit it, yes | 10:27 |
|
| git rm --cached just removes the file from the index, leaving the working copy alone | 10:27 |
| ← intellix left | 10:27 |
|
Industrial
| xender: I like SmartGit | 10:28 |
|
xender
| "Price: $79/user / Free for non-commercial use " | 10:28 |
|
| Meh] | 10:28 |
|
masscrx
| yeah, but when I try to make cherry-pick for move one commit to another branch I have error: error: Your local changes would be overwritten by cherry-pick. | 10:28 |
|
| so I dont understand something here | 10:28 |
| → beautifulmind joined | 10:28 |
|
tobiasvl
| masscrx: you have an uncommited, local change. that change is that you have deleted config/deploy.rb | 10:29 |
|
| masscrx: if you want it to be removed from the repo, commit the deletion. | 10:29 |
| → intellix joined | 10:29 |
|
xender
| masscrx: I think repo must be clean before cherry-pivking | 10:29 |
|
| So no unstaged nor staged changes | 10:29 |
|
masscrx
| tobiasvl: I dont want to delete this file from repo, I dont want to track them only | 10:30 |
|
tobiasvl
| masscrx: what do you mean by that? | 10:30 |
|
xender
| untrack == delete from repo | 10:30 |
|
masscrx
| ah ok | 10:30 |
|
xender
| You may also mean assume-unchanged | 10:30 |
|
Vampire0
| assumee-unchanged is shit, don't ever use it, it will just make problems | 10:30 |
|
| If you don't want a file tracked, remove it from the repo | 10:31 |
|
masscrx
| and then commit, ok | 10:31 |
|
Vampire0
| If you need some starting point for others to use and customise, checkin a file.ext.sample file e. g. | 10:31 |
|
tobiasvl
| masscrx: the file was tracked in your repo. if you want to stop tracking it, that's the same as deleting it from the repo. if you want to achieve something else than that, explain your use case to us and we can suggest alternatives | 10:31 |
|
Vampire0
| Before you commit it is not removed masscrx | 10:31 |
| ← Jeremy_Nodasys left | 10:32 |
|
tobiasvl
| masscrx: rm --cached means that you delete it from the repo but you keep the local file, btw. not sure if that's what you want | 10:32 |
|
Vampire0
| It is only "sheduled for removal" | 10:32 |
|
tobiasvl
| but it might | 10:32 |
| ← SilverBln left | 10:32 |
|
masscrx
| tobiasvl: I understand now that untrack == delete, I tought that you mean delete as delete physically from the disk | 10:32 |
| → hgl joined | 10:32 |
|
Vampire0
| that's what he did tobiasvl , he just didn't know he has to commit it | 10:32 |
|
xender
| tobiasvl: not from repo, from index. | 10:32 |
|
| And also we all mean "HEAD" by "repo" | 10:33 |
|
Vampire0
| indeed | 10:33 |
|
tobiasvl
| hehe, yes | 10:33 |
|
xender
| If he would want to delete it from whole repo, he would need to filder-branch or rebase. | 10:33 |
| ← hgl left | 10:33 |
|
xender
| But i doubt he wants it | 10:33 |
|
masscrx
| no no, I want to have local file because those are file for capistrano | 10:34 |
| → hgl joined | 10:34 |
| → rnsanchez_ joined | 10:34 |
|
xender
| masscrx: Ok, so you need to git rm --cached and commit that | 10:34 |
| ← hgl left | 10:35 |
| ← freimatz left | 10:35 |
| → plitzenberger joined | 10:36 |
| → hgl joined | 10:36 |
| ← hgl left | 10:37 |
| → frobrob joined | 10:38 |
| → vtunka joined | 10:38 |
| ← zoso left | 10:39 |
| → tokik joined | 10:39 |
| ← blackmesa left | 10:39 |
| → hgl joined | 10:40 |
| ← k_sze[work] left | 10:40 |
| ← hgl left | 10:41 |
| ← MagePsycho left | 10:41 |
| → hgl joined | 10:41 |
| → nepochal joined | 10:42 |
| → DarkLinkXXXX joined | 10:43 |
| ← DarkLinkXXXX left | 10:43 |
| → DarkLinkXXXX joined | 10:43 |
| ← teran_ left | 10:43 |
| → teran_ joined | 10:44 |
| → maqr joined | 10:44 |
| ← teran_ left | 10:44 |
| → teran_ joined | 10:45 |
| → Gizburdt joined | 10:45 |
| ← dsdeiz_ left | 10:45 |
| → freimatz joined | 10:46 |
| teran_ → teran | 10:47 |
| ← intellix left | 10:48 |
| ← harobed left | 10:48 |
| → k-joseph joined | 10:50 |
| ← datafly left | 10:50 |
| ← ariscop left | 10:50 |
| ← maqr left | 10:52 |
| → Ringod2 joined | 10:53 |
| ← Gizburdt left | 10:53 |
| → Gizburdt joined | 10:53 |
| → jftf joined | 10:53 |
| → amikiri joined | 10:55 |
| → the_hugme joined | 10:56 |
|
masscrx
| ok i see that git rm --cached file - removes file physically from the repo | 10:56 |
|
| so this is not what I want ;] | 10:57 |
| ← paulweb515 left | 10:57 |
| ← Entomo left | 10:57 |
| → sinkensabe joined | 10:57 |
|
Vampire0
| masscrx, as multiple times said, what you want is NOT possible | 10:57 |
|
| Either the file is tracked or not | 10:58 |
|
moritz
| !config | 10:58 |
|
gitinfo
| [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas | 10:58 |
|
Vampire0
| You cannot have it tracked but ignore local changes | 10:58 |
| ← jftf left | 10:58 |
| ← heedly left | 10:58 |
|
moritz
| I typically ship a myapp.config.example in git, and keep a myapp.config that's not tracked by git | 10:58 |
| ← amcsi_work left | 10:58 |
| → psoo joined | 10:58 |
| → mellernoia joined | 10:58 |
|
Vampire0
| And yes, !config. Basically what I told you before with .sample instead of .example | 10:59 |
|
gitinfo
| [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas | 10:59 |
| → amcsi_work joined | 10:59 |
|
masscrx
| ok Vampire0 so after I;ve made git clone some repo, how to disable for tracking changes in some file ? | 10:59 |
|
| ok I'll read this link | 10:59 |
| ← Sicp left | 10:59 |
| ← amikiri left | 11:00 |
| → amikiri joined | 11:00 |
|
Vampire0
| You CANNOT | 11:00 |
| ← SLY1986 left | 11:00 |
|
jast
| well there's sparse checkout | 11:00 |
|
Vampire0
| You can tell git to ignore a file that is NOT tracked | 11:01 |
|
jast
| which kind of comes close | 11:01 |
| ← stamina left | 11:01 |
|
Vampire0
| But you cannot ignore changes to a tracked file | 11:01 |
| → RofricTheBearded joined | 11:01 |
| ← kcj left | 11:01 |
|
masscrx
| Vampire0: files which are not tracked are in .gitignore right ? | 11:02 |
| → teran_ joined | 11:02 |
|
masscrx
| maybe I'm misunderstanding word "tracked file" | 11:03 |
| ← Ziber left | 11:03 |
|
osse
| masscrx: a tracked file is one that git keeps track of | 11:03 |
| ← c74d left | 11:03 |
|
osse
| masscrx: it has a log, it has changed in commits, etc. | 11:03 |
| → Ziber joined | 11:03 |
| → mewm joined | 11:04 |
|
masscrx
| ok | 11:04 |
| → hellopat joined | 11:05 |
| ← veebers left | 11:05 |
|
Vampire0
| well, actually a file can be changed in commits and still be untracked | 11:05 |
| → astrofog joined | 11:05 |
| ← teran left | 11:05 |
|
Vampire0
| if you deleted the file | 11:05 |
|
| a file is tracked if it is part of the current branch | 11:05 |
|
| or added to the index | 11:05 |
|
| if it is untracked, you can add it to .gitignore to get it ignored | 11:06 |
| → carandraug joined | 11:06 |
| → Sicp joined | 11:06 |
|
Vampire0
| but if you added the file previously, or forced (which works even if the file is in .gitignore), then it is tracked and .gitinore does not work anymore | 11:07 |
| → c74d joined | 11:07 |
| → carbon joined | 11:08 |
| → RyPeck joined | 11:08 |
| ← hellopat left | 11:09 |
| ← beautifulmind left | 11:11 |
| → EminenceHC joined | 11:11 |
| → Neon1024 joined | 11:12 |
| → rgr joined | 11:13 |
| → WaReZ joined | 11:14 |
| → deuti joined | 11:14 |
| → frobrob_ joined | 11:15 |
| ← daito left | 11:16 |
| ← EminenceHC left | 11:16 |
| ← DolphinDream left | 11:16 |
| → n1x joined | 11:17 |
| ← eletuchy left | 11:18 |
| → eletuchy joined | 11:18 |
| ← frobrob left | 11:19 |
| ← tokik left | 11:19 |
| ← h0bbit left | 11:20 |
| ← hkon__ left | 11:20 |
| → Fang0716 joined | 11:21 |
| → hkon__ joined | 11:22 |
| → sobczyk joined | 11:22 |
|
sobczyk
| did anything change in git 1.9? I try "git checkout -b b_name -t origin/b_name" but I get Cannot setup tracking information; starting point 'origin/b_name' is not a branch. | 11:23 |
| → MagePsycho joined | 11:23 |
|
sobczyk
| it worked before | 11:23 |
| → ascarter joined | 11:24 |
|
osse
| sobczyk: what does 'git show origin/b_name' say ? | 11:24 |
| → razrunelord joined | 11:25 |
|
sobczyk
| osse: displays the log for upstream | 11:25 |
|
osse
| sobczyk: git cat-file -p origin/b_name | 11:26 |
|
Vampire0
| osse if I set a pushremote for a branch, git tells me that it does not know what to push. Can I config the "tracked" branch for the pushremote? | 11:26 |
|
sobczyk
| I did upgrade that system, so git went from 1.7.9 to 1.9.1 | 11:26 |
| ← FunkyAss left | 11:27 |
| → Ariadeno joined | 11:27 |
|
osse
| Vampire0: I don't know | 11:27 |
|
sobczyk
| osse: the top entry from previous command | 11:27 |
|
Vampire0
| anyone else? :-/ | 11:28 |
|
osse
| sobczyk: try removing the -t. I think it's implied | 11:28 |
| ← razrunelord left | 11:29 |
|
sobczyk
| osse: hmm, seems so, "branch -t origin b_name" works fine so alternatively I can switch to 2 commands | 11:30 |
| → pikaren joined | 11:30 |
| → tokik joined | 11:31 |
| ← frobrob_ left | 11:32 |
| → freestyl3r joined | 11:32 |
| → moritzs joined | 11:32 |
| → moritzschaefer joined | 11:32 |
| → MutantMahesh joined | 11:33 |
| ← MutantMahesh left | 11:33 |
| → MutantMahesh joined | 11:33 |
| → beautifulmind joined | 11:33 |
| ← luc__ left | 11:36 |
| → maveneagle joined | 11:36 |
| ← Zariel left | 11:38 |
| ← nicksloan left | 11:40 |
| ← moritzs left | 11:40 |
| ← moritzschaefer left | 11:40 |
| ← ascarter left | 11:41 |
| ← tokik left | 11:41 |
|
Vampire0
| ah, it is a bug osse | 11:42 |
| → Ethix joined | 11:43 |
|
Vampire0
| I have push.default set to simple and this fails with pushremote | 11:43 |
|
| http://git.661346.n2.nabble.com/branch-lt-name-gt-pushremote-not-working-with-push-default-simple-or-upstream-td7588148.html | 11:43 |
| → SonikBoom joined | 11:44 |
| ← watermel0n left | 11:45 |
| → intellix joined | 11:45 |
| ← amikiri left | 11:45 |
| → CheckDavid joined | 11:46 |
| → daedeloth joined | 11:47 |
| → hide joined | 11:48 |
| → tmcmahon joined | 11:49 |
| → SidFerreira joined | 11:49 |
| ← snql|bad_interne left | 11:49 |
| → LaserChicken joined | 11:49 |
| → matheus23 joined | 11:50 |
| → DolphinDream joined | 11:50 |
| → nnyk_ joined | 11:51 |
| ← nnyk_ left | 11:51 |
| → nnyk_ joined | 11:51 |
| ← Raging_Hog left | 11:51 |
| → robinsmidsrod joined | 11:52 |
| ← robinsmidsrod left | 11:52 |
| → Zariel joined | 11:52 |
| → hplar joined | 11:52 |
| → snql joined | 11:52 |
| ← Workinho left | 11:53 |
| → FunkyAss joined | 11:54 |
| → jftf joined | 11:54 |
| ← nnyk_ left | 11:54 |
| → robinsmidsrod joined | 11:55 |
| ← armyriad left | 11:55 |
| → armyriad joined | 11:56 |
| ← HelperW left | 11:56 |
| → lsiv568 joined | 11:57 |
| → HelperW joined | 11:57 |
| → ascarter joined | 11:57 |
| ← jftf left | 11:59 |
| ← Fang0716 left | 11:59 |
| → carbon1 joined | 12:00 |
| ← carbon left | 12:00 |
| ← tmcmahon left | 12:00 |
| ← Xethron left | 12:00 |
| → Xethron joined | 12:02 |
| ← Xethron left | 12:02 |
| → Xethron joined | 12:02 |
| ← vtunka left | 12:02 |
| → Hayro joined | 12:02 |
| ← Hayro left | 12:02 |
| ← sanjayu left | 12:02 |
| ← aspiers left | 12:02 |
| → arlekin joined | 12:03 |
| ← beautifulmind left | 12:03 |
| ← Ethix left | 12:03 |
|
arlekin
| hello there | 12:03 |
| → Hayro joined | 12:04 |
| ← DolphinDream left | 12:04 |
|
arlekin
| i have a question about merge strategies: if i will do the pull and merge it to local repo with 'ours' strategy then it will completly overwrite fetched version and my local and remote repo (i assume) will be synced; is that correct ? | 12:05 |
|
jast
| yes. the things you're merging will be included in the history, but the actual files will not contain anything from that side of the merge. | 12:06 |
| ← Ringod2 left | 12:06 |
|
arlekin
| jast: great, but lets say i will push this, and then fetch it on another machine with local repo which is slightly different from preiouv local repo i mentioned | 12:07 |
| → harobed_ joined | 12:07 |
| → m0ltar joined | 12:07 |
|
arlekin
| jast: what happen if i will then merge it by default with normal conflict resolutionl; will i be able to push it ? | 12:08 |
| ← ascarter left | 12:08 |
| → dougsland_ joined | 12:08 |
| ← Tuna-Fish left | 12:08 |
| ← cvanball left | 12:08 |
| → phretor joined | 12:08 |
|
jast
| whenever you merge before pushing, the push will go through (unless someone else was faster than you ;)) | 12:09 |
|
arlekin
| jast: thats not an issue - i work alone | 12:09 |
|
jast
| whether the second merge will work depends on whether the repo on the other machine has any changes that conflict with the main branch | 12:09 |
|
| if there are, you'll get a standard merge conflict. otherwise it'll go through on its own. | 12:09 |
| → moritzs joined | 12:11 |
| → moritzschaefer joined | 12:11 |
|
arlekin
| jast: yup but what if i resolved this conflict, then i assume, i will hae effectively two versions of repo - one on remote and other-local which are pretty much exact as there was 'ours' merge and another one, locally, which will be different 'cause it was merged with manually resolved conflict (so in result is not neccessary exact) | 12:11 |
| ← Zariel left | 12:11 |
|
xender
| Hey, I just saw that when using git-new-workdir, when I run git fsck in workdir I have one dangling commit more than when I run it in original repo | 12:12 |
| → SicoWork joined | 12:12 |
| → Tuna-Fish joined | 12:12 |
| → osse joined | 12:12 |
|
xender
| Does this mean that running git-gc from workdir can cause data loss? | 12:12 |
| ← xcesariox left | 12:12 |
| ← carbon1 left | 12:12 |
| ← osse left | 12:12 |
| → osse joined | 12:13 |
| ← nepochal left | 12:13 |
| ← osse left | 12:13 |
| → osse joined | 12:13 |
| → beautifulmind joined | 12:14 |
| ← teran_ left | 12:14 |
| → teran joined | 12:15 |
| → EminenceHC joined | 12:15 |
| → h0bbit joined | 12:15 |
| → xcesariox joined | 12:15 |
| ← Kayra left | 12:15 |
| ← ifdm_ left | 12:16 |
| ← osse left | 12:17 |
| ← bambams_ left | 12:17 |
| ← Hayro left | 12:17 |
| → osse joined | 12:17 |
| → Hayro joined | 12:17 |
| ← teran left | 12:18 |
| → teran joined | 12:18 |
| ← Hayro left | 12:19 |
| ← EminenceHC left | 12:19 |
| ← eaj left | 12:21 |
| → zivester joined | 12:22 |
| → dsdeiz joined | 12:23 |
| ← rfoust left | 12:23 |
| → e^0 joined | 12:25 |
| → samsamm777 joined | 12:25 |
| → razrunelord joined | 12:25 |
| ← beautifulmind left | 12:26 |
| → watermel0n joined | 12:27 |
|
masscrx
| if someone invited me on github, does he has to add my public key to his account or how it work ? | 12:28 |
| ← Gavrisimo left | 12:29 |
| → paulweb515 joined | 12:29 |
|
Kartagis
| I'm guessing he doesn't | 12:29 |
|
stealthii
| hey. I'm reordering some commits using rebase -i. Some of these work fine when I have to merge (most of these commits include files moves) | 12:29 |
| ← eletuchy left | 12:29 |
|
tobiasvl
| masscrx: that's more of a #github question | 12:29 |
|
stealthii
| however, some commits did not detect the move, and consider it an add/delete. Merging in this case is impossible. | 12:30 |
| → eletuchy joined | 12:30 |
|
stealthii
| Is there a way I can increase the move detection ratio temporarily for the purpose of rebasing? | 12:30 |
|
Vampire0
| masscrx, I think he just adds you as allowed pusher. Your public key is in your account. | 12:30 |
| ← razrunelord left | 12:30 |
|
Vampire0
| So if you are added, I think you simply can push thereafter | 12:30 |
| → woollyams joined | 12:30 |
| ← teran left | 12:30 |
| → zorbash joined | 12:30 |
| → VinceThePrince joined | 12:31 |
| → teran joined | 12:31 |
| ← zorbash left | 12:31 |
| ← moritzs left | 12:32 |
|
Vampire0
| I think so stealthii | 12:32 |
| ← moritzschaefer left | 12:32 |
| ← VinceThePrince left | 12:32 |
|
Vampire0
| stealthii, man git rebase and search for rename-threshold | 12:32 |
|
gitinfo
| stealthii: the git-rebase manpage is available at http://jk.gs/git-rebase.html | 12:32 |
| ← n1x left | 12:32 |
|
stealthii
| awesome. Thanks a million Vampire0 | 12:33 |
| ← eletuchy left | 12:34 |
| ← Macaveli left | 12:34 |
| ← adac left | 12:34 |
| → Kayra joined | 12:35 |
| ← paulweb515 left | 12:35 |
| → paulweb515 joined | 12:35 |
|
Vampire0
| yw | 12:35 |
| ← plitzenberger left | 12:36 |
| → Macaveli joined | 12:37 |
| ← robbyoconnor left | 12:37 |
| → n1x joined | 12:37 |
| → eletuchy joined | 12:37 |
| → dannybodmer joined | 12:38 |
| ← dannybodmer left | 12:39 |
| → jottr joined | 12:39 |
| → dannybodmer joined | 12:40 |
| → DolphinDream joined | 12:40 |
| → nnyk_ joined | 12:40 |
| ← dannybodmer left | 12:40 |
| → cdleonard joined | 12:41 |
| → Zariel joined | 12:41 |
| ← SonikBoom left | 12:41 |
| → dbods joined | 12:41 |
| ← m0ltar left | 12:41 |
| ← DolphinDream left | 12:41 |
| ← Macaveli left | 12:42 |
| ← dbods left | 12:42 |
| → JacobHayes joined | 12:43 |
| ← Ariadeno left | 12:44 |
| → moritzschaefer joined | 12:44 |
| → moritzs joined | 12:44 |
| → anglisc joined | 12:46 |
| → adac joined | 12:46 |
| → DoniRS joined | 12:46 |
| → jackneill joined | 12:46 |
| → JacobHay_ joined | 12:46 |
| → xsbeats joined | 12:47 |
| ← n1x left | 12:47 |
| ← JacobHay_ left | 12:48 |
|
xender
| masscrx: Adding someone's public key == giving access to own repos to that someone | 12:48 |
|
| Generally you should have only your own keys added to your account | 12:48 |
| → polyzen joined | 12:49 |
|
xender
| Giving write access to repo is another thing. | 12:49 |
|
masscrx
| xender: yep but my client invite my to his repo for editing purposes | 12:49 |
| ← hexagoxel left | 12:50 |
|
masscrx
| so i see this repo but I'm wondering whether need I add my public key | 12:50 |
| → dowwie joined | 12:50 |
|
xender
| masscrx: GitHub should handle it | 12:50 |
|
| If it says that you have access to push, then you have access to push | 12:51 |
|
dowwie
| hello all | 12:51 |
|
dcpc007
| hello i have problem to open windows script with git-bash (msysgit), does anyone use it ? | 12:51 |
| → mjsmith2 joined | 12:51 |
|
dcpc007
| they are detected as binary files | 12:51 |
|
canton7
| many do. what's your problem | 12:51 |
|
dcpc007
| it's .ps1 files, text script onpowershell | 12:51 |
|
| i try toput windows admin on git :) | 12:52 |
| → rfoust joined | 12:52 |
|
dcpc007
| but even a vim script.ps1 show strange characters each char | 12:52 |
|
dowwie
| question about rebasing.. if when I run "git rebase master" from a branch, is the commit set from the branch moved onto the master branch of my current working directory or onto the master branch of the upstream repo (remote origin) | 12:52 |
|
dcpc007
| like : "^@F^@u^@n^@c^@t^@i^@o^@n^@ ^@M^@A^@I^@L^@_^@U^@n^@i^@n^@s^@t^@a^@l^@l^@_^@S^@E^@P^@1^@1^@^M^@" | 12:53 |
|
canton7
| dcpc007, 'powershell -File path/to/file.ps1' ? or maybe 'start path/to/file.ps1' ? | 12:53 |
| → hellopat joined | 12:53 |
|
canton7
| ooh, your problem isn't running it | 12:53 |
| ← zivester left | 12:53 |
|
canton7
| gotcha | 12:53 |
| ← woollyams left | 12:53 |
|
dcpc007
| i installed avec default conversion like recomanded | 12:53 |
|
| for CRLF conversion | 12:53 |
| → ammar2 joined | 12:54 |
| → jftf joined | 12:55 |
| → Mitchbones joined | 12:55 |
| ← samsamm777 left | 12:55 |
|
dcpc007
| wow it'ss UTF-16 encoding ! | 12:56 |
| ← Gizburdt left | 12:56 |
| → Kartagis joined | 12:56 |
|
canton7
| aah | 12:56 |
|
dcpc007
| never seen it | 12:56 |
| → Gizburdt joined | 12:57 |
|
canton7
| you can tell git that it's definitely a text file (if you want), using man gitattributes | 12:57 |
|
gitinfo
| the gitattributes manpage is available at http://jk.gs/gitattributes.html | 12:57 |
|
canton7
| you might not want to do line ending conversion in a ps1 file, though | 12:57 |
| ← hellopat left | 12:58 |
|
canton7
| ah, but it will try and do a binary diff otherwise, of course. yeah, you can tell git that it's text with gitattributes | 12:58 |
| ← watermel0n left | 12:58 |
| ← jargon left | 12:59 |
|
dcpc007
| the problem is even in console | 12:59 |
|
| don't want to manage special utf-16 char in git | 12:59 |
| → noxd joined | 12:59 |
|
canton7
| or just save it at ascii? :P | 12:59 |
|
dcpc007
| boring Microsoft defaults ! | 12:59 |
| ← mlechner left | 12:59 |
| ← jftf left | 12:59 |
| ← mjsmith2 left | 13:00 |
|
InFierno
| !time | 13:01 |
|
gitinfo
| [!reply_time] I only respond to !ECHO-REQUEST | 13:01 |
| → gargola joined | 13:03 |
| ← intellix left | 13:03 |
| → Macaveli joined | 13:03 |
| polyzen → poly | 13:03 |
| → VictorCL joined | 13:03 |
| → AaronMT joined | 13:03 |
| → intellix joined | 13:04 |
|
dcpc007
| foudn a solution it seems : https://groups.google.com/forum/#!msg/msysgit/c4TMlnBQPbM/axrXkuX28EgJ | 13:05 |
|
| using iconv for converting and .gitattributes and filters | 13:05 |
| → nepochal joined | 13:06 |
|
canton7
| dcpc007, or convert to ascii? | 13:06 |
|
dcpc007
| maybe too violent ? | 13:07 |
| → amcsi_work_ joined | 13:07 |
|
dcpc007
| don't know, i must ensure that Windows admindon't lostr anything | 13:07 |
| → scampbell joined | 13:07 |
|
dcpc007
| utf-8 and utf-16 fully compatible (utf-&6 just useless) | 13:07 |
|
| but convert utf-16 to ascii .... what happens | 13:07 |
|
canton7
| if it's a powershell script, I doubt it's got anything fancy in it :P | 13:07 |
|
YoungFrog
| a conversion tool should actually tell you if the conversion is not possible | 13:08 |
|
| so I'd suggest to try it and see. | 13:08 |
|
dcpc007
| tested iconv manually : it'ss ok | 13:08 |
| ← dfinly left | 13:08 |
|
YoungFrog
| in fact, if it's pure ASCII, converting to UTF-8 should give exactly the same result as converting to ASCII IIRC. | 13:09 |
|
dcpc007
| iconv -f utf-16 -t utf-8 script.ps1 : show a clean text | 13:09 |
|
xender
| Does cherry-pick handle file renames heuristically? | 13:09 |
|
dcpc007
| i don't know what can be inside | 13:09 |
| ← amcsi_work left | 13:09 |
|
xender
| I just cherry-picked a commit which was mainly files renaming. And my HEAD has some of these files modified | 13:10 |
|
| But i see no conflicts | 13:10 |
| ← gargola left | 13:10 |
|
xender
| So it actually knew to treat those changes as renames? | 13:10 |
| → dbods joined | 13:11 |
| ← sinkensabe left | 13:11 |
| → qwyeth joined | 13:11 |
| → livingstn joined | 13:11 |
| → sinkensabe joined | 13:11 |
|
lb1a
| xender, git does not know about explicit file renames | 13:14 |
| → FortySix2 joined | 13:14 |
|
lb1a
| xender, it figures it out by heuristic yes | 13:14 |
|
| if it sees the same content but different "filename" in the tree metadata it treats them as a rename. | 13:15 |
|
xender
| lb1a: Yeah, I know that, but I was thinking that it uses that heuristin only in git status and git log with options to track renames | 13:15 |
| ← dsdeiz left | 13:15 |
| ← sinkensabe left | 13:15 |
| → sinkensabe joined | 13:15 |
|
lb1a
| but you can configure the amount of "same content" | 13:15 |
|
xender
| So it uses it also in merge strategies? That's cool | 13:16 |
|
lb1a
| default is 50% similar i think | 13:16 |
|
| i just know it from a conference talk. would have to search the config option myself. but i would start at man git config and search for rename :D | 13:17 |
|
gitinfo
| the git-config manpage is available at http://jk.gs/git-config.html | 13:17 |
| ← rgr left | 13:17 |
| → m0ltar joined | 13:17 |
| ← maveneagle left | 13:17 |
| → ehmatthes joined | 13:17 |
| ← _tpavel left | 13:17 |
| → mgomezch joined | 13:18 |
| ← lite left | 13:18 |
| → lite joined | 13:19 |
| → m8 joined | 13:19 |
|
xender
| ok, thx | 13:20 |
| ← adac left | 13:20 |
| → vtunka joined | 13:21 |
| ← nikita left | 13:22 |
| → heedly joined | 13:23 |
| → Foldager joined | 13:23 |
| ← lite left | 13:23 |
| ← jottr left | 13:23 |
| ← hebz0rl left | 13:23 |
|
heedly
| I accidently did git pull origin branch on my master | 13:23 |
|
| and it pulled in the changes, is there anyway to undo that? | 13:23 |
| → nikita joined | 13:23 |
|
canton7
| heedly, git reset --hard HEAD^ | 13:24 |
|
osse
| heedly: git reset --hard master@{1} | 13:24 |
|
heedly
| excellent, thanks :) | 13:25 |
| ← heedly left | 13:26 |
| → razrunelord joined | 13:26 |
| → freimatz_ joined | 13:26 |
| → maxorator joined | 13:27 |
|
dcpc007
| canton7: have you see the link i post ? i don't understand allthoses config | 13:28 |
|
| i'mtrying to put it in my new git-bash on my laptop | 13:28 |
| ← freimatz left | 13:29 |
| → thomaslnx joined | 13:29 |
|
canton7
| read man gitattributes, understand how smudge/clean filters work, first | 13:29 |
|
gitinfo
| the gitattributes manpage is available at http://jk.gs/gitattributes.html | 13:29 |
| → Gavrisimo joined | 13:29 |
| → IrishPrime joined | 13:30 |
| → joelmo joined | 13:30 |
| → _tpavel joined | 13:30 |
| ← razrunelord left | 13:31 |
| → Fullma joined | 13:31 |
| → Gavrisimooo joined | 13:31 |
|
xender
| Does git have a tool for finding whitespace errors across whole repo? | 13:32 |
| ← amcsi_work_ left | 13:32 |
| → adac joined | 13:33 |
| ← drean left | 13:33 |
|
xender
| Or should I just use sed? | 13:33 |
| → amcsi_work joined | 13:33 |
| → mizu_no_oto joined | 13:34 |
| ← Gavrisimo left | 13:34 |
| → ezio joined | 13:34 |
| → sreich joined | 13:35 |
| ← Gavrisimooo left | 13:36 |
| → aspiers joined | 13:36 |
|
cdleonard
| git-ls-files or git-grep can help you, but you'll probably end up using sed too | 13:37 |
| → jizanthapus-work joined | 13:37 |
| → tiblock joined | 13:37 |
| → shinnya joined | 13:38 |
| ← MutantMahesh left | 13:40 |
| → dsdeiz joined | 13:41 |
| → il joined | 13:41 |
| → momomomomo joined | 13:41 |
| → mgomezch_ joined | 13:41 |
| ← mgomezch left | 13:42 |
|
dowwie
| when I want to fetch from my remote, is it better to "git fetch" or "git fetch origin/master" ? | 13:44 |
| → Hardcheese joined | 13:44 |
| ← treehug88 left | 13:44 |
| → koell joined | 13:45 |
| → tranzfuse joined | 13:45 |
|
canton7
| dowwie, well the latter is invalid... | 13:45 |
|
jast
| dowwie: 'git fetch'... or maybe 'git fetch origin' if you have multiple remotes and want to fetch a specific one (otherwise it picks one essentially at random ;)) | 13:46 |
| → CKyle joined | 13:47 |
|
dowwie
| ugh! | 13:47 |
|
| ok thanks for clarifying that | 13:47 |
| → daito_ joined | 13:47 |
| → chiromante joined | 13:47 |
|
jast
| there's an --all flag, too, I believe | 13:47 |
|
tiblock
| Hi. Im first time in git and reading book http://git-scm.com/book It says to do "git init", "git add file1", "git add file2", "git commit m 'initial project version'". When i do that last command i get "error: pathspec 'm' did not match any file(s) known to git.", "error: pathspec 'initial project version' did not match any file(s) known to git.". What im doing wrong? | 13:47 |
| → blackmesa joined | 13:47 |
|
Vampire0
| At random? not the "upstream" remote? | 13:47 |
|
| Yes, there is an --all flag | 13:48 |
|
| dowwie, what you probably meant was "git fetch origin master", no? | 13:48 |
| ← Hardcheese left | 13:48 |
|
Vampire0
| for this read !fetch4 dowwie | 13:48 |
|
gitinfo
| [!fetchfour] [pre 1.8.4 only] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge). | 13:48 |
|
osse
| xender: git ls-files -z | xargs -0 grep '[[:space:]]$' | 13:48 |
| ← lsiv568 left | 13:48 |
| ← momomomomo left | 13:49 |
| → davividal joined | 13:49 |
|
dowwie
| I'm just trying to synchronize my local working directory with the remote using the more idiomatic approach of "git fetch" and "git merge origin/master" rather than "git pull" | 13:49 |
| → akim joined | 13:50 |
| → DolphinDream joined | 13:51 |
| → momomomomo joined | 13:51 |
| ← DolphinDream left | 13:51 |
| ← daito_ left | 13:51 |
|
Vampire0
| so "git fetch" is most probably what you wasn dowwie | 13:51 |
|
| s/wasn/want/ | 13:51 |
|
dowwie
| VampireO : thx :) | 13:51 |
| → lolmaus joined | 13:52 |
|
Vampire0
| yw | 13:52 |
| ← bailon left | 13:52 |
| ← sreich left | 13:53 |
| ← koell left | 13:53 |
|
osse
| note that git fetch fetches from your current branch's upstream's remote if set and != origin | 13:53 |
|
| it am the confusenicity | 13:53 |
| → koell joined | 13:54 |
| ← yacks left | 13:54 |
| → vanillajohn joined | 13:54 |
| → lsiv568 joined | 13:55 |
| ← arlekin left | 13:56 |
| → jftf joined | 13:56 |
| → fatalhalt joined | 13:56 |
| ← hkon__ left | 13:58 |
| → mjsmith2 joined | 13:59 |
| ← vtunka left | 13:59 |
| ← poly left | 13:59 |
| ← koell left | 13:59 |
| → _W_ joined | 13:59 |
| ← LeMike left | 13:59 |
| ← h0bbit left | 14:00 |
| ← Tuna-Fish left | 14:00 |
| → Iconate joined | 14:00 |
| ← jftf left | 14:00 |
| → thiago joined | 14:01 |
| → W0rmDr1nk joined | 14:01 |
| → Tuna-Fish joined | 14:01 |
| → vtunka joined | 14:01 |
| ← Iconate left | 14:02 |
| → vijay13 joined | 14:02 |
| → doener joined | 14:03 |
| ← ojacobson left | 14:03 |
|
tiblock
| solved my problem. Theres error in book, it must be "-m" not "m" | 14:03 |
| ← Macaveli left | 14:03 |
| ← Xethron left | 14:04 |
| → Ariadeno joined | 14:04 |
| ← vtunka left | 14:04 |
| → starkhalo joined | 14:05 |
| → garvank joined | 14:05 |
| → acharlieh joined | 14:05 |
| → igalic joined | 14:05 |
|
igalic
| hello happy people o/~ | 14:06 |
|
Vampire0
| !hi igalic | 14:06 |
|
gitinfo
| [!welcome] Welcome to #git, a place full of helpful gits. If you have a question, feel free to just go ahead and ask—somebody should answer shortly. For more info on this channel, see http://jk.gs/git/ Take backups (type !backup to learn how) before taking advice. | 14:06 |
| ← tranzfuse left | 14:06 |
|
igalic
| I have a subversion repository mirrored into git which I'm supposed to run a "report" over, to see who forgot to merge their stuff into $branch, | 14:06 |
| → yacks joined | 14:07 |
|
igalic
| anyway, right now I'm doing some dry land excersizes with Apache httpd's git mirror, essentially, I'm looking for an "easy" way to replace the git hash, with the subversion revision | 14:07 |
|
Vampire0
| I guess you are searching man git cherry | 14:07 |
|
gitinfo
| the git-cherry manpage is available at http://jk.gs/git-cherry.html | 14:07 |
|
igalic
| git log --graph --format="$( git svn find-rev %h) <%an> - %s" is not it. | 14:07 |
|
Vampire0
| ah, ok | 14:07 |
| → nhmood joined | 14:08 |
| → tranzfuse joined | 14:08 |
|
Vampire0
| the rev is in the commit message of the commit | 14:08 |
|
igalic
| Vampire0: so far, the git log that I've got does pretty much what I want, I just need it formatted differently. | 14:08 |
|
osse
| tiblock: where is it? that is something that should be fixed | 14:08 |
| ← Sicp left | 14:08 |
|
igalic
| Vampire0: yesno. I can get it out with git svn find-rev, but as soon as I try to integrate that into the commandline, I'm getting fun like: | 14:08 |
|
Vampire0
| ok, !www igalic | 14:08 |
|
gitinfo
| What did you do (which commands?), what happened as a result (any messages?), and what was the result you expected instead? | 14:08 |
| → Neozonz joined | 14:09 |
|
igalic
| Vampire0: https://gist.github.com/bbde6443bf434d91a082 | 14:09 |
|
tiblock
| osse, its in book http://git-scm.com/book in 2.1.1 is says "git commit m '...'" and thats wrong for me. But i use windows git client so maybe its windows's problem. | 14:09 |
|
igalic
| I have also tried the same piped through perl or sed, with the exact same result: | 14:10 |
| → antlong joined | 14:10 |
| ← acharlieh left | 14:10 |
|
Vampire0
| of course igalic, that wont work, the "$()" is evaluated by bash | 14:10 |
| → jftf joined | 14:10 |
| → LeMike joined | 14:10 |
|
igalic
| https://gist.github.com/3d519069f73fcf381772 | 14:10 |
|
antlong
| hello, i added store credentials yesterday, and now a pull is taking 15 minutes, i see the processes seemingly hanging | 14:10 |
|
osse
| tiblock: are you reading the printed version? | 14:10 |
| → arlekin joined | 14:10 |
|
antlong
| i see, 6548 pts/0 00:00:00 git <defunct> 6576 pts/0 00:00:00 git-credential- | 14:10 |
|
igalic
| Vampire0: in the latter case I would assume that to be an advantage, but maybe I'm getting some order wrong. | 14:10 |
|
arlekin
| hello there | 14:10 |
|
tiblock
| osse, PDF from website | 14:10 |
| → Sicp joined | 14:10 |
| ← yaru22 left | 14:11 |
|
tiblock
| osse, oh. Web version have "-m" instead of "m". I read this https://github.s3.amazonaws.com/media/progit.en.pdf | 14:11 |
|
osse
| tiblock: ahh, look at that... It is fixed in the HTML version | 14:11 |
|
Vampire0
| possible igalic | 14:11 |
|
osse
| tiblock: seems like a new PDF should be generated | 14:11 |
|
xender
| osse: There are also other kinds of whitespare errors, like tabs-after-some-other-whitespace | 14:11 |
|
arlekin
| is there a way to display differing commits between branches ? i know about git diff A..B but i dont want to deal with diff output (12k lines) and just want to see diverging commits | 14:12 |
|
xender
| osse: Would ( .*\t)|(\s+$) handle all cases? | 14:12 |
| → gargola joined | 14:12 |
| ← Sicp left | 14:12 |
| ← xcesariox left | 14:12 |
|
osse
| xender: which cases would that be | 14:12 |
| → Hardcheese joined | 14:13 |
| → dik_dak joined | 14:13 |
|
xender
| osse: All spacing patterns that are not sane in common sense | 14:13 |
|
| Also, I don't want to grep binary files | 14:13 |
| → vtunka joined | 14:13 |
| → Sicp joined | 14:13 |
|
xender
| How to evaluate whether file is binary or textual? file command or git also has interface for that? | 14:13 |
|
osse
| no | 14:14 |
|
| xender: maybe you're better off using find . -type f -name '*.py' -exec grep ... + or something then | 14:14 |
| → jamieshepherd joined | 14:14 |
|
xender
| osse: find will also return non-tracked files | 14:15 |
|
osse
| yep | 14:15 |
| → xenoterracide_ joined | 14:15 |
| → fenerlitk joined | 14:15 |
|
osse
| grep -I might help; that will skip binary files | 14:15 |
|
xender
| osse: I wouldn't want to sed -i something untracked, so ls-files looks better | 14:16 |
| → g0bl1n joined | 14:16 |
|
xender
| Grep won't fix it automatically | 14:16 |
|
osse
| xender: run it on a clean repo then | 14:16 |
| → happytux_ joined | 14:16 |
|
xender
| osse: not always feasible. I'll stay with git ls-files | 14:16 |
| ← deuti left | 14:16 |
|
osse
| xender: 'cd ..; git clone project project2' | 14:17 |
| ← tvw left | 14:17 |
| → axl_ joined | 14:17 |
|
osse
| xender: and how would you automatically fix the ( .*\t) case? | 14:17 |
|
xender
| That's not feasible at all | 14:17 |
| ← momomomomo left | 14:17 |
|
dcpc007
| canton7: ok it' work | 14:17 |
|
osse
| xender: why not? | 14:17 |
|
xender
| osse: Hmm, that doesn't seem fixable. In that case I would just display a message | 14:17 |
|
canton7-mac
| dcpc007, cool. I still say ASCII ;) | 14:18 |
|
dcpc007
| jsut have the 1st commit in UTF-16 and then no git diff, | 14:18 |
| ← dbods left | 14:18 |
| → Exancillatus joined | 14:18 |
|
dcpc007
| but only the initial import of 1 script | 14:18 |
|
xender
| osse: ok, not "not feasible", but still, would it be superior to ls-files anyhow? | 14:18 |
|
dcpc007
| don't know if possible to convert the script already commited | 14:18 |
| → happytux__ joined | 14:19 |
| ← chiromante left | 14:19 |
|
osse
| xender: you're guaranteed a clean repo and can use whatever non-git commands you wish without worry | 14:19 |
| ← axl_ left | 14:19 |
|
canton7-mac
| dcpc007, of course it's possible to change the encoding on a file | 14:19 |
| ← Hounddog left | 14:20 |
|
dcpc007
| even if already in old commit ? | 14:20 |
|
| repo is only local | 14:20 |
|
osse
| or: while IFS= read -d '' file; do files+=("$file"); done < <(git ls-files -<); from here you have all files in "${files[@]}" and can do whatever you want | 14:20 |
| ← intellix left | 14:20 |
|
canton7-mac
| you make a new commit. or rewrite the old one | 14:20 |
|
xender
| osse: Still requeires more boilerplate to introduce changes back to original repo. new-workdir could be better than clone, but also problematic in some other ways | 14:20 |
| → happytux___ joined | 14:20 |
| ← happytux left | 14:21 |
| → bdavenport joined | 14:21 |
| ← moritzschaefer left | 14:21 |
|
osse
| xender: consider my last suggestion then. that'll give you the freedom of both | 14:21 |
| ← moritzs left | 14:21 |
| ← ehmatthes left | 14:21 |
| → jargon joined | 14:22 |
| ← happytux_ left | 14:22 |
| → momomomomo joined | 14:23 |
| ← PeterBooker left | 14:23 |
|
xender
| o_O | 14:23 |
| ← papegaaij left | 14:23 |
| → tang^ joined | 14:23 |
| → happytux joined | 14:23 |
| ← happytux__ left | 14:23 |
| → Iniesta8 joined | 14:24 |
| → yaru22 joined | 14:24 |
| → intellix joined | 14:24 |
|
xender
| I don't queite understand it | 14:24 |
|
osse
| xender: or, if you're certain there are no malicious newlines in filenames: mapfile -t files < <(git ls-files); for f in "${files[@]}"; do sed this; grep that; whatever; done | 14:24 |
| → mgomezch joined | 14:24 |
|
osse
| xender: it creates a bash array of all the file names | 14:25 |
| → n1x joined | 14:25 |
|
osse
| that's all it does | 14:25 |
| → EminenceHC joined | 14:25 |
|
osse
| it looks complicated because of the null termination | 14:25 |
|
xender
| It looks like nulls were not printed in IRC | 14:25 |
|
| Or empty string is same as null in bash? | 14:25 |
| ← mgomezch_ left | 14:26 |
|
osse
| in irc? I didn't print any nulls | 14:26 |
|
| ahh, yes. | 14:26 |
|
| '' can be used to mean null | 14:26 |
|
amcsi_work
| I accidentally committed my initial commit as all files being executable. How do I amend the commit but making all files not executable? | 14:27 |
| → axl_ joined | 14:27 |
| ← happytux___ left | 14:27 |
|
xender
| Leak of C null-termiated strings implementation? | 14:27 |
| → razrunelord joined | 14:27 |
| → treehug88 joined | 14:27 |
|
osse
| ?! | 14:27 |
| → PeterBooker joined | 14:27 |
|
YoungFrog
| beware: '' does not mean NUL character | 14:27 |
| ← yacks left | 14:27 |
|
YoungFrog
| it's just an empty argument | 14:27 |
| ← Kayra left | 14:27 |
|
xender
| YoungFrog: We'te trying to firegu this out just now | 14:27 |
|
| *figure | 14:28 |
| ← tranzfuse left | 14:28 |
|
osse
| yeah it's probably specific to bash's read -d | 14:28 |
|
canton7-mac
| amcsi_work, have you pushed that commit? | 14:28 |
|
xender
| Ah, ok | 14:28 |
|
osse
| you can use $'\0' if you like | 14:28 |
|
amcsi_work
| canton7-mac, no | 14:28 |
|
canton7-mac
| amcsi_work, if not, 'chmod -R -x *' or whatever, then 'git commit --amend' | 14:28 |
|
| (assuming the previous commit *was* the initial commit) | 14:28 |
|
Vampire0
| igalic: git log --format="%h <%an> - %s" | head -n 30 | awk '{ "git svn find-rev " $1 | getline $1; print }' | 14:29 |
|
xender
| osse: There was a queite nasty whole class of bugs in PHP, because it couldn't decide how to handle strings. | 14:29 |
|
canton7-mac
| if not, 'git rebase -i --root', change the first commit to 'edit', the do the chmod and 'git commit --amend', followed by 'git rebase --continue' | 14:29 |
|
amcsi_work
| canton7-mac, thanks! | 14:29 |
| → Xethron joined | 14:29 |
| ← Xethron left | 14:29 |
| → Xethron joined | 14:29 |
| ← Hardcheese left | 14:29 |
| ← EminenceHC left | 14:29 |
|
canton7-mac
| :) | 14:29 |
|
xender
| There were implemented as lenght and pointer to array in one data structore. But any stray \0 in that array would end a string | 14:29 |
| → Hardcheese joined | 14:29 |
| → EminenceHC joined | 14:30 |
|
xender
| *They were | 14:30 |
|
| Also, what is -< ? | 14:30 |
|
| in <(git ls-files -<) | 14:30 |
| ← mgomezch left | 14:31 |
| → jottr joined | 14:31 |
|
osse
| a typo | 14:31 |
| ← razrunelord left | 14:31 |
| ← antlong left | 14:32 |
| → Gavrisimo joined | 14:32 |
| → tranzfuse joined | 14:32 |
| → coz joined | 14:33 |
| ← FortySix2 left | 14:34 |
|
xender
| So you meant -z? | 14:34 |
| ← _W_ left | 14:34 |
| ← Ariadeno left | 14:34 |
| ← ezio left | 14:34 |
| → johnny2600 joined | 14:34 |
|
osse
| yes | 14:35 |
| ← garvank left | 14:35 |
| → FortySix2 joined | 14:35 |
| ← ferreum left | 14:36 |
| ← Gavrisimo left | 14:36 |
| → garvank joined | 14:37 |
| ← garvank left | 14:37 |
| → garvank joined | 14:38 |
| ← Gizburdt left | 14:38 |
| ← CKyle left | 14:38 |
| → mgomezch joined | 14:39 |
| ← rob_w left | 14:40 |
| → jluc joined | 14:40 |
| ← n1x left | 14:40 |
| → Gamecubic joined | 14:40 |
| ← bgerber left | 14:41 |
| → hellopat joined | 14:41 |
| → Kayra joined | 14:42 |
| → devoldmx joined | 14:42 |
| → bgerber joined | 14:42 |
| → Gizburdt joined | 14:43 |
| ← dowwie left | 14:43 |
| ← martinklepsch left | 14:43 |
| ← ayaz left | 14:43 |
| ← Kayra left | 14:43 |
| → Kayra_ joined | 14:44 |
| ← axl_ left | 14:44 |
| → martinklepsch joined | 14:45 |
| ← hellopat left | 14:45 |
|
igalic
| Vampire0: so, yeah, 'slong as I don't try anything fancy (--graph) it should work out fine ;) | 14:45 |
| ← mgomezch left | 14:46 |
| ← k-joseph left | 14:46 |
| ← teran left | 14:47 |
| → daito_ joined | 14:47 |
| ← VictorCL left | 14:48 |
| → teran joined | 14:48 |
| → tplaner joined | 14:48 |
| ← tplaner left | 14:48 |
| → tplaner joined | 14:48 |
| → mgomezch joined | 14:49 |
| → JerryT joined | 14:50 |
| ← JerryT left | 14:50 |
| → DolphinDream joined | 14:50 |
| → JerryT joined | 14:51 |
| ← Droolio left | 14:52 |
| ← daito_ left | 14:52 |
| ← Sicp left | 14:53 |
| ← Iniesta8 left | 14:53 |
|
arlekin
| is there a way to display differing commits between branches ? i know about git diff A..B but i dont want to deal with diff output (12k lines) and just want to see diverging commits | 14:54 |
|
| ? | 14:54 |
| ← momomomomo left | 14:54 |
|
canton7-mac
| arlekin, use 'git log' instead of 'git diff'? | 14:55 |
| → momomomomo joined | 14:55 |
| ← rath left | 14:55 |
| → danecando joined | 14:55 |
| → codeurge joined | 14:56 |
| ← mgomezch left | 14:56 |
| ← shinnya left | 14:57 |
| ← qwyeth left | 14:57 |
| → Iniesta8 joined | 14:58 |
| ← FilipNortic left | 14:59 |
| ← sinkensabe left | 14:59 |
| → stfn joined | 14:59 |
| → sinkensabe joined | 15:00 |
| ← maxorator left | 15:00 |
| ← FortySix2 left | 15:00 |
| ← Joost` left | 15:00 |
| → qwyeth joined | 15:00 |
|
TomyWork
| arlekin git log A..B will show you the commits that B has and A doesn't. | 15:00 |
|
| there's also gitk, which might be more helpful | 15:01 |
| → maxorator joined | 15:01 |
|
TomyWork
| "gitk A B" will show you a commit graph starting at A and B | 15:01 |
| → thomas_b joined | 15:02 |
| → codeFiend joined | 15:03 |
| → JanC_ joined | 15:03 |
| ← Iniesta8 left | 15:03 |
| ← Zariel left | 15:04 |
| ← Gizburdt left | 15:04 |
| → mgomezch joined | 15:04 |
| → Joost` joined | 15:04 |
| ← Joost` left | 15:04 |
| → Joost` joined | 15:04 |
| → plasticle joined | 15:04 |
| JanC_ → JanC | 15:04 |
| ← sinkensabe left | 15:05 |
| → plasticl3 joined | 15:05 |
| → juvenal joined | 15:05 |
| ← hgl left | 15:05 |
| → klrr_ joined | 15:06 |
| ← mennea left | 15:06 |
|
klrr_
| so i did "git rebase -i split-bins~8" but i get this error "Cannot 'squash' without a previous commit" this is the file i edited https://gist.github.com/klrr/f16bcfc4f766a061a5a9 | 15:08 |
|
MouseTheLuckyDog
| I have a project that I'm making modifications to. I thought the project was going to be easy, but it turns out harder then I thought. I would like to work on it oin a seperate branch. How can I create a branch that begins at the last commit without losing the changes that I have made to files. | 15:08 |
| → koell joined | 15:08 |
| ← l1kw1d left | 15:08 |
|
clever
| MouseTheLuckyDog: thats exactly how branching works by default | 15:08 |
|
canton7-mac
| MouseTheLuckyDog, !float ? | 15:09 |
|
gitinfo
| MouseTheLuckyDog: If you have made a change in your working directory and have NOT YET COMMITTED, you may "float" that change over to another (`git checkout oldbranch`) or new (`git checkout -b newbranch`) branch and commit it there. If the files you changed differ between branches, the checkout will fail. In that case, `git stash` then checkout, and `git stash apply` and go through normal conflict resolution. | 15:09 |
| → JSharpe joined | 15:09 |
| ← jargon left | 15:09 |
| ← rchavik left | 15:10 |
|
arlekin
| TomyWork: awesome man ! thanks a lot!! | 15:10 |
| ← Mitchbones left | 15:10 |
| ← cagedwisdom left | 15:10 |
|
MouseTheLuckyDog
| Thank you. | 15:10 |
| → JSharpe__ joined | 15:10 |
| ← roelmonnens left | 15:10 |
| ← teran left | 15:11 |
| → hebz0rl joined | 15:11 |
| → teran joined | 15:11 |
| ← jottr left | 15:11 |
| ← fenerlitk left | 15:11 |
| ← St_Marx left | 15:12 |
| ← TomyWork left | 15:12 |
| → dfinly joined | 15:12 |
| ← dfinly left | 15:12 |
| → jottr joined | 15:12 |
| ← cjsarette left | 15:13 |
| ← jottr left | 15:13 |
| → dfinly joined | 15:13 |
| ← dfinly left | 15:13 |
| → jottr joined | 15:13 |
| ← jottr left | 15:13 |
| → johnkevinmbasco joined | 15:13 |
| → Gavrisimo joined | 15:13 |
| → Jeremy_Nodasys joined | 15:13 |
| ← marthinal left | 15:13 |
| ← JSharpe left | 15:14 |
| ← ThomasLocke left | 15:14 |
| → robzilla joined | 15:14 |
| → jottr joined | 15:14 |
| → bliker joined | 15:14 |
| ← plasticl3 left | 15:14 |
| → St_Marx joined | 15:15 |
| ← TQzRdnMODr left | 15:15 |
| ← ezekielnoob6 left | 15:15 |
| → dangerousdave joined | 15:15 |
| ← LeMike left | 15:15 |
| → cjsarette joined | 15:16 |
| ← teran left | 15:16 |
| → Iniesta8 joined | 15:16 |
| ← cjsarette left | 15:17 |
| ← dangerousdave left | 15:17 |
| → hahuang65 joined | 15:17 |
| → Zariel joined | 15:18 |
| ← codeFiend left | 15:18 |
| → tyrannosaurus_be joined | 15:19 |
| → ErKa joined | 15:19 |
| ← tplaner left | 15:20 |
| → Pullphinger joined | 15:20 |
| → jxf joined | 15:20 |
| → ojacobson joined | 15:22 |
| ← King_Hual left | 15:23 |
| ← InFierno left | 15:23 |
| ← blackmesa left | 15:25 |
| ← CodePulsar left | 15:25 |
| ← BlooAlien left | 15:25 |
| → vanillajohn1 joined | 15:25 |
| ← ojacobson left | 15:25 |
| ← xificurC left | 15:25 |
| → __class__ joined | 15:25 |
| → boombatower joined | 15:25 |
| → johnkevi_ joined | 15:25 |
| → hahuang61 joined | 15:25 |
| → DolpheenDream joined | 15:25 |
| → Huevos joined | 15:25 |
| → knownasilya joined | 15:25 |
| → Bloo joined | 15:25 |
| ← lavong left | 15:25 |
| → Gooder``` joined | 15:25 |
| → King_Hual` joined | 15:25 |
| → ejnahc joined | 15:26 |
| → cjsarette joined | 15:26 |
| → fatalhalt_ joined | 15:26 |
| → weltall joined | 15:26 |
| ← plasticle left | 15:26 |
| ← fatalhalt left | 15:26 |
| ← MouseTheLuckyDog left | 15:26 |
| → stealthii joined | 15:26 |
| ← Gooder`` left | 15:26 |
| ← hahuang65 left | 15:27 |
| → MouseTheLuckyDog joined | 15:27 |
| ← johnkevinmbasco left | 15:27 |
| → plasticle joined | 15:27 |
| → Praise joined | 15:27 |
| → synfinatic joined | 15:27 |
| → cbreak joined | 15:27 |
| → ToothlessGear joined | 15:27 |
| → jaspertheghost joined | 15:27 |
| ← richwest left | 15:27 |
| → phantomcircuit joined | 15:27 |
| → SJS joined | 15:27 |
| → richwest joined | 15:28 |
| ← vanillajohn left | 15:29 |
| ← HelperW left | 15:29 |
| → regedit joined | 15:29 |
| → mike_af joined | 15:29 |
| ← adac left | 15:29 |
| → fenerlitk joined | 15:30 |
| ← _FvG left | 15:30 |
| gitinfo set mode: +v | 15:30 |
| ← DoniRS left | 15:30 |
|
jaspertheghost
| Hello i am fairly new to GIT and tasked with setting up a dev environment and i need a staging (which is a sperate set of servers) and production servers staging & dev thing is i don't understand how i can use 1 repository for each seems like if i am adding multiple remotes for each thing staging and production it'll be 2 separate repo's can someone add some clarity as to how i should set things up so i can from my local laptop push to our | 15:31 |
|
| staging env and then if all is well there push from staging into production (or if i wan tho be able to push from local laptop directly to production ) | 15:31 |
| → ojacobson joined | 15:31 |
| → jonanin joined | 15:31 |
| → axl_ joined | 15:31 |
|
| muep wonders if jaspertheghost should read about !deploy | 15:31 |
| ← kermit left | 15:31 |
|
muep
| hm, !deploy | 15:32 |
|
jaspertheghost
| !deploy | 15:32 |
|
gitinfo
| Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html | 15:32 |
|
| Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html | 15:32 |
| → ferreum joined | 15:32 |
| → FortySix2 joined | 15:32 |
| → kermit joined | 15:32 |
|
YoungFrog
| Perhaps gitinfo could use a timer for that kind of thing ? | 15:32 |
|
klrr_
| if a file with "noop" shows up when you do git rebase -i , have you mesesd up your branch? | 15:32 |
| ← _tpavel left | 15:33 |
| → Celm joined | 15:33 |
|
YoungFrog
| noop means the commit you're rebasing introduces no more changes than those that were already introduced by the commits you're rabasing on. I hope that makes sense. | 15:33 |
| ← mizu_no_oto left | 15:34 |
|
kadoban
| It could be a sign that you're doing something wrong, but I don't think it necessarily is, really depends. | 15:34 |
| ← eletuchy left | 15:34 |
| ← Fullma left | 15:35 |
|
klrr_
| well, first it showed up correctly but i forgot to do the "top most" commit to pick instead of squash, so i think i broke it | 15:35 |
|
| anyway to fix this? | 15:35 |
|
| i have the previous file could i just cp it into .git/rebase or will that just fuck up things further? | 15:35 |
| ← mewm left | 15:36 |
| → chrisshattuck joined | 15:36 |
|
kadoban
| klrr_: look into the reflog is probably the easiest way. it'll show you previous versions of branches and such, you should be able to undo your mistake there and then do it again right | 15:36 |
| ← astrofog left | 15:36 |
| ← FortySix2 left | 15:36 |
| ← latenite left | 15:38 |
| ← bliker left | 15:38 |
| → FortySix2 joined | 15:38 |
| ← DolphinDream left | 15:39 |
|
klrr_
| kadoban: ive not pushed anything yet so i can re-clone and start over too, right? | 15:39 |
| → DolphinDream joined | 15:39 |
| → recycle joined | 15:39 |
|
kadoban
| klrr_: If you just cloned then made a mistake, you mean? Yeah should be able to. Reflog is super cool though, you should learn in for the future. | 15:40 |
|
jaspertheghost
| ok so if i am understanding all these tutorials right … its ok to have multi remote's one that links to the staging server and repo and another url that links to the production server and repo each which have post-receive calls backs? | 15:40 |
|
kadoban
| jaspertheghost: If you're reading them right, you should take from them that using git to deploy to staging/production/anywhere is probably not a good idea. | 15:41 |
| ← recycle left | 15:41 |
|
kadoban
| klrr_: examples: git log master@{1} will show you master before the last change to it. git log master@{"20 minutes ago"} will show you master as it was 20 minutes ago | 15:41 |
|
jaspertheghost
| what is a good idea then … i have no one to fall back on for advice and i see different tuts advocating this idea and that idea... | 15:41 |
|
klrr_
| thanks | 15:41 |
| ← koell left | 15:41 |
|
kadoban
| jaspertheghost: Other tools or procedures. I just use rsync for deploying myself, but it can be as simple as pulling from a specific remote/branch on the staging server when you get an email from the devs saying "hey, it's ready for staging", etc. | 15:42 |
|
arlekin
| i checked that i can ff my master to branch, but when i try to checkout to my master it says i have untracked changes in working tree... but when i do git status i see nothing... wtf? | 15:42 |
| → tvw joined | 15:42 |
| → TQzRdnMODr joined | 15:43 |
| → lungaro joined | 15:43 |
| → nb_bez_ joined | 15:43 |
| ← nnyk_ left | 15:43 |
| gitinfo set mode: +v | 15:43 |
| → joelm joined | 15:43 |
|
TQzRdnMODr
| Anyone know howto get a git rebase after you have a git-subtree add to work? (Related SO unanswered question: http://stackoverflow.com/questions/12858199/how-to-rebase-after-git-subtree-add/23094756) | 15:44 |
| ← jonanin left | 15:44 |
| ← Gamecubic left | 15:44 |
|
kadoban
| jaspertheghost: in short, git isn't a deployment tool. You can hack it into one if you want, I guess, but why? There's already other tools out there for that. | 15:44 |
|
arlekin
| and btw if i want to make some cleaning and remove branches and ff stuff a bit do i need to merge it with remote repo then ? | 15:44 |
| → rudisimo joined | 15:44 |
| ← klrr_ left | 15:44 |
| ← tranzfuse left | 15:44 |
| ← ciampix left | 15:44 |
| → tranzfuse joined | 15:45 |
|
jaspertheghost
| so perhaps i should just have 1 repo… production branch and staging branch and have a URL on the staging machine that rsyncs the production branch to the live server? | 15:45 |
| → yhager joined | 15:45 |
| ← Celm left | 15:45 |
|
kadoban
| jaspertheghost: That sounds like a plan, sure. | 15:46 |
| → Celm joined | 15:47 |
| ← ghostlines left | 15:47 |
| ← arlekin left | 15:49 |
| → bwreilly joined | 15:49 |
| → adsc joined | 15:49 |
| → dreiss joined | 15:49 |
|
adsc
| is it normal that git shortlog -sn take ages? | 15:49 |
| → Fullma joined | 15:49 |
| ← vtunka left | 15:50 |
| → Throdne joined | 15:50 |
| ← Celm left | 15:51 |
|
kadoban
| It doesn't seem like it should, but I've used it only rarely...always seemed quick to me. Maybe there are bad cases? | 15:51 |
| ← yhager left | 15:51 |
| → bakflash joined | 15:52 |
| → nnyk_ joined | 15:52 |
| ← Fullma left | 15:52 |
| ← mishok13 left | 15:52 |
| ← oodavid left | 15:53 |
| ← plasticle left | 15:53 |
| → Fullma joined | 15:53 |
|
adsc
| it's been running for 10 minutes without return now | 15:53 |
|
| an it's a pretty small repo | 15:53 |
| → LostDatagram joined | 15:53 |
| ← LostDatagram left | 15:53 |
|
kadoban
| Hmm. Is the repo like ridiculously huge or something? | 15:53 |
|
| Weird...that doesn't sound right. | 15:53 |
| → LostDatagram joined | 15:54 |
|
adsc
| it doesn't even have 100 commits | 15:54 |
|
kadoban
| Is it actually doing anything? I can't imagine it'd take that long... | 15:55 |
|
adsc
| i don't know...the command doesn't return | 15:55 |
| → supermat joined | 15:55 |
| → liuzhoou joined | 15:55 |
| ← snql left | 15:55 |
| ← pikaren left | 15:56 |
| ← freestyl3r left | 15:57 |
|
osse
| adsc: abort it, then run 'GIT_TRACE=1 git shortlog -sn' | 15:57 |
| → sdwrage joined | 15:58 |
| ← lsiv568 left | 15:58 |
| → jargon joined | 15:58 |
| → bambams_ joined | 15:58 |
|
Vampire0
| igalic, well, do you also get all your food pre-chewed? git log --graph --format="%h <%an> - %s" | awk '{ i = 1; while ($i !~ /[[:xdigit:]]+/ && i <= NF) i++; if (i < NF) "git svn find-rev " $i | getli ne $i; print }' | 15:58 |
| → leeN joined | 15:59 |
| → xcesariox joined | 15:59 |
| ← xcesariox left | 15:59 |
| ← Jeremy_Nodasys left | 15:59 |
|
Vampire0
| Only drawback, it looses some few spaces between the graph and the has, but it should be acceptable I think | 15:59 |
| → plasticle joined | 15:59 |
| → xcesariox joined | 15:59 |
| → zzing joined | 16:00 |
| → bartman`` joined | 16:00 |
| ← _Harm_B_ left | 16:00 |
|
adsc
| osse: this is the only output: trace: built-in: git 'shortlog' '-sn' | 16:00 |
| ← konadr left | 16:00 |
|
adsc
| then it hangs | 16:00 |
| → freestyl3r joined | 16:01 |
| → vtunka joined | 16:01 |
| ← jnavila_ left | 16:01 |
| ← chrisshattuck left | 16:02 |
|
osse
| weird, I don't have an explanation | 16:02 |
| → chrisshattuck joined | 16:02 |
| ← zapotek6 left | 16:03 |
|
igalic
| Vampire0: I was just making a remark on the nature of awk's $1, I'm sorry, I didn't mean for you to do my job._. | 16:03 |
| ← Throdne left | 16:03 |
| → Peekay joined | 16:04 |
| → moritzschaefer joined | 16:04 |
| → moritzs joined | 16:04 |
|
adsc
| osse: np, thanks for the suggestion anyway | 16:04 |
| → Ankhers joined | 16:05 |
| ← alorence left | 16:05 |
| → eletuchy joined | 16:05 |
| ← adsc left | 16:05 |
| → MTecknology joined | 16:06 |
| → lsiv568 joined | 16:06 |
| → jhulten joined | 16:06 |
| → Celm joined | 16:07 |
| ← MTecknology left | 16:07 |
| ← jceb left | 16:08 |
| → mike_af_ joined | 16:08 |
| ← Fullma left | 16:08 |
| ← mike_af left | 16:09 |
| → Asandari joined | 16:09 |
| → Sieve joined | 16:10 |
| ← eletuchy left | 16:10 |
| gitinfo set mode: +v | 16:10 |
|
Sieve
| Hello | 16:10 |
| → snql joined | 16:10 |
| → ciampix joined | 16:11 |
| ← martinklepsch left | 16:11 |
| ← johnny2600 left | 16:12 |
| → endiruna joined | 16:12 |
| → beyondcreed joined | 16:12 |
| ← thomas_b left | 16:12 |
|
Sieve
| Alright, I'm having a terribly difficult time with Git | 16:12 |
| ← toomanysecrets left | 16:12 |
|
PerlJam
| Sieve: what's the problem? | 16:13 |
|
Vampire0
| igalic, sure, as you see it is pretty easy to dynamically determine the "1" replacement :-) | 16:13 |
| ← intellix left | 16:13 |
| → Gizburdt joined | 16:13 |
|
Sieve
| My local copy of a repo was a few commits behind, I hit commit, and it failed to push and told me to merge | 16:13 |
| → DolpheenDream_ joined | 16:13 |
|
Sieve
| So I hit merge, and now it fails because it needs to push the commit | 16:13 |
| ← EminenceHC left | 16:14 |
|
Sieve
| I'm stuck in a loop of nothing going anywhere and everything I find about makes it seem like it's supposed to be ever so simple | 16:14 |
|
canton7
| "and now it fails because it needs to push the commit" what? | 16:15 |
|
PerlJam
| Sieve: how did you merge exaclty? | 16:15 |
|
Sieve
| Well I was in Eclipse using the right-click context menu and hit "merge" | 16:15 |
|
| In Eclipse it gives the error "Failed to merge", with both TortiseGit and command line it gives me the other error | 16:16 |
|
| I'll pull it up again | 16:16 |
| ← lsiv568 left | 16:16 |
| → recycle joined | 16:16 |
| ← aspiers left | 16:16 |
|
PerlJam
| Sieve: sorry, I know nothing of eclipse, but normally if you're local repo is behind, you need to pull ( which is fetch+merge), and then you can push (Because your local repo and your remote repo will then be in sync) | 16:16 |
|
Sieve
| "fatal: You have not concluded your merge (MERGE_HEAD exists). | 16:17 |
|
| Please, commit your changes before you can merge." | 16:17 |
| → Fullma joined | 16:17 |
|
Sieve
| On the merge | 16:17 |
| → antons joined | 16:17 |
|
PerlJam
| so, was there a conflict on the merge? | 16:17 |
| → SunilJoshi joined | 16:17 |
| ← vanillajohn1 left | 16:17 |
| ← chrisshattuck left | 16:17 |
| → LBV_User joined | 16:18 |
| → thomas_b joined | 16:18 |
| gitinfo set mode: +v | 16:18 |
| → chrisshattuck joined | 16:18 |
|
Sieve
| Well, it said there was a conflict but there actually wasn't one so I marked it as resolved after checking it out | 16:18 |
| ← ArSn left | 16:18 |
|
canton7
| and did you finish off the merge? | 16:19 |
|
Sieve
| That's the error I get when I try to | 16:19 |
|
osse
| Sieve: commit is how you conclude a merge | 16:19 |
| ← mellernoia left | 16:19 |
| → ghoti joined | 16:20 |
| → lucastt joined | 16:20 |
| ← lucastt left | 16:21 |
|
Sieve
| If I commit I get the error message telling me to merge | 16:21 |
| → imachuchu joined | 16:21 |
| → lucastt joined | 16:21 |
|
PerlJam
| Sieve: you're doing this through eclipse or CLI? | 16:21 |
| → roelmonnens joined | 16:21 |
| ← lucastt left | 16:22 |
|
Sieve
| Well, both and TortiseGit | 16:22 |
| → lucastt joined | 16:22 |
|
Sieve
| Eclipse's error messages are pretty useless | 16:22 |
| ← W0rmDr1nk left | 16:22 |
|
osse
| Sieve: you probably need to git add then git commit | 16:22 |
|
| to conclude the merge | 16:22 |
| ← snql left | 16:23 |
| ← lb1a left | 16:24 |
| ← roelmonnens left | 16:26 |
| → Relsak joined | 16:26 |
| ← vtunka left | 16:26 |
| ← Gavrisimo left | 16:27 |
| ← antons left | 16:27 |
| ← Balliad left | 16:28 |
| ← MagePsycho left | 16:28 |
| → [1]nick joined | 16:28 |
| → mewm joined | 16:29 |
| ← axl_ left | 16:29 |
| → neurodrone_ joined | 16:29 |
| → hellopat joined | 16:30 |
| → NimeshNeema joined | 16:30 |
| → axl_ joined | 16:30 |
|
Sieve
| Dammit, how was I supposed to finish the commit message in the CLI? | 16:30 |
| ← soc42 left | 16:31 |
| → razrunelord joined | 16:31 |
| ← johnkevi_ left | 16:31 |
|
kadoban
| Sieve: Save and quit in the editor that comes up...if it's not an editor that you know how to use, switch it to one you do. | 16:32 |
|
Sieve
| It's the save and quit command I can't remember | 16:32 |
|
osse
| which editor is it? | 16:32 |
|
Sieve
| VIM | 16:32 |
|
tang^
| probably vi, so ESC :wq | 16:32 |
|
osse
| :wq | 16:32 |
|
Sieve
| Thanks | 16:33 |
| → toomanysecrets joined | 16:33 |
| → Gamecubic joined | 16:33 |
| ← phretor left | 16:34 |
| ← mikecmpbll left | 16:34 |
| ← hellopat left | 16:34 |
| → yhager joined | 16:35 |
| ← razrunelord left | 16:36 |
| ← Peekay left | 16:36 |
| → Shusshu joined | 16:36 |
| ← axl_ left | 16:36 |
| → mattstratton joined | 16:37 |
|
sdwrage
| Sieve, you can also set the commit message via the -m flag. | 16:37 |
| ← Shusshu left | 16:37 |
| ← DolpheenDream_ left | 16:37 |
|
sdwrage
| git commit -m "This is a simple commit that does something" | 16:37 |
| → Peekay joined | 16:38 |
|
Sieve
| Dammit | 16:38 |
|
| It just commited a bunch of files that didn't need to be commited and went back to giving me the exact same error message | 16:38 |
| ← recycle left | 16:38 |
| ← welly left | 16:39 |
| ← regedit left | 16:39 |
| ← canton7-mac left | 16:39 |
|
sdwrage
| Sieve, How did you stage your files? | 16:40 |
| ← m0ltar left | 16:40 |
|
Sieve
| I am not really sure what you mean by that | 16:40 |
| → vtunka joined | 16:40 |
| ← hebz0rl left | 16:41 |
| → axl_ joined | 16:41 |
| → sinkensabe joined | 16:41 |
| ← harobed_ left | 16:41 |
| → VictorCL joined | 16:41 |
| ← armyriad left | 16:41 |
| → armyriad joined | 16:42 |
| → sgen joined | 16:43 |
| ← nafg left | 16:43 |
| ← axl_ left | 16:43 |
|
Sieve
| Oh wait I actually got it | 16:43 |
|
| I just had to rebase | 16:44 |
|
| Apparantly? | 16:44 |
| → axl_ joined | 16:44 |
| → TheArtist joined | 16:45 |
| → kcj joined | 16:46 |
|
TheArtist
| Hello everyone! I am working in 2 different computers (one in the afternoon and one in the evening, in different locations) and i would like to store in the central repo my working dir | 16:46 |
|
| is it possible? | 16:46 |
| → smuddles joined | 16:47 |
| ← [1]nick left | 16:47 |
|
kadoban
| Why? Why not just commit more often so you don't care so much what's in the working dir? | 16:47 |
|
TheArtist
| because i have work in progress that i believe that is not ready to be put in history | 16:48 |
| → [2]nick joined | 16:48 |
| ← nikita left | 16:48 |
|
lov
| TheArtist: push to a remote branch called "Work in progress" or something | 16:48 |
|
| you can also go back and change your history | 16:48 |
|
| Tell TheArtist abou t!sausage | 16:48 |
|
kadoban
| TheArtist: Put it in branch(es) that you can clean up later before you put it in the branches you care about. | 16:48 |
|
lov
| dshiauhdsa | 16:48 |
|
| !sausage | 16:49 |
|
gitinfo
| [!sausage_making] Some developers like to "hide the sausage making", transforming their commits before presenting them to the outside world. See http://sethrobertson.github.com/GitBestPractices/#sausage and !perfect | 16:49 |
| ← ciampix left | 16:49 |
| ← tranzfuse left | 16:49 |
| ← vurma left | 16:50 |
|
TheArtist
| ok i like the idea of the WIP branch thnx! | 16:50 |
|
osse
| Sieve: to stage a file is to run 'git add' on it | 16:51 |
|
Sieve
| Oh ok | 16:51 |
|
| I just did "git add", which I'm sure wasn't correct | 16:51 |
|
| In GitBash, that is | 16:52 |
|
osse
| running git add more than once is harmless | 16:52 |
|
| but you usually give a path. 'git add foo.txt' or 'git add some/dir' | 16:52 |
| ← VictorCL left | 16:52 |
|
Sieve
| Alright | 16:52 |
|
lov
| note; you're only staging the file as it was at the time that you staged it. | 16:53 |
|
| If you subsequently change the file, you'll see it as both staged and changed! | 16:53 |
| ← mewm left | 16:53 |
|
lov
| that's because you have new, unstaged changes. | 16:53 |
| → blackmesa joined | 16:53 |
| ← TheArtist left | 16:53 |
|
lov
| (fun fact: you can stage only parts of your file; use git add -i iirc) | 16:53 |
|
Sieve
| Really it was annoying because it commited every assest and every generated file | 16:53 |
|
lov
| (git add -a?) | 16:53 |
|
smuddles
| Hello, i searched the web but its hard to become an answer on this simple question: is it possible to serve the location, or whatever path/string in a variable, that i can reuse on my next git session? Im new to git and got sick of changing directories all of the time manually | 16:53 |
|
lov
| yeah, you want a .gitignore file too. | 16:53 |
|
Sieve
| Damn, so is that like staging by line? | 16:53 |
|
smuddles
| *save location | 16:54 |
|
lov
| Sieve: yes. It's really neat when you're doing a bunch of work, and then you make some simple change (bugfix, etc) that stands by itself. | 16:54 |
|
| So, just stage those three lines, commit, continue working. | 16:54 |
| → FreezingCold joined | 16:54 |
|
lov
| see also: splitting a commit into two commits, etc. | 16:54 |
|
| git is the bees knees :> | 16:54 |
| → aspiers joined | 16:55 |
|
Sieve
| I do have a .gitignore, but I can't figure out how to make it ignore certain files, and it doesn't seem to track changes to .png's at all | 16:55 |
|
kadoban
| smuddles: You can set aliases that can use shell commands, maybe that would help you? Not entirely clear on what you're trying to do. Maybe you're just looking for shell environment? | 16:55 |
|
lov
| Sieve: .gitignore won't do anything for files that are already added. | 16:56 |
|
Sieve
| And I have to re-build the damn thing every other day because my projectmates keep deleting it | 16:56 |
| ← mattstratton left | 16:56 |
| ← axl_ left | 16:57 |
| → maveneagle joined | 16:57 |
| ← anglisc left | 16:57 |
| ← vijay13 left | 16:58 |
| ← sinkensabe left | 16:58 |
|
smuddles
| kadoban: thanks for your answer! Every shortcut is welcome to me - i looked into aliases but it seemed to work only for commands. So im able to store "cd /c/whatever" as an alias? | 16:58 |
| ← thomas_b left | 16:58 |
| → sinkensabe joined | 16:58 |
| → Sample joined | 16:58 |
|
Sieve
| I wonder if I can commit by line through Eclipse | 16:59 |
|
kadoban
| smuddles: Yeah, I guess. That's a command though, so store it as a command? You can just as easily make it a shell alias though | 16:59 |
|
Sieve
| What's the "index" anyhow? | 16:59 |
| ← jargon left | 16:59 |
| → zoso joined | 16:59 |
| ← thiago left | 16:59 |
| → Not_Whatever joined | 16:59 |
| ← hahuang61 left | 16:59 |
| ← nathancahill left | 16:59 |
|
kadoban
| Sieve: It's a view of the world as will be commited if you do 'git commit' | 17:00 |
| → VictorCL joined | 17:00 |
| ← moritzs left | 17:00 |
| ← moritzschaefer left | 17:00 |
|
Sieve
| Alright | 17:00 |
|
smuddles
| just did that - thanks for your help kadoban! | 17:00 |
|
kadoban
| 'welcome :) | 17:00 |
| → jottr_ joined | 17:01 |
| → Sample_ joined | 17:01 |
|
xender
| osse: I you're curious, I didn't manage to sed -i only text files, so going with grep -I by now. | 17:01 |
|
| git ls-files -z | GREP_COLORS='ms=41:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36' xargs -0 grep -IPnT --color=auto '( .*\t)|(\s+$)' | 17:01 |
| → kotopies joined | 17:01 |
| → martinklepsch joined | 17:01 |
| → akushner joined | 17:02 |
| → Kitty- joined | 17:02 |
| → codeFiend joined | 17:03 |
| ← kermit left | 17:03 |
| ← sinkensabe left | 17:03 |
|
xender
| I think looking for empty lines at end of file would be tricky. | 17:03 |
|
Sieve
| Ok, I guess my next question would be "How can I use the index?" or something like that | 17:03 |
| ← jottr left | 17:04 |
| ← psoo left | 17:04 |
|
kadoban
| Sieve: 'git add' adds changes to the index. 'git reset' in some of its forms can change the index, few others. | 17:04 |
| → jonanin joined | 17:04 |
| ← dreiss left | 17:05 |
| → pheaver joined | 17:05 |
|
Sieve
| Ah perfect, that makes a lot of sense | 17:05 |
| → recycle joined | 17:05 |
| → eletuchy joined | 17:06 |
| ← e^0 left | 17:06 |
| ← akushner left | 17:06 |
| → axl_ joined | 17:07 |
| → vire joined | 17:08 |
| ← axl_ left | 17:09 |
| ← freimatz_ left | 17:10 |
| ← eletuchy left | 17:10 |
| ← Kayra_ left | 17:10 |
| → knigitz joined | 17:11 |
| → vanillajohn joined | 17:12 |
|
xender
| That feel when searching "git howto detach HEAD" returns all about attaching the HEAD back... | 17:13 |
|
_ikke_
| lol | 17:13 |
| → Oran joined | 17:13 |
|
_ikke_
| git checkout HEAD^{} | 17:13 |
| gitinfo set mode: +v | 17:13 |
| → DolpheenDream_ joined | 17:13 |
|
xender
| _ikke_: thx | 17:13 |
|
| lol | 17:13 |
|
| There's --detach option | 17:13 |
|
| So my zsh completion is outdated? | 17:14 |
| ← tango_ left | 17:14 |
| ← jamieshepherd left | 17:14 |
| ← joelmo left | 17:14 |
|
masak
| is there some limit to how you can name branches? or is it "any valid file name is a valid branch name" ? | 17:14 |
|
Oran
| hey guys, i configured the git server i hope and i was able to Clone it, as well as clone it from an IDE but now i can push to the server but they wont recive an update when some commitet stuff | 17:14 |
| → tango_ joined | 17:14 |
|
_ikke_
| xender: aparently, I don't have it either | 17:14 |
| → jeffasinger joined | 17:15 |
|
xender
| _ikke_: What to do about it? I don't even know whether it's builtin completion or something from zsh-completions-git | 17:15 |
|
_ikke_
| man git check-ref-format | 17:15 |
|
gitinfo
| the git-check-ref-format manpage is available at http://jk.gs/git-check-ref-format.html | 17:15 |
|
_ikke_
| masak: ^ | 17:15 |
|
xender
| Ok, going to #zsh with that | 17:15 |
|
_ikke_
| xender: Do you use plain zsh, or something with it? | 17:15 |
| → koell joined | 17:15 |
| → Skrypter joined | 17:16 |
| → JEEB joined | 17:16 |
| ← vanillajohn left | 17:16 |
|
| osse has personnaly made sure, with m0viefreak, that the zsh Git completion is perfect | 17:17 |
|
Oran
| hi osse | 17:17 |
|
osse
| well, in the end I think m0viefreak has done more than me. Much more. But whateer. | 17:17 |
| ← FortySix2 left | 17:19 |
| ← Ankhers left | 17:19 |
| → akushner joined | 17:20 |
| ← sdwrage left | 17:20 |
| ← Sieve left | 17:20 |
| ← blackmesa left | 17:21 |
| → FortySix2 joined | 17:21 |
| → Ankhers joined | 17:21 |
| ← koell left | 17:22 |
| → oonska joined | 17:22 |
| ← jeffasinger left | 17:22 |
| → amcsi_work_ joined | 17:22 |
|
masak
| _ikke_: thanks! | 17:23 |
| → looper joined | 17:24 |
| ← amcsi_work left | 17:24 |
| → vanillajohn joined | 17:25 |
| ← vanillajohn left | 17:26 |
| → dob1 joined | 17:26 |
| → kermit joined | 17:26 |
| → vurma joined | 17:27 |
| → sdwrage joined | 17:27 |
| → tyreld joined | 17:27 |
| → maqr joined | 17:28 |
|
masak
| heh, "the *peel onion* operation"? | 17:28 |
| ← kburdett left | 17:28 |
|
masak
| oh, because it's not just used to find parent commits. | 17:29 |
| → BuSerD joined | 17:29 |
| ← recycle left | 17:29 |
|
dob1
| hi, just to confirm, if on gitignore i have *.foo and i have a directory "bar" that (it and its subdirectories) contains only files with extension "foo" and i want to not ignore this directory i can just use !/bar/ not !/bar/** or !/bar/**/* right? | 17:29 |
| → kburdett joined | 17:29 |
| ← codeurge left | 17:29 |
| ← Gizburdt left | 17:29 |
| → eletuchy joined | 17:30 |
| ← armyriad left | 17:31 |
| ← codeFiend left | 17:31 |
| → j416_ joined | 17:31 |
| → armyriad joined | 17:32 |
| ← Zariel left | 17:32 |
| ← kotopies left | 17:32 |
| → franzip joined | 17:32 |
| → codeurge joined | 17:32 |
| → mikecmpbll joined | 17:33 |
|
_ikke_
| dob1: As git doesn't track directories, it won't work to not ignore that directory | 17:34 |
| ← DolpheenDream_ left | 17:34 |
| ← kcj left | 17:34 |
| → thomas_b joined | 17:35 |
|
xender
| ** syntax also works in git? | 17:35 |
| → Zariel joined | 17:35 |
|
_ikke_
| yes | 17:35 |
|
xender
| Oh, it's also in bash | 17:35 |
|
| I was thinking it's zsh-specific | 17:35 |
|
_ikke_
| git uses fnmatch | 17:36 |
| ← Zariel left | 17:36 |
|
xender
| Hmm, I've worked too short with bash as interactive shell, so I sometimes underestimate it | 17:36 |
|
| Ok, so it's POSIX? | 17:36 |
|
_ikke_
| I guess so | 17:36 |
| → mishok13 joined | 17:37 |
|
xender
| Ok. Sorry, I'm sometimes ignorant in standarization of stuff | 17:37 |
| → deuti joined | 17:37 |
| → ilyam joined | 17:39 |
| → erikruthven joined | 17:39 |
|
dob1
| _ikke_, it seems to work in my case | 17:39 |
| → rgr joined | 17:39 |
| → dreiss joined | 17:40 |
|
dob1
| _ikke_, if i delete *.foo bar directory is in git status, if i keep *.foo bar is excluded | 17:40 |
| → tswett joined | 17:41 |
| ← bezet left | 17:41 |
|
tswett
| Ahoy. | 17:42 |
| → thiago joined | 17:42 |
| → l1kw1d joined | 17:43 |
| ← [2]nick left | 17:44 |
|
tswett
| I've created a new file. I'd like to commit only part of the file. If I run "git add -p" on the file, I get "No changes." and nothing happens. | 17:45 |
| → aretecode joined | 17:45 |
| → Kayra joined | 17:46 |
| → chrissha_ joined | 17:46 |
| ← chrisshattuck left | 17:47 |
| → HD|Laptop joined | 17:47 |
|
HD|Laptop
| hi all | 17:47 |
| ← chrissha_ left | 17:47 |
| ← sdwrage left | 17:47 |
| → arand joined | 17:47 |
|
HD|Laptop
| I have a git repo, and inside a directory there's another git repo (no submodule!) | 17:47 |
| → vanillajohn joined | 17:47 |
| → [2]nick joined | 17:48 |
| → chrisshattuck joined | 17:48 |
| ← pheaver left | 17:48 |
|
HD|Laptop
| or rather there are multiple sub repositories | 17:48 |
|
| however in the toplevel dir, in git status they appear as untracked files | 17:48 |
| → Zebroid joined | 17:48 |
| ← g0bl1n left | 17:48 |
| ← chrisshattuck left | 17:49 |
|
xender
| HD|Laptop: I'm not sure whether git has a sane way of managing repos-in-repo | 17:49 |
| ← toomanysecrets left | 17:49 |
| → chrisshattuck joined | 17:50 |
|
xender
| I don't think you wold want to track the repo-in-repo's .git directory | 17:50 |
| ← Kayra left | 17:50 |
| ← leeN left | 17:50 |
| ← noxd left | 17:51 |
| ← eletuchy left | 17:52 |
| → Noldorin joined | 17:52 |
| ← hoschi left | 17:53 |
|
aismail
| HD|Laptop: you need to whip up your own script that iterates through "subgits" | 17:53 |
|
| sort of like a git wrapper. | 17:53 |
| ← nkouevda left | 17:54 |
| ← endiruna left | 17:54 |
| → nkouevda joined | 17:55 |
|
tswett
| If I run "git push origin representative", will that always push my changes to a remote branch called "representative"? | 17:55 |
|
smuddles
| is it possible to create permanent aliases in git bash on windows? | 17:55 |
|
tswett
| As opposed to sometimes pushing to the remote master branch? | 17:55 |
| → leeN joined | 17:55 |
| → koell joined | 17:55 |
| → mdpatrick joined | 17:55 |
|
aismail
| tswett: correct. provided that you have that branch already setup upstream. | 17:55 |
|
tswett
| Well, the upstream is github, which doesn't currently have that branch set up. | 17:56 |
|
aismail
| in that case use --set-upstream flag in push | 17:56 |
|
tswett
| As in "git push --set-upstream origin representative", and that'll create the remote branch? | 17:57 |
| → lsiv568 joined | 17:57 |
|
aismail
| correct. | 17:57 |
|
tswett
| *nod* Cool. Thanks | 17:57 |
| → Gavrisimo joined | 17:58 |
| ← bu5hm4n left | 17:59 |
| → pheaver joined | 18:00 |
| ← smuddles left | 18:00 |
| → antons joined | 18:00 |
| → robbyoconnor joined | 18:01 |
| ← lsiv568 left | 18:02 |
| ← Spamoi left | 18:03 |
| ← Gavrisimo left | 18:03 |
| ← deuti left | 18:03 |
| ← bluesm left | 18:04 |
|
jaspertheghost
| ok so say i wanted to use rsync to deploy the production branch i would run the following commands …. git checkout production git pull production rsync /home/git/git_repo /var/www/production ….. ? | 18:04 |
| → deuti joined | 18:04 |
| → snql joined | 18:04 |
| → tswett_ joined | 18:05 |
|
thiago
| jaspertheghost: the git commands look right. The rsync command is up to you. | 18:05 |
|
| jaspertheghost: note: that's not a script. You're running it manually, right? | 18:05 |
| → MadLamb joined | 18:05 |
|
jaspertheghost
| well I'm going to make it into a script … i just wanna make sure the commands i was using/logic was correct | 18:05 |
| → reaverb joined | 18:06 |
|
thiago
| stop after "pull" | 18:06 |
|
MadLamb
| i did a merge from master in my branch, and tried to push to origin, when i try to merge again, it says its already up to date, but the push is being rejected | 18:06 |
|
thiago
| do not add the rsync command to the same script | 18:06 |
|
aismail
| jaspertheghost: eventually you might want to nuke the .git dir from /var/www/production, it would be useless for you, no ? | 18:06 |
| ← FortySix2 left | 18:06 |
|
thiago
| MadLamb: it's complaining about different branches. The push is rejected because you don't have everything from the remote branch. Even if you've merged from the local. | 18:07 |
|
jaspertheghost
| i was going to use --bare repo with a post-recieve hook that would copy the file to the correct place.. | 18:07 |
|
thiago
| jaspertheghost: git pull is an interactive command | 18:07 |
| → FortySix2 joined | 18:07 |
| → fatalhalt joined | 18:07 |
|
MadLamb
| thiago, how should i fix that? git fetch/ | 18:07 |
|
thiago
| jaspertheghost: you must have a human attending it, because it might fail | 18:07 |
|
| MadLamb: pull from the upstream | 18:07 |
| ← fatalhalt_ left | 18:08 |
| ← robzilla left | 18:08 |
| → Gizburdt joined | 18:08 |
| → mattstratton joined | 18:08 |
| ← tswett left | 18:09 |
|
MadLamb
| thiago, git fetch origin -> git fetch origin -> Already up-to-date. | 18:09 |
|
| thiago, git merge master* | 18:09 |
|
HD|Laptop
| aismail: ok thanks | 18:09 |
|
thiago
| MadLamb: are you pushing to master? | 18:09 |
| → robzilla joined | 18:09 |
|
MadLamb
| thiago, i'm trying to push both master and a branch | 18:09 |
|
thiago
| MadLamb: you need to do that for both | 18:09 |
|
MadLamb
| thiago, that what? | 18:10 |
| → toomanysecrets joined | 18:10 |
|
thiago
| MadLamb: merge the remote branch | 18:10 |
|
MadLamb
| thiago, i merged the master into the branch, and tried to push, now its rejecting the branch | 18:10 |
| ← Gizburdt left | 18:10 |
| → Anders_J joined | 18:11 |
|
thiago
| MadLamb: merge the branch's upstream into the branch too | 18:11 |
|
| MadLamb: or push only one branch | 18:11 |
|
jaspertheghost
| GIT_WORK_TREE=/var/www/www.website.com git checkout -f if i have that in hooks/post-recieve when i push to that repo … will it copy over the .git files too to /var/www or will i be able to do just rsync after that push to that repo | 18:11 |
|
| ? | 18:11 |
|
thiago
| jaspertheghost: you don't need to rsync if you're doing that checkout -f | 18:12 |
| → mewm joined | 18:12 |
|
MadLamb
| thiago, it worked, thanks | 18:12 |
|
jaspertheghost
| i do if its to a remote location ... | 18:12 |
|
thiago
| jaspertheghost: ah, right | 18:12 |
|
| jaspertheghost: yes, rsync from there to a remote location | 18:12 |
| → Ariadeno joined | 18:13 |
|
jaspertheghost
| and i can just put that in side the post-recieve … or i can make a php script that i can that does it manually that way there is no accidents? | 18:13 |
|
thiago
| jaspertheghost: you choose | 18:13 |
|
jaspertheghost
| i don't understand how i can make a post-recieve though that will take into a count diff branch production vs staging and go to a different folder for each... | 18:13 |
| → Gizburdt joined | 18:14 |
| ← chrisshattuck left | 18:14 |
| → babilen joined | 18:14 |
| → teran joined | 18:15 |
|
jaspertheghost
| thiago do you have any ideas for how to do that? | 18:15 |
|
thiago
| jaspertheghost: the script is given the branch name | 18:16 |
| ← robbyoconnor left | 18:17 |
| ← ojacobson left | 18:17 |
| ← babilen left | 18:17 |
| → CKyle joined | 18:17 |
|
jaspertheghost
| any docs u can send me on that | 18:17 |
|
| idk the variable name or anything | 18:18 |
| → lsiv568 joined | 18:18 |
| → hellopat joined | 18:18 |
| → babilen joined | 18:18 |
| → ojacobson joined | 18:18 |
|
thiago
| jaspertheghost: the docs are the sample script that you got | 18:18 |
|
| jaspertheghost: and man githooks | 18:18 |
|
gitinfo
| jaspertheghost: the githooks manpage is available at http://jk.gs/githooks.html | 18:18 |
| → distilledchaos joined | 18:19 |
| → aard_ joined | 18:19 |
| ← teran left | 18:19 |
|
distilledchaos
| Is there any way to use diff-index with --quiet without implying --exit-code? | 18:19 |
|
grawity
| wouldn't it be a bit...useless then? | 18:20 |
|
jaspertheghost
| $ref is the variable? | 18:20 |
|
distilledchaos
| hmmm maybe i don't understand --quiet then | 18:20 |
|
| i want to augment my existing bash prompt to have a little * next to the branch name | 18:20 |
|
| but if the cwd isn't in a git repo the error makes the * appear | 18:21 |
|
| because exit codes | 18:21 |
|
grawity
| so check if you're in a git repo first | 18:21 |
|
distilledchaos
| yeah... | 18:21 |
|
grawity
| e.g. don't even try diff-index if the branch name is empty | 18:21 |
| → ValicekB joined | 18:21 |
| → eletuchy joined | 18:21 |
| ← vurma left | 18:21 |
|
distilledchaos
| ha good point | 18:21 |
| → godgodgodgo joined | 18:21 |
|
grawity
| but aside that, you _need_ the exit code for this purpose | 18:21 |
|
thiago
| distilledchaos: git rev-parse --show-prefix | 18:22 |
|
grawity
| "That is, it exits 1 if there were differences and 0 means no differences." | 18:22 |
| → chiromante joined | 18:22 |
| ← hellopat left | 18:22 |
| ← qwyeth left | 18:22 |
| → robbyoconnor joined | 18:22 |
| ← rue left | 18:22 |
| ← King_Hual` left | 18:23 |
| → King_Hual joined | 18:24 |
| → LucasKA joined | 18:24 |
| → axl_ joined | 18:24 |
|
distilledchaos
| @grawity wouldn't not having --exit-code mean that 0 is no differences and 1 is differences? | 18:24 |
|
grawity
| no, it wouldn't | 18:25 |
|
distilledchaos
| @thiago sorry, what does that do? | 18:25 |
|
grawity
| because it's --exit-code that enables that behavior | 18:25 |
|
distilledchaos
| ohhh | 18:25 |
|
| :/ | 18:25 |
| ← eletuchy left | 18:25 |
| ← King_Hual left | 18:26 |
| → jwest joined | 18:26 |
| → King_Hual joined | 18:26 |
| → calamari joined | 18:26 |
| ← martinklepsch left | 18:26 |
|
calamari
| is there a way to stop git from deleting files, even if it really wants to? I am so tired of recreating my data files because I switch a branch and then git deletes them on me. I would like to overrule and say never delete my stuff | 18:27 |
|
grawity
| nope, there isn't | 18:27 |
| → martinklepsch joined | 18:28 |
|
mmattice
| calamari: stop tracking the data files? | 18:28 |
|
calamari
| so I would need to modify the git code.. okay thanks | 18:28 |
| ← robbyoconnor left | 18:28 |
|
calamari
| I've tried all sorts of band aids and stuff | 18:28 |
| → vijay13 joined | 18:28 |
| ← axl_ left | 18:28 |
| ← deuti left | 18:28 |
|
calamari
| at this point I don't really care why git wants to delete I just want it to stop. so I guess I will just modify git to prevent it from deleting | 18:29 |
|
grawity
| perhaps not keeping data files in the same repository as code would be a better band aid | 18:29 |
|
calamari
| perhaps, but that's not under my control | 18:30 |
| ← mewm left | 18:30 |
| ← nb_bez_ left | 18:31 |
|
buu
| When does git delete a file even if you switch branches? | 18:32 |
|
| I mean, it only changes tracked files right? | 18:32 |
| ← tiblock left | 18:32 |
|
ohcibi
| if a file that is tracked in another branch but not in the current would be affected by the checkout, git warns you | 18:32 |
| ← VictorCL left | 18:33 |
| ← kermit left | 18:33 |
|
ohcibi
| or better: it doesnt let you checkout unless you get take care of that file (e.g. move it away temporarily) | 18:33 |
|
buu
| Right | 18:33 |
| → SHyx0rmZ joined | 18:33 |
|
buu
| But if you just have random file X that git doesn't know about, it continues to ignore it right? | 18:34 |
|
ohcibi
| of course | 18:34 |
| → upene joined | 18:35 |
|
buu
| This suggests several solutions | 18:36 |
|
jaspertheghost
| so in my post-recieve i wanna see what data is being sent to the script …. how come this return blank on git push origin master (it updated the file) echo "$1 $2 $3 $4" >> /tmp/test.txt | 18:36 |
| ← Tommy[D]_ left | 18:36 |
|
jaspertheghost
| or is git checkout above it stopping that from happening? | 18:36 |
|
distilledchaos
| @grawity: it looks like diff-index doesn't always actually look at the working tree? https://gist.github.com/skeggse/254e11f9ca361b139ddd | 18:37 |
|
jaspertheghost
| the latter being not the answer i just moved the echo up to the first line | 18:38 |
| → Lemony joined | 18:38 |
| → mizu_no_oto joined | 18:38 |
| ← kenneth left | 18:38 |
| ← Lemony left | 18:38 |
| → Lemony joined | 18:38 |
|
jaspertheghost
| how am i suppose to read what the post-receve echo's out if anything? | 18:39 |
| → sluther joined | 18:40 |
| → kermit joined | 18:40 |
| → qwyeth joined | 18:41 |
|
distilledchaos
| @grawity it looks like i need to do a git update-index so that it picks up changes? | 18:41 |
| ← Ariadeno left | 18:41 |
|
calamari
| I think it probably stems from if you ever delete a file in git, you can never have that file again | 18:41 |
|
| because if you put it back, git deletes it randomly | 18:42 |
|
Eugene
| What? No. | 18:42 |
| ← robzilla left | 18:42 |
| ← paulweb515 left | 18:42 |
|
calamari
| in practice, that is what I see | 18:42 |
|
Eugene
| jaspertheghost - !pitfalls | 18:42 |
|
gitinfo
| jaspertheghost: [!hook_pitfalls] Guidelines for writing hooks: 1. Consume all input (cat >/dev/null if you don't want it). 2. If you use any 'cd', also 'unset GIT_DIR'. 3. Don't git-pull in a hook (or any other script). | 18:42 |
|
Eugene
| calamari - then you need to practice more ;-) | 18:43 |
| ← xcesariox left | 18:43 |
|
Eugene
| jaspertheghost - try: echo ${@} >> /tmp/test.txt | 18:43 |
| → DrShoggoth joined | 18:43 |
| → alp82 joined | 18:43 |
|
jaspertheghost
| well i echoed out to the screen i can see it gets sent back to the git client | 18:43 |
| ← aard_ left | 18:43 |
| ← fenerlitk left | 18:43 |
|
jaspertheghost
| but echo a regular echo $1 and echo "$1" is returning blank data on git push origin master | 18:43 |
|
Eugene
| And/or make sure that test.txt is writable. ;-) | 18:44 |
| → m0ltar joined | 18:44 |
|
calamari
| Eugene: sometimes you get to the point where you've spent so much time trying to figure out where you are wrong, that you just don't care anymore and think.. you know what I did enough. fortunately since git is gpl, I can do something about it | 18:44 |
|
jaspertheghost
| from the looks of it nothing is being passed to the script... | 18:44 |
|
Eugene
| Unless that ref is actually being updated then yeah, it will be blank, because the script ain't runing. | 18:44 |
|
jaspertheghost
| its running cause echo "script is running" | 18:45 |
|
| i can see that text | 18:45 |
|
mmattice
| why does git-mergetool not operate on rebase merges? | 18:45 |
|
Eugene
| calamari - cool story, br0. No stop being a discouraging lil prick, or fuck off. | 18:45 |
|
| now8 | 18:45 |
| ← _Vi left | 18:45 |
| → shvelo joined | 18:45 |
|
calamari
| Eugene: fuck you | 18:45 |
| ChanServ set mode: +o | 18:45 |
| Eugene kicked calamari (No, fu!) | 18:45 |
| → InsanelyADHD joined | 18:45 |
|
distilledchaos
| Really? | 18:46 |
|
mmattice
| that last little jab wasn't necessary. | 18:46 |
| Eugene changed the topic to: Welcome to #git, the place for git help and op sass | Current stable version: 1.9.3 | Start here: http://jk.gs/git | Getting "cannot send to channel"? /msg gitinfo .voice | This is not a joke, it's a commit. | 18:46 |
|
jaspertheghost
| errr wtf | 18:46 |
| → Kayra joined | 18:46 |
| ← distilledchaos left | 18:46 |
| → nathancahill joined | 18:47 |
|
Eugene
| None of it is necessary, strictly speaking. | 18:47 |
| ← SHyx0rmZ left | 18:47 |
| → amcsi joined | 18:47 |
| ← kermit left | 18:47 |
| → sdwrage joined | 18:47 |
|
jaspertheghost
| The post-receive hook doesn't take any arguments. Quoth the manual (emphasis added): | 18:47 |
|
| well that explains it | 18:47 |
|
Eugene
| Well there you go! | 18:47 |
| ← koell left | 18:47 |
|
Eugene
| Maybe you're thinking pre-receive or update? | 18:48 |
|
| Also, see above re: consume all input | 18:48 |
| Eugene set mode: +v | 18:48 |
| Eugene set mode: -o | 18:48 |
|
| Eugene back to real work :-/ | 18:48 |
| → pbrobst joined | 18:48 |
| ← CKyle left | 18:48 |
|
jaspertheghost
| well where would be a good place to put an rsync script | 18:49 |
| → hahuang61 joined | 18:49 |
|
jaspertheghost
| GIT_WORK_TREE has to be in post-recieve right? | 18:49 |
| → SHyx0rmZ joined | 18:49 |
|
Eugene
| !deploy | 18:49 |
|
gitinfo
| Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html | 18:49 |
|
Eugene
| Read ^. I have made one for you already | 18:49 |
| → sinkensabe joined | 18:49 |
| ← martinklepsch left | 18:50 |
| → nathancahill_ joined | 18:50 |
|
jaspertheghost
| i already read all that | 18:51 |
| → DolpheenDream_ joined | 18:51 |
| ← Kayra left | 18:51 |
|
jaspertheghost
| read oldrev newrev refname | 18:51 |
|
| now that works!@ | 18:52 |
|
| I'm not sure whhy or what the read command does | 18:52 |
| ← pheaver left | 18:52 |
| ← sinkensabe left | 18:52 |
| → kermit joined | 18:52 |
| → CKyle joined | 18:52 |
|
Eugene
| Consumes a line from stdin | 18:52 |
| → phretor joined | 18:52 |
| ← nathancahill left | 18:52 |
| ← godgodgodgo left | 18:52 |
| → sinkensabe joined | 18:52 |
| nathancahill_ → nathancahill | 18:52 |
| → robzilla joined | 18:53 |
| → LeMike joined | 18:54 |
| ← NimeshNeema left | 18:54 |
|
jaspertheghost
| how come $1 and $2 didn't for then | 18:55 |
|
Oran
| hey guys, i want to make a new repo on my working machine as well as on the server. ( i already have 1 repo on them which works fine), whats the way to go ? ini non bare on workmachine, add , commit and than init a bare on the server and finnaly push to server from workmachine? | 18:55 |
|
jaspertheghost
| bash scripting was never a string point withme | 18:55 |
| ← Neozonz left | 18:56 |
| → k-joseph joined | 18:57 |
| ← bunbury left | 18:57 |
| ← sinkensabe left | 18:57 |
| ← SunilJoshi left | 18:58 |
|
Eugene
| $1 is an "argument" | 18:58 |
|
| stdin is a pipe | 18:58 |
|
jaspertheghost
| yea i just realized that | 18:58 |
| ← ErKa left | 18:59 |
| → shinnya joined | 18:59 |
| ← Skrypter left | 18:59 |
| → codeurge_ joined | 18:59 |
| → Gavrisimo joined | 18:59 |
|
markmarkmark
| Oran: yes | 18:59 |
| ← matteo left | 19:00 |
| → maahacka joined | 19:00 |
| → fenerlitk joined | 19:01 |
| → chrisshattuck joined | 19:01 |
| → pimpin joined | 19:01 |
| → Mitchbones joined | 19:01 |
| → teran joined | 19:02 |
| ← teran left | 19:02 |
| → blinkdesign joined | 19:02 |
| ← devoldmx left | 19:02 |
| → pantsman joined | 19:02 |
| ← nnyk_ left | 19:03 |
| → devoldmx joined | 19:03 |
|
Oran
| markmarkmark: thank you | 19:03 |
| → zapotek6 joined | 19:03 |
| ← codeurge left | 19:03 |
|
Oran
| btw it seem to work right now, i just need to add, commit , (pull) , push everytime which is kind of annoing | 19:04 |
| → koell joined | 19:04 |
| ← Gavrisimo left | 19:04 |
| ← a-l-e left | 19:04 |
| → ErKa joined | 19:04 |
| → sq-one joined | 19:05 |
| → Fandekasp joined | 19:05 |
| → pheaver joined | 19:05 |
| → eletuchy joined | 19:05 |
| → kesha joined | 19:05 |
| → mennea joined | 19:06 |
| → alexlindenlevy joined | 19:06 |
| ← c74d left | 19:07 |
|
jaspertheghost
| ok another stupid question how do i setup a non tracking brnach? | 19:07 |
| ← pimpin left | 19:07 |
|
PerlJam
| jaspertheghost: just make a new branch. | 19:08 |
| ← Sleepy63 left | 19:08 |
| ← Iniesta8 left | 19:08 |
| → axl_ joined | 19:08 |
|
jaspertheghost
| and when pulling new data into it won't track | 19:08 |
|
| and what does git checkout -u do again> | 19:09 |
| ← axl_ left | 19:09 |
|
jaspertheghost
| ? | 19:09 |
|
markmarkmark
| jaspertheghost: man git checkout | 19:09 |
|
gitinfo
| jaspertheghost: the git-checkout manpage is available at http://jk.gs/git-checkout.html | 19:09 |
| → basiclaser joined | 19:09 |
| ← eletuchy left | 19:09 |
|
jaspertheghost
| there is no -u option in the man page | 19:10 |
|
| though i know there is a -u option | 19:10 |
|
| err | 19:10 |
|
| sorry | 19:10 |
|
| my pad | 19:10 |
|
| i was looking for git push -u | 19:10 |
|
| bad* | 19:10 |
|
PerlJam
| jaspertheghost: when you run "git checkout branch", if your remote has a branch of the same name, git will automatically make a tracking branch. IF you want to have a same-named branch that doesn't track, use | 19:10 |
| codeurge_ → codeurge | 19:11 |
|
PerlJam
| "git branch branchname" | 19:11 |
|
jaspertheghost
| so if i have a non tracking brenach and wanna make it track whatever i can do | 19:11 |
|
| git push -u origin/branch_name localbranchname ?? | 19:11 |
| ← liuzhoou left | 19:11 |
| ← hyperair left | 19:13 |
| → c74d joined | 19:13 |
| → paulweb515 joined | 19:13 |
| → the_hugme1 joined | 19:13 |
| → teran joined | 19:14 |
| → axl_ joined | 19:14 |
| ← DolpheenDream_ left | 19:14 |
| ← chrisshattuck left | 19:14 |
| ← the_hugme left | 19:14 |
| ← zapotek6 left | 19:15 |
| ← sdwrage left | 19:15 |
|
jaspertheghost
| ok so everyone is in agreance here from earlier … better to have 1 repo … dev,staging, and production branches and use rsync to grab those branches for deployment? | 19:15 |
| ← erikruthven left | 19:16 |
| ← axl_ left | 19:16 |
| → Vinnie_win joined | 19:16 |
| → chrisshattuck joined | 19:16 |
| → nnyk_ joined | 19:16 |
| ← lolmaus left | 19:16 |
| → axl_ joined | 19:17 |
| ← the_hugme1 left | 19:18 |
| ← c74d left | 19:19 |
| → codeurge_ joined | 19:19 |
| ← mike_af_ left | 19:20 |
| ← codeurge left | 19:21 |
| codeurge_ → codeurge | 19:21 |
| → Sleepy63 joined | 19:22 |
| → zhuang_ joined | 19:22 |
| ← zhuang_ left | 19:22 |
| → c74d joined | 19:23 |
| → sdwrage joined | 19:23 |
| ← momomomomo left | 19:24 |
| ← robzilla left | 19:24 |
| ← chrisshattuck left | 19:25 |
| → Polymor__ joined | 19:26 |
| ← m0viefreak left | 19:26 |
| → m0viefreak joined | 19:27 |
|
jaspertheghost
| what are the pros and cons to having multi repositiroeis? | 19:27 |
| c74d → Guest34553 | 19:27 |
|
Vinnie_win
| Local or remote? | 19:28 |
|
jaspertheghost
| remote | 19:28 |
|
| well shit both actually now im curiius | 19:28 |
| ← jackneill left | 19:28 |
| ← Guest34553 left | 19:28 |
| → c74d joined | 19:29 |
|
Vinnie_win
| Usually you use one repository per project | 19:29 |
| ← rjc left | 19:29 |
|
jaspertheghost
| ok .. thats what i think I'm going to do then… its just i saw this one deployment thing and then were literally using 1 repo for staging 1 for production and 1 for testing | 19:30 |
| ← FreezingCold left | 19:30 |
|
Vinnie_win
| That sounds like a hassle | 19:30 |
|
plasticle
| you could just do branches | 19:30 |
|
jaspertheghost
| it was confused the hell out of it | 19:30 |
| → chrisshattuck joined | 19:30 |
| ← lsiv568 left | 19:31 |
|
jaspertheghost
| i guess if u have a lot of branches though… u can then have a cleaner staging/production environment no? | 19:31 |
| ← blinkdesign left | 19:31 |
| ← dob1 left | 19:31 |
| → Neozonz joined | 19:32 |
| ← Neozonz left | 19:32 |
| → Neozonz joined | 19:32 |
|
Vinnie_win
| I'm trying to resolve a merge conflict by just overwriting "ours" with "theirs". But after a checkout --theirs on the directory, the files still have the conflicts! When I checkout --theirs on conflicted files individually, they get updated correctly. How do I do a bulk checkout to "theirs?" See: http://codepad.org/NitCwqeb | 19:32 |
| → lsiv568 joined | 19:33 |
|
jaspertheghost
| -X | 19:33 |
| ← Ardenzi left | 19:33 |
|
Vinnie_win
| jaspertheghost: Unknown option "X" | 19:33 |
| → _Vi joined | 19:34 |
| → marthinal joined | 19:34 |
| → txomon|home joined | 19:34 |
| ← c74d left | 19:35 |
|
jaspertheghost
| hmm idk then | 19:35 |
|
| when u find out let me know | 19:35 |
|
| cause thats something I'm sure ill run into | 19:35 |
|
Vinnie_win
| Maybe grep -lr '<<<<<<<' . | xargs git checkout --theirs | 19:35 |
| ← vijay13 left | 19:35 |
|
jaspertheghost
| that might work | 19:36 |
| → frobrob joined | 19:36 |
| → blinkdesign joined | 19:36 |
| → tswett joined | 19:36 |
| ← tswett_ left | 19:36 |
| → Neozonz|Disc joined | 19:36 |
| ← Neozonz|Disc left | 19:36 |
| → Neozonz|Disc joined | 19:36 |
| ← Neozonz|Disc left | 19:37 |
|
jaspertheghost
| http://stackoverflow.com/questions/173919/git-merge-s-ours-what-about-theirs | 19:37 |
|
| looks promising | 19:37 |
| → Guest92822 joined | 19:37 |
| → HassanCehef joined | 19:37 |
|
jaspertheghost
| git merge -s recursive -X theirs B | 19:38 |
| ← blinkdesign left | 19:38 |
| ← RofricTheBearded left | 19:38 |
|
Vinnie_win
| I'm not merging a branch though, I"m going through conflict resolution | 19:38 |
| ← ValicekB left | 19:39 |
| ← Neozonz left | 19:39 |
| ← fenerlitk left | 19:39 |
| ← Joost` left | 19:40 |
| → Spamoi joined | 19:40 |
| → Iniesta8 joined | 19:41 |
| → Kitty-- joined | 19:42 |
| ← Hardcheese left | 19:42 |
|
m0viefreak
| Vinnie_win | 19:42 |
|
| git checkout --theirs works just fine for directories | 19:42 |
| ← Kitty-- left | 19:42 |
| → Nicholas_Rishel joined | 19:42 |
| → pen joined | 19:43 |
| → Joost` joined | 19:43 |
| ← Joost` left | 19:43 |
| → Joost` joined | 19:43 |
| ← nnyk_ left | 19:43 |
| ← kermit left | 19:44 |
| ← Kitty- left | 19:44 |
|
Vinnie_win
| m0viefreak: But when I do that, the files in question still have conflicts | 19:44 |
| → Kitty- joined | 19:44 |
|
m0viefreak
| not here | 19:44 |
|
jaspertheghost
| maybe u goat do a * | 19:44 |
|
| or a / | 19:44 |
|
| ? | 19:44 |
| ← chrisshattuck left | 19:44 |
| ← Kitty- left | 19:45 |
| → Kitty- joined | 19:45 |
|
jaspertheghost
| I'm new here so im just guessing | 19:45 |
|
Vinnie_win
| I tried everything. grep / xargs finally fixed it. | 19:45 |
|
Kitty-
| Hi all, any advice with the following? http://pastie.org/9176025 I have a feeling it is something really simple. | 19:45 |
| ← tswett left | 19:45 |
| → tswett joined | 19:45 |
| ← sluther left | 19:45 |
| → FreezingCold joined | 19:45 |
| → kenneth joined | 19:46 |
|
m0viefreak
| Vinnie_win: http://sprunge.us/RXIH | 19:46 |
|
| works just fine | 19:46 |
|
_ikke_
| Kitty-: does the dev user have a directory called gitrep.git inside it's home dir? | 19:46 |
|
| Kitty- checks | 19:46 |
| → Kayra joined | 19:46 |
|
Kitty-
| _ikke_: yes | 19:46 |
| ← davividal left | 19:46 |
| ← mikecmpbll left | 19:47 |
| ← LBV_User left | 19:47 |
|
_ikke_
| Kitty-: And does the dev user has access to that directory? | 19:48 |
| ← teran left | 19:48 |
|
Kitty-
| _ikke_: yes and if it matters, there is a hkay directory inside of gitrep. Inside of hkay I see there is .git | 19:48 |
| ← txomon|home left | 19:49 |
| → teran joined | 19:49 |
|
_ikke_
| Kitty-: Yes, that does matter | 19:49 |
| → nDuff joined | 19:49 |
| gitinfo set mode: +v | 19:49 |
|
rishabh_
| hi | 19:50 |
|
gitinfo
| rishabh_: 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. | 19:50 |
|
Kitty-
| _ikke_: gotcha, then perhaps I'm missing something. Any examples would be much appreciated. I have a feeling it's that the command I'm giving is not referencing the dir correctly | 19:50 |
| ← tyrannosaurus_be left | 19:50 |
| ← LucasKA left | 19:50 |
| → Skrypter joined | 19:50 |
|
_ikke_
| Kitty-: It looks like you created the gitrep.git directory yourself, and put the repo in it? | 19:50 |
| ← tvw left | 19:51 |
| ← Kayra left | 19:51 |
| ← maveneagle left | 19:52 |
|
Kitty-
| _ikke_: this is what I have http://pastie.org/9176052 | 19:53 |
| ← teran left | 19:53 |
|
rishabh_
| I was trying to fetch upstream, this error shows up naming each branch in upstream, | 19:53 |
|
| cant resolve references refs/remotes/upstream/branchname | 19:53 |
|
_ikke_
| Kitty-: I'm missing the directories these outputs are from. Where was the seconnd ls from? | 19:54 |
| ← kesha left | 19:54 |
| ← devoldmx left | 19:55 |
| → devoldmx joined | 19:55 |
| → ValicekB joined | 19:55 |
| ← Iniesta8 left | 19:55 |
| → oodavid joined | 19:57 |
| → HSaka joined | 19:58 |
| ← marthinal left | 19:58 |
| ← Kicer86 left | 19:59 |
|
Kitty-
| _ikke_: let me use pwd... http://pastie.org/9176073 | 19:59 |
| → Gavrisimo joined | 20:00 |
| → thumpba_ joined | 20:00 |
| ← FortySix2 left | 20:01 |
|
_ikke_
| Kitty-: Ok, it looks like you have two repositories inside there | 20:01 |
| → hebz0rl joined | 20:01 |
| ← Joost` left | 20:01 |
| → brent joined | 20:01 |
|
_ikke_
| Kitty-: Note that the first directory is called gitrep, not gitrep.git | 20:01 |
|
Kitty-
| k | 20:02 |
| → FortySix2 joined | 20:02 |
| ← FortySix2 left | 20:02 |
| ← mattstratton left | 20:02 |
| → Entomo joined | 20:02 |
| → quizme joined | 20:02 |
| → txomon|home joined | 20:02 |
|
rishabh_
| kitty: could you please help , I was trying to fetch upstream, this error shows up naming each branch in upstream, cant resolve references refs/remotes/upstream/branchname | 20:03 |
| → saorge_ joined | 20:03 |
| ← thumpba_ left | 20:03 |
|
rishabh_
| I tried git remote prune upstream , doesnt help | 20:03 |
| ← p8952 left | 20:03 |
|
Kitty-
| _ikke_: I guess the missing piece is that I don't know how to specify a 'path' with the sub-dirs. hmmm | 20:03 |
|
_ikke_
| Kitty-: What is that hkay directory? | 20:04 |
|
quizme
| when you say "git checkout branch1; git pull --rebase master" in English, is it proper to say "I rebased master onto branch1" or do you say "I rebased branch1 with master." ? | 20:04 |
| ← xsbeats left | 20:04 |
|
_ikke_
| quizme: You rebased branch1 onto master | 20:04 |
| ← Gavrisimo left | 20:04 |
| → bunbury joined | 20:04 |
| ← garvank left | 20:05 |
|
Kitty-
| _ikke_: I tried http://pastie.org/9176092 with no such luck | 20:05 |
|
| Kitty- glances up | 20:05 |
| ← axl_ left | 20:05 |
| → sinkensabe joined | 20:05 |
|
Kitty-
| _ikke_: the hkay dir is where I'd like the repo to live | 20:05 |
| → glebihan_ joined | 20:05 |
| ← pen left | 20:05 |
| ← Polymor__ left | 20:05 |
|
_ikke_
| And that gitrep directory itself then? Because that's a so called bare repository | 20:06 |
| → garvank joined | 20:06 |
|
Kitty-
| repo or um files I guess | 20:06 |
| → hellopat joined | 20:06 |
| → eletuchy joined | 20:06 |
|
Kitty-
| _ikke_: I"m still getting used to my git nouns. I mean had imagined the getrep is where the repo would be and the hkay would be my project | 20:06 |
| ← Nicholas_Rishel left | 20:07 |
|
Kitty-
| hkay would be where my project files lives although nothing is there right now since I haven't pushed anything | 20:07 |
| → axl_ joined | 20:07 |
|
_ikke_
| Kitty-: Those files shouldn't be like that on the server | 20:08 |
| → psoo_ joined | 20:08 |
| → Joost` joined | 20:08 |
| ← Gizburdt left | 20:08 |
| → Gizburdt joined | 20:08 |
|
Kitty-
| _ikke_: fair enough, when I specify just gitrep in the git push, I get a new error so I'm closer | 20:08 |
|
| yaay | 20:09 |
|
| \o/ | 20:09 |
|
_ikke_
| What is the new error? | 20:09 |
|
Kitty-
| I will fix the dirs once I can push but for now I will look at the new error | 20:09 |
| ← vtunka left | 20:09 |
|
Kitty-
| _ikke_: It doesn't like the path | 20:09 |
|
| /.config/git/config': Invalid argumentles (x86)\ICW\home\dev\ | 20:09 |
|
| fatal: Could not read from remote repository. | 20:09 |
| ← Joost` left | 20:09 |
|
Kitty-
| I'll take a look at that, thank you for your help | 20:09 |
|
_ikke_
| ok | 20:10 |
| ← Gizburdt left | 20:10 |
|
_ikke_
| succew | 20:10 |
| → Gizburdt joined | 20:10 |
|
_ikke_
| Success* | 20:10 |
|
Kitty-
| yea :) | 20:10 |
|
| go team! | 20:10 |
| → agrajag42 joined | 20:10 |
| ← jhulten left | 20:10 |
| → kermit joined | 20:10 |
| ← hellopat left | 20:11 |
| ← eletuchy left | 20:11 |
| ← nathancahill left | 20:11 |
| ← danecando left | 20:11 |
| → polyzen joined | 20:11 |
| → dangayle joined | 20:11 |
| → Gavrisimo joined | 20:12 |
| → ghostlin_ joined | 20:13 |
| → fragamus joined | 20:13 |
| → p8952 joined | 20:14 |
| ← p8952 left | 20:14 |
| → p8952 joined | 20:14 |
| ← JacobHayes left | 20:14 |
| → tyrannosaurus_be joined | 20:15 |
| → EminenceHC joined | 20:16 |
| → rjc joined | 20:16 |
| → alvaro_o joined | 20:17 |
| → nathancahill joined | 20:19 |
| → c74d joined | 20:19 |
| → Silox| joined | 20:20 |
| ← phretor left | 20:21 |
| → phretor joined | 20:21 |
| ← Xethron left | 20:21 |
| → recycle joined | 20:23 |
| → godgodgodgo joined | 20:23 |
| ← bwreilly left | 20:23 |
| ← aspiers left | 20:24 |
| → acharlieh joined | 20:24 |
| → the8thbit joined | 20:26 |
| ← Gamecubic left | 20:27 |
| → jstimm joined | 20:28 |
| ← jstimm left | 20:28 |
| ← HSaka left | 20:28 |
| ← toomanysecrets left | 20:28 |
| → jayrobot joined | 20:28 |
| ← kburdett left | 20:29 |
| → jstimm joined | 20:29 |
| → fenerlitk joined | 20:29 |
| ← bambams_ left | 20:29 |
| ← nathancahill left | 20:29 |
| → kburdett joined | 20:29 |
| → kcj joined | 20:30 |
| → nathancahill joined | 20:30 |
|
jaspertheghost
| anyone here use a sperate repo for there production code? | 20:30 |
|
Silox|
| jaspertheghost: Why not use a branch for that? | 20:31 |
| → erikruthven joined | 20:31 |
|
jaspertheghost
| well I'm thinking that ill more than likely have a lot of branches that i may push in and out of staging | 20:32 |
|
| and well having production as its own separate repo would keep it clean | 20:32 |
|
mmattice
| but then you have no easy way to diff production against dev | 20:33 |
| ← fragamus left | 20:33 |
|
jaspertheghost
| can't do that by having it as a remote repo in git? | 20:33 |
| → sohail_ joined | 20:33 |
| ← matheus23 left | 20:33 |
| ← chiromante left | 20:34 |
| → jnavila joined | 20:34 |
|
jaspertheghost
| git diff master remote/master | 20:34 |
| → Zariel joined | 20:34 |
|
jaspertheghost
| git diff master remote2/master | 20:34 |
|
| no? | 20:34 |
| → dangerousdave joined | 20:34 |
| ← FunkyAss left | 20:35 |
| → Ariadeno joined | 20:35 |
| → Octalot joined | 20:35 |
| ← jottr_ left | 20:35 |
|
mmattice
| afaik, they have to be derived from the same repo base to make that permissible, so you're essentially using different branches anyway | 20:35 |
| → bwreilly joined | 20:37 |
| → philoserf joined | 20:37 |
|
jaspertheghost
| mmattice? | 20:37 |
|
mmattice
| you, at some point, pushed that repo to both remote and remote2, right? | 20:37 |
| ← mizu_no_oto left | 20:38 |
| ← Ankhers left | 20:38 |
| → Arkaniad joined | 20:38 |
|
jaspertheghost
| i would assume yes (right now I'm going over hypotheticals to see what is going to work of rme) | 20:38 |
| → veebers joined | 20:39 |
| → jhulten joined | 20:39 |
| ← sohail_ left | 20:40 |
| ← cjsarette left | 20:40 |
| ← nathancahill left | 20:40 |
| ← ferreum left | 20:40 |
| → sohail_ joined | 20:41 |
| ← shvelo left | 20:41 |
| → Kayra joined | 20:42 |
| ← daedeloth left | 20:42 |
| → blackmesa joined | 20:42 |
| → robzilla joined | 20:42 |
| ← shruggar left | 20:43 |
| ← sohail_ left | 20:43 |
| → cjsarette joined | 20:43 |
| ← bwreilly left | 20:43 |
|
jaspertheghost
| and can someone please explain what get fetch does exactly i have forgotten? | 20:44 |
| → psoo joined | 20:44 |
| ← Zariel left | 20:44 |
| ← antons left | 20:44 |
| → Joost` joined | 20:44 |
| → cagedwisdom joined | 20:45 |
| → jhulten_ joined | 20:46 |
| → kyb3r_ joined | 20:46 |
| ← psoo_ left | 20:46 |
| ← jhulten_ left | 20:47 |
| → jhulten_ joined | 20:47 |
| ← Gizburdt left | 20:47 |
| → Gizburdt joined | 20:48 |
| ← Ariadeno left | 20:48 |
| ← rgr left | 20:48 |
|
osse
| jaspertheghost: updates origin/master, origin/foo, otherplace/bleh etc. | 20:48 |
| ← jhulten left | 20:48 |
|
jaspertheghost
| ok thought so … just won't upload my local branches | 20:49 |
|
| or other checkouted brnaches | 20:49 |
|
osse
| that's push's job | 20:49 |
|
jaspertheghost
| i learned all this like 6 months ago… and then forgot it all since i didn't use it… andy ow I'm about ready to get a dev env setup and deployment and all | 20:49 |
|
| so I'm going over everything to relearn it real quick and get this setup | 20:49 |
|
| osse whats your taking on using multi's remotes/repo | 20:50 |
|
| for isolating production from staging from dev.... | 20:50 |
|
| or are u a proponent of just using branches as well | 20:50 |
|
osse
| makes sense | 20:50 |
| ← rfoust left | 20:51 |
|
osse
| it doesn't really matter. conceptually there isn't that much difference between remote/branch_1 remote/branch_2 and remote_1/branch remote_2/branch | 20:51 |
| ← Exancillatus left | 20:51 |
| ← philoserf left | 20:51 |
| → Gamecubic joined | 20:52 |
| ← Gizburdt left | 20:52 |
| → bwreilly joined | 20:53 |
|
osse
| but stay away from using a repo in "prod" | 20:53 |
| ← dangerousdave left | 20:54 |
| → harobed joined | 20:54 |
| → Gizburdt joined | 20:54 |
| ← mjsmith2 left | 20:54 |
| ← ValicekB left | 20:55 |
| → tpollard joined | 20:55 |
| ← SidFerreira left | 20:56 |
| → dowwie joined | 20:56 |
|
dowwie
| !backup | 20:56 |
|
gitinfo
| Worried about your data while trying out stuff in your repo? To back up commit history on all branches/tags: `git clone --mirror`. To backup everything, including work tree and staging area: `tar cf repo-backup.tar repodir`. Or do your experiment in a throwaway clone instead. See also http://sethrobertson.github.com/GitBestPractices/#backups | 20:56 |
| → Neozonz joined | 20:56 |
| → ciampix joined | 20:57 |
| ← digital-shokunin left | 20:57 |
| → whitby joined | 20:59 |
| ← sq-one left | 21:00 |
| ← dangayle left | 21:00 |
| ← shingshang left | 21:01 |
| → ValicekB joined | 21:01 |
| ← cjsarette left | 21:02 |
| ← ValicekB left | 21:02 |
| → nathancahill joined | 21:03 |
| → blinkdesign joined | 21:05 |
| ← HassanCehef left | 21:06 |
| → eletuchy joined | 21:07 |
| ← Gizburdt left | 21:08 |
| → ValicekB joined | 21:08 |
| → Gizburdt joined | 21:08 |
| → jay joined | 21:08 |
| ← kburdett left | 21:08 |
| ← axl_ left | 21:08 |
| → axl__ joined | 21:09 |
| gitinfo set mode: +v | 21:09 |
| → kburdett joined | 21:09 |
|
jay
| Hey all, I pushed a folder that I know want to ignore, how do I go about that? | 21:10 |
|
osse
| jay: create a commit that deletes it and add it to .gitignore | 21:10 |
|
Wader
| do you want to remove it from the repo? or just ignore any changes to it now? | 21:10 |
|
jay
| remove it from the repo | 21:10 |
| ← Mitchbones left | 21:11 |
| ← livingstn left | 21:11 |
| → cjsarette joined | 21:11 |
|
Wader
| git rm --cached /dir then add to your .gitignore | 21:11 |
|
| the --cached option will keep the files locally but remove them from git | 21:11 |
| ← eletuchy left | 21:11 |
|
jay
| ok, i've never ignored, does .gitignore go into the main directory? | 21:11 |
|
osse
| jay: you can put it anywhere you like. | 21:12 |
|
Wader
| .gitignore can go anywhere and will apply to any folders in the same dir or lower | 21:12 |
|
osse
| jay: but in many cases you only need one, so putting it at the top makes sense | 21:12 |
| ← SHyx0rmZ left | 21:12 |
| ← Gavrisimo left | 21:12 |
|
jay
| fatal: not removing '.vagrant/' recursively without -r | 21:13 |
|
| the folder is hidden | 21:13 |
|
Wader
| add the -r flag to the git rm command | 21:13 |
|
osse
| Git tells you how to fix it in the error itself | 21:13 |
| → jottr_ joined | 21:13 |
| ← scampbell left | 21:13 |
| ← psoo left | 21:14 |
| ← oodavid left | 21:14 |
| → psoo joined | 21:14 |
| ← mishok13 left | 21:14 |
|
jay
| thank you, now what do I add to the .gitignore file? | 21:14 |
|
Wader
| just /.vagrant | 21:15 |
|
jay
| thanks!!! | 21:15 |
| ← bwreilly left | 21:15 |
| ← lsiv568 left | 21:16 |
| ← psoo left | 21:17 |
| ← bartman`` left | 21:17 |
| → the_hugme joined | 21:18 |
| → rfoust joined | 21:19 |
| → Ethix joined | 21:19 |
| ← PeterBooker left | 21:20 |
| ← ciampix left | 21:21 |
| ← rudisimo left | 21:21 |
| → Rastus_Vernon joined | 21:21 |
| → _rgn joined | 21:21 |
| → FortySix2 joined | 21:22 |
| ← snql left | 21:22 |
| ← nath_schwarz left | 21:23 |
| ← nathancahill left | 21:23 |
| ← axl__ left | 21:24 |
| → nath_schwarz joined | 21:24 |
| → kishanio joined | 21:24 |
| ← Fandekasp left | 21:24 |
| → axl_ joined | 21:25 |
| ← SegFaultAX left | 21:25 |
| → mizu_no_oto joined | 21:25 |
|
kishanio
| im trying to checkout one of the older verison of the project by git checkout but turns out it says i cant since i need to delete untracked files or move them | 21:25 |
| → Reskp joined | 21:25 |
| ← jaspertheghost left | 21:25 |
|
kishanio
| when i do git status i don't see any untracked files | 21:26 |
|
| can someone help/guide me to resolve this | 21:26 |
|
| because im scared i don't want to lose any files that i might need later | 21:26 |
| ← mennea left | 21:26 |
| → ilyam_ joined | 21:27 |
| ← ilyam left | 21:28 |
| ilyam_ → ilyam | 21:28 |
| ← c74d left | 21:28 |
| ← axl_ left | 21:29 |
| ← Kayra left | 21:30 |
| → SegFaultAX joined | 21:30 |
| ← the_hugme left | 21:30 |
| ← Guest92822 left | 21:31 |
| ← Neozonz left | 21:31 |
| ← nDuff left | 21:31 |
| → c74d joined | 21:33 |
| ← jnavila left | 21:34 |
| → nDuff joined | 21:35 |
| ← kermit left | 21:35 |
| → Iniesta8 joined | 21:35 |
| → axl_ joined | 21:36 |
| ← m8 left | 21:36 |
| ← frobrob left | 21:37 |
| ← erikruthven left | 21:37 |
| → m8 joined | 21:38 |
| → cilly joined | 21:38 |
| ← jay left | 21:38 |
| ← axl_ left | 21:38 |
| → freeman42 joined | 21:39 |
| ← EminenceHC left | 21:39 |
| ← fr33 left | 21:39 |
| → Ivo joined | 21:40 |
| → jovy88 joined | 21:40 |
| ← [2]nick left | 21:40 |
|
osse
| kishanio: your untracked files are probably ignored, and you're trying to checkout files by the same name | 21:40 |
| → rektide joined | 21:41 |
|
osse
| kishanio: so maybe some files where present in the earlier commit but not in the current | 21:41 |
| → EminenceHC joined | 21:41 |
|
rektide
| how do i get all the diffs between two revisions? | 21:42 |
|
osse
| rektide: git diff revision1 revision2 | 21:42 |
| → Neozonz joined | 21:42 |
| ← amcsi left | 21:42 |
|
rektide
| ah, mercy, i was just in the wrong directory | 21:42 |
| → CraigyDavi joined | 21:42 |
|
rektide
| 'fatal: ambiguous argument 'cbbc48d31d40e6ce5': unknown revision or path not in the working tree.' <-- i didn't beleive it | 21:43 |
| → Gavrisimo joined | 21:43 |
|
kishanio
| osse: Yes i think so thats an issue. im scared to do a force checkout | 21:43 |
|
rektide
| & all the exmaples i was running into had a '-- file.c' at the end | 21:43 |
|
osse
| kishanio: I can't do anything with that. doesn't git checkout give you a list of files that cause the issue? | 21:44 |
| ← kcj left | 21:44 |
|
osse
| kishanio: you can use git archive to create a tar of a previous commit. then you can extract it somewhere else | 21:44 |
| ← rektide left | 21:44 |
| → pasky joined | 21:44 |
| ← Pullphinger left | 21:44 |
| ← carandraug left | 21:45 |
|
kishanio
| osse: it does give me list of the files. | 21:46 |
| → ciampix joined | 21:46 |
|
kishanio
| i just have to fix a bug in earlier verison | 21:46 |
|
| and switch back to master | 21:46 |
|
osse
| kishanio: then you know which files you need to take a backup of | 21:46 |
| ← CraigyDavi left | 21:46 |
|
osse
| or you can even create a seperate clone to do the work | 21:46 |
|
| or fix the bug in the current version | 21:46 |
| ← JerryT left | 21:47 |
|
kishanio
| osse: yes i guess sepearate clone is the safest way to do. I cant do it in the current version since the older version is tracked by gerrit or something. | 21:47 |
| ← Gavrisimo left | 21:48 |
| ← Neozonz left | 21:48 |
|
kishanio
| osse: but thanks for this. really appreciate it. :) | 21:48 |
| ← m0ltar left | 21:48 |
| ← Anders_J left | 21:48 |
| → teran joined | 21:50 |
| ← Foldager left | 21:52 |
| ← Gamecubic left | 21:52 |
| ← teran left | 21:54 |
| → decompiled joined | 21:54 |
| → hellopat joined | 21:54 |
| ← dccc left | 21:55 |
| ← allay left | 21:57 |
| → allay joined | 21:57 |
| → kermit joined | 21:57 |
| ← Anatidaephobia left | 21:58 |
| → vladikoff joined | 21:58 |
| ← Gizburdt left | 21:58 |
| ← hellopat left | 21:58 |
| → jay joined | 21:59 |
| → Neozonz joined | 21:59 |
|
vladikoff
| hey, I'm using `git tag -l -n [pattern]`. I have tags: 0.1.0 and 0.1.0-something. How do I only list "0.1.0"? git tag -l -n '*.*.*' lists both. should I use --regex or something? | 21:59 |
| ← allay left | 22:00 |
| ← LeMike left | 22:00 |
| → allay joined | 22:00 |
| ← armyriad left | 22:00 |
| → Dottimolly joined | 22:01 |
| ← ngladitz left | 22:01 |
| ← vanillajohn left | 22:02 |
| → ezekielnoob6 joined | 22:02 |
| ← jovy88 left | 22:03 |
| → jovy88 joined | 22:04 |
| ← mizu_no_oto left | 22:05 |
| → Gamecubic joined | 22:05 |
| ← upene left | 22:06 |
| ← CKyle left | 22:06 |
| ← Neozonz left | 22:07 |
| ← Iniesta8 left | 22:07 |
| → eletuchy joined | 22:08 |
| ← pantsman left | 22:08 |
| → ezekielnoob7 joined | 22:08 |
| → watermel0n joined | 22:09 |
| ← Silox| left | 22:09 |
| ← MadLamb left | 22:10 |
| ← ezekielnoob6 left | 22:11 |
| → momomomomo joined | 22:11 |
| ← eletuchy left | 22:12 |
| ← souther left | 22:13 |
| ← Oran left | 22:13 |
| → souther joined | 22:13 |
| → danecando joined | 22:14 |
| ← zumba_addict left | 22:14 |
| → Balliad joined | 22:14 |
| → zumba_addict joined | 22:15 |
| ← ojacobson left | 22:15 |
| ← fatalhalt left | 22:16 |
| ← blinkdesign left | 22:16 |
| → DolpheenDream_ joined | 22:16 |
| → blinkdesign joined | 22:17 |
|
Vampire0
| vladikoff, I don't think it is possible, at least not with "git tag" porcellaine. Maybe with some plumbing. Or you pipe the result of git tag with pattern through grep | 22:17 |
| → Mitchbones joined | 22:17 |
| → wavis joined | 22:18 |
| → Neozonz joined | 22:18 |
| → alexlind_ joined | 22:18 |
|
vladikoff
| Vampire0, oh ok. I'm trying to create a date changelog. Get version tags, get their dates, list all commits that happened between those dates in a style manner | 22:18 |
| → Celm_ joined | 22:19 |
|
wavis
| how do I use git in a script to check if a file is different than HEAD? | 22:19 |
| ← blinkdesign left | 22:21 |
| ← alexlindenlevy left | 22:21 |
| ← nDuff left | 22:22 |
| ← Celm left | 22:23 |
| → thumpba_ joined | 22:23 |
| ← phretor left | 22:23 |
| ← Neozonz left | 22:24 |
| ← jarr0dsz left | 22:24 |
| ← jluc left | 22:24 |
|
whitby
| wavis: I'm not sure if git-diff changes its status code. | 22:25 |
|
| Maybe diff the file and check if the output is not empty? | 22:25 |
| → nnyk_ joined | 22:27 |
| → allay_ joined | 22:27 |
| ← thumpba_ left | 22:28 |
| ← alp82 left | 22:28 |
|
whitby
| Maybe `git diff --raw` as another option? | 22:28 |
| ← Reskp left | 22:28 |
| ← c74d left | 22:29 |
| ← nfk left | 22:29 |
| ← FortySix2 left | 22:30 |
| ← hebz0rl left | 22:30 |
| → armyriad joined | 22:30 |
| → Gavrisimo joined | 22:31 |
| ← nnyk_ left | 22:32 |
|
wavis
| It seems I should be able to hook git status somehow for a single file | 22:33 |
|
| this does work though | 22:33 |
| → arvind_k joined | 22:33 |
|
wavis
| [ "`git diff web/index.html |head -1`" = '' ] && echo same || echo different | 22:33 |
| ← bakflash left | 22:33 |
| ← vire left | 22:34 |
| ← allay_ left | 22:34 |
| ← allay left | 22:34 |
| ← DolpheenDream_ left | 22:34 |
| ← leeN left | 22:34 |
|
m0viefreak
| wavis: git diff-index --quiet HEAD -- <file> | 22:34 |
|
| wavis: that's awful | 22:35 |
|
| always use plumbing commands in scripts | 22:35 |
| → Neozonz joined | 22:35 |
|
m0viefreak
| and dont parse any output | 22:35 |
| ← Gavrisimo left | 22:35 |
|
wavis
| m0viefreak: right, that's why i'm asking | 22:36 |
|
m0viefreak
| diff-index is a plumbing command, so use that | 22:36 |
| ← zoso left | 22:36 |
| ← vladikoff left | 22:36 |
|
m0viefreak
| --quiet implies --exit-code | 22:36 |
|
| so simply checking the return value is enough | 22:36 |
| ← FreezingCold left | 22:37 |
|
m0viefreak
| if ! git diff-index --quiet HEAD -- myfile.c; then echo "file is modified!"; fi | 22:37 |
| ← drbean left | 22:37 |
| ← alexlind_ left | 22:37 |
|
whitby
| That's super nifty! | 22:37 |
| ← xenoterracide_ left | 22:37 |
| → drbean joined | 22:37 |
| ← jxf left | 22:37 |
|
wavis
| seems to be exactly what i'm looking for. thanks m0viefreak | 22:38 |
| ← Sonderblade left | 22:38 |
| → FreezingCold joined | 22:38 |
| ← LaserChicken left | 22:39 |
| ← dreiss left | 22:41 |
| → CKyle joined | 22:42 |
| ← polyzen left | 22:43 |
| → vanillajohn joined | 22:43 |
|
quizme
| _ikke_ thank you. | 22:46 |
| ← blackmesa left | 22:46 |
| ← sdwrage left | 22:46 |
| ← Dottimolly left | 22:47 |
| ← Guest61078 left | 22:47 |
| → Guest61078 joined | 22:47 |
| Guest61078 → Korvin | 22:47 |
| → tieTYT2 joined | 22:47 |
|
tieTYT2
| i submitted a pull request on master. Now I want this same fix to go to a branch of that project. How do I accomplish that? | 22:48 |
| → thumpba_ joined | 22:48 |
| → iliketurtles joined | 22:48 |
|
iliketurtles
| i just upgraded from 1.8.4.3 to 1.9.1, and I'm noticing a changed behavior. in 1.8.4.3 when I would `git checkout -b new_branch`, and `git push -u origin new_branch`, 1.8.4.3 would create a new branch in the origin remote. In 1.9 it just says `Branch git_1.9_test_branch set up to track remote branch master from origin by rebasing.` Why is this? | 22:48 |
| → polyzen joined | 22:49 |
| ← jftf left | 22:49 |
| ← wrouesnel1 left | 22:49 |
| ← tswett left | 22:50 |
| ← rishabh_ left | 22:52 |
| ← DrShoggoth left | 22:53 |
| → pierre1_ joined | 22:54 |
| → OffTheRails joined | 22:54 |
| → c74d joined | 22:55 |
| ← treehug88 left | 22:55 |
| → FortySix2 joined | 22:57 |
| ← m8 left | 22:59 |
| → Reskp joined | 22:59 |
|
iliketurtles
| i expanded upon my question on stackoverflow with code examples: http://stackoverflow.com/questions/23666510/git-1-9-remote-push-u-changes | 22:59 |
| ← zzing left | 22:59 |
| → zzing joined | 22:59 |
| → mizu_no_oto joined | 22:59 |
| → Ariadeno joined | 23:01 |
| → Quevin joined | 23:02 |
| → hellopat joined | 23:03 |
| → endiruna joined | 23:03 |
| → woollyams joined | 23:03 |
| → howitdo joined | 23:04 |
| ← howitdo left | 23:04 |
| → howitdo joined | 23:04 |
| ← Reskp left | 23:04 |
| ← King_Hual left | 23:04 |
| → wrouesnel1 joined | 23:04 |
| ← iliketurtles left | 23:05 |
| ← shinnya left | 23:06 |
| ← wavis left | 23:06 |
| → sinusss joined | 23:06 |
| → zivester joined | 23:07 |
| ← nkouevda left | 23:07 |
| ← Neozonz left | 23:07 |
|
sinusss
| hi can I alias git branch so that when the branches displayed i get something like http://mysite.com/<branch_name> | 23:07 |
| → nkouevda joined | 23:08 |
| → shinnya joined | 23:08 |
| → eletuchy joined | 23:08 |
|
PerlJam
| sinusss: yes | 23:08 |
|
sinusss
| PerlJam: how? | 23:09 |
|
PerlJam
| sinusss: you can write your own command that does what you want and alias git branch to that. | 23:09 |
| ← eletuchy left | 23:10 |
| → ojacobson joined | 23:10 |
| → Freeman42x joined | 23:10 |
| ← nkouevda left | 23:12 |
| ← anry left | 23:12 |
| ← MafooUK left | 23:12 |
| ← c74d left | 23:12 |
| ← FortySix2 left | 23:12 |
|
sinusss
| PerlJam: how? guide me to some docs? | 23:12 |
| ← Sample_ left | 23:12 |
| ← mizu_no_oto left | 23:12 |
| ← polyzen left | 23:12 |
| ← Sample left | 23:12 |
| ← thumpba_ left | 23:12 |
| → bwreilly joined | 23:13 |
| ← Exio4 left | 23:14 |
| ← freeman42 left | 23:14 |
| → xenoterracide_ joined | 23:15 |
| ← elbeardmorez left | 23:15 |
| ← Not_Whatever left | 23:16 |
| ← txomon|home left | 23:16 |
| → Exio4 joined | 23:17 |
| ← jagob left | 23:18 |
| → Neozonz joined | 23:19 |
| ← harobed left | 23:19 |
| → franziep joined | 23:19 |
| ← kishanio left | 23:21 |
| ← franzip left | 23:21 |
| ← chrisg_ left | 23:22 |
| ← watermel0n left | 23:22 |
|
mattcen
| !alias | 23:22 |
|
gitinfo
| [!triggers] Please don't spam me! I'm just a poor bot! Here's everything I know: http://jk.gs/git/bot/trigger.php -- that's a list of these nifty keywords like "!bot" that you can use in the channel, in case you were wondering. | 23:22 |
|
mattcen
| awww | 23:22 |
|
| sinusss: Check the !git-config page for aliases | 23:23 |
|
| s/page/manpage/ | 23:23 |
| → ascarter joined | 23:24 |
| → jaspertheghost joined | 23:24 |
| ← fenerlitk left | 23:24 |
| ← Neozonz left | 23:24 |
| → chrisg_ joined | 23:25 |
| ← chrisg_ left | 23:25 |
| ← endiruna left | 23:26 |
| ← Balliad left | 23:26 |
| → _W_ joined | 23:27 |
| → rotta joined | 23:28 |
| ← sinusss left | 23:28 |
| ← pierre1_ left | 23:29 |
| ← woollyams left | 23:30 |
| ← ciampix left | 23:31 |
| ← codeurge left | 23:32 |
| → woollyams joined | 23:32 |
| ← vanillajohn left | 23:32 |
| → Gavrisimo joined | 23:32 |
| ← tang^ left | 23:33 |
| → vanillajohn joined | 23:34 |
| → tswett joined | 23:34 |
| ← tswett left | 23:34 |
| → tswett joined | 23:34 |
| → eletuchy joined | 23:34 |
| ← qwyeth left | 23:35 |
| ← cjsarette left | 23:36 |
| ← devoldmx left | 23:36 |
| ← rfoust left | 23:36 |
| ← Gavrisimo left | 23:37 |
| ← OffTheRails left | 23:37 |
| → c74d joined | 23:37 |
| → OffTheRails joined | 23:37 |
| ← whitby left | 23:38 |
| → jagob joined | 23:38 |
| → rfoust joined | 23:39 |
| ← acharlieh left | 23:39 |
| ← brent left | 23:41 |
| → cjsarette joined | 23:41 |
| ← cjsarette left | 23:41 |
| → acharlieh joined | 23:41 |
| → Lyqyd joined | 23:43 |
| → cjsarette joined | 23:44 |
| → jedichu joined | 23:45 |
| → jftf joined | 23:45 |
| ← jedichu left | 23:46 |
| ← jftf left | 23:50 |
| → hgl joined | 23:52 |
| ← agrajag42 left | 23:53 |
| → mark_t joined | 23:53 |
| → acl_ joined | 23:53 |
| → sdwrage joined | 23:53 |
|
mark_t
| Can git-1.7.1 safely work directly on repositories created with 1.9.0? | 23:53 |
|
imMute
| first thought is yes. | 23:54 |
|
mark_t
| imMute, looks like you're right. Everything works normally so far. | 23:55 |
| ← Fall left | 23:55 |
| ← hgl left | 23:55 |
| ← acharlieh left | 23:55 |
| → hgl joined | 23:56 |
| ← Quevin left | 23:56 |
| ← oonska left | 23:56 |
| ← vanillajohn left | 23:57 |
| → kaffeetrinkerMD joined | 23:57 |
| → otter768 joined | 23:58 |
| ← kaffeetrinkerMD left | 23:58 |
| → acharlieh joined | 23:59 |
| → scarabx joined | 23:59 |