| 2012-02-05 |
| → dinduks___ joined | 00:00 |
| ← dinduks_ left | 00:00 |
| → dinduks_ joined | 00:00 |
| ← dinduks_ left | 00:01 |
| → dinduks_ joined | 00:01 |
| ← JackWinter left | 00:02 |
| ← twisted` left | 00:03 |
| → csherin joined | 00:03 |
| → kadoban joined | 00:03 |
| → twisted` joined | 00:03 |
| ← bobweinerjr_ left | 00:03 |
| ← dinduks left | 00:03 |
| ← imarcusthis left | 00:03 |
| ← freaksken left | 00:03 |
| ← amichair left | 00:04 |
| → dinduks joined | 00:04 |
| ← dinduks___ left | 00:04 |
| → dinduks__ joined | 00:05 |
| → JackWinter joined | 00:05 |
| ← dinduks_ left | 00:06 |
| ← tgunr_ left | 00:06 |
| ← vandal- left | 00:07 |
| ← dinduks__ left | 00:07 |
| ← MestreLion left | 00:07 |
| → __sorin__ joined | 00:07 |
| → osmosis joined | 00:08 |
| → dinduks__ joined | 00:08 |
| ← dinduks left | 00:08 |
| → dinduks joined | 00:09 |
| ← mantic0 left | 00:10 |
| → vandal- joined | 00:10 |
| → Skyx-mobile__ joined | 00:12 |
| ← dinduks__ left | 00:12 |
| ← nixmaniack left | 00:12 |
| → dinduks_ joined | 00:13 |
| ← TSK left | 00:14 |
| → yuriks_ joined | 00:14 |
| → dinduks___ joined | 00:15 |
| ← freezey left | 00:15 |
| → dinduks____ joined | 00:16 |
| ← dinduks left | 00:17 |
| ← yuriks left | 00:17 |
| ← dinduks_ left | 00:18 |
| ← mandric left | 00:18 |
| ← dinduks___ left | 00:20 |
| ← ajt left | 00:20 |
| → macrover joined | 00:21 |
| → kgadek joined | 00:22 |
| przemoc86 → przemoc | 00:22 |
| ← Milossh left | 00:22 |
| → mandric joined | 00:23 |
| ← tewecske left | 00:23 |
| ← mandric left | 00:23 |
| → mandric joined | 00:24 |
| ← LekeFly left | 00:24 |
| → LekeFly joined | 00:25 |
| → Milossh joined | 00:25 |
| ← yuriks_ left | 00:25 |
| → yuriks_ joined | 00:25 |
| yuriks_ → yuriks | 00:25 |
| → stringoO joined | 00:26 |
| ← albel727 left | 00:27 |
| → arohner joined | 00:27 |
| → dinduks joined | 00:28 |
| → dinduks_ joined | 00:29 |
|
arohner
| is there a better diff algorithm for clojure/lisp I can use? git merge always makes the worst mess when merging clojure code | 00:29 |
| → Chib joined | 00:29 |
| ← dinduks_ left | 00:30 |
| → dinduks_ joined | 00:31 |
| ← dinduks____ left | 00:31 |
| → dinduks__ joined | 00:32 |
| ← dinduks left | 00:32 |
| ← dinduks__ left | 00:33 |
| → dinduks joined | 00:33 |
| ← giallu left | 00:33 |
| → ericm joined | 00:34 |
| TheMoonMaster_ → TheMoonMaster | 00:35 |
| ← dinduks_ left | 00:35 |
| → disappearedng joined | 00:36 |
| ← jacekmigacz left | 00:37 |
| → imarcusthis joined | 00:37 |
| → wiwo joined | 00:37 |
| ← wiwo left | 00:37 |
| ← dinduks left | 00:38 |
| → dinduks joined | 00:38 |
| ← kadoban left | 00:38 |
| ← __sorin__ left | 00:38 |
| → ericm_ joined | 00:38 |
| ← legnaleurc left | 00:38 |
| ← mandric left | 00:40 |
| ← TL left | 00:40 |
| ← ericm left | 00:40 |
| → albel727 joined | 00:41 |
| ← dinduks left | 00:41 |
| → dinduks joined | 00:41 |
| ← spyro left | 00:43 |
|
offby1
| I am not aware of language-specific diffs | 00:43 |
| ← ericm_ left | 00:43 |
| → dinduks_ joined | 00:43 |
|
offby1
| arohner: I wonder if your problems are caused by whitespace -- perhaps one side of the conflict is indented more than the other. | 00:43 |
|
| In which case ... maybe getting "diff" to ignore whitespace would suffice | 00:44 |
| ← Bombe left | 00:44 |
| → caseymcg joined | 00:44 |
| ← imarcusthis left | 00:44 |
| → spyro joined | 00:45 |
| ← spyro left | 00:45 |
| → spyro joined | 00:45 |
| → frogonwheels joined | 00:46 |
| ← Skyx-mobile__ left | 00:46 |
| ← dinduks left | 00:47 |
| ← Demego left | 00:47 |
| ← Rahul_ left | 00:48 |
| ← niko left | 00:49 |
| → niko joined | 00:49 |
| → SundarNET joined | 00:50 |
| ← niko left | 00:50 |
| → niko joined | 00:50 |
| ← dinduks_ left | 00:51 |
| ← dSebastien left | 00:52 |
| ← csherin left | 00:53 |
| → Bombe joined | 00:53 |
| → dinduks__ joined | 00:53 |
| ← ph^ left | 00:54 |
| ← AlbireoX left | 00:54 |
| ← mikepack left | 00:55 |
| ← disappearedng left | 00:55 |
| ← magnus_ left | 00:56 |
| → dinduks_ joined | 00:57 |
| ← macrover left | 00:57 |
| ← lonewulf` left | 00:58 |
| ← Bombe left | 00:58 |
| → disappearedng joined | 00:58 |
| ← robotmay left | 00:58 |
| ← dinduks__ left | 00:58 |
| → dinduks____ joined | 00:59 |
| ← MariusKarthaus left | 00:59 |
| → magnus_ joined | 00:59 |
| → diamonds joined | 01:01 |
| ← diamonds left | 01:01 |
| → diamonds joined | 01:01 |
| ← dinduks_ left | 01:02 |
| ← dinduks____ left | 01:03 |
| ← iocor left | 01:03 |
| ← barr5790 left | 01:03 |
| → dinduks joined | 01:05 |
| → uu joined | 01:05 |
| → Katniss_ joined | 01:05 |
| ← cooldude left | 01:05 |
| → lonewulf` joined | 01:06 |
| → dinduks__ joined | 01:06 |
| → cooldude joined | 01:07 |
| ← Katniss left | 01:07 |
| → dinduks___ joined | 01:08 |
| → QaDeS_ joined | 01:09 |
| ← dinduks left | 01:10 |
| → Katniss joined | 01:10 |
| ← eijk left | 01:11 |
| ← dinduks__ left | 01:12 |
| ← QaDeS left | 01:12 |
| ← Katniss_ left | 01:12 |
| → dinduks joined | 01:13 |
| ← dinduks___ left | 01:15 |
| ← osmosis left | 01:16 |
| → dinduks_ joined | 01:16 |
| → panthrodeb joined | 01:17 |
| → mdel joined | 01:17 |
| ← zulax left | 01:17 |
| ← panthrodeb left | 01:17 |
| ← dinduks_ left | 01:18 |
| → zulax joined | 01:18 |
| → mezolio joined | 01:19 |
| ← ferai left | 01:20 |
| ← dinduks left | 01:20 |
| → themachine joined | 01:21 |
| ← themachine left | 01:21 |
| → themachine joined | 01:22 |
| ← themachine left | 01:22 |
| ← CannedCorn left | 01:23 |
| → jefferai joined | 01:23 |
| ← MissionCritical left | 01:25 |
| ← zulax left | 01:26 |
| → zulax joined | 01:29 |
| → Bombe joined | 01:31 |
| → sudoquai_ joined | 01:32 |
| ← xerora left | 01:32 |
| → linusoleander joined | 01:33 |
| → MestreLion joined | 01:33 |
| ← zulax left | 01:33 |
| → zulax joined | 01:33 |
| ← scelis left | 01:34 |
| ← sudoquai left | 01:34 |
| → gavin_huang joined | 01:35 |
| → kennethreitz joined | 01:37 |
| ← neurodrone left | 01:38 |
| ← Textmode left | 01:40 |
|
MestreLion
| guys, i have a question about workflow. Im new to git, and this is my most common scenario: 1 - I find a bug in a software, go to upstream url, clone the repo. 2 - work on the issue, with several WIP and tests commits. 3 - after done, i want to contribute by sending 1 single patch (usually I only work in a single feature/bug). 4 - if possible, keep my commit history for personal use only. 5 - leave my cloned repo in a state where it can pull upstream i | 01:40 |
|
| f my patch ever gets accepted. What would be the indicated procedures for that? | 01:40 |
| ← ben225 left | 01:40 |
| → osmosis joined | 01:41 |
| ← arohner left | 01:41 |
| ← Targen left | 01:41 |
|
MestreLion
| (I asked a similar question a few days ago... but then i already had a repo with work done. now I have no constrains, can start afresh with whatever workflow you guys suggest me | 01:42 |
| → igotnolegs joined | 01:43 |
| → xerora joined | 01:44 |
| ← _obiJuan left | 01:46 |
| ← likewhoa- left | 01:47 |
|
milki
| if you leave your work in the branch | 01:50 |
| → luxurymode joined | 01:50 |
| ← edude03 left | 01:50 |
|
milki
| your master should be fine | 01:50 |
| → soulcake joined | 01:50 |
|
milki
| you might want to rebase that branch against the commit before your patch | 01:50 |
|
| but otherwise, dont mess with the branch | 01:51 |
| ← zulax left | 01:51 |
| → zulax joined | 01:52 |
| → MissionCritical joined | 01:53 |
| → edude03 joined | 01:53 |
| ← twisted` left | 01:53 |
| → twisted` joined | 01:53 |
|
MestreLion
| so i should branch as soon as i clone? | 01:53 |
| → Textmode joined | 01:53 |
|
milki
| ya, leave all your work in a branch | 01:54 |
|
| when you submit a patch, it would be a squash of the entire branch | 01:54 |
|
| but since you want to keep the commit history | 01:54 |
|
MestreLion
| rebase against wich commt? | 01:54 |
|
milki
| when your patch is accepted and pushed to master | 01:55 |
|
| you would rebase the branch against hte commit before that | 01:55 |
|
MestreLion
| milki: im not sure I i understood the timeline... | 01:56 |
|
milki
| hm | 01:56 |
|
| so you clone the repo at A | 01:56 |
|
MestreLion
| i clone, branch, work on... | 01:56 |
|
milki
| you work on a branch | 01:56 |
|
| A - B' - C' - D' | 01:56 |
|
| you submit your patch as a squash of B' - C' - D' | 01:57 |
|
MestreLion
| A being master head, i assume | 01:57 |
|
milki
| at that point ya | 01:57 |
|
| but your patch is accept after a couple commits to master | 01:57 |
|
| A - B - C - your patch | 01:57 |
|
| you would rebase your branch against C | 01:57 |
|
| so the branch and your patch would be equilanet | 01:57 |
|
| equivalent | 01:57 |
| ← twisted` left | 01:57 |
|
MestreLion
| ok... guess i got the general idea... thank you :) | 01:58 |
|
| as for the details, how to generate a squashed patch? | 01:58 |
|
milki
| um... | 01:59 |
|
MestreLion
| say im in D' right now | 01:59 |
|
milki
| im not sure. but one way could be to do a squash merge | 01:59 |
|
| and submit that commit as the patch | 01:59 |
| ← magnus_ left | 01:59 |
|
MestreLion
| if i run --generate-patch, I get a series of files, 1 for each commit | 01:59 |
|
canton7
| just rebase -i A. Then you get the advantage of having rebased back on top of the original branch | 01:59 |
| ← bartman left | 02:00 |
| → magnus_ joined | 02:00 |
|
milki
| the branch originally comes from A, so i dont think it needs to be rebased | 02:00 |
|
| the point of the rebase im suggesting is just to keep the commit history around for the patch | 02:01 |
|
MestreLion
| canton7: that will leave me with A - D (my rebased branch) and A - B' - C' - D' , correct? | 02:01 |
|
canton7
| MestreLion, it'll throw away the branch B'-C'-D', but you can save it by creating a new branch before you rebase | 02:01 |
| ← CrazyGir_ left | 02:01 |
| → CrazyGir_ joined | 02:01 |
| CrazyGir_ → CrazyGir | 02:02 |
|
canton7
| milki, if the branch your feature branch was based off has moved forward in the meantime, quite a few projects want you to rebase back on top of the original branch | 02:02 |
|
milki
| yes, that woudl be before submitting the patch | 02:02 |
|
| but it wouldnt be A at that point then | 02:02 |
|
| and the patch might be accepted after more commits are added | 02:03 |
|
canton7
| I thought we were talking about before submitting the patch? | 02:03 |
|
milki
| i think we want both | 02:04 |
|
| since MestreLion wants to keep his history around as well | 02:04 |
|
MestreLion
| im trying to understand both approaches.. since im new to git, i can't even understand what would be the difference | 02:04 |
| ← Textmode left | 02:04 |
|
| canton7 goes back to the top of the scrollback | 02:04 |
| → themachine joined | 02:04 |
|
MestreLion
| yes milki , that would be nice.. i want to keep the history, even if its in a separete, isolated branch | 02:05 |
|
milki
| so when you do step 2, always branch | 02:05 |
|
| and work on the branch | 02:05 |
|
| to do 3, first fetch the original branch, and rebase your branch against the original | 02:05 |
|
MestreLion
| ok | 02:06 |
|
milki
| then you need to generate that squashed patch somehow | 02:06 |
| → bartman joined | 02:06 |
|
milki
| which im not sure about myself | 02:06 |
|
| but i think you can do it with a squash merge from the original branch | 02:06 |
|
canton7
| one way: git checkout -b branch_to_be_submitted; git merge --squash original_branch; git commit -am "My final patch" | 02:06 |
| → Vampire0_ joined | 02:07 |
|
canton7
| another way: git checkout -b branch_to_be_submitted; git rebase -i original_branch; squash as necessary | 02:07 |
| ← matthiaskrgr left | 02:07 |
|
canton7
| (the latter does the rebasing step as part of it, so you don't have to do it separately) | 02:07 |
|
milki
| so basically, you would have a clone of your feature branch, but you squashed the commits | 02:08 |
| → matthiaskrgr joined | 02:08 |
|
milki
| and that is what you submit as a patch | 02:08 |
|
canton7
| (and by original_branch, I mean the upstream's "mainline" branch, which you created your feature branch from) | 02:08 |
|
MestreLion
| milki: and that clone would be a 3rd branch? or merged into master? | 02:08 |
|
milki
| a 3rd one | 02:08 |
|
MestreLion
| i got that canton7 | 02:08 |
|
milki
| you dont want to mess with master | 02:09 |
| ← kgadek left | 02:09 |
|
canton7
| If master is tracking upstream's master, don't ever merge anything into it yourself (except as a "test merge" to check that your branch merges cleanly) | 02:09 |
|
| If you start fiddling with master and adding your own stuff, then upstream adds more stuff, including one of the patches you submitted to upstream, then things get quite messy quite quickly | 02:09 |
|
MestreLion
| ok... i got master branch and work branch... then i clone work to work_final , fetch master and rebase it against master. | 02:10 |
|
| is that? | 02:10 |
|
canton7
| "clond" is the wrong word, but yes, that's right | 02:10 |
|
| *clone | 02:10 |
|
MestreLion
| so no git merge then? | 02:11 |
| ← Vampire0 left | 02:11 |
|
milki
| after the rebase against master, you squash all the commits | 02:11 |
|
canton7
| You can git merge --squash, which isn't a "real" merge, and doesn't affect the branch you're "merging" into | 02:11 |
|
MestreLion
| oh, ok canton7 | 02:11 |
|
| in terms of git commands, let me see if i know: git clone, checkout -b work, [several commits], checkout -b work_final, fetch (or pull?) origin... then the rebase (how exactly?) | 02:14 |
| ← SundarNET left | 02:14 |
| ← diamonds left | 02:14 |
| ← caseymcg left | 02:14 |
|
canton7
| fetch from origin | 02:14 |
|
MestreLion
| would it be the "git merge --squash master" ? | 02:14 |
|
milki
| you can either fetch origin and rebase -i origin/master? | 02:14 |
|
canton7
| pull merges into the *currenty-checked-out branch*, and you've got work checked out | 02:15 |
|
milki
| or checkout master; pull origin; checkout work_final; rebase -i master? | 02:15 |
|
canton7
| yeah, both work | 02:15 |
|
milki
| dont worry about git merge anymore | 02:15 |
|
| you will be squashing your commits when you do rebase -i | 02:16 |
| → Bearcat joined | 02:16 |
|
canton7
| When the editor opens from rebase -i, change the "pick" in front of the relevant commits to "squash" | 02:16 |
|
| or "fixup", if you want to discard the commit messages :P | 02:16 |
| ← zivester left | 02:17 |
| ← brian_g left | 02:17 |
| ← zulax left | 02:17 |
|
MestreLion
| canton7 / milki i liked the idea of a final commit message for submitting... i don't want it to be any of my commit's message | 02:17 |
| → zivester joined | 02:18 |
|
canton7
| You'll be dropped into an editor to edit the commit message anyway (iirc), so it doesn't really matter | 02:18 |
|
| if not, just commit --amend after you've rebased | 02:18 |
| → ipalaus joined | 02:18 |
|
Bearcat
| folks i'm using git 1.7.3.4-r1 on a 2 gentoo system in my lan. I have a directory that is a local git repo and i'm trying to make a git repo out of it on my server box so that i can pull from the server box to the other PCs. It looks like a simple process but every instruction set i've looked at has a sligtly different way of doing it and i'm confused. I'd love a bit of hand holding here. | 02:18 |
|
MestreLion
| sounds a nice workflow... thank you very much canton7 and milki ! | 02:19 |
|
| milki++ | 02:19 |
| → devbug joined | 02:19 |
|
MestreLion
| canton7++ | 02:19 |
|
canton7
| cheers | 02:19 |
| → xiagox joined | 02:19 |
|
devbug
| Submodules. Should I watch out for anything? | 02:19 |
|
canton7
| devbug, they tend not to auto-update when you switch branches. The heads are detached by default, so watch out | 02:19 |
| ← Lgb left | 02:20 |
|
canton7
| Also, currently (I believe) it requires a little bit of effort to physically move a "supermodule" repo which has checked-out submodules | 02:20 |
|
| Though they might have fixed that | 02:20 |
| ← disappearedng left | 02:20 |
| ← as3llus left | 02:20 |
|
Bearcat
| right now i have a directory called /var/git on the server machine that i want to to push this local repo to. according to book.git-scm.com i'm supposed to just do a 'git clone --bare [localdir] /var/git/reponame.git Does the file ownership matter? Should it be root? | 02:21 |
|
canton7
| Bearcat, question 1: Choose your protocol. Your choices are http (smart or dumb, both fairly painful), ssh (lovely), or git (read-only, unless you like unauthenticated pushes) | 02:21 |
|
devbug
| canton7: Thanks, I'll post a beware sign. | 02:21 |
|
Bearcat
| canton7: thanks ssh would be preferred | 02:21 |
|
canton7
| devbug, the latter will catch you out if a) you're trying to update the submodules from their upstream, or b) you're trying to work in them | 02:21 |
| → Chillance joined | 02:22 |
|
canton7
| Bearcat, question 2: Do you want fine-grained access control, or is it just you using the repo(s) ? | 02:22 |
|
Bearcat
| canton7: it's just me. I'm just cloning a .vim directory | 02:22 |
|
MestreLion
| this clone --bare sounds much better than copying over the dir :D | 02:23 |
|
canton7
| Bearcat, question 3: Do you want your git repos under a new, dedicated user, or under your normal user? | 02:23 |
| → Lgb joined | 02:23 |
| ← dougsland left | 02:23 |
|
| Bearcat looks at the "Repo Access over SSH" section | 02:23 |
|
Bearcat
| canton7: which is safer? | 02:23 |
|
canton7
| no difference, really. It's mostly aesthetics | 02:23 |
|
Bearcat
| canton7: *more secure | 02:23 |
|
canton7
| You can give your git user a restricted shell, so I guess that option... | 02:24 |
|
Bearcat
| canton7: probably a dedicated user. | 02:24 |
|
devbug
| Shit. | 02:24 |
|
Bearcat
| canton7: what about just using nobody:nogroup? | 02:24 |
|
canton7
| Bearcat, cool. Create your new user. In their home dir, "git init --bare my_repo_name.git". Make sure they can login over ssh | 02:24 |
|
devbug
| I just realized the number of users in here | 02:25 |
|
canton7
| (you can set up key authentication, but for now let's roll with passwords) | 02:25 |
|
Bearcat
| canton7: cool. I'll set up a git user and make thier home /var/git | 02:25 |
|
canton7
| Bearcat, then you can clone that repo over ssh with "git clone gituser@yourhost:my_repo_name.git" | 02:25 |
|
Bearcat
| canton7: thanks so much for the help. I assume i'll only need that user on the machine that holds the git server? | 02:26 |
|
jpalmer
| Bearcat: are you setting up your first ever git repo? | 02:26 |
|
canton7
| Bearcat, if you're feeling secure, set the git user's shell to /usr/bin/git-shell (or wherever your distro has plonked it) | 02:26 |
|
Bearcat
| jpalmer: yup | 02:26 |
|
devbug
| Another question (it's something I'm meaning to get around to). | 02:26 |
|
| git post hooks (or whatever they're called) | 02:26 |
|
jpalmer
| Bearcat: doing it manually is fine. and can help you understand HOW git works.. but many of us would suggest using something like gitolite to setup and maintain your repo. | 02:26 |
|
canton7
| Bearcat, yup. The git user lives on the machine which hosts your repos, and you then ssh in as that user (or rather get git to) in order to interact with the repos | 02:27 |
|
devbug
| What would be the best way to setup a post hook that would let me build the commit | 02:27 |
|
canton7
| yeah, gitolite's good if you need access control. It's his first repo and he didn't need any of that, so I avoided it | 02:27 |
|
starlon
| How do I make branch 'fixes' turn into 'master'? | 02:27 |
| ← D-Chymera left | 02:27 |
|
devbug
| starlon: merge | 02:27 |
|
canton7
| starlon, define "turn into" | 02:28 |
| ← MissionCritical left | 02:28 |
|
starlon
| Well I want to remove master, and rename fixes 'master' | 02:28 |
|
jpalmer
| devbug: you'd probably want to use something like jenkins to build the product after a commit. | 02:28 |
|
starlon
| but that's likely the wrong way | 02:28 |
|
justfielding
| dang this channel is quite active tonight | 02:28 |
| → i8degrees joined | 02:28 |
|
devbug
| jpalmer: But let's say I want to write my own script | 02:29 |
|
canton7
| starlon, git branch -d master; git branch -m master ? or maybe git checkout master; git reset --hard fixes; git branch -d fixes | 02:29 |
|
devbug
| How do I make the hook global? | 02:30 |
|
starlon
| that's likely deltree in git slang | 02:30 |
|
Bearcat
| thanks jpalmer. I thnk i'll try it manually first. I'm trying to *learn* git | 02:30 |
| → dotnull joined | 02:31 |
|
canton7
| Bearcat, don't be fooled: gitolite builds on the stuff you're learning here, particularly key authentication if you get into that. If you can't do this, you'll fail with gitolite :P | 02:31 |
|
devbug
| Screw it, I'll just use Jenkins | 02:31 |
|
jpalmer
| devbug: http://progit.org/book/ch7-3.html look at the two parts about pre-recieve hooks, and updates | 02:32 |
|
| Bearcat: learning manually is probably not a bad idea. gitolite does a lot of this for you, and adds auth. so, if you decide to use gitolite later.. you're learning a solid foundation now. | 02:33 |
| → t0rc joined | 02:33 |
|
devbug
| jpalmer: I'll look into it. Thanks. | 02:34 |
| → heppy joined | 02:34 |
| → Fandekasp joined | 02:35 |
|
Bearcat
| ahh | 02:35 |
| ← canton7 left | 02:36 |
| → munichlinux joined | 02:36 |
|
| Bearcat installed gitolite | 02:37 |
| ← abetaha_ left | 02:39 |
| → as3llus joined | 02:39 |
| ← ipalaus left | 02:40 |
| → zulax joined | 02:40 |
| → D-Chymera joined | 02:42 |
| → caseymcg joined | 02:42 |
|
Bearcat
| jpalmer: ok, gitolite is installed | 02:44 |
| ← sudoquai_ left | 02:44 |
|
Bearcat
| jpalmer: and i've made the home dir /usr/lib/gitolite for the 'git' user | 02:44 |
| → Yuuhi` joined | 02:44 |
|
nevyn
| /usr/lib/gitolite eww | 02:45 |
|
| /srv/gitolite please. let's be all fhsy | 02:45 |
| ← Yuuhi left | 02:45 |
| ← jakob left | 02:47 |
| → jakob joined | 02:47 |
|
| EugeneKay uses /data/gitolite, but that's me | 02:48 |
| → maletor joined | 02:49 |
| ← churp left | 02:49 |
|
| jpalmer uses /home/gitolite, cuz i have bacula setup to grab /home | 02:54 |
|
| Bearcat looks for a 'how to set up a git server with geolite document' | 02:54 |
| ← mezolio left | 02:55 |
| → kukks joined | 02:55 |
| → ericm joined | 02:55 |
|
jpalmer
| Bearcat: the gitolite site has a tutorial, is that not working for you? | 02:55 |
|
MestreLion
| about fetch and pull: Suppose im in a new local branch, WORK, and i want to "update" my local MASTER branch so it syncs with upstream. Do I really have to checkout MASTER before the pull/fetch? | 02:56 |
| ← ericm left | 02:56 |
| → ericm joined | 02:56 |
|
Bearcat
| jpalmer: ah ha! Found the instructions. | 02:57 |
|
MestreLion
| i mean... is there a way to stay in WORK, unaffected, and just "please download and update whatever is new from the remote" ? | 02:57 |
|
jpalmer
| Bearcat: cool | 02:58 |
|
nevyn
| MestreLion: so you can do a git remote update while on any branch (which is the fetch) | 02:58 |
|
Bearcat
| jpalmer: this seems like a lot of abstraction.. | 02:58 |
| ← magnus_ left | 02:59 |
|
nevyn
| MestreLion: however to do the pull or a merge you need to be on master | 02:59 |
| → MissionCritical joined | 02:59 |
|
jpalmer
| Bearcat: indeed. thats why you saw the advice you got a few minutes ago. | 02:59 |
|
MestreLion
| nevyn: and i need a pull to update all local branches to their new commits, correct? | 03:00 |
| ← ericm left | 03:00 |
| → magnus_ joined | 03:01 |
| ← LuvMySubi left | 03:01 |
|
nevyn
| MestreLion: yes. | 03:01 |
| ← Liq^m left | 03:01 |
| ← flavius left | 03:02 |
|
MestreLion
| this is something I failed to undersand when I read GitPro book: fetch downloads all new commits, but it does not update any local branches to their new heads, right? So, if a repo has 3 branches, and new commits were made to all of them, do I need to issue "pull" in each one? | 03:04 |
| → mandric joined | 03:04 |
|
nevyn
| yes | 03:05 |
|
MestreLion
| wow, really? theres no single command that can update all my local branches for their corresponding remote state? | 03:06 |
| ← heppy left | 03:07 |
| → imarcusthis joined | 03:07 |
| → ericm joined | 03:08 |
|
nevyn
| well.. | 03:08 |
|
Bearcat
| MestreLion: do you know bash scripting? | 03:08 |
|
nevyn
| so the idea is that branches have local commits on them | 03:08 |
|
| a decision needs to be made as to how that local commit get's applied to upstream's new state | 03:08 |
|
| this is why local tracking branches that don't have work on them are stupid. | 03:09 |
|
| you can always directly just checkout the remote's branch | 03:09 |
| → intripoon_ joined | 03:09 |
|
nevyn
| MestreLion: ^^ | 03:10 |
|
MestreLion
| sorry, i was afk.. and yes i do Bearcat ... but I can't believe I would need to resort to that | 03:10 |
|
nevyn
| MestreLion: so there are multiple ways of integrating a new upstream with local changes | 03:11 |
|
MestreLion
| nevyn: I never do work on local tracking branches, I always create a new branch right after the clonie... but the clone automatically creates the local versions of remote's branches | 03:11 |
|
| clone* | 03:11 |
| ← Destos left | 03:11 |
| ← ericm left | 03:12 |
|
nevyn
| so I use master as a "for upstream" branch | 03:12 |
| → SethRobertson joined | 03:12 |
| ← intripoon left | 03:12 |
| → oriba_ joined | 03:12 |
| → Goplat joined | 03:13 |
|
MestreLion
| the only local commits I usually have ar the ones in my new branch, which does not exist on remote | 03:13 |
|
nevyn
| well pull is probably a bad move on local work branches | 03:13 |
|
| you may want rebase | 03:14 |
|
| in fact you probably want rebase | 03:14 |
| ← oriba left | 03:15 |
|
MestreLion
| "this is why local tracking branches that don't have work on them are stupid." - I dont understand... clone automatically creates them, don't it? | 03:15 |
| ← imarcusthis left | 03:16 |
|
nevyn
| so making local branches of remote branches that you never commit to is silly | 03:16 |
|
| or never merge local changes into | 03:16 |
|
| it just becomes overhead to keep it up to date. | 03:17 |
|
MestreLion
| I did't, clone did | 03:17 |
|
nevyn
| no clone just made the branch not using it was a part of your workflow :) | 03:17 |
|
MestreLion
| hummm | 03:17 |
|
nevyn
| note I'm not saying you should work on master. | 03:18 |
|
MestreLion
| I know | 03:18 |
| ← Chappo left | 03:18 |
|
nevyn
| I usually rename master after the clone | 03:18 |
|
| to make it something like "integration for upstream" | 03:18 |
| → Chappo joined | 03:18 |
|
MestreLion
| and I wonr work on master... I prefer to keep it "clean", and do all my work in a sepatare branch | 03:18 |
|
nevyn
| then git pull it first and then rebase featurebranches | 03:19 |
| → xith_kymous joined | 03:19 |
|
MestreLion
| but I have to switch to master before that, correct? can't I "update" the branches while staying on work? | 03:20 |
|
nevyn
| well yes. | 03:20 |
|
| you can't merge into a branch that isn't checked out. | 03:20 |
|
MestreLion
| Say upstream has 3 branches... devel, testing, master.. I cloned repo, created "mywork" | 03:20 |
|
nevyn
| yep | 03:21 |
|
| so you cloned the repo creating master which trackes origin/master (assuming head of the remote is master) | 03:21 |
|
MestreLion
| after clone command, my repo will have 7 branches... devel, origin/devel, master, origin/master, etc etc... and "mywork" | 03:22 |
|
nevyn
| it shouldn't | 03:22 |
|
| right so origin/master origin/devel isn't a local branch | 03:22 |
|
MestreLion
| Oh, clone only creates 1 local branch? | 03:22 |
|
nevyn
| it's the remote branch | 03:22 |
| ← linusoleander left | 03:22 |
|
MestreLion
| clone does not create a devel local branch? | 03:23 |
|
nevyn
| if you git fetch git checkout origin/master you don't need to pull. | 03:23 |
|
| brb | 03:23 |
|
MestreLion
| thats great... i don't even have to checkout for the rebase | 03:24 |
| → plusk joined | 03:24 |
| → BiggFREE joined | 03:24 |
| → MaximusColourum joined | 03:25 |
| ← themachine left | 03:25 |
|
nevyn
| so if you rebase to origin/master you're gold. | 03:26 |
| → Targen joined | 03:26 |
|
MestreLion
| looks like renaming local master instead of creating a new branch may simplify the workflow | 03:26 |
| → Bass10 joined | 03:27 |
|
MestreLion
| how would the renaming affect the "auto-tracking" records that clone creates? | 03:27 |
|
nevyn
| it doesn't | 03:28 |
| ← kukks left | 03:29 |
|
nevyn
| it would still track origin/master | 03:29 |
|
| which means you could rebase to origin/master by just using git rebase | 03:30 |
|
MestreLion
| It would make "mywork" track origin/master? | 03:30 |
|
nevyn
| yep | 03:30 |
| ← bwidmer left | 03:30 |
| → bwidmer joined | 03:30 |
|
nevyn
| which may not be what you want. | 03:30 |
|
| you may want to track development or testing | 03:30 |
| ← Eduard_Munteanu left | 03:31 |
| → neurodrone joined | 03:31 |
|
MestreLion
| would still be the same workflow, only for "testing" instead of "master" | 03:32 |
|
| my concern is about future updates to origin/whatever-i-based-on to conflict with my renamed branch for fetches, pulls, etc | 03:33 |
|
nevyn
| don't use pulls | 03:33 |
|
| a pull is a fetch + merge you know that right? | 03:33 |
| ← plusk left | 03:33 |
| → themachine joined | 03:34 |
|
MestreLion
| Sure, sure, of course! what kind of newbie you think I am? | 03:34 |
|
nevyn
| right | 03:34 |
|
| MestreLion quickly fires up man git pull :P | 03:34 |
|
nevyn
| so I don't like merges | 03:34 |
|
| particularly merges from upstream into work branches | 03:34 |
|
| Bearcat doesn't know what's wrong with 'git pull | 03:34 |
|
Bearcat
| and thought that was stadard | 03:35 |
|
nevyn
| it is | 03:35 |
|
| Bearcat is the kind of newbie that nevyn thinks he is ^>.>^ | 03:35 |
|
nevyn
| and it's fine if you have a pure tracking branch with no local modifications | 03:35 |
|
MestreLion
| nevyn: I would not like that either, nevyn | 03:35 |
|
| (I mean.. merging upstream in my work branch) | 03:36 |
|
nevyn
| so you want to rebase there. | 03:36 |
|
| I almost never use pull | 03:37 |
|
| I use git remote update ( a lot) | 03:37 |
|
| and rebase. | 03:37 |
|
| and checkout | 03:37 |
|
milki
| Bearcat: what is ^>.>^ o.O | 03:37 |
|
MestreLion
| hummm, remote update... that's gold | 03:38 |
|
| It's the same as fetch for each of the configured remotes? | 03:39 |
| ← BiggFREE left | 03:39 |
|
nevyn
| yep | 03:39 |
|
| it fetches for every configured remote | 03:39 |
| ← ceej left | 03:40 |
|
Bearcat
| cat ears + looking to the side. It's similar to *cough* | 03:40 |
| ← Fandekasp left | 03:40 |
|
MestreLion
| man, I could even configure my repo to track several forks of a given project, and then fetch them all at once? | 03:42 |
|
| Sounds incredibly powerful | 03:42 |
|
milki
| learn to script | 03:42 |
|
cbreak
| git remote update | 03:43 |
|
MestreLion
| I do milki ... but it sounds like I don't even need to... | 03:43 |
|
cbreak
| fetches all remotes. | 03:43 |
|
| no need to script | 03:43 |
| ← caseymcg left | 03:43 |
| → gxzaga joined | 03:43 |
| ← fisted_ left | 03:45 |
|
MestreLion
| oh, by the way... nevyn and Bearcat both reaize I was joking about that "newbie" stuff, right? Because, yes, I didn't know a pull was an internal fetch+merge (/me blushes) | 03:45 |
|
| for me, it was like: fetch = download objects, pull = update location of named commits (heads from branches, tags, etc) | 03:47 |
|
| I must re-read GitPro... It's incredible how much I've forgotten in 3 months | 03:47 |
|
| (and, worse than forget... to mix the concepts in the wrong way) | 03:49 |
|
| anyway, thanks nevyn | 03:49 |
|
| nevyn++ | 03:49 |
| ← oriba_ left | 03:49 |
| gitinfo set mode: +v | 03:49 |
|
Bearcat
| i'm having to go back and read up on pgp keys. I have one, i've been using it but that doesn't mean i understand it all.... | 03:49 |
|
gxzaga
| hello, I need to change the history of older commit messages. Since the history is non-linear, "git rebase -i" yields conflicts when I do "git rebase --continue". I am tempted to try a "git filter-branch --msg-filter". However, I have not used this before, any other ideas? | 03:50 |
| → fisted joined | 03:50 |
|
MestreLion
| Bearcat: ssh keys != pgp keys | 03:51 |
|
Bearcat
| er..yeah that's what i meant | 03:52 |
|
MestreLion
| which one? Git uses both for different purposes | 03:52 |
|
Bearcat
| i'm not sure.. | 03:53 |
|
MestreLion
| Ok, remember I'm a total newbie... | 03:53 |
|
Bearcat
| i have a local git repo that i'm trying to now set up on my central server in my lan so i can pull it around. Eventually i want external access to it. | 03:53 |
| ← orafu left | 03:53 |
|
MestreLion
| I use ssh keys to connect to remote repos (for example, Github) | 03:54 |
|
Bearcat
| and gitolite was reccomended to me so i'm looking that up.. | 03:54 |
|
MestreLion
| and pgp keys are used to sign commits | 03:54 |
|
| It's probably refering to ssh keys | 03:54 |
|
Bearcat
| ahh, ok ssh keys | 03:54 |
|
| that does make more sense | 03:54 |
|
MestreLion
| :) | 03:55 |
|
| Let me guess, Mint/Ubuntu user too? :) | 03:55 |
| → amigojapan joined | 03:55 |
|
| Bearcat wonders if it has to be a personal ssh certificate or if it can be the same one he uses for his server | 03:56 |
|
Bearcat
| MestreLion: gentoo | 03:56 |
|
nevyn
| do you have a ssh key? | 03:56 |
|
Bearcat
| i've never heard of an ssh key. Only certificates. | 03:57 |
|
nevyn
| certificates are ssl (completely different) | 03:57 |
|
MestreLion
| Bearcat: I said Mint/Ubuntu because I use Mint... and they have a great GUI for keys that handles both SSH and PGP (as well as Gnome-keyring), so it's really easy to confuse them since you manage them all in 1 place | 03:57 |
|
Bearcat
| MestreLion: ahh | 03:57 |
|
| nevyn: i just started looking into security stuff and this is all a bit confusing. | 03:57 |
|
nevyn
| so.. | 03:58 |
|
| keys/certificates are essentially the same thing. | 03:58 |
| ← maletor left | 03:58 |
| → orafu joined | 03:58 |
|
nevyn
| they're digital uniqueness used for either autenticating an entity or protecting data. | 03:58 |
|
| or both. | 03:59 |
|
Bearcat
| nevyn: well i have ssh set up so that i can log in remotely. When i do so it askes me to accept a 'fingerprint'. | 03:59 |
| ← magnus_ left | 03:59 |
|
nevyn
| right. that's the server side key | 03:59 |
|
Bearcat
| i doubt that's the key as i don't recall ever generating one. | 03:59 |
|
| ahh ok | 03:59 |
|
| MestreLion sits down ad carefully reads the nevyn 's lesson | 03:59 |
|
nevyn
| when you log in remotely. does it ask for a password? | 03:59 |
|
Bearcat
| yes | 03:59 |
|
nevyn
| so you don't have a ssh key | 04:00 |
|
| a ssh key is used for authentication to replace the password | 04:00 |
|
| gitolite relies on this heavily. | 04:01 |
| → jwmann joined | 04:01 |
| → magnus_ joined | 04:01 |
|
Bearcat
| i don't understand that, really. Wouldn't that mean i'd have to carry file-that-is-the-key around with me and if i loose that anyone can get into my stuff? | 04:02 |
| → HFSPLUS joined | 04:02 |
| ← gxzaga left | 04:02 |
|
nevyn
| yesish | 04:02 |
|
| so the key should be encrypted with a passphrase. | 04:02 |
| → wuj joined | 04:03 |
|
nevyn
| loosing your key is a bad thing it's not something you want on the loose | 04:03 |
|
Bearcat
| is this still a private/public key pair topology? | 04:03 |
|
nevyn
| losing it is also bad. | 04:03 |
|
| yes | 04:03 |
|
sitaram
| topology? I dont think that word means what you think it means... | 04:03 |
|
Bearcat
| and this is not the same thing as a gpg key? | 04:04 |
|
sitaram
| Bearcat: same *technology* but not same applictaion of it | 04:04 |
| ← toothr left | 04:04 |
|
sitaram
| application* | 04:04 |
|
Bearcat
| *nod nods* | 04:04 |
|
| thanks for the help i'm learning a lot here | 04:04 |
|
HFSPLUS
| fuck niggers | 04:04 |
|
nevyn
| srsly? | 04:04 |
|
HFSPLUS
| they think they are cool | 04:04 |
|
| them and there chicken | 04:04 |
|
sitaram
| I thought we had a website you need to go to get voice... | 04:05 |
|
| Bearcat: http://sitaramc.github.com/gitolite/gl_ssh.html (how gitolite uses ssh) may be of use. Ignore the gitolite parts -- it explains the ssh part in good enough detail | 04:06 |
|
| the "ssh basics" section at least | 04:06 |
|
Bearcat
| thanks sitaram. I'll shut up for a while and read that :") | 04:06 |
|
sitaram
| np | 04:06 |
|
| you're welcome! | 04:06 |
|
HFSPLUS
| they think they are cool | 04:06 |
|
Bearcat
| and you too nevyn, thank you. | 04:06 |
| ← HFSPLUS left | 04:08 |
|
Bearcat
| much better. | 04:08 |
| → angelsl joined | 04:08 |
| → Katniss_ joined | 04:09 |
|
sitaram
| Bearcat: now that I read it again, if you "ignore the gitolite parts" as I first said, there isn't a lot <sheepish grin> but should still be useful | 04:09 |
|
Bearcat
| "If people can't communicate, the least they can do is to shut up" -- Tom Leher | 04:09 |
| ← MaximusColourum left | 04:10 |
|
nevyn
| Bearcat: so it's a stronger form of authentication than passwords. | 04:10 |
|
Bearcat
| sitaram: oh, i'll read that whole thing and then look up the gento specific ssh stuff | 04:10 |
|
nevyn
| in that keys are longer. | 04:10 |
|
| and something you have rather than "just" something you know | 04:10 |
| ← Katniss left | 04:11 |
|
sitaram
| and in the "many users logging onto one user" context, you can selectively de-recognise one user while not affecting the others. (If you used passwords you'd have to change the password and tell everyone else again and they would have to <whatever>) | 04:12 |
|
| here you just remove his pubkey from the authkeys file | 04:12 |
|
Bearcat
| ahh, cool | 04:12 |
| → simplechat joined | 04:13 |
| ← simplechat left | 04:13 |
| → simplechat joined | 04:13 |
|
jpalmer
| !ops | 04:14 |
|
gitinfo
| [!topsecret] If your situation is so secret that you can't tell us how to !reproduce it, there's really not much we can do. Perhaps you need to find or buy support you can trust? There are people with clearances even on #git but since clearance levels are classified and #git is not a secure channel, this may not help you. However, you are protected by the biggest secret of all: We just don't care. | 04:14 |
|
nevyn
| jpalmer: :( | 04:14 |
|
Bearcat
| ha ha ha ha | 04:14 |
|
jpalmer
| oh, didn't see his K-line quit. | 04:15 |
| → ericm joined | 04:15 |
|
Bearcat
| jpalmer: i was kinda hoping they'd choke on a chiken bone | 04:15 |
|
| *chicken even | 04:16 |
|
Corey
| jpalmer: ? | 04:16 |
|
| Yeah, you're a bit slow. :-p | 04:16 |
|
jpalmer
| ;) | 04:17 |
| ← xerora left | 04:17 |
|
| sitaram hums "it's fun to eulogise // about people you despise // it's only for a week so have no feaaar // be graeful that it doesn't last all yeaaar" (since someone mentioned Tom Lehrer) | 04:18 |
|
Aleric
| Uh... I did commits and now I'm happy.. but then I find that I'm on "no branch".. I thought I was on 'master' :/. How can I tell git that where I'm now is master and to forget about the current master (which contains a partial patch that is already in my current 'no branch' but will cause collisions if I try to merge)? | 04:18 |
| ← MestreLion left | 04:18 |
|
nevyn
| Aleric: git checkout -b newstuff | 04:19 |
|
| will make a new branch from where you are right now. | 04:19 |
|
| this will let you check what's on master and balh | 04:19 |
| ← ericm left | 04:19 |
| → MestreLion joined | 04:19 |
|
Aleric
| I already know what is there... I just want to move the master tag | 04:20 |
| → f0i joined | 04:20 |
|
Aleric
| What about: git branch -d master; get checkout -b master | 04:20 |
| → Katniss joined | 04:20 |
|
MestreLion
| I know ssh is off-topic, but since we are at it... I don't understand this: the 1st time i log in a server using ssh my pub keys are not at server yet, so I authenticate using regular username/passwrd (assuming I do have one at server) | 04:21 |
|
nevyn
| MestreLion: that statement confuses multiple things. | 04:21 |
|
sitaram
| including "what is the question"? | 04:22 |
|
nevyn
| Aleric: so after making newstuff you do git reset master newstuff | 04:22 |
|
| Aleric: then delete newstuff | 04:22 |
|
MestreLion
| nevermind nevyn , Aleric seems to have a legit Git question, I can read about ssh somewhere else | 04:22 |
| ← Katniss_ left | 04:22 |
|
nevyn
| Aleric: doing git branch -d master && git checkout -b master is terrifying and will remove the tracking link that's part of master. | 04:22 |
| → AlbireoX joined | 04:23 |
|
sitaram
| MestreLion: it's a lazy-ish Sunday morning. People have gone far more offtopic and ssh is not really offtopic since it's a valid transport protocol for git. Ask. | 04:23 |
| → kerrick joined | 04:23 |
|
nevyn
| s/morning/afternoon/ but yes | 04:23 |
|
| Bearcat notes that where he is, it's still Saturday. He must be slower than jpalmer | 04:24 |
|
sitaram
| s/gone/in the past gone | 04:24 |
|
Aleric
| nevyn: That didn't work ... | 04:24 |
| → Rahul joined | 04:24 |
|
MestreLion
| ok, sitaram , thanks. But I guess before asking I need nevyn 's explanation about my confused statement | 04:24 |
|
nevyn
| what didn't work. | 04:24 |
|
Aleric
| I did: | 04:25 |
|
sitaram
| MestreLion: TBH I was confused too, as in "was there a question in there?" | 04:25 |
|
Aleric
| git checkout -b newstuff | 04:25 |
|
| git reset master newstuff | 04:25 |
|
nevyn
| ok. | 04:25 |
|
Aleric
| git checkout master | 04:25 |
|
nevyn
| and. | 04:25 |
|
MestreLion
| there is, I just didnt get there yet... but... was the statement so far that wrong? | 04:25 |
|
Aleric
| and now I have not the code that I want/had... but the old code | 04:25 |
|
sitaram
| Aleric: "git reset master newstuff" does not compute, to me | 04:25 |
|
nevyn
| so if you checkout newstuff you get the newcode | 04:25 |
| ChanServ set mode: +v | 04:25 |
|
nevyn
| actually I have that wrong | 04:26 |
|
| git reset newstuff while having master checked out should work tho | 04:26 |
|
sitaram
| MestreLion: could be, if people assumed what your *question* was. Complete it...! | 04:26 |
| → modal2 joined | 04:26 |
| ← xith_kymous left | 04:27 |
|
MestreLion
| sitaram: Ok. So I log in, 1st time, using regular user/passwrd . Then I could transfer my pub key to the ~/.ssh auth file so I don't have to use my username/password all the time... sounds. BUT.. I would still need to enter my ssh passphrase. So, besides enhanced security, theres no real "no need for password" gain, isn't it? | 04:28 |
| ← wuj left | 04:29 |
|
nevyn
| so there's a client utility called an ssh-agent which loads your key into memory for ssh to use | 04:29 |
|
MestreLion
| ssh-agent only caches my passphrase for like 15 minutes (I guess), so I would still need to re-enter it almost every time I log in | 04:30 |
|
nevyn
| so for me I arrive at work. type my passphrase to load the key into the agent. then ssh all day... | 04:30 |
|
sitaram
| MestreLion: several differences between this and plain password... | 04:30 |
|
nevyn
| that's a bizzare configuration of ssh-agent | 04:30 |
|
| certainly not standard. | 04:30 |
|
sitaram
| MestreLion: (1) this requires that file to be available, so an attacker would need *two* things -- your passphrase *and* the file | 04:31 |
|
MestreLion
| sitaram: but they are all security-related, correct? theres no "ease of use" | 04:31 |
|
nevyn
| MestreLion: it allows greater tracability on shared accounts | 04:31 |
|
sitaram
| MestreLion: wouldn't you rather I needed *two* things to hack your server account than just *one*? | 04:31 |
|
nevyn
| so for things like gitolite where every users ssh's to git@gitolitehost | 04:31 |
|
| it allows identification of the individuals based on their differerent keys | 04:32 |
| ← Gitzilla left | 04:32 |
|
MestreLion
| nevyn: I never changed default settings of ssh-agent... well, maybe I just dont use Github that often... ddoes it cache for more than 1 day? or until logout? | 04:32 |
|
nevyn
| until logout by default I think | 04:33 |
|
MestreLion
| nevyn: that makes sense | 04:33 |
|
nevyn
| well.. it's a user process | 04:33 |
|
| so you shouldn't run ssh-agent if you're using X you should be able to just use ssh-add | 04:34 |
| ← xiagox left | 04:34 |
|
MestreLion
| sitaram: which other file he needs? the pub key is already at the server... as for my private key, can't the hacker just use plain username/password, like I did in my 1st login? | 04:34 |
|
Bearcat
| it would be kinda nice if i could just use my php key for this, but looking at them both in vim they look to be not the same thing. | 04:35 |
|
| ^php^pgp geeze | 04:35 |
|
sitaram
| MestreLion: in most really secure setups the password access is disabled once pubkey is setup, or the password changed to something really hard to guess/use | 04:36 |
|
MestreLion
| ohhhh, NOW it makes sense | 04:36 |
|
nevyn
| sshd can be configured to disallow password authentication | 04:36 |
|
MestreLion
| so once my pub key is there, username/passwd acces is forbidden? | 04:36 |
|
sitaram
| MestreLion: you're not alone though. See http://lwn.net/Articles/369703/ | 04:37 |
|
| MestreLion: there're some situations where *password* is apparently better! | 04:37 |
| → pdtpatr1ck joined | 04:37 |
|
sitaram
| MestreLion: could be/should be forbidden, or the password changed to something really out there | 04:37 |
|
| which cannot be mitm-ed or social engineered | 04:38 |
|
MestreLion
| sitaram: I already fired up a bunch of browser tabs for ssh tutorials since this nevyn started his "lesson" to Bearcat | 04:38 |
| ← zulax left | 04:38 |
|
MestreLion
| sitaram / nevyn : this "forbid password access" is a user or server setting? | 04:38 |
|
| MestreLion googles for "mitm" | 04:39 |
|
MestreLion
| oh, Man in the Middle | 04:39 |
| → herdingcat joined | 04:40 |
|
MestreLion
| I mean, can I forbid password access to my account in a remote server myself, or do I require the server's sshd to be configured in that way? | 04:40 |
|
nevyn
| you need to configure sshd | 04:41 |
|
MestreLion
| Can I, i mean? | 04:41 |
| ← herdingcat left | 04:41 |
|
MestreLion
| or do I require any special privilege in the server? | 04:42 |
| → shiba_yu36 joined | 04:42 |
| → TL joined | 04:42 |
| → herdingcat joined | 04:42 |
|
MestreLion
| (man, my english is awlful today) | 04:42 |
| → guest4854 joined | 04:43 |
|
nevyn
| you require root on the server. | 04:43 |
| → toothr joined | 04:43 |
|
nevyn
| Aleric: did that make sense? | 04:43 |
|
| 15:23 < nevyn> git reset newstuff while having master checked out should work tho | 04:43 |
|
MestreLion
| 15:23 there? wow... it's not even 3am here :P | 04:44 |
| ← shiba_yu36 left | 04:44 |
|
MestreLion
| AM | 04:44 |
| → shiba_yu36 joined | 04:44 |
| → kryl99_ joined | 04:44 |
| ← kerrick left | 04:45 |
|
MestreLion
| so the only thing an ordinary user, accessing his univeristy account for example, is to change the apssword to someing exorbitant, as sitaram suggest, right? Other than that, hope that the university server is configured to forbid password access if ssh pub keys are present. Correct? | 04:46 |
|
nevyn
| you can change your password to a 80 character generated thing and store it in a gpg encrpted file or in a envelope locked in a safe/drawer | 04:47 |
| → Gitzilla joined | 04:47 |
|
| nevyn likes securing things in the physical world more and more | 04:47 |
| → freezey joined | 04:49 |
|
nevyn
| so in an envelope locked in a real safe. | 04:49 |
|
MestreLion
| that URL sitaram pasted, about passwd vs ssh is gold... not the debate itself, but it already answered a lot of my questions about ssh in general | 04:50 |
| gitinfo set mode: +v | 04:50 |
|
MestreLion
| wow, Ubuntu/Mint don't come with ssh server by default | 04:51 |
|
nevyn
| nope | 04:51 |
|
| openssh-server | 04:51 |
|
MestreLion
| yup | 04:51 |
|
| How is the default settings in most distros? Already set as "PasswordAuthentication no" | 04:52 |
|
| ? | 04:52 |
| ← techstein left | 04:56 |
|
nevyn
| nope | 04:57 |
|
| default is passwordAuthentication yes | 04:57 |
| ← albel727 left | 04:57 |
| → techstein joined | 04:58 |
|
guest4854
| Hello. I had a question which I can't seem to find much of anything on elsewhere. What causes these sort of errors: "Warn: [some-directory-here] doesn't contain commit [hash-here]" Also, how might one fix it? In my case its related to sub modules if that makes any difference. | 04:58 |
|
nevyn
| did you pull the submodule? | 04:59 |
| ← magnus_ left | 04:59 |
|
guest4854
| yes | 04:59 |
| → magnus_ joined | 05:02 |
| ← lyddonb_ left | 05:04 |
| → yshh joined | 05:09 |
| → ceej joined | 05:12 |
| ← ceej left | 05:13 |
| ← guest4854 left | 05:16 |
| → Cam joined | 05:18 |
| ← niki left | 05:19 |
| → rchavik joined | 05:19 |
| → Filthy joined | 05:19 |
| ← soulcake left | 05:19 |
| ← zomothesweeper left | 05:19 |
| → soulcake joined | 05:21 |
| ← oc80z left | 05:23 |
| → oc80z joined | 05:23 |
| ← osmosis left | 05:24 |
| → zomothesweeper joined | 05:25 |
| ← zomothesweeper left | 05:25 |
| → zomothesweeper joined | 05:27 |
| ← mandric left | 05:29 |
| ← jakob left | 05:29 |
| → heppy joined | 05:32 |
| → albel727 joined | 05:35 |
| → aknewhope joined | 05:35 |
| → jakob joined | 05:36 |
| ← f0i left | 05:37 |
| → f0i joined | 05:40 |
| ← t0rc left | 05:42 |
| → the_cybersphinx joined | 05:46 |
| ← jakob left | 05:47 |
| → lnostdal_ joined | 05:47 |
| → abetaha joined | 05:48 |
| ← luxurymode left | 05:48 |
| → glennpratt joined | 05:49 |
| ← werdnativ left | 05:49 |
| ← cybersphinx left | 05:49 |
| → kensington joined | 05:50 |
| → jakob joined | 05:52 |
| ← justfielding left | 05:52 |
| → tongueroo joined | 05:52 |
|
tongueroo
| hi guys, is there a way to preload a git commit with a message in vim? | 05:53 |
|
| i would like to type, "git commit" and when the vim editor opens , there to already be a message there | 05:53 |
| ← bgerber left | 05:54 |
|
Nugget
| you can do that via a prepare-commit-msg hook | 05:54 |
|
| there should be sample code in .git/hooks/prepare-commit-msg.sample in any of your existing git repos | 05:54 |
| → xerora joined | 05:55 |
|
tongueroo
| Nugget: awesome | 05:55 |
|
| thanks | 05:55 |
|
| ! | 05:55 |
| → bgerber joined | 05:55 |
|
kensington
| when building git, most binary names end with last eg. 'gitlast' 'git-helplast'. any ideas as to why that might be happening? | 05:56 |
| ← jakob left | 05:57 |
| → justfielding joined | 05:58 |
| → jakob joined | 05:59 |
| → kevwil joined | 05:59 |
| ← magnus_ left | 06:00 |
| ← macmartine left | 06:01 |
| ← justfielding left | 06:01 |
| ← kevwil left | 06:01 |
| → magnus_ joined | 06:01 |
|
milki
| how are you building it | 06:02 |
| → maleknet joined | 06:02 |
|
kensington
| ./configure && make | 06:03 |
| ← ormris left | 06:03 |
| → macrover joined | 06:03 |
| ← msponge left | 06:05 |
| → msponge joined | 06:07 |
| → macmartine joined | 06:08 |
| ← glennpratt left | 06:09 |
| ← bgerber left | 06:11 |
| → bgerber joined | 06:12 |
| → Skyx-mobile__ joined | 06:12 |
| ← alta189 left | 06:13 |
| → osmosis joined | 06:13 |
| → alta189 joined | 06:13 |
|
kensington
| oh, I figured it out, I had $X set, and that variable is appended to binary names for whatever reason | 06:14 |
| → arvind_khadri joined | 06:14 |
| ← jakob left | 06:14 |
| ← dotnull left | 06:14 |
| → jakob joined | 06:15 |
| ← macmartine left | 06:16 |
| ← zomothesweeper left | 06:17 |
| ← Bass10 left | 06:18 |
| → mezolio joined | 06:19 |
| → glennpratt joined | 06:20 |
| ← mezolio left | 06:21 |
|
milki
| lol | 06:22 |
| ← devbug left | 06:23 |
|
kensington
| I'm not sure which is stranger, that build behaviour or my global X=last :) | 06:24 |
| → ilius joined | 06:27 |
| ← aknewhope left | 06:29 |
| → akosikeno joined | 06:29 |
| → aknewhope_ joined | 06:29 |
| ← vandal- left | 06:30 |
| ← neurodrone left | 06:31 |
| ← whyking left | 06:31 |
| → mikepack joined | 06:34 |
| ← glennpratt left | 06:34 |
| ← soulcake left | 06:35 |
| ← lonewulf` left | 06:35 |
| → macmartine joined | 06:38 |
| ← arvind_khadri left | 06:39 |
| ← macmartine left | 06:42 |
| → Demego joined | 06:43 |
| ← tongueroo left | 06:44 |
| ← TL left | 06:44 |
| ← dreiss left | 06:44 |
| ← aknewhope_ left | 06:45 |
| ← yshh left | 06:45 |
| → aknewhope joined | 06:46 |
| ← Skyx-mobile__ left | 06:46 |
| → bcardarella joined | 06:47 |
| ← modal2 left | 06:47 |
| ← Demego left | 06:48 |
|
bcardarella
| So I mistakenly committed code to my local repo that I didn't intend to (wrong window open) is there a way I can uncomit the code and get back the changes I made as a dirty directory? | 06:48 |
| ← aknewhope left | 06:48 |
|
nevyn
| git reset --soft HEAD^ | 06:48 |
| → Araxia_ joined | 06:49 |
| ← macrover left | 06:50 |
| → nixmaniack joined | 06:50 |
| ← Heimidal left | 06:50 |
| ← Chillance left | 06:53 |
| ← Araxia left | 06:53 |
| Araxia_ → Araxia | 06:53 |
| → Chillance joined | 06:54 |
|
bcardarella
| oh, thank-you | 06:55 |
| ← Chillance left | 06:55 |
| ← jargon-_ left | 06:56 |
| ← edude03 left | 06:57 |
| ← Filthy left | 07:00 |
| ← magnus_ left | 07:02 |
| → magnus_ joined | 07:02 |
| ← herdingcat left | 07:03 |
| → dreiss joined | 07:05 |
| → csherin joined | 07:05 |
| → tilleps joined | 07:08 |
| ← maleknet left | 07:08 |
| ← alta189 left | 07:08 |
| → arvind_khadri joined | 07:09 |
| → alta189 joined | 07:09 |
| gitinfo set mode: +v | 07:11 |
| → maleknet joined | 07:11 |
| gitinfo set mode: +v | 07:12 |
|
tilleps
| If I git clone a repo (B) inside a git repo (A), would repo (B) be pulled/fetched if I do "git pull --recursive" ? | 07:12 |
| → Dragooon joined | 07:12 |
| ← jakob left | 07:13 |
| → lonewulf` joined | 07:14 |
| → jakob joined | 07:14 |
|
milki
| no | 07:14 |
| → imarcusthis joined | 07:17 |
|
tilleps
| what's the term I would need to search for to read up on how to accomplish this? | 07:17 |
| ← skylord5816 left | 07:17 |
| ← mikepack left | 07:17 |
|
selckin
| bash | 07:18 |
|
tilleps
| nevermind, found it: http://stackoverflow.com/questions/2140985/setup-a-git-external-for-remote-repo | 07:19 |
| → jacekmigacz joined | 07:19 |
| → CapnKernel joined | 07:20 |
|
selckin
| that still won't give you a single command to update | 07:21 |
|
tilleps
| care to indulge on what would? | 07:21 |
| → mikepack joined | 07:22 |
| ← mklappstuhl left | 07:22 |
| → werdnativ joined | 07:22 |
|
CapnKernel
| Hello. I have some files in a repo that are read-only. git pull is having trouble because they're read-only. Any suggestions? | 07:22 |
| ← QaDeS_ left | 07:22 |
| → tewecske joined | 07:23 |
|
selckin
| make them writable | 07:23 |
|
CapnKernel
| Yes git is allowed to change the perms in order to make the changes. I'm hoping there's some sort of option that says "faff around with perms to do what you need to" | 07:23 |
|
selckin
| git doesn't care about perms | 07:23 |
|
| it doesn't track or change them in any way (except +x) | 07:24 |
|
CapnKernel
| Oh I see. It doesn't track the "w" bit? | 07:24 |
|
selckin
| no | 07:25 |
|
milki
| if you want them to be read-only, you probably need some git hooks to temporarily change them | 07:26 |
|
selckin
| or you know, not be dumb and having them readonly when they are tracked will need to be changed | 07:26 |
| → AmirBehzad joined | 07:27 |
| ← imarcusthis left | 07:27 |
| ← tm1000 left | 07:28 |
|
CapnKernel
| I have a website in git. Certain files in the website are read-only. I'd rather not have to have some sort of intermediate copy that gets shuffled back and forth. | 07:28 |
| ← uu left | 07:28 |
|
selckin
| git is not a deployment tool | 07:29 |
|
CapnKernel
| ok | 07:30 |
|
milki
| if you are using it as a deployment tool, i dont see any reason you couldnt write a post-deployment script to fix perms | 07:30 |
|
CapnKernel
| yes | 07:30 |
|
| That's what I do | 07:30 |
|
selckin
| you can sorta make it into one, but won't be pretty | 07:30 |
|
CapnKernel
| I'd like to be able to have it two-way though | 07:30 |
| → tm1000 joined | 07:30 |
|
CapnKernel
| Anyway, I'll see what I can do | 07:31 |
|
milki
| ya, git wont do that for you | 07:31 |
|
selckin
| but it will still have the same effect as them being writeable | 07:31 |
|
CapnKernel
| Sure is useful to be able to develop a website on a laptop, then push it to testing and production websites. | 07:31 |
| → thiago joined | 07:31 |
|
milki
| i use post-receive hooks to do deployment | 07:31 |
|
CapnKernel
| I'll improve the way I do Unix permissions, in that they should all be writable for me, but not for the web server user. | 07:31 |
|
| Then if I run git as me, it shouldn't be a problem :-) | 07:32 |
| → aknewhope joined | 07:33 |
| ← tilleps left | 07:38 |
| → Heimidal joined | 07:39 |
| → Fandekasp joined | 07:40 |
| ← joshteam left | 07:45 |
| → h0bbit joined | 07:45 |
| → Synaps joined | 07:47 |
| gitinfo set mode: +v | 07:49 |
|
Synaps
| Guys, I need your help with understanding git. I have a repository, and I want to get the name of the author with most number of commits. Is there a way to do that? | 07:49 |
|
bob2
| that's not really an understanding git question | 07:49 |
|
| you'll need a script to output the author for every commit, so read the man page for git-log and use the required format | 07:50 |
|
| then uniq -c or something | 07:50 |
|
| possible git-stats (not part of git) has a thing already | 07:50 |
|
Synaps
| Thank you, I will try to do that | 07:51 |
| → starlays joined | 07:51 |
| → spirat joined | 07:52 |
|
teuf
| you can also use git shortlog output | 07:52 |
|
spirat
| Hello, I can't figure out how to clone this repository: http://repo.or.cz/w/qemu/stefanha.git, tried every url displayed... | 07:52 |
|
Synaps
| sorry, what is git shortlog output? | 07:53 |
|
teuf
| Synaps: just try "git shortlog" | 07:54 |
|
bob2
| spirat, ? | 07:56 |
|
| the git url works fine | 07:56 |
|
| (it saves time if you explain what exactly you did and what exactly happened) | 07:56 |
|
teuf
| ah yeah working tow | 07:57 |
|
| now | 07:57 |
|
| first try, I got "fatal: The remote end hung up unexpectedly " | 07:57 |
|
| so maybe there was a glitch on the server | 07:57 |
|
spirat
| yes | 07:57 |
|
| but it seems strange, the maintainer sent me the url. I feel a little stupid now, I'll probably ask him to check things... | 07:58 |
| → BiggFREE joined | 07:58 |
| ← freezey left | 07:58 |
| ← lotsofcode left | 07:59 |
| → aspotashev joined | 07:59 |
| → imarcusthis joined | 08:00 |
|
bob2
| maybe repo.or.vz is just overloaded | 08:00 |
| ← smw left | 08:00 |
| ← magnus_ left | 08:01 |
| → SegFaultAX joined | 08:02 |
| ← SegFaultAX left | 08:03 |
| → SegFaultAX joined | 08:03 |
| → magnus_ joined | 08:03 |
| ← Goplat left | 08:03 |
|
spirat
| with another url: warning: remote HEAD refers to nonexistent ref, unable to checkout. | 08:03 |
| → kp666 joined | 08:04 |
| → rurufufuss joined | 08:04 |
| ← CapnKernel left | 08:04 |
| ← starlays left | 08:06 |
| → starlays joined | 08:06 |
| ← orospakr left | 08:07 |
| ← abetaha left | 08:09 |
| ← imarcusthis left | 08:10 |
| ← amigojapan left | 08:10 |
|
spirat
| actually i was given this url: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/vlan-hub | 08:13 |
| → imarcusthis joined | 08:14 |
| ← Bearcat left | 08:14 |
| ← maleknet left | 08:14 |
| → maleknet joined | 08:14 |
| → patrick99e99 joined | 08:15 |
| → munichpython joined | 08:16 |
|
patrick99e99
| how can I revert a commit? | 08:16 |
|
| I just did git commit -a -m "blah" and I realized that I didn't want to do that yet... | 08:17 |
| ← munichlinux left | 08:17 |
| munichpython → munichlinux | 08:17 |
|
patrick99e99
| will git revert HEAD actually unstage everything and show me all my previous work when I do git status? | 08:17 |
|
| or will I lose it? | 08:17 |
| ← aknewhope left | 08:18 |
|
spirat
| (concerning my issue, I mailed the maintainer, no need to investigate, thanks) | 08:18 |
| ← Lgb left | 08:20 |
| ← themachine left | 08:20 |
| ← marenz left | 08:21 |
| → mikepack_ joined | 08:21 |
| → koo5 joined | 08:21 |
| ← mikepack left | 08:22 |
| → Lgb joined | 08:23 |
|
fairuz_
| patrick99e99: git reset --soft HEAD^ will help you to undo the last commit | 08:23 |
|
bob2
| (as long as you haven't pushed it) | 08:23 |
|
patrick99e99
| fairuz_: and how do I get my changed code? | 08:24 |
|
| fairuz_: when I do git status now, it says my working directory is clean | 08:24 |
|
fairuz_
| reset --soft will undo the commit, and the modified files will be still there | 08:25 |
| ← Cam left | 08:25 |
|
patrick99e99
| hmm maybe I screwed everything up because I did git revert HEAD | 08:25 |
|
| and it made a 2nd commit.. | 08:25 |
|
| so I did git reset --soft HEAD^ twice | 08:25 |
|
| commit history shows my commits are gone.. | 08:26 |
|
| but so is my code... | 08:26 |
| → Vortex34 joined | 08:26 |
| ← munichlinux left | 08:28 |
| ← brokenshakles left | 08:29 |
|
patrick99e99
| hmm it apparently was in another branch.. | 08:31 |
|
| so i am good.. | 08:31 |
|
| thanks | 08:31 |
| → brokenshakles joined | 08:32 |
| → leavittx joined | 08:34 |
| → mikepack joined | 08:34 |
| ← mikepack_ left | 08:34 |
| → jonas_g joined | 08:34 |
| ← thiago left | 08:35 |
| ← mikepack left | 08:36 |
| → mikepack joined | 08:37 |
| → jackdempsey joined | 08:40 |
| → psoo joined | 08:45 |
| ← eno left | 08:46 |
| → eno joined | 08:48 |
| → shruggar joined | 08:49 |
| → fr0stbyte joined | 08:49 |
| ← ericmuyser left | 08:49 |
| fr0stbyte → ericmuyser | 08:49 |
| → themachine joined | 08:50 |
| ← gavin_huang left | 08:50 |
| → caseymcg joined | 08:52 |
| Droggl_ → Droggl | 08:52 |
| → ehsan joined | 08:53 |
| → ben225 joined | 08:53 |
| → ph^ joined | 08:55 |
| → porco joined | 08:57 |
| ← themachine left | 08:59 |
| ← Stew-a left | 09:00 |
| ← jackdempsey left | 09:01 |
| ← magnus_ left | 09:02 |
| → Sigma joined | 09:02 |
| ← Sigma left | 09:02 |
| → Sigma joined | 09:02 |
| → thiago joined | 09:03 |
| ← eno left | 09:03 |
| → magnus_ joined | 09:04 |
| → eno joined | 09:05 |
| → jackdempsey joined | 09:05 |
| ← Katniss left | 09:07 |
| → ThomasLocke joined | 09:10 |
| ← Milossh left | 09:10 |
| → Katniss joined | 09:13 |
| ← jackdempsey left | 09:16 |
| ← zozeo left | 09:18 |
| ← Synaps left | 09:19 |
| ← eno left | 09:21 |
| → flijten joined | 09:22 |
| ← kryl99_ left | 09:22 |
| ← flijten left | 09:22 |
| → eno joined | 09:23 |
| ← caseymcg left | 09:24 |
| ← igotnolegs left | 09:25 |
| → whitman joined | 09:28 |
| ← csherin left | 09:30 |
| ← Fandekasp left | 09:33 |
| → zomothesweeper joined | 09:33 |
| ← mikepack left | 09:33 |
| ← stringoO left | 09:34 |
| → rendar joined | 09:35 |
| → d0k joined | 09:35 |
| ← Katniss left | 09:36 |
| ← eno left | 09:37 |
| → lotsofcode joined | 09:37 |
| → gusnan joined | 09:37 |
| → eno joined | 09:39 |
| → csherin joined | 09:39 |
| → Katniss joined | 09:41 |
| → Shusshu joined | 09:42 |
| ← BiggFREE left | 09:43 |
| → mabrand joined | 09:47 |
|
Rahul
| what is the prerequisites to get to know about git ? :) | 09:47 |
| → flavius joined | 09:47 |
|
Rahul
| gitinfo:what is the prerequisites to get to know about webkit ? :) | 09:47 |
| ← eno left | 09:48 |
|
selckin
| ~make sense | 09:48 |
| ← Rahul left | 09:49 |
| → eno joined | 09:50 |
| ← psoo left | 09:50 |
| → Dave^| joined | 09:50 |
| ← zomothesweeper left | 09:53 |
| ← ericmuyser left | 09:55 |
| → eijk joined | 09:55 |
| → cedeon joined | 09:55 |
| ← dorkmafia left | 09:57 |
| → arvind_k joined | 09:57 |
| ← arvind_khadri left | 09:58 |
| ← eno left | 09:58 |
| → robotmay joined | 09:59 |
| → eno joined | 10:00 |
| → _iron joined | 10:00 |
| ← Shusshu left | 10:00 |
| → kadoban joined | 10:01 |
| → Milossh joined | 10:02 |
| ← magnus_ left | 10:03 |
| → magnus_ joined | 10:04 |
| ← eno left | 10:06 |
| ← porco left | 10:06 |
| → FernandoBasso joined | 10:07 |
| ← ivan` left | 10:07 |
| → zarubin joined | 10:07 |
| → eno joined | 10:08 |
| → zomothesweeper joined | 10:09 |
| ← zomothesweeper left | 10:09 |
| → i42n joined | 10:10 |
| → ivan` joined | 10:11 |
| ← mabrand left | 10:11 |
| → tnt joined | 10:12 |
|
tnt
| Hi. I cloned a repo that was created by someone else with git-svn and I'm trying to update it (fetch new revision from the original SVN). But one hour later and I'm still nowhere. Any tip ? | 10:13 |
| → JohnBat26 joined | 10:13 |
| ← cedeon left | 10:14 |
| ← eno left | 10:15 |
| → eno joined | 10:17 |
| ← spirat left | 10:17 |
|
selckin
| not supported | 10:20 |
|
| tar up his whole repo, or clone again from svn | 10:20 |
| → justfielding joined | 10:21 |
| → kryl99_ joined | 10:21 |
| ← eno left | 10:21 |
| → eno joined | 10:22 |
| ← koo5 left | 10:24 |
| → Shusshu joined | 10:24 |
| ← Vortex34 left | 10:24 |
| → koo5 joined | 10:25 |
| ← kryl99_ left | 10:26 |
| ← eno left | 10:27 |
| → airborn_ joined | 10:28 |
| → eno joined | 10:28 |
| → marenz joined | 10:28 |
| ← msponge left | 10:32 |
| → churp joined | 10:33 |
| → glcrazy joined | 10:33 |
| → kryl99_ joined | 10:33 |
| ← eno left | 10:34 |
| → giallu joined | 10:36 |
| → tnt_ joined | 10:36 |
| → eno joined | 10:36 |
| ← churp left | 10:36 |
| ← tnt left | 10:39 |
| → Liq^m joined | 10:43 |
| → mr_schlauch joined | 10:45 |
| ← eno left | 10:47 |
| → faber joined | 10:48 |
| → eno joined | 10:49 |
| → sansdro1 joined | 10:49 |
| ← sansdro1 left | 10:49 |
| ← aspotashev left | 10:50 |
| → d34df00d joined | 10:52 |
|
d34df00d
| Hi! | 10:53 |
| ← h0bbit left | 10:53 |
| d1b_ → d1b | 10:53 |
|
d34df00d
| I have two branches, say, 'master' and 'vmime'. I want to revert master to vmime's state, but partially, only reverting changes to files in particular subdirectory. | 10:53 |
|
| How that can be done in git? | 10:53 |
| ← shruggar left | 10:54 |
| → arvind__ joined | 10:55 |
| → canton7 joined | 10:55 |
|
wereHamster
| d34df00d: manually | 10:56 |
| ← arvind_k left | 10:57 |
| ← eno left | 10:57 |
| → eno joined | 10:59 |
| ← ShooterMG left | 11:00 |
|
d34df00d
| wereHamster: ah, that's sad. | 11:00 |
|
| I guess I'd do with `git diff master vmime path/to/dir/` and applying the corresponding patch then. | 11:00 |
| → ShooterMG joined | 11:03 |
| ← eno left | 11:03 |
| ← magnus_ left | 11:04 |
| → eno joined | 11:04 |
| → magn0z_ joined | 11:04 |
| → Demego joined | 11:05 |
| → Synaps joined | 11:07 |
| gitinfo set mode: +v | 11:07 |
| ← mansour_ left | 11:10 |
| → dharrigan joined | 11:10 |
| ← dharrigan left | 11:10 |
| → dharrigan joined | 11:10 |
| → mansour joined | 11:10 |
| → Lisimba2 joined | 11:10 |
| ← dharrigan left | 11:10 |
| ← eno left | 11:11 |
| → dharrigan joined | 11:11 |
| ← dharrigan left | 11:11 |
| → dharrigan joined | 11:11 |
|
mansour
| I commited my code and started some refactoring, without creating a branch . | 11:11 |
| → Fandekasp joined | 11:11 |
|
mansour
| what do I need to do, to more all these changes to a new branch ? | 11:11 |
| ← Lisimba left | 11:12 |
| → eno joined | 11:12 |
| ← eno left | 11:12 |
| → eno joined | 11:12 |
|
cbreak
| mansour: git checkout -b newbranch | 11:12 |
|
| and then commit | 11:12 |
|
| (Be aware that changes are NOT on any branch until you commit them) | 11:13 |
|
mansour
| perfect. | 11:13 |
|
| thank you | 11:13 |
|
cbreak
| np :) | 11:13 |
| → barr5790 joined | 11:14 |
| ← Milossh left | 11:14 |
| → TSK joined | 11:15 |
| → Dmitr joined | 11:16 |
| ← Dmitr left | 11:16 |
| → Jackneill joined | 11:16 |
| ← Jackneill left | 11:16 |
| → Jackneill joined | 11:16 |
| ← eno left | 11:18 |
| ← tnt_ left | 11:20 |
| → eno joined | 11:20 |
| → joe-mac1 joined | 11:23 |
| gitinfo set mode: +v | 11:23 |
|
joe-mac1
| is it possible to always ignore a certain number of lines at the beginning of a file? | 11:24 |
| → Milossh joined | 11:24 |
|
cbreak
| with git? No | 11:24 |
|
| you can take a look at smudge/clean filters though | 11:24 |
|
joe-mac1
| the issue is I have two branches wh ere in the 'comment header' will always have one little difference, instead of 'production' it will say 'staging' | 11:24 |
|
cbreak
| joe-mac1: man gitattributes | 11:24 |
|
gitinfo
| joe-mac1: the gitattributes manpage is available at http://jk.gs/gitattributes.html | 11:24 |
|
joe-mac1
| thank you cbreak | 11:25 |
|
cbreak
| joe-mac1: that sounds stupid :/ | 11:25 |
|
| writing scm meta data into a file? | 11:25 |
|
joe-mac1
| cbreak: not really, use case if configuration files served out by puppet | 11:25 |
|
| sort of | 11:25 |
|
| I can fix it | 11:25 |
| ← glcrazy left | 11:25 |
| → legnaleurc joined | 11:25 |
|
joe-mac1
| I have to convert some plain file resources to erb templates, and I think I can fix it | 11:25 |
| ← xoebus left | 11:25 |
|
joe-mac1
| a couple find ./ with search and replaces... | 11:26 |
|
| yea indeed I can just change 'staging' or 'production' to <%= environment %> | 11:26 |
|
| that works | 11:26 |
| ← eno left | 11:26 |
|
joe-mac1
| I am retarded | 11:26 |
|
| I talk to myself til I figure these things out mostly | 11:26 |
| → xoebus joined | 11:27 |
| → LongBeach joined | 11:27 |
| → eno joined | 11:28 |
|
cbreak
| joe-mac1: http://c2.com/cgi/wiki?RubberDucking | 11:28 |
|
joe-mac1
| cbreak: sweet, nice new term I learned today heh | 11:29 |
| ← legnaleurc left | 11:29 |
| ← Sigma left | 11:30 |
| auke-_ → auke- | 11:31 |
| ← myme left | 11:31 |
| → legnaleurc joined | 11:31 |
| ← Fandekasp left | 11:32 |
| → norton- joined | 11:33 |
| ← no1home left | 11:34 |
|
Synaps
| Guys, how can I get a list of most frequently updated files? Is it possible to do it with git log? | 11:34 |
| ← eno left | 11:35 |
| ← legnaleurc left | 11:36 |
| → myme joined | 11:36 |
| → aspotashev joined | 11:36 |
|
cbreak
| Synaps: you can look at git log --name-only | 11:37 |
| ← shergill left | 11:37 |
| koo5 → latchup | 11:37 |
| ← arvind__ left | 11:37 |
| → eno joined | 11:37 |
|
cbreak
| maybe with some other --pretty options | 11:37 |
| → arvind__ joined | 11:37 |
|
cbreak
| and write your own script to analyze it | 11:37 |
| ← arvind__ left | 11:37 |
| → iPeter joined | 11:37 |
| → Sigma joined | 11:37 |
| ← iPeter left | 11:38 |
| → Nathandim joined | 11:38 |
| ← leavittx left | 11:38 |
| → arvind_khadri joined | 11:38 |
| ← arvind_khadri left | 11:38 |
| → arvind_khadri joined | 11:38 |
| → LeMike joined | 11:40 |
| ← ivan` left | 11:40 |
| → iocor joined | 11:41 |
| ← eno left | 11:41 |
| ← albel727 left | 11:42 |
| → eno joined | 11:42 |
| ← eno left | 11:42 |
| → eno joined | 11:42 |
| → albel727 joined | 11:42 |
| → munichlinux joined | 11:43 |
| → mishok13 joined | 11:43 |
| → tnt joined | 11:45 |
| ← thiago left | 11:47 |
| → dougsland joined | 11:47 |
| ← dougsland left | 11:47 |
| → dougsland joined | 11:47 |
| ← aspotashev left | 11:47 |
| ← eno left | 11:48 |
|
joe-mac1
| yea then put the data out to graphite and have pretty graphs! | 11:49 |
| → Akufen joined | 11:50 |
| → martinjlowm joined | 11:50 |
|
mva
| d34df00d: ping | 11:50 |
| → eno joined | 11:50 |
| → leavittx joined | 11:50 |
| ← rchavik left | 11:51 |
| → ivan` joined | 11:51 |
| ← ivan` left | 11:51 |
| ← LeMike left | 11:52 |
| → ivan` joined | 11:54 |
| → brian_g joined | 11:54 |
| → diamonds joined | 11:58 |
| ← diamonds left | 11:58 |
| → diamonds joined | 11:58 |
| → Dave^|| joined | 11:59 |
| ← eno left | 12:00 |
|
d34df00d
| mva: wut. | 12:02 |
| ← Dave^| left | 12:02 |
| → eno joined | 12:02 |
| ← Milossh left | 12:02 |
| ← eno left | 12:02 |
| → eno joined | 12:02 |
| ← magn0z_ left | 12:03 |
| → magnus_ joined | 12:06 |
| → Milossh joined | 12:12 |
| → Skyx-mobile__ joined | 12:12 |
| ← eno left | 12:12 |
| ← Shapeshifter left | 12:13 |
| → martinjlowm-lptp joined | 12:13 |
| → eno joined | 12:14 |
| ← TSK left | 12:15 |
| ← jacekmigacz left | 12:16 |
| → robottinosino joined | 12:20 |
| → Matrixiumn joined | 12:22 |
| ← cenuij left | 12:24 |
| ← osmosis left | 12:24 |
| ← Sigma left | 12:26 |
| ← eno left | 12:27 |
| → cenuij joined | 12:27 |
| ← cenuij left | 12:27 |
| → cenuij joined | 12:27 |
| → Element9 joined | 12:27 |
| → Sigma joined | 12:27 |
| ← Milossh left | 12:28 |
| → porco joined | 12:28 |
| → eno joined | 12:28 |
| → icwiener joined | 12:28 |
| ← riskynet left | 12:29 |
| ← tnt left | 12:29 |
| ← kensington left | 12:32 |
| ← matthiaskrgr left | 12:32 |
| ← selckin left | 12:33 |
| gitinfo set mode: +v | 12:33 |
|
xoebus
| I've forgotten to sign off my last 3 commits with the "-s" flag. I haven't pushed yet. Is there a simple way of going back and adding these in? | 12:33 |
|
wereHamster
| xoebus: with rebase | 12:34 |
| → twisted` joined | 12:35 |
| → matthiaskrgr joined | 12:35 |
|
mva
| d34df00d: enter in gentoo.ru conference. Mellon asked you | 12:35 |
| → berserkr joined | 12:35 |
|
xoebus
| wereHamster: I had a quick go at that. `git rebase -i HEAD~3`. Then electing to rewrite the messages. Is there a simpler way than that? | 12:36 |
| ← Nathandim left | 12:36 |
|
wereHamster
| I don't think so | 12:36 |
|
xoebus
| okay, I'll do that. cheers | 12:36 |
| ← xerora left | 12:37 |
| → zomothesweeper joined | 12:38 |
| ← eno left | 12:41 |
|
d34df00d
| mva: I cannot for some reason :( | 12:41 |
|
| mva: can he join some channel on cjr, like c_plus_plus? | 12:41 |
| ← robottinosino left | 12:41 |
| → eno joined | 12:42 |
| ← eno left | 12:42 |
| → eno joined | 12:42 |
| → jacekmigacz joined | 12:43 |
| ← twisted` left | 12:43 |
| → twisted` joined | 12:43 |
| → webclectic joined | 12:43 |
|
canton7
| xoebus, you can elect to edit the commit, then use commit --amend -s | 12:44 |
| ← mishok13 left | 12:44 |
| → cccaldas joined | 12:44 |
| → whyking joined | 12:45 |
| → twisted`_ joined | 12:46 |
| ← Skyx-mobile__ left | 12:46 |
| ← ajpiano left | 12:46 |
| → ajpiano joined | 12:47 |
| ← twisted` left | 12:48 |
| twisted`_ → twisted` | 12:48 |
| ← eno left | 12:48 |
| → psoo joined | 12:48 |
| → eno joined | 12:50 |
| → ipalaus joined | 12:50 |
| → merlin83_ joined | 12:54 |
| → mantic0 joined | 12:55 |
| ← kryl99_ left | 12:57 |
| → kryl99_ joined | 12:58 |
| ← zomothesweeper left | 12:58 |
| ← eno left | 13:01 |
| → eno joined | 13:03 |
| ← magnus_ left | 13:04 |
| → bitkiller joined | 13:05 |
| → herdingcat joined | 13:05 |
| → erichynds joined | 13:05 |
| → magnus_ joined | 13:06 |
| ← eno left | 13:07 |
| → eno joined | 13:08 |
| → pom joined | 13:11 |
| ← eno left | 13:14 |
| → eno joined | 13:16 |
| ← akosikeno left | 13:16 |
| → xissburg joined | 13:18 |
| → akosikeno joined | 13:19 |
|
xissburg
| I had "profile" in my gitignore, and now my project a folder Profile where I store some source code. I removed profile from the gitignore but I still can't add the files in the Profile folder :S | 13:19 |
| → johnkpaul joined | 13:21 |
| → storrgie joined | 13:22 |
| ← ehsan left | 13:23 |
| ← eno left | 13:25 |
| → eno joined | 13:29 |
| ← johnkpaul left | 13:30 |
| → thiago joined | 13:31 |
| ← Gitzilla left | 13:32 |
| ← kryl99_ left | 13:33 |
| → alex__ joined | 13:33 |
| → Sigma[Mtp] joined | 13:35 |
| ← Sigma left | 13:35 |
| ← fruight left | 13:36 |
| ← bitkiller left | 13:37 |
| → bitkiller joined | 13:38 |
| ← eno left | 13:39 |
| ← toothr left | 13:40 |
| → eno joined | 13:41 |
| ← pidus left | 13:41 |
|
_ikke_
| xissburg: can't add? | 13:42 |
| ← alex__ left | 13:44 |
| ← airborn_ left | 13:44 |
| → alex__ joined | 13:44 |
| ← alex__ left | 13:45 |
| → Gitzilla joined | 13:45 |
| ← intripoon_ left | 13:48 |
| ← cccaldas left | 13:49 |
| → fruight joined | 13:49 |
|
cbreak
| in general, git itself is case sensitive | 13:51 |
| ← eno left | 13:51 |
| ← jonas_g left | 13:53 |
| → eno joined | 13:53 |
| → Airells joined | 13:55 |
|
Airells
| hi, i am looking for architecture diagram for GIT, like that one for svn: http://chestofbooks.com/computers/revision-control/subversion-svn/images/ch01dia1.png I need it for compare to svn in presentation. | 13:56 |
|
wereHamster
| [git] <-> [transport (any of git, http, local, ssh] <-> [git] | 13:58 |
| ← psoo left | 13:59 |
|
wereHamster
| there is no client library. Server (except git-damon) is provided by the ssh daemon, web server etc. | 13:59 |
| → Xizor joined | 13:59 |
| ← Aleric left | 13:59 |
| → cccaldas joined | 13:59 |
| ← ilius left | 13:59 |
|
wereHamster
| git itself is pretty monolithic. | 14:00 |
|
Airells
| thank you, Any graphic version? couldnt find | 14:00 |
|
wereHamster
| I'm not aware of any. Maybe in one of the books there is something | 14:00 |
|
| !books | 14:00 |
|
| !book | 14:00 |
|
gitinfo
| There are several good books available about git; 'Pro Git' is probably the best: http://progit.org/book/ but also look at !bottomup !cs !designers !vcbe and !parable | 14:00 |
| → Bass10 joined | 14:02 |
| ← storrgie left | 14:03 |
|
xissburg
| _ikke_: yea | 14:03 |
| ← eno left | 14:03 |
| → krake joined | 14:04 |
| → yshh joined | 14:04 |
| ← Bass10 left | 14:04 |
| ← magnus_ left | 14:04 |
| → eno joined | 14:05 |
| ← joe-mac1 left | 14:06 |
| → magnus_ joined | 14:06 |
| → MaximusColourum joined | 14:06 |
|
telemachus
| wereHamster: re books and links, what about http://think-like-a-git.net? Semi-random suggestion. | 14:11 |
| tokkee_ → tokkee | 14:12 |
| → CR_SUAMI35TAHUNK joined | 14:12 |
| → mtkd joined | 14:13 |
| ← icwiener left | 14:13 |
| → zozo_ joined | 14:14 |
| → soulcake joined | 14:14 |
| ← eno left | 14:14 |
|
telemachus
| !vcbe | 14:14 |
|
gitinfo
| 'Version Control By Example' gives a good overview of the different VCSes available. The author will even mail you a dead-tree copy for free. http://ericsink.com/vcbe/ | 14:14 |
| ← CR_SUAMI35TAHUNK left | 14:15 |
| → eno joined | 14:16 |
| ← Wooga left | 14:16 |
| ← bitkiller left | 14:18 |
| ← Chib left | 14:18 |
| ← Lgb left | 14:20 |
| ← eno left | 14:21 |
| ← porco left | 14:22 |
| → eno joined | 14:22 |
| → Lgb joined | 14:23 |
| → psoo joined | 14:24 |
| ← JohnBat26 left | 14:25 |
| → neurodrone joined | 14:28 |
|
Airells
| it is really hard to find something about technical aspect of GIT, database, flow, support for protocols etc | 14:28 |
| ← luke-jr left | 14:28 |
| ← eno left | 14:28 |
| ← psoo left | 14:28 |
|
canton7
| Airells, !bottomup is good for learning about git's internals | 14:28 |
|
gitinfo
| Airells: 'Git from the bottom up' starts with explaining the building blocks of git and proceeds to tell you how they fit together. http://ftp.newartisans.com/pub/git.from.bottom.up.pdf | 14:28 |
|
canton7
| Airells, http://stackoverflow.com/questions/5176225/are-gits-pack-files-deltas-rather-than-snapshots gives the gory details on git's delta compressing, although you probably don't want to go there | 14:29 |
| → Wooga joined | 14:29 |
| → eno joined | 14:30 |
|
canton7
| Airells, protocols: smart + dumb http(s) (push and pull), ssh (push and pull), git protocol (unauthenticated push and pull, uses git-daemon) | 14:31 |
|
| also can copy the git repo, git bundle to stuff a repo into a single file | 14:31 |
| ← erichynds left | 14:31 |
|
wereHamster
| Airells: http://code.google.com/p/support/wiki/DVCSAnalysis | 14:31 |
|
canton7
| Airells, see !workflow for git workflows | 14:32 |
|
gitinfo
| Airells: Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See https://gist.github.com/1540906#workflow for a list of references about choosing branching and distributed workflows. | 14:32 |
| → Ksugzulut joined | 14:33 |
|
Airells
| thank you guys | 14:33 |
| ← eno left | 14:35 |
| → rdholder joined | 14:35 |
| ← Jackneill left | 14:36 |
| → eno joined | 14:36 |
| ← webclectic left | 14:36 |
| ← maleknet left | 14:38 |
| → Jackneill joined | 14:38 |
| ← Synaps left | 14:40 |
| ← eno left | 14:40 |
| ← zozo_ left | 14:42 |
| → eno joined | 14:44 |
| ← zarubin left | 14:45 |
| ← rdholder left | 14:45 |
| → jonas_g joined | 14:46 |
| ← Matrixiumn left | 14:46 |
| → rawtaz joined | 14:46 |
|
rawtaz
| hey guys and gals | 14:46 |
| ← FernandoBasso left | 14:46 |
| → Matrixiumn joined | 14:47 |
|
fairuz_
| rawtaz: hey | 14:47 |
| ← Matrixiumn left | 14:47 |
| → Matrixiumn joined | 14:47 |
| → shergill joined | 14:51 |
|
rawtaz
| having fun with my first real git attempt with an existing project | 14:51 |
|
| fired up Xcode 4 but it showed no files. but http://stackoverflow.com/questions/5996966/xcode-4-shows-no-files-after-loading-project worked | 14:51 |
| → |jonny| joined | 14:53 |
| ← arvind_khadri left | 14:55 |
| ← eno left | 14:57 |
| → eno joined | 14:58 |
| ← |jonny| left | 14:58 |
| ← gusnan left | 14:59 |
| ← Sweetshark left | 15:03 |
| ← frogonwheels left | 15:03 |
| ← rurufufuss left | 15:03 |
| → Sweetshark joined | 15:04 |
| ← Sweetshark left | 15:04 |
| → Sweetshark joined | 15:04 |
|
sitaram
| Airells: http://sitaramc.github.com/1-basic-usage/tias.html may help somewhat (although not in the way you might expect) | 15:06 |
| ← magnus_ left | 15:06 |
| → johnkpaul joined | 15:06 |
| → magnus_ joined | 15:07 |
| ← eno left | 15:07 |
| ← johnkpaul left | 15:08 |
| → eno joined | 15:10 |
| → MrWynand joined | 15:11 |
| ← lnostdal_ left | 15:13 |
| ← rubyruy left | 15:14 |
| → ehsan joined | 15:16 |
| → Run joined | 15:17 |
| ← Run left | 15:17 |
| → Run joined | 15:17 |
| Run → Aleric | 15:17 |
| ← Favorit_ left | 15:17 |
| → Favorit joined | 15:18 |
| ← p3rror left | 15:19 |
| → rdholder joined | 15:20 |
| ← eno left | 15:21 |
| → orospakr joined | 15:22 |
| → eno joined | 15:23 |
| ← thiago left | 15:24 |
| ← Chappo left | 15:24 |
| ← lonewulf` left | 15:24 |
| ← rdholder left | 15:25 |
| → porco joined | 15:25 |
| → rdholder joined | 15:26 |
| ← rdholder left | 15:27 |
| ← c1de0x left | 15:29 |
| → zarubin joined | 15:30 |
| → bronson joined | 15:32 |
| → p3rror joined | 15:32 |
| ← gxk left | 15:33 |
| → bauruine joined | 15:34 |
| → g105b joined | 15:35 |
| ← eno left | 15:36 |
| → eno joined | 15:37 |
| ← eno left | 15:37 |
| → eno joined | 15:37 |
| → LeMike joined | 15:37 |
| → gxk joined | 15:37 |
| → SundarNET joined | 15:40 |
| ← munichlinux left | 15:42 |
| → Bass10 joined | 15:42 |
| → munichlinux joined | 15:42 |
| ← LeMike left | 15:42 |
| ← Gitzilla left | 15:45 |
| → wuj joined | 15:45 |
| ← martinjlowm-lptp left | 15:46 |
| → Cromulent joined | 15:48 |
| ← cyphase left | 15:49 |
| ← eno left | 15:49 |
| ← mantic0 left | 15:50 |
| ← SundarNET left | 15:50 |
| → weichkaes joined | 15:50 |
| → eno joined | 15:52 |
| ← eno left | 15:52 |
| → eno joined | 15:52 |
| → mantic0 joined | 15:53 |
| ← simplechat left | 15:53 |
| ← mantic0 left | 15:53 |
| ← shergill left | 15:54 |
| → shergill joined | 15:55 |
| → mantic0 joined | 15:55 |
| → vandal- joined | 15:57 |
| ← wuj left | 15:57 |
| → wuj joined | 15:58 |
| → edude03 joined | 15:58 |
| → Raging_Hog joined | 16:00 |
| ← angelsl left | 16:00 |
| → cyphase joined | 16:00 |
|
rawtaz
| oh god how not straight forward git can be when you havent used it much.. | 16:01 |
| → legnaleurc joined | 16:01 |
|
rawtaz
| >_< | 16:01 |
| → Elenita_17_moren joined | 16:01 |
|
cbreak
| it's a command line app | 16:01 |
|
| you need to know the words to talk with it :) | 16:01 |
|
rawtaz
| yeah im well aware of that | 16:01 |
|
| yap | 16:01 |
| → lyddonb_ joined | 16:03 |
| ← eno left | 16:04 |
| ← Elenita_17_moren left | 16:05 |
| → maletor joined | 16:05 |
| → eno joined | 16:05 |
| ← magnus_ left | 16:05 |
| → pandeiro joined | 16:06 |
| ← eightyeight left | 16:06 |
| → eightyeight joined | 16:07 |
|
rawtaz
| here's the thing: for some reason Xcode (or i, in it, god knows) managed to delete two files in the project, and i did a `git reset --hard HEAD` to mitigate that. but now those two files are shown as untracked. the way way i look at it is that i asked git to completely revert/reset/whatever back to the initial checked out/cloned status, but if it did i dont think these files would be "untracked" right now | 16:07 |
| → magnus_ joined | 16:07 |
|
rawtaz
| probably misunderstanding some part here | 16:07 |
| eightyeight → Guest43086 | 16:07 |
| ← pandeiro left | 16:07 |
| ← legnaleurc left | 16:07 |
| ← shergill left | 16:07 |
| ← fruight left | 16:08 |
|
cbreak
| rawtaz: did you commit the files? | 16:08 |
|
rawtaz
| no, i have not done any commiting | 16:08 |
| → HG` joined | 16:08 |
|
cbreak
| well, then that's normal | 16:08 |
| ← Guest43086 left | 16:08 |
|
cbreak
| HEAD is the last commit | 16:08 |
|
rawtaz
| i gig git clone from github. then added the upstream repo | 16:08 |
|
cbreak
| if the files were not in the last commit | 16:08 |
| → pandeiro joined | 16:08 |
|
rawtaz
| but the files comes from the origin repo | 16:09 |
|
cbreak
| and you told git "make everything as it was at the last commit" | 16:09 |
|
| then they are untracked | 16:09 |
| → eightyeight joined | 16:09 |
| ← AmirBehzad left | 16:09 |
| ← HG` left | 16:09 |
|
telemachus
| rawtaz: This may help you get a better sense of git reset http://progit.org/2011/07/11/reset.html | 16:09 |
| → HG` joined | 16:09 |
|
rawtaz
| i have not added these files, they are part of the source tree that is in the origin repo. | 16:09 |
|
| telemachus: thanks, will read | 16:10 |
| → AmirBehzad joined | 16:10 |
|
rawtaz
| what i want to do here is effectively the same thing as just deleting this whole project folder, doing a new clone from github, adding the upstream repo again. then i would be at the point i want to tell git to "revert" to now | 16:10 |
| → Gitzilla joined | 16:11 |
|
cbreak
| telemachus: interesting | 16:11 |
| ← eno left | 16:11 |
|
cbreak
| rawtaz: then git reset --hard origin/master or something similar | 16:11 |
|
| then git clean -fdx | 16:12 |
|
telemachus
| cbreak: Pretty pictures and charts - never hurts | 16:12 |
|
cbreak
| this will delete a whole lot | 16:12 |
| → cakehero joined | 16:12 |
|
rawtaz
| cbreak: produces http://paste.pocoo.org/show/BV5p2wkz8AQ6l9ZI8CwY/ if you care to see | 16:13 |
|
| hm ok let me run clean as well | 16:13 |
| ← martinjlowm left | 16:13 |
|
cbreak
| not origin | 16:13 |
| → eno joined | 16:13 |
| ← diamonds left | 16:13 |
| → ajt joined | 16:13 |
|
cbreak
| reset does not touch untracked files | 16:13 |
| ← krake left | 16:13 |
|
rawtaz
| cbreak: i tried them all and none of them made the two files not untracked | 16:13 |
|
cbreak
| it just changes tracked files | 16:13 |
|
rawtaz
| ok | 16:13 |
|
cbreak
| clean handles untracked files | 16:13 |
|
rawtaz
| it seems clean deleted tham :D | 16:13 |
|
| them* | 16:14 |
|
cbreak
| yes. that's the purpose | 16:14 |
|
rawtaz
| right | 16:14 |
| ← bcardarella left | 16:14 |
|
rawtaz
| i need to just throw this crap out and reclone then | 16:14 |
|
cbreak
| why? | 16:14 |
|
rawtaz
| well | 16:14 |
|
cbreak
| recloning is for morons. | 16:14 |
|
rawtaz
| well | 16:14 |
|
| lol | 16:14 |
|
cbreak
| you already have the full repository | 16:14 |
|
| downloading the same thing again won't give you anything | 16:14 |
|
rawtaz
| ill repeate myself: the two files that were now untracked, they are not something *i* added. they are part of the origin source tree. the should not be untracked | 16:15 |
|
cbreak
| no | 16:15 |
|
rawtaz
| i buy that i dont need to reclone, if i can gave git restore the files | 16:15 |
|
cbreak
| if you git reset --hard origin/master, then you are exactly where you are if you clone | 16:15 |
|
rawtaz
| ok | 16:15 |
|
| trying :) | 16:15 |
|
cbreak
| on master branch of origin remote | 16:15 |
|
| of course, if origin changed, you have to do a git remote update first | 16:16 |
|
| or git fetch origin | 16:16 |
|
| to get new changes | 16:16 |
|
| but that's an incremental process | 16:16 |
|
rawtaz
| im sorry man but its not doing what you seem to be saying. or im doing something wrong. | 16:16 |
|
SethRobertson
| I know which one I'm betting on | 16:16 |
|
cbreak
| if you don't have those files, then that's because the remote didn't have those files. | 16:16 |
|
SethRobertson
| Why not !repro | 16:17 |
|
gitinfo
| Please paste (using https://gist.github.com/ or similar) a transcript of your terminal session. This will help immensely with troubleshooting. | 16:17 |
| → thiago joined | 16:17 |
|
rawtaz
| let me clarify. one of the untracked files were Resources/English.lproj/Credits.rtf. it is part of the origin sources. its from the repo. i have not added it | 16:17 |
| ← yshh left | 16:17 |
|
cbreak
| if it were part of the original repo, then you would have it. | 16:17 |
| ← lapistano left | 16:18 |
|
cbreak
| you don't have it? Then it wasn't part of the original repo. Easy. | 16:18 |
|
SethRobertson
| Are you on a case insensitive filesystem? | 16:18 |
|
cbreak
| it's OS X | 16:18 |
|
SethRobertson
| so yes | 16:18 |
|
cbreak
| it's an xcode project | 16:18 |
| → lapistano joined | 16:18 |
|
rawtaz
| i now did `git reset --hard origin/master`. the output is at http://paste.pocoo.org/show/lwmhi6RdBYrESZubkdUn/ | 16:18 |
|
cbreak
| XCode projects are made for OS X | 16:18 |
| → amigojapan joined | 16:18 |
| → msponge joined | 16:18 |
|
cbreak
| rawtaz: see? It wasn't part of the remote repository either. | 16:18 |
|
rawtaz
| let me make sure that file is indeed coming from the repo on github. | 16:18 |
|
cbreak
| tell me the URL and I'll check :) | 16:19 |
|
rawtaz
| cbreak: look at https://github.com/rawtaz/CoRD/tree/master/Resources , its the Credits.rtf file | 16:19 |
| → urbanmonk_ joined | 16:19 |
| ← eno left | 16:19 |
|
rawtaz
| cbreak: to clarify further, i am NOT saying i am not the one misunderstanding things here, im just discussing this from my perspective. not questioning your suggestions | 16:19 |
|
cbreak
| https://github.com/rawtaz/CoRD/tree/master/Resources/English.lproj, no Credits | 16:20 |
|
canton7
| rawtaz, there is no Resources/English.lproj/Credits.rtf on github | 16:20 |
|
rawtaz
| hmm | 16:20 |
|
SethRobertson
| Please run `git ls-tree -r origin/master | grep Credits.rtf` | 16:20 |
|
rawtaz
| lemme recap | 16:20 |
|
| apparently i mixed up the file names | 16:20 |
| ← whyking left | 16:20 |
|
cbreak
| you probably told XCode that you wanted to localize the Credits file | 16:21 |
|
| so it copied it into the english resource folder | 16:21 |
|
rawtaz
| ok yeah | 16:21 |
|
cbreak
| and then you reset | 16:21 |
|
| which made the copy untracked | 16:21 |
| → eno joined | 16:21 |
|
rawtaz
| first thought was "ok i moved something" but as you say i probably asked it to add an english localization lol | 16:21 |
|
cbreak
| XCode has git integration | 16:21 |
|
rawtaz
| thanks so much :) | 16:21 |
|
cbreak
| if you make a new file with xcode, it will add the file itself | 16:22 |
|
rawtaz
| yeah. apparently it sucks though | 16:22 |
|
cbreak
| nah | 16:22 |
|
| it's barely usable | 16:22 |
| → htoothrot joined | 16:22 |
|
rawtaz
| yeah | 16:22 |
|
cbreak
| if you want to see git integration that sucks, take a look at tortoise git | 16:22 |
|
| or egit | 16:22 |
|
rawtaz
| haha | 16:22 |
|
| brb | 16:22 |
| ← pandeiro left | 16:23 |
| → pandeiro joined | 16:25 |
| → munichpython joined | 16:25 |
| ← munichlinux left | 16:25 |
| munichpython → munichlinux | 16:26 |
| ← sejo left | 16:26 |
| → sejo joined | 16:26 |
| ← latchup left | 16:26 |
|
rawtaz
| anyway i think ill go with CLI instead, assuming Xcode doesnt interfere. better to learn git for real | 16:26 |
|
| i have no problems with that, just failed to realize git and i was talking about different files this time :) | 16:26 |
|
cbreak
| xcode doesn't interfere | 16:27 |
|
| it just does convenience things like visualizing diffs/history | 16:27 |
|
| and adding new files | 16:27 |
|
| or offering the capability to commit (which I never tried) | 16:27 |
|
rawtaz
| mm :) | 16:27 |
|
cbreak
| also it uses the real git binaries, not some clone like eclipse | 16:27 |
|
rawtaz
| read http://oleb.net/blog/2011/05/on-git-support-in-xcode-4/ earlier today. didnt look that awesome | 16:28 |
|
| thats nice though | 16:28 |
|
cbreak
| I think the best part of it is that it's not crap. | 16:28 |
| ← AmirBehzad left | 16:28 |
| → Djo joined | 16:28 |
|
cbreak
| better have only a few features that work instead of having something like tortoise that pretends git is svn | 16:29 |
| ← matthiaskrgr left | 16:29 |
|
rawtaz
| so you use it for the things Xcode does okay and then complement with cli when needed? | 16:29 |
| ← EricInBNE left | 16:29 |
| → vervic joined | 16:29 |
| gitinfo set mode: +v | 16:30 |
|
Djo
| hi everybody | 16:30 |
|
rawtaz
| heya | 16:30 |
| ← fisted left | 16:31 |
|
Djo
| whats happen here ? | 16:31 |
|
rawtaz
| oh, the usual embarrasment.. :-) | 16:31 |
| → matthiaskrgr joined | 16:31 |
|
rawtaz
| cbreak helped me out with an issue | 16:32 |
|
cbreak
| rawtaz: usually I just ignore xcode's git integration | 16:32 |
| → kukks joined | 16:32 |
| → macmartine joined | 16:32 |
|
rawtaz
| ok | 16:32 |
|
cbreak
| the diff view isn't too bad | 16:32 |
|
| and auto adding new files is not harmful either | 16:32 |
|
| if you know it does it :) | 16:32 |
| ← eno left | 16:32 |
|
Djo
| rawtaz : yeap :/ | 16:32 |
|
cbreak
| but most of the time I use git on the command line, or gitx for visualization | 16:32 |
| ← ajt left | 16:33 |
| htoothrot → toothr | 16:33 |
|
Djo
| +1 cbreak | 16:33 |
| urbanmonk_ → urbanmonk | 16:33 |
|
SethRobertson
| !thanks | 16:33 |
|
gitinfo
| Feeling thankful? Type "ExampleUser++", and ExampleUser will score karma points at http://carmivore.com (our preferred way to objectify self-worth). There's really no point to thanking me – instead, why not thank the person who made me help you? | 16:33 |
|
Djo
| why do u want to use git' xcode ? | 16:33 |
| → ceej joined | 16:34 |
| → eno joined | 16:34 |
|
cbreak
| yesterday I found "SourceTree" on the app store thing, couldn't try it out but maybe it's useful as visualizer | 16:34 |
| → fisted joined | 16:35 |
| ← gchristensen left | 16:36 |
| ← HG` left | 16:36 |
| → gchristensen joined | 16:37 |
| ← gchristensen left | 16:37 |
| → gchristensen joined | 16:37 |
| → lonewulf` joined | 16:37 |
| → legnaleurc joined | 16:39 |
|
Djo
| wahhou | 16:40 |
| → ehsan_ joined | 16:41 |
| ← ehsan left | 16:41 |
| ← msponge left | 16:41 |
| ← heppy left | 16:42 |
|
rawtaz
| question; i did a fetch from upstream and then merge upstream/master, and git status now says "Your branch is ahead of 'origin/master' by 1 commit." - shouldnt there be a bunch of changed files (the one commit in question should be https://github.com/rawtaz/CoRD/commit/b168cfeb0e4ff612b8d63b1f3ccae21ebeb101f1 ) ? | 16:44 |
|
| hmm wait. no | 16:44 |
|
| never mind | 16:44 |
| ← albel727 left | 16:44 |
|
rawtaz
| its merged in just fine here locally. but im not seeing it on github until i push or something | 16:44 |
|
canton7
| yeah, merges are strictly in your local repo | 16:46 |
| ← eno left | 16:46 |
| → eno joined | 16:48 |
| → erichynds joined | 16:49 |
| ← herdingcat left | 16:49 |
| ← urbanmonk left | 16:50 |
| → pmenon joined | 16:50 |
|
pmenon
| i've added a file to git, it shows up as new file in "git status" but it doesn't appear in my "git diff" | 16:51 |
|
| any ideas ? | 16:51 |
| → mishok13 joined | 16:51 |
| → Chillance joined | 16:51 |
|
Djo
| have git add - git commit ? | 16:51 |
|
m1sc
| pmenon: git diff --cached ? | 16:51 |
|
canton7
| pmenon, have you 'git add'ed the file? | 16:51 |
|
Djo
| *have you | 16:51 |
|
cbreak
| git diff shows difference between working dir and index | 16:52 |
|
pmenon
| canton7: I have, m1sc what does the --cached do ? | 16:52 |
|
canton7
| pmenon, the difference between your previous commit and your currently-staged files is given by diff --cached | 16:52 |
|
cbreak
| it makes it show the difference between index and HEAD | 16:52 |
|
canton7
| pmenon, the difference between your previous commit and your modified, unstaged files it given by 'git diff' | 16:52 |
| → albel727 joined | 16:52 |
| ← albel727 left | 16:52 |
|
cbreak
| no | 16:53 |
|
| git diff HEAD | 16:53 |
|
pmenon
| cbreak: so diff against HEAD shoes *any* changes, files added but not commited, files deleted but not committed etc? | 16:54 |
| ← g105b left | 16:54 |
| → albel727 joined | 16:54 |
| ← eno left | 16:54 |
| ← Tasser left | 16:54 |
|
pmenon
| why isn't that default diff behaviour / | 16:54 |
| tizzo-afk → tizzo | 16:54 |
|
cbreak
| because it's inconvenient | 16:55 |
| → Aexel joined | 16:55 |
|
cbreak
| normally you only want to look at changes that you haven't already approved for the next commit | 16:55 |
| → maxydido joined | 16:55 |
|
cbreak
| or only at those you have | 16:55 |
| → pidus joined | 16:56 |
| → eno joined | 16:56 |
| tizzo → tizzo-afk | 16:56 |
| ← pandeiro left | 16:57 |
| → JohnBat26 joined | 16:59 |
| → glennpratt joined | 17:00 |
| ← csherin left | 17:00 |
| ← eno left | 17:01 |
| ← Cromulent left | 17:02 |
| → eno joined | 17:02 |
| ← eno left | 17:02 |
| → eno joined | 17:02 |
| ← vervic left | 17:02 |
| → csherin joined | 17:03 |
| ← magnus_ left | 17:05 |
| → pandeiro joined | 17:06 |
| ← mishok13 left | 17:06 |
| ← D-Chymera left | 17:06 |
| → LeMike joined | 17:06 |
| ← p3rror left | 17:07 |
| → magnus_ joined | 17:08 |
| ← eno left | 17:08 |
| ← pandeiro left | 17:09 |
| → FernandoBasso joined | 17:09 |
| → hwit joined | 17:10 |
| ← Aexel left | 17:10 |
| → eno joined | 17:10 |
| → ajt joined | 17:10 |
| ← hwit left | 17:11 |
| → pandeiro joined | 17:11 |
| → D-Chymera joined | 17:12 |
| ← pidus left | 17:14 |
| → pidus_ joined | 17:14 |
| ← pidus_ left | 17:14 |
| → pidus_ joined | 17:14 |
| ← csherin left | 17:15 |
| ← bronson left | 17:15 |
| → gandy93 joined | 17:15 |
| → csherin joined | 17:16 |
| → h0bbit joined | 17:16 |
| → pernekova joined | 17:16 |
| ← oso96_2000 left | 17:18 |
| ← munichlinux left | 17:20 |
| ← eno left | 17:23 |
| ← amigojapan left | 17:23 |
| → eno joined | 17:25 |
| ← shiba_yu36 left | 17:30 |
| ← Djo left | 17:30 |
| → munichlinux joined | 17:34 |
| → kerrick joined | 17:35 |
| → eighty4 joined | 17:36 |
| ← porco left | 17:38 |
| ← lepine left | 17:39 |
| ← eno left | 17:39 |
| ← glennpratt left | 17:41 |
| → eno joined | 17:41 |
| → mishok13 joined | 17:43 |
| → bronson joined | 17:44 |
| ← eno left | 17:48 |
| ← tango_ left | 17:48 |
| → Milossh joined | 17:49 |
| → eno joined | 17:49 |
| ← norton- left | 17:50 |
| → sh4rm4 joined | 17:51 |
| ← lonewulf` left | 17:51 |
|
sh4rm4
| one of my editors messed up the whitespace in one file in a bigger commit... can i somehow split the changes i made and redo the ones on that specific file, without the whitespace noise ? | 17:52 |
|
| the stupid editor touched about 10K lines | 17:53 |
|
SethRobertson
| Is your repository all LF or all CRLF or something? | 17:53 |
|
sh4rm4
| hmm. it's possible that file had CRLF | 17:53 |
|
| usually its just LF | 17:54 |
| ← mishok13 left | 17:54 |
| ← eno left | 17:54 |
| → tango_ joined | 17:55 |
|
SethRobertson
| How many files did you touch for real in the commit? Did files that you did not make useful changes in get touched? | 17:55 |
| → eno joined | 17:55 |
|
SethRobertson
| convert | 17:55 |
|
| Oh, and have you pushed? | 17:56 |
|
sh4rm4
| no, i have changed 3 files, and the one with the noise is basically just 3 lines deleted | 17:56 |
|
| no, i can still rebase | 17:56 |
|
SethRobertson
| Only lne file got poor EOL conversion? | 17:56 |
|
sh4rm4
| indeed | 17:56 |
|
| seems it was originally written by a windows dude | 17:57 |
|
| i opened that one with a different editor though | 17:57 |
|
| gnu nano... | 17:57 |
|
SethRobertson
| This should be fairly easy then. You have two choises, run a unix->windows EOL conversion program over that one file, or zap that file and reimplement the changes (via applying a patch, probably) | 17:57 |
|
sh4rm4
| zap ? | 17:58 |
|
SethRobertson
| reset the file back to repository defaults | 17:58 |
| → khmarbaise joined | 17:58 |
| → icwiener joined | 17:58 |
| ← bgerber left | 17:59 |
|
sh4rm4
| hmm, how would i do that ? | 17:59 |
|
SethRobertson
| I would first recommend trying to do the EOL conversion. Do you have the dos2unix or fromdos program installed? | 17:59 |
| ← munichlinux left | 17:59 |
|
SethRobertson
| We can easily try the other method if this fails | 17:59 |
|
sh4rm4
| i got dos2unix, yeah | 17:59 |
| ← pidus_ left | 17:59 |
| → kgadek joined | 17:59 |
|
SethRobertson
| Well, I guess you need the other way around. Run unix2dos on that file. | 17:59 |
| → pidus joined | 17:59 |
|
SethRobertson
| Actually, before we do that...have you committed? Is it the most recent commit? | 18:00 |
|
| it==the bad commit | 18:00 |
|
sh4rm4
| yep, i could do a fixup | 18:00 |
|
SethRobertson
| OK, go ahead and run unix2dos on that file | 18:00 |
| → pidus_ joined | 18:01 |
| ← pidus_ left | 18:01 |
| → pidus_ joined | 18:01 |
| ← pidus left | 18:01 |
| pidus_ → pidus | 18:01 |
|
SethRobertson
| Then run `git diff HEAD^ -- filename` | 18:01 |
| ← matthiaskrgr left | 18:01 |
| → bgerber joined | 18:04 |
| ← _ikke_ left | 18:04 |
| → matthiaskrgr joined | 18:04 |
|
SethRobertson
| ? | 18:05 |
|
sh4rm4
| mhm, it seems it have touched any line as well | 18:05 |
|
| so now commit it, and reabse/fixup ? | 18:05 |
|
| *rebase | 18:05 |
|
SethRobertson
| No, stop | 18:05 |
|
| `git diff -- filename` should report that it touched every line. `git diff HEAD^ -- filename` should report only your desired changes. Assuming your comment on what happened was accurate. | 18:06 |
|
| Did that not happen? | 18:06 |
|
sh4rm4
| no, git diff HEAD^ -- etc did show the whitespace noise | 18:07 |
| ← magnus_ left | 18:07 |
| ← thiago left | 18:07 |
|
SethRobertson
| Did `git diff HEAD -- filename` show whitespace noise? | 18:07 |
| → faceface joined | 18:08 |
|
faceface
| hello | 18:08 |
|
sh4rm4
| no, its empty | 18:08 |
|
faceface
| how can I get git-status to give me the date the modification was made? | 18:08 |
|
| I want to check if all the mods occured in one or two sesions | 18:08 |
|
SethRobertson
| sh4rm4: OK, perhaps you were mistaken. Try it the other way. Run `dos2unix` on the file. | 18:08 |
| ← LeMike left | 18:08 |
| → magnus_ joined | 18:09 |
|
sh4rm4
| yep, that worked :) | 18:09 |
|
| strange, nano converts LF to CRLF ? weird | 18:09 |
| → flyz_ joined | 18:09 |
| ← eno left | 18:09 |
|
SethRobertson
| faceface: `git status` cannot report modification time. You can post-process the output. Something like `ls -l $(git status --porcelain | colrm 1 3)` The colrm numbers might be wrong | 18:10 |
|
| faceface sends git-status to file and 'fires up the emacs' | 18:10 |
|
faceface
| ty SethRobertson | 18:10 |
| ← flyz left | 18:10 |
| flyz_ → flyz | 18:10 |
| ← ceej left | 18:10 |
|
faceface
| SethRobertson: can I pay $10 to get it coded ;-) | 18:11 |
| → TeckniX joined | 18:11 |
|
SethRobertson
| sh4rm4: OK, so `git diff HEAD^ -- filename` reported only your desired change, correct? | 18:11 |
|
sh4rm4
| indeed | 18:11 |
| → eno joined | 18:11 |
| → tappi joined | 18:11 |
|
SethRobertson
| sh4rm4: OK, then run `git commit --amend` and you are done | 18:11 |
|
| Well, after `git add filename` | 18:12 |
| → Skyx-mobile__ joined | 18:12 |
|
tappi
| is the difference between commit --amend and reset --soft ^HEAD and making another commit just that --amend replaces the existing commit while reset --soft ^HEAD + commit makes a new one? | 18:12 |
|
sh4rm4
| SethRobertson, cool, it worked. thanks a lot. | 18:12 |
|
SethRobertson
| !thanks | 18:13 |
|
gitinfo
| Feeling thankful? Type "ExampleUser++", and ExampleUser will score karma points at http://carmivore.com (our preferred way to objectify self-worth). There's really no point to thanking me – instead, why not thank the person who made me help you? | 18:13 |
|
sh4rm4
| SethRobertson++ | 18:13 |
|
| faceface ++ | 18:14 |
|
SethRobertson
| tappi: ^HEAD is bad . Perhaps you mean HEAD^? | 18:14 |
|
faceface
| SethRobertson++ | 18:14 |
|
tappi
| SethRobertson well yes | 18:14 |
|
faceface
| who's winning? | 18:14 |
|
tappi
| does ^HEAD even do anything? | 18:15 |
| → lonewulf` joined | 18:15 |
|
SethRobertson
| tappi: The difference is probably mostly in the fact that your old commit message is pre-populated. Both methods make a new commit. | 18:15 |
|
| faceface: We don't know because the Carmivore people are too lame to report per-channel winner boards. | 18:16 |
|
tappi
| ah right | 18:16 |
| → shruggar joined | 18:17 |
| → _ikke_ joined | 18:17 |
|
tappi
| yeah, now that i checked help page says it straight up, "roughly equivalent for 'git reset --soft HEAD^' '... edit ...' 'git commit -c ORIG_HEAD' | 18:18 |
|
faceface
| heh | 18:18 |
|
| column -t helped | 18:18 |
| ← gchristensen left | 18:19 |
| → nicxvan joined | 18:20 |
| ← tappi left | 18:20 |
| ← csherin left | 18:21 |
| → oriba joined | 18:23 |
| → mikepack joined | 18:25 |
| → csherin joined | 18:25 |
| ← eno left | 18:27 |
| → abetaha joined | 18:27 |
| → disappearedng joined | 18:28 |
| → eno joined | 18:28 |
| Sigma[Mtp] → Sigma | 18:28 |
| → di-five joined | 18:30 |
| ← ehsan_ left | 18:30 |
| → ehsan joined | 18:30 |
| → zulax joined | 18:32 |
| ← lotsofcode left | 18:32 |
| → daviddoria joined | 18:33 |
| ← guns left | 18:33 |
|
daviddoria
| I have a repository that is 300MB, but there is really only 50MB worth of stuff in it. I ran 'git gc' to try to get rid of that old stuff, but it only brought it down to 260MB. Is there a way to keep the history of files that still exist, but get rid of old stuff that has been deleted? | 18:34 |
| ← werdnativ left | 18:35 |
| → DofLeFou joined | 18:36 |
|
mh_le
| for some reason git thinks I have made a commit one hour from now it says time + 1 ??? | 18:37 |
| ← mgpcoe left | 18:37 |
| → ehsan_ joined | 18:38 |
| ← ehsan left | 18:38 |
| → gchristensen joined | 18:39 |
|
m1sc
| daviddoria: only with filter-branch (rewriting history) | 18:40 |
|
SethRobertson
| daviddoria: See !large_files | 18:40 |
|
gitinfo
| daviddoria: Git isn't yet great at large files (larger than RAM). See http://git-annex.branchable.com/ and https://github.com/schacon/git-media Find them (after gc) with: git verify-pack -v .git/objects/pack/pack-*.idx | grep blob | sort -k3nr | head | while read s x b x; do git rev-list --all --objects | grep $s | awk '{print "'"$b"'",$0;}'; done | 18:40 |
| → gusnan joined | 18:41 |
|
offby1
| !delete | 18:41 |
|
gitinfo
| [!branch_delete] Deleting a branch is easy. `git branch -d branchname` (or -D). However, this will NOT delete the branch upstream, that requires `git push --delete origin branchname`. However, this will NOT delete remote tracking branches. EACH USER must `git remote prune origin`, but if any users have local branches, they must likewise run `git branch -d branchname` (or -D) | 18:41 |
|
offby1
| hmm | 18:41 |
| ← eno left | 18:41 |
| → eno joined | 18:43 |
| → Guest27303 joined | 18:43 |
| → keller joined | 18:44 |
| → Cromulent joined | 18:46 |
| ← nelk left | 18:46 |
| ← Skyx-mobile__ left | 18:46 |
| → nelk joined | 18:46 |
|
rawtaz
| hm. Xcode shows a file missing even though the file is indeed in there | 18:47 |
|
| in the filesystem | 18:47 |
| ← koo3 left | 18:47 |
| → latchup joined | 18:48 |
| ← Cromulent left | 18:49 |
|
rawtaz
| restart made it happier | 18:49 |
| → ericmuyser joined | 18:49 |
| → aknewhope joined | 18:49 |
| → jaalto joined | 18:49 |
| ← akiress left | 18:50 |
| ← latchup left | 18:50 |
| → lyddonb joined | 18:50 |
| → skylord5816 joined | 18:52 |
| ← skylord5816 left | 18:52 |
| → skylord5816 joined | 18:52 |
| ← skylord5816 left | 18:52 |
| → skylord5816 joined | 18:52 |
| ← Chillance left | 18:53 |
| → krake joined | 18:54 |
| → Chillance joined | 18:54 |
| → no1home joined | 18:54 |
| → QaDeS joined | 18:54 |
|
offby1
| *shrug* | 18:56 |
|
| software. | 18:56 |
| ← kerrick left | 18:57 |
| → kerrick joined | 18:57 |
| → plusk joined | 18:57 |
| → nick joined | 18:57 |
| nick → Guest80413 | 18:58 |
| ← Guest27303 left | 18:58 |
| ← lyddonb left | 18:59 |
| avarab → avar | 19:00 |
| ← eno left | 19:00 |
| ← wald0 left | 19:01 |
| → eno joined | 19:01 |
| → lyddonb joined | 19:02 |
| → wald0 joined | 19:03 |
| ← techstein left | 19:03 |
| ← nelk left | 19:05 |
| ← AlbireoX left | 19:05 |
| → nelk joined | 19:05 |
| → TL joined | 19:07 |
| ← magnus_ left | 19:07 |
| ← eno left | 19:07 |
| → Alexander_ joined | 19:09 |
| → magnus_ joined | 19:09 |
| → eno joined | 19:09 |
| ← disappearedng left | 19:10 |
| ← ASIRINeiluj left | 19:10 |
|
Nickeeh
| hello guuyyss | 19:10 |
| → disappearedng joined | 19:11 |
|
Nickeeh
| I'm in the middle of a checkout -p and I'd like to edit a hunk. My hunk is "--++" (two lines --, two lines ++, consecutive) | 19:11 |
|
| I'd like to keep the first line unaltered, and apply the second line. | 19:11 |
|
| How should I change my hunk? | 19:11 |
| → cybersphinx joined | 19:11 |
| → ceej joined | 19:12 |
| ← ceej left | 19:12 |
| ← Liq^m left | 19:13 |
| ← the_cybersphinx left | 19:15 |
| ← Alexander_ left | 19:15 |
|
Mikachu
| Nickeeh: if i understand right, change the - on the line you want to keep to a single space, and remove the corresponding +line | 19:15 |
| → g105b joined | 19:16 |
| ← iocor left | 19:16 |
| → mindlogger joined | 19:16 |
|
mindlogger
| what does this msg mean? "Your branch is ahead of 'origin/admission' by 6 commits." | 19:17 |
| → aspotashev joined | 19:17 |
| → Alexander_ joined | 19:17 |
|
mindlogger
| I just merged it with master | 19:17 |
| ← Alexander_ left | 19:17 |
| ← daviddoria left | 19:18 |
| → Alexander_ joined | 19:18 |
|
Nickeeh
| Mikachu, that goes against what the editor says.. | 19:20 |
| ← csherin left | 19:20 |
|
milki
| mindlogger: its ahead of the admission branch in the remote repository | 19:21 |
|
mindlogger
| ah right | 19:22 |
|
| so I just need to push it | 19:22 |
|
milki
| yes | 19:22 |
|
| Nickeeh: not sure myself, but the comments should tell you somewhere? | 19:23 |
| ← g105b left | 19:23 |
|
Nickeeh
| Hmpf, the patch doesn't apply/is corrupt. | 19:25 |
| → mandric joined | 19:25 |
| ← mantic0 left | 19:25 |
|
Nickeeh
| http://pastie.org/3323094 | 19:26 |
|
| That's my problem. | 19:26 |
| → csherin joined | 19:27 |
| ← lyddonb left | 19:29 |
| ← jast left | 19:30 |
| → lotsofcode joined | 19:31 |
| ← cooldude left | 19:31 |
|
milki
| for add -p | 19:32 |
|
| you change - to nothing | 19:32 |
|
| and remove + lines | 19:32 |
| → jast joined | 19:32 |
| → cooldude joined | 19:33 |
| ← aknewhope left | 19:33 |
| → aknewhope joined | 19:34 |
|
Nickeeh
| milki, doing that gives me A' -B +B', right? | 19:34 |
|
| just to make sure we're on the same page | 19:34 |
|
milki
| uh | 19:35 |
|
| you want A B' to be the final outcome | 19:35 |
|
| so it would be A -B +B' | 19:35 |
|
| er | 19:35 |
|
| a | 19:35 |
|
| ya | 19:35 |
|
Nickeeh
| yeah.. hm, then it complains | 19:36 |
|
milki
| then i dunno | 19:36 |
|
| ~ | 19:36 |
|
Nickeeh
| Unexpected line, etc. etc. | 19:36 |
|
| milki usually gives up and manually fixes... | 19:36 |
|
Nickeeh
| I must learn | 19:36 |
|
| to harness the POOWEERRRRRRRRRRRRRRRRRRRRR | 19:36 |
|
milki
| o | 19:36 |
| → lyddonb joined | 19:36 |
|
milki
| do you have line numbers at the top of the chunk | 19:36 |
|
| you might need to change one of those numbers | 19:37 |
|
| its start line number, final line number | 19:37 |
|
| since you are only adding 1 line instead of 2 | 19:37 |
|
| you mean need to decrement one of those | 19:37 |
|
| well | 19:38 |
|
| for patch diffs at least >.> | 19:38 |
| ← Dragooon left | 19:39 |
|
Nickeeh
| milki, I manually edited it. | 19:41 |
|
| :( | 19:41 |
| → Goplat joined | 19:42 |
| → drindt joined | 19:43 |
|
drindt
| how to get a diff from between head and previous commit? | 19:44 |
|
Nickeeh
| drindt, git diff HEAD~1 HEAD | 19:45 |
|
| or, the shorthand for that | 19:45 |
| → banseljaj joined | 19:45 |
|
Nickeeh
| drindt, git diff HEAD^1 | 19:45 |
| ← aknewhope left | 19:45 |
|
charon
| drindt: or simply 'git show' unless it's a merge commit | 19:45 |
|
banseljaj
| Hi. I mistakenly pulled a wrong branch. how do i undo it? | 19:46 |
|
charon
| Nickeeh: how is that a shorthand? ~1 and ^1 is the same, and omitting the HEAD means diff the worktree instead | 19:46 |
|
drindt
| thank you guys :) very friendly | 19:46 |
| → vervic joined | 19:46 |
|
Nickeeh
| charon, no, HEAD^1 is a range, HEAD~1 is a revision.. so that's the difference. I didn't know you could ommit HEAD. Thanks for that. | 19:46 |
|
| banseljaj, git reflog | 19:47 |
|
charon
| Nickeeh: go read man gitrevisions, really | 19:47 |
|
gitinfo
| Nickeeh: the gitrevisions manpage is available at http://jk.gs/gitrevisions.html | 19:47 |
| ← lonewulf` left | 19:47 |
| ← FernandoBasso left | 19:47 |
|
charon
| Nickeeh: ^n means the n-th parent, and ~n means the n-th 1st parent ancestor. so as a special case, ^1 and ~1 (and ^ and ~, with implied n=1 in both cases) are the same | 19:48 |
| → lonewulf` joined | 19:48 |
|
banseljaj
| Nickeeh: I got the log, how do i tell it to rewind to a particular reviion? git reset? | 19:48 |
|
Nickeeh
| banseljaj, erm not.. sure.. reset or checkout. I think reset. --hard if you want to discard your worktree. | 19:49 |
|
| But wait for someone else's reply. xD | 19:49 |
| ← eno left | 19:49 |
| ← pidus left | 19:49 |
|
Nickeeh
| charon, oh okay, I didn't kow that. | 19:49 |
|
banseljaj
| I want to discard my work tree. Discard anything that happened after the merge | 19:50 |
| ← pernekova left | 19:50 |
| ← drindt left | 19:50 |
| → eno joined | 19:51 |
|
Nickeeh
| then your probably want git reset --hard HEAD@{something} | 19:51 |
|
banseljaj
| Nickeeh: okay. Thanks a lot. :) | 19:51 |
| ← lyddonb left | 19:53 |
| ← pmenon left | 19:53 |
| ← Guest30232 left | 19:54 |
| ← Alexander_ left | 19:54 |
| → Invader joined | 19:55 |
| ← dreiss left | 19:55 |
| ← three18ti left | 19:56 |
| ← Milossh left | 19:56 |
| → Milossh joined | 19:57 |
| → AlbireoX joined | 19:58 |
|
banseljaj
| Nickeeh: It worked. Thanks a lot :) | 19:59 |
|
Nickeeh
| banseljaj, phew! Might've blown up your computer any other day. You're welcome. | 19:59 |
| ← fairuz_ left | 19:59 |
|
banseljaj
| Nickeeh: do you blow up computers regularly? :D If yes, i might have a job for you. :P | 20:00 |
| ← robotmay left | 20:01 |
| → fairuz_ joined | 20:01 |
| ← banseljaj left | 20:02 |
| ← wuj left | 20:03 |
|
milki
| lol | 20:03 |
|
| i do | 20:03 |
|
| but not on purpose | 20:03 |
|
| and its always critical infrastructure | 20:04 |
| → dreiss joined | 20:04 |
| → DrHouse|TARDIS joined | 20:05 |
| ← pdtpatr1ck left | 20:10 |
| → pdtpatr1ck joined | 20:10 |
| ← csherin left | 20:11 |
| ← eno left | 20:13 |
| ← Jackneill left | 20:13 |
| → dorkmafia joined | 20:14 |
| ← plusk left | 20:14 |
| ← barr5790 left | 20:14 |
| → eno joined | 20:15 |
| ← pdtpatr1ck left | 20:16 |
| → fayimora joined | 20:16 |
| ← Lgb left | 20:20 |
| ← eno left | 20:21 |
|
mh_le
| when I cheked my git log the time said xx:xx + 1 even though the commit time was xx:xx - how can that be? | 20:22 |
| ← jacekmigacz left | 20:22 |
| → Lgb joined | 20:23 |
| → eno joined | 20:23 |
| ← mikepack left | 20:25 |
| → igotnolegs joined | 20:25 |
| ← magnus_ left | 20:26 |
| → caseymcg joined | 20:27 |
|
wereHamster
| mh_le: you mean the timestamp is off? | 20:27 |
|
| by one minute? | 20:27 |
| → shergill joined | 20:28 |
| → smw joined | 20:30 |
| ← JohnBat26 left | 20:31 |
| → glennpratt joined | 20:32 |
| → magnus_ joined | 20:32 |
| ← faber left | 20:35 |
| → lyddonb joined | 20:37 |
| ← caseymcg left | 20:37 |
| ← Blaster left | 20:38 |
| ← h0bbit left | 20:39 |
| ← kyconquers left | 20:43 |
| ← hays left | 20:44 |
| → drizzd joined | 20:44 |
| ← echoSMIL1 left | 20:46 |
| → psoo joined | 20:46 |
| ← LongBeach left | 20:47 |
| → hays joined | 20:47 |
| → swombat joined | 20:47 |
| ← bronson left | 20:47 |
| ← leavittx left | 20:47 |
| → ehsan joined | 20:48 |
| ← ehsan_ left | 20:48 |
| → ceej joined | 20:49 |
| → echoSMILE joined | 20:50 |
| → timonia joined | 20:50 |
| ← aspotashev left | 20:50 |
| ← timonia left | 20:50 |
| ← gusnan left | 20:50 |
| ← nixmaniack left | 20:51 |
| → FernandoBasso joined | 20:51 |
| → nixmaniack joined | 20:52 |
| → JuanDaugherty joined | 20:54 |
| ← kennethreitz left | 20:54 |
|
JuanDaugherty
| has anyone used their regular PGP signature such as one posted on the MIT pgp server with github? | 20:55 |
|
mh_le
| wereHamster: no it said +1 litterally | 20:55 |
| → bronson joined | 20:55 |
|
patrick99e99
| so I forked a project, made a branch, did some coding, pushed a reference to my github account... made a pull request.. And then this morning looked at my code and saw two small things I'd like to modify... | 20:57 |
|
canton7
| mh_le, I don't know the exact context, but that sounds like a timezone to me | 20:57 |
|
mh_le
| wereHamster: I assume it means +1 hour | 20:57 |
|
patrick99e99
| no one has responded to my pull request yet, so is it ok if i just do git push mine -f origin <my branch> | 20:58 |
|
| or will the pull request get wonky? | 20:58 |
|
canton7
| patrick99e99, so long as the pull request hasn't been merged in, github handles you force-pushing to them just fine (I've been told) | 20:58 |
|
mh_le
| canton7: yeah but as far as I can see I've set up my time zone correctly | 20:58 |
|
patrick99e99
| canton7: cool thanks | 20:58 |
|
canton7
| mh_le, and is your timezoen GMT+1 ? | 20:58 |
|
wereHamster
| mh_le: the time zone maybe? | 21:00 |
| → g105b joined | 21:00 |
|
wereHamster
| mh_le: what does `date` print? | 21:00 |
|
mh_le
| canton7: yeah, it said the commit was 19:26 + 1, but the correct time was 19:26 | 21:00 |
|
canton7
| mh_le, I know that. What timezone are you in? Answer wereHamster | 21:01 |
|
mh_le
| canton7: CET | 21:01 |
|
| wereHamster: Sun Feb 5 22:00:55 CET 2012 | 21:01 |
|
wereHamster
| mh_le: that's +1 | 21:01 |
|
mh_le
| yeah but 19:26 + 1 is 20:26, no? | 21:01 |
|
canton7
| there we go then. Your commit was made at 19:26, in the timezene GMT + 1 | 21:02 |
|
mh_le
| I see | 21:02 |
| ← jmho left | 21:02 |
| ← TL left | 21:04 |
| ← vervic left | 21:05 |
| → chip2n joined | 21:08 |
| tizzo-afk → tizzo | 21:08 |
|
chip2n
| So, hmm, well, I'm kinda newbie at git usage, but is it really a good idea to use dropbox as a git server? I seem to get the "failed to read object" error sometimes when I pull/push :S | 21:09 |
|
bremner
| it's not a good idea afaict, because dropbox tries to be "clever". | 21:10 |
|
EugeneKay
| No. | 21:10 |
|
| Use github or bitbucket. | 21:10 |
|
chip2n
| The project is sadly not open source, so I cant host it on github :/ | 21:11 |
|
| I got a server though, maybe I could set it up to host it? | 21:11 |
| ← JuanDaugherty left | 21:11 |
|
EugeneKay
| They have private repos and/or bitbucket has free ones | 21:11 |
|
canton7
| bitbucket has free private repos | 21:11 |
|
EugeneKay
| Sure. If it's just you, set it up as a ssh:// remote repo | 21:11 |
|
| If it's >1, !gitolite | 21:12 |
|
gitinfo
| Want to host as many git repos(and users!) as you like, on your own server, with fine-grained access control? You want gitolite: https://github.com/sitaramc/gitolite | 21:12 |
|
chip2n
| Alright, ill check out bitbucket! I found a guide about gitosis also, seemed cool | 21:12 |
|
EugeneKay
| Don't use !gitosis | 21:13 |
|
gitinfo
| gitosis is no longer maintained and supported by the author; we usually recommend gitolite instead which has much better documentation and more features: http://github.com/sitaramc/gitolite | 21:13 |
|
chip2n
| Ah, thanks for the info :D | 21:13 |
|
| I'll be sure to check out both bitbucket and probably use it until I feel confident about gitolite | 21:14 |
| ← soulcake left | 21:14 |
| ← weichkaes left | 21:15 |
| → pdtpatr1ck joined | 21:15 |
| → weichkaes joined | 21:15 |
| ← nixmaniack left | 21:15 |
| ← mdel left | 21:15 |
| ← Katniss left | 21:19 |
| ← weichkaes left | 21:19 |
| → iocor joined | 21:19 |
| ← Dreamer3__ left | 21:20 |
| ← krake left | 21:20 |
| → krake joined | 21:21 |
| ← xissburg left | 21:21 |
| ← candybar left | 21:21 |
| ← krake left | 21:22 |
| → lekefly_ joined | 21:23 |
|
AlexMax
| So what happened with this? | 21:23 |
|
| http://paste.pocoo.org/show/Drzk4QMUvky5dYZ6Zrkx/ | 21:23 |
|
| I tried to run this shell script in a git filter-branch | 21:23 |
|
| It worked just great when I tested it on individual commits | 21:24 |
|
| However, when I ran filter-branch, it had this really weird effect where the contents of ~/newlic.cpp.txt were pasted on top of the unmodified original file | 21:25 |
|
| and then there were three lines that were filled with colons | 21:25 |
| ← LekeFly left | 21:25 |
| ← ajt left | 21:25 |
|
canton7
| AlexMax, what's your filter-branch command? | 21:26 |
| ← zulax left | 21:26 |
|
AlexMax
| git filter-branch --tree-filter '/home/alexmax/workspace/skulltag/unlag.sh' -- … | 21:26 |
|
| …--all | 21:26 |
|
| ignore those elipses | 21:26 |
|
| that's just fish | 21:27 |
| ← twisted` left | 21:27 |
| ← starlays left | 21:28 |
| ← di-five left | 21:29 |
| → acl_ joined | 21:29 |
| → Blaster joined | 21:30 |
| → twisted` joined | 21:30 |
| Blaster → Guest71601 | 21:30 |
| ← Guest71601 left | 21:31 |
|
AlexMax
| canton7: As you can see, it's nothing fancy | 21:31 |
| tizzo → tizzo-afk | 21:32 |
|
canton7
| AlexMax, I'm afraid I have no idea... Someone else might though | 21:32 |
| → blaster joined | 21:33 |
| ← twisted` left | 21:33 |
| → twisted` joined | 21:33 |
| ← whitman left | 21:33 |
|
bremner
| AlexMax: without looking, isn't tree-filter supposed to be for a subdirectory? | 21:33 |
|
blaster
| Hello. I am trying to remove a folder from the index so I typed git rm <folder name> but it says pathspec 'eec_design/' did not match any files. I am positive the folder is in the file tree. | 21:33 |
| ← Invader left | 21:33 |
| ← pdtpatr1ck left | 21:33 |
|
blaster
| The folder is also listed under 'Untracked files' when I type git status | 21:34 |
|
milki
| folders are not tracked by git | 21:34 |
| ← jonas_g left | 21:34 |
|
milki
| you want to rm everything within the folder | 21:34 |
|
canton7
| (but if there's an untracked folder with contents, git will just list the folder as untracked) | 21:34 |
|
blaster
| I tried a recursive git rm <folder name> -R | 21:34 |
|
| can you just remove the whole folder and it's contents from the index? | 21:35 |
|
canton7
| blaster, the git rm's failing because "git rm" acts on things which git knows about. The thing you're trying to "git rm" is untracked, therefore git doesn't know about it | 21:35 |
|
| if git claims that it's untracked, then it isn't in the index | 21:35 |
|
blaster
| oh ok | 21:35 |
|
| so if it's listed under untracked then it's in the file tree? | 21:35 |
|
canton7
| yup | 21:35 |
|
blaster
| ok thanks | 21:36 |
| → candybar joined | 21:36 |
| ← candybar left | 21:36 |
| → candybar joined | 21:36 |
| → italiano40 joined | 21:36 |
|
blaster
| if I have a folder titled .git in it can I recover the file tree and all commits some how? | 21:36 |
| ← matsebc left | 21:36 |
|
canton7
| sure. All of the commits, etc, are safely inside it. If you want a checkout, then it depends whether it was originally inited as a bare repo, or a non-bare one | 21:37 |
| → bitkiller joined | 21:37 |
| ← mandric left | 21:38 |
|
blaster
| ok | 21:38 |
| → matsebc joined | 21:39 |
| → twisted`_ joined | 21:40 |
| ← zarubin left | 21:40 |
| ← fairuz_ left | 21:41 |
| → zarubin joined | 21:41 |
|
AlexMax
| bremner: Nope, it checks out the tree | 21:41 |
|
| It's really odd | 21:41 |
| ← khmarbaise left | 21:41 |
|
AlexMax
| because the end result ends up being new_header ::: sv/unlagged.cpp ::: old_file | 21:41 |
|
| instead of new_header old_rest_of_file | 21:41 |
|
| http://paste.pocoo.org/show/546452/ | 21:43 |
| ← zarubin left | 21:43 |
|
AlexMax
| What I thought was going to happen is that the top bit would end and then the rest of the file would follow | 21:43 |
| ← twisted` left | 21:43 |
| twisted`_ → twisted` | 21:43 |
|
AlexMax
| but instead there's a bunch of colons, the name of the file, then the old file in its entirety | 21:43 |
|
blaster
| hey if I remove some files from the index and then commit that change, why would it remove the files from the file tree on my remote server after I pull there? | 21:43 |
|
AlexMax
| and it only happens with filter-branch, if I run it straight from the shell it works dandy | 21:43 |
| → fairuz_ joined | 21:43 |
| ← lyddonb left | 21:45 |
| ← hays left | 21:45 |
| → hays joined | 21:46 |
| ← i42n left | 21:46 |
|
mindlogger
| I just removed a branch how can I sync it with my remote repo? | 21:48 |
| → eijk_ joined | 21:48 |
| ← eijk left | 21:49 |
|
mindlogger
| I can't push that branch? how does the remote repo realize that this branch is no longer in the local repo? | 21:49 |
|
cbreak
| you can push the branch | 21:49 |
|
| just push an empty one | 21:49 |
|
| git push remotename :remotebranchname | 21:49 |
|
mindlogger
| error: src refspec thirdparties does not match any. | 21:50 |
| ← fisted left | 21:50 |
| ← pandeiro left | 21:50 |
| → fisted joined | 21:51 |
|
mindlogger
| cbreak: I get this error "error: src refspec thirdparties does not match any." when I do "git push origin thirdparties" , | 21:51 |
|
cbreak
| yes | 21:51 |
|
| that's normal | 21:51 |
|
| do you have a local branch thirdparties? | 21:51 |
|
mindlogger
| not anymore | 21:51 |
|
| I just removed it | 21:51 |
|
cbreak
| yeah, so it's normal | 21:51 |
|
| you have to do what I told you above | 21:51 |
|
| the : is not just there for decoration :) | 21:52 |
|
mindlogger
| cbreak: what do you mean by an empty branch? | 21:52 |
|
| ah ok | 21:52 |
|
milki
| mindlogger: you forgot the : | 21:52 |
|
cbreak
| the syntax is git push remotename localbranchname:remotebranchname | 21:52 |
|
| if you have a newer git, you can also just do git push --delete remotename remotebranchname | 21:52 |
|
| but since you asked, you probably didn't find delete in your man page | 21:52 |
|
AlexMax
| I'm probably going to end up rewriting this in python | 21:53 |
|
cbreak
| so you don't have a git new enough for that | 21:53 |
|
milki
| oo, delete is new? | 21:53 |
|
| haha | 21:53 |
|
fairuz_
| Hi, is git rebase branchA HEAD is the same as git rebase branchA? | 21:53 |
|
cbreak
| milk: well. There was a time where it didn't exist | 21:53 |
| → uglyoldbob joined | 21:53 |
| ← uglyoldbob left | 21:54 |
| ← cccaldas left | 21:54 |
|
mindlogger
| cbreak: git push --delete origin thirdparties worked | 21:55 |
|
| thanks | 21:55 |
|
cbreak
| so I guess you have a new enough git :) | 21:55 |
|
| and just couldn't find "delete" in git push :) | 21:55 |
|
mindlogger
| yeah I was looking for delete in branch | 21:56 |
|
| I didn't look for it in push :( | 21:56 |
| → lyddonb joined | 21:56 |
|
mindlogger
| is there a way to get how many line you have coded since firs commit until now? | 21:56 |
|
| for all branches perhaps? or is it dumb and I just have to do it with a line counter wc perhaps | 21:57 |
| ← macmartine left | 21:58 |
|
EugeneKay
| mindlogger - man git-log, see --numstat | 22:00 |
|
gitinfo
| the git-log manpage is available at http://jk.gs/git-log.html | 22:00 |
| → ShadeHawk joined | 22:00 |
|
mindlogger
| EugeneKay: ty | 22:00 |
|
blaster
| how can you see what's different between your current file tree and an index you're about to pull? | 22:00 |
| → uglyoldbob joined | 22:00 |
|
ShadeHawk
| I don't envy gitster (Junio) trying to manage this herd of cats without offending anybody, losing important contributions, and lovering quality of patches... | 22:01 |
|
EugeneKay
| fetch it, then abuse diff to your heart's content | 22:01 |
|
milki
| EugeneKay: is that how you treat your diff!? | 22:01 |
|
cbreak
| blaster: just use git fetch and then it's local | 22:01 |
|
EugeneKay
| I named mine steve | 22:02 |
|
uglyoldbob
| im trying to figure out a daily build script for a specific branch of a git repository | 22:02 |
|
| i want the script to build only when git tells me there were changes to the branch | 22:03 |
| → diogogmt joined | 22:03 |
|
milki
| on a bare repo, you could do a post-receive hook | 22:05 |
| → wroathe joined | 22:05 |
|
wroathe
| So lets say I created a remote branch called feature_branch and I want to pull the most recent changes in master into that branch after not working on it in a while | 22:06 |
|
| How would I go about doing that? | 22:06 |
|
uglyoldbob
| milki: i thought about that, but i dont want it to apply to every user of the repository, just the build machine | 22:06 |
|
| wroathe: "git checkout feature_branch" and "git pull" i think, depending on how you created the local branch | 22:07 |
| → cccaldas joined | 22:07 |
| → werdnativ joined | 22:07 |
| ← thomas_b left | 22:07 |
|
wroathe
| git pull would just pull from the feature_branch on the server wouldn't it? | 22:07 |
|
| I'm extremely new to git :P | 22:08 |
|
milki
| uglyoldbob: explain the setup then | 22:08 |
| → macmartine joined | 22:08 |
| tizzo-afk → tizzo | 22:09 |
| → thomas_b joined | 22:09 |
|
uglyoldbob
| i want to have a specific computer run a script every day that checks to see if a specific branch had any changes (commits or merges) | 22:09 |
|
| it it did, then it will do a complete build and upload a certain file to a web server | 22:10 |
|
milki
| where are the repos | 22:12 |
| ← Ksugzulut left | 22:12 |
|
uglyoldbob
| they are on my git server (im running gitolite) | 22:13 |
|
milki
| and the specific computer is not the git server? | 22:13 |
| → Sharas joined | 22:13 |
|
uglyoldbob
| that is correct | 22:13 |
| tizzo → tizzo-afk | 22:14 |
| → znq joined | 22:14 |
|
milki
| you could setup mirroring from specific compter with gitolite server, and have specific computer run post-receive hook | 22:14 |
| ← Dave^|| left | 22:15 |
|
uglyoldbob
| is there not a way to do it with a shell script run by a cron job? | 22:15 |
| ← znq left | 22:15 |
| ← knittl left | 22:16 |
| ← unreal left | 22:16 |
| → znq joined | 22:16 |
|
milki
| then its up to you to check for changes | 22:16 |
| ← Xizor left | 22:16 |
|
milki
| fetch objects, if objects found, then changes happened | 22:16 |
| ← QaDeS left | 22:17 |
| ← ShadeHawk left | 22:17 |
| ← lyddonb left | 22:18 |
| → unkmar joined | 22:19 |
|
uglyoldbob
| what about parsing git log after doing a pull? | 22:19 |
|
unkmar
| git'er done. | 22:19 |
|
| how do I pull from I haven't setup as a dedicated repo? | 22:19 |
| gitinfo set mode: +v | 22:20 |
|
milki
| unkmar: can you reword that? | 22:20 |
|
Sharas
| hi | 22:20 |
|
| trying to run git-daemon on windows 7 with --detach | 22:20 |
|
milki
| uglyoldbob: sounds fine if you want to do it that way? | 22:21 |
|
Sharas
| it just doesnt start | 22:21 |
|
| nothing listens on default port | 22:21 |
|
| anybody knows what might be wrong? | 22:21 |
|
| starts all right with console | 22:21 |
|
unkmar
| milki: I cloned a repo that I previously created. I can't reach the original repo at the moment. Yet, the clone is still available. How can I pull from it? | 22:21 |
| → centipedefarmer joined | 22:21 |
| ← wroathe left | 22:22 |
|
milki
| unkmar: you want to pull from the cloned repo instead of the original repo? | 22:22 |
| → frsk_ joined | 22:22 |
| ← frsk_ left | 22:23 |
|
milki
| you can setup a new remote with git remote add | 22:23 |
|
unkmar
| yes | 22:23 |
|
blaster
| if you have a file in the tree and then you add it to .gitignore so it stops tracking it then how do you remove that file from the index? | 22:25 |
| ← icwiener left | 22:25 |
| → icwiener joined | 22:25 |
|
blaster
| i have various server-specific config files and I just want them to stay as they are on each of the servers | 22:25 |
|
| but when I do a git rm --cached <file> and then commit it's removing it from my other servers | 22:25 |
|
| after I pull from those servers | 22:26 |
|
unkmar
| milki: I'm sorry, I don't quite follow. | 22:26 |
| ← cccaldas left | 22:26 |
| ← bauruine left | 22:26 |
|
milki
| unkmar: your original repo is a remote called origin | 22:27 |
|
| you just need to add your cloned repo as a sepearate remote | 22:27 |
|
unkmar
| I have a clean system I want to clone the repo to. but my original isn't available. | 22:27 |
|
milki
| and then fetch from the new remote | 22:27 |
|
| o | 22:27 |
| ← uglyoldbob left | 22:27 |
|
milki
| why dont you just clone the clone then? | 22:27 |
| → looopy joined | 22:27 |
|
looopy
| is it possible to branch off of a branch? | 22:27 |
| ← TeckniX left | 22:27 |
|
milki
| yes | 22:27 |
| → bauruine joined | 22:28 |
|
looopy
| say i make an experimental branch and i don't want that to be a master per say...but a'experimental master' experimental/new_feature | 22:28 |
|
| how would i go about that? not sure what to search for o_O | 22:28 |
|
milki
| git branch newbranchname | 22:28 |
|
| ? | 22:28 |
| ← ThomasLocke left | 22:29 |
|
looopy
| o_O; | 22:29 |
|
chaoflow
| looopy: while on the branch you want to branch from: git branch experimental/new_feature | 22:29 |
|
looopy
| hah...no sheeet -_- | 22:29 |
|
EugeneKay
| This won't work if you already have a branch named 'experimental' | 22:30 |
|
looopy
| now what if i wanted to merge one particular branch from that experimental branch to master just git merge blah/blah_24 | 22:30 |
|
EugeneKay
| Because 'experimental' can't simultaneously be a file(which is what the branch pointer is) and a directory | 22:30 |
|
| While on master, yes. | 22:30 |
| → Cam joined | 22:30 |
| ← joshsmith left | 22:30 |
|
EugeneKay
| Or you can do it the other direction, 'git merge master' from blah/blah_24 | 22:30 |
|
unkmar
| looopy: while in the brance you want to make a branch of. | 22:31 |
| → fruight joined | 22:31 |
|
looopy
| gotcha | 22:31 |
|
EugeneKay
| These will behave mostly the same, but the parent commit of your merge commit wll be reversed | 22:31 |
| → airborn_ joined | 22:31 |
|
EugeneKay
| Merge strategies involving --theirs or --ours will also be different, ofc | 22:31 |
| ← bitkiller left | 22:31 |
| ← echoSMILE left | 22:31 |
|
looopy
| ok | 22:31 |
|
unkmar
| milki: I would but I guess I'm an just too ignorant on HOW. | 22:32 |
|
| nm | 22:33 |
| → Chappo joined | 22:33 |
|
unkmar
| ught | 22:33 |
|
milki
| you said you had access to the clone | 22:33 |
|
looopy
| alright that worked...i'll be sure to return in 5 hours with a merge conflict =) | 22:33 |
|
milki
| lol | 22:33 |
|
unkmar
| I finally got it. | 22:34 |
|
| That makes my life so much easier. | 22:36 |
| ← faceface left | 22:37 |
| → johnkpaul joined | 22:37 |
| tizzo-afk → tizzo | 22:38 |
|
unkmar
| milki: ty, ty, ty, ty, ty. Many many thank you's. I wish I had taken time to learn that 2 weeks ago. | 22:38 |
|
milki
| you will want to replace the remote with the original repo location when its available though | 22:39 |
| → frogonwheels joined | 22:40 |
|
unkmar
| That was almost too easy. | 22:40 |
|
| milki: nope. Running from a LIVE CD. but in the near future. My original repo is to be moved. Dang network there isn't stable enough. :( | 22:40 |
| ← kerrick left | 22:41 |
| → EricInBNE joined | 22:41 |
|
blaster
| if you have a file in .gitignore should it still show up under 'Changes not staged for commit'? | 22:41 |
| ← canton7 left | 22:41 |
|
unkmar
| blaster: it shouldn't | 22:41 |
|
milki
| i believe .gitignore is only for untracked files? | 22:41 |
| Tabstar → Tabmow | 22:42 |
|
milki
| ya | 22:42 |
|
| says so in the description | 22:42 |
|
blaster
| how do you untrack a file but not cause it to show up in git status? | 22:42 |
|
milki
| git rm first then add it to ignore? | 22:42 |
|
blaster
| its already in ignore, and when I do git rm it removes the file... but I need to keep the file because it's some server specific config | 22:43 |
|
| I tried git rm --cached and it removes the file from my other repos when I pull | 22:43 |
| ← znq left | 22:43 |
|
blaster
| they have the same file on the other repos with their server specific config | 22:43 |
| → joshteam joined | 22:44 |
|
frogonwheels
| blaster: ~pull | 22:44 |
|
| !pull | 22:44 |
|
gitinfo
| pull=fetch+merge (or with flags/config also fetch+rebase). It is thus *not* the opposite of push in any sense. A good article that explains the difference between fetch and pull: http://longair.net/blog/2009/04/16/git-fetch-and-merge/ | 22:44 |
|
blaster
| shouldnt pull be the opposite of push? | 22:44 |
|
frogonwheels
| blaster: it's not really. | 22:45 |
| ← skylord5816 left | 22:45 |
| ← wald0 left | 22:45 |
|
frogonwheels
| blaster: or it is kind of, but under very narrow circumstanses. | 22:45 |
|
| blaster: actually, no, I'll go back to gitinfo on this one. it's not really the opposite. | 22:46 |
| ← Airells left | 22:46 |
| → koo4 joined | 22:46 |
|
frogonwheels
| blaster: imho pull is useful when you don't need to push :) otherwise use fetch and merge / rebase, until you understand what you're doing :) | 22:47 |
| → wald0 joined | 22:47 |
| ← JayBazuzi left | 22:48 |
| ← cakehero left | 22:48 |
|
AlexMax
| Here is my question from an hour ago in stackoverflow form... | 22:49 |
|
| http://stackoverflow.com/questions/9153824/shell-script-works-fine-by-itself-but-produces-unexpected-results-when-run-thro | 22:49 |
| → koo5 joined | 22:49 |
| ← erichynds left | 22:52 |
|
SethRobertson
| AlexMax: If you use tail -n +34 instead of more +34, does it work? | 22:53 |
| ← g105b left | 22:53 |
|
AlexMax
| SethRobertson: Trying now | 22:54 |
| ← fairuz_ left | 22:56 |
| ← Shusshu left | 22:56 |
| → isxek joined | 22:59 |
| ← acl_ left | 22:59 |
| → Chappo_ joined | 23:01 |
| ← Chappo left | 23:01 |
| Chappo_ → Chappo | 23:01 |
| airborn_ → airborn | 23:01 |
| ← blaster left | 23:02 |
| → cakehero joined | 23:02 |
| ← johnkpaul left | 23:02 |
| → echoSMILE joined | 23:03 |
| ← mastro left | 23:03 |
| ← Sharas left | 23:05 |
| → codewrangler joined | 23:08 |
| ← icwiener left | 23:09 |
| → Davey joined | 23:09 |
| ← Davey left | 23:09 |
| → Davey joined | 23:09 |
| → Dreamer3__ joined | 23:11 |
| → bigkm joined | 23:13 |
| ← isxek left | 23:15 |
| → thiago joined | 23:17 |
| ← thiago left | 23:17 |
| → thiago joined | 23:17 |
| → johnkpaul joined | 23:19 |
| ← Heimidal left | 23:20 |
| ← dharrigan left | 23:21 |
| ← johnkpaul left | 23:21 |
| ← d0k left | 23:22 |
| → wuj joined | 23:23 |
| → wroathe joined | 23:23 |
| ← rendar left | 23:24 |
| ← akosikeno left | 23:24 |
| → mar77i joined | 23:25 |
| → vinod joined | 23:25 |
|
mar77i
| hey, is it possible for me to get every commit diff since a certain commit? | 23:25 |
| ← Chappo left | 23:25 |
|
thiago
| git log -p thatcommit.. | 23:25 |
|
SethRobertson
| git log certaincommit... | 23:25 |
|
thiago
| including the two dots | 23:26 |
| ← ph^ left | 23:26 |
|
thiago
| also: git format-patch thatcommit.. | 23:26 |
| ← ianmcorvidae left | 23:26 |
|
mar77i
| oh awesome | 23:27 |
| ← vinod left | 23:27 |
| → bitkiller joined | 23:28 |
| → ianmcorvidae joined | 23:30 |
| ← FernandoBasso left | 23:30 |
|
mar77i
| format-patch spit out multiple files. I'm fine with it all in a single file and went with git log -p commit.. >some_file.log | 23:30 |
|
thiago
| git format-patch --stdout | 23:30 |
| ← cakehero left | 23:31 |
| → Pessimism joined | 23:31 |
| → deeebug joined | 23:31 |
| → dinduks joined | 23:32 |
| ← glennpratt left | 23:32 |
| → acl_ joined | 23:33 |
| ← diogogmt left | 23:33 |
|
mar77i
| I'll note that. | 23:33 |
| → diogogmt joined | 23:33 |
| → __machine joined | 23:36 |
| ← shruggar left | 23:36 |
|
dinduks
| Hi, I just did my first merge with git, and there's something I don't understand, so if can anyone explain: I merged branch "auth" with master, but some new files stayed in auth where I created them, they don't appear in master, as if I've done no merge. Is that normal? Thanks. | 23:37 |
|
__machine
| im using git-svn to get familiar before i switch our repos... i have my Subversion remote and git-svn branch on it... and i have an origin/master remote branch at bitbucket... i was always pushing to subversion first, then pushing to bitbucket to keep it updated... | 23:37 |
|
| now i have about 10 or so commits in Subversion/git-svn AND origin/master, but they have different commit hash and timestamps... not sure how this happened, or how to fix it? | 23:38 |
| → dharrigan joined | 23:38 |
| ← dharrigan left | 23:38 |
| → dharrigan joined | 23:38 |
|
thiago
| push the Subversion commits to GitHub | 23:39 |
| ← psoo left | 23:39 |
|
__machine
| they are already on the origin/master (bitbucket)... but they seem to have different commit hash and timestamp? | 23:40 |
| ← vandal- left | 23:41 |
|
SethRobertson
| dinduks: That is not normal. We can work through understanding what happened. | 23:41 |
|
__machine
| when i try push again i get... "failed to push some refs" ... "To prevent you from losing history, non-fast-forward updates were rejected" ... "Merge the remote changes (e.g. 'git pull') before pushing again." ... | 23:41 |
|
SethRobertson
| faq non-ff | 23:42 |
|
gitinfo
| Your push would lose changes on the remote; more details available at http://jk.gs/gitfaq#non-ff | 23:42 |
| → Skyx-mobile__ joined | 23:42 |
|
__machine
| yes... but why does the remote have commits that i dont have? they are the same identical changes, but with a different timestamp and commit hash... not sure how that happened... i always pushed to git-svn first after making changes... then just pushed to origin to keep the bitbucket mirror updated... | 23:43 |
| ← deeebug left | 23:43 |
| tizzo → tizzo-afk | 23:44 |
|
SethRobertson
| You either rewrote public history (rebased or amended a commit after you pushed) or someone (including you) made a change in a different clone of the upstream repo and uploaded it | 23:44 |
|
| Sounds like you probably rebased or amended the commit | 23:44 |
|
__machine
| i dont think i amended... but git-svn always does git svn rebase when it pulls down latest changes? | 23:45 |
| → Chib joined | 23:45 |
|
SethRobertson
| Are you mixing a svn upstream with a non-svn upstream? | 23:46 |
| ← diogogmt left | 23:46 |
| → diogogmt joined | 23:46 |
| → glennpratt joined | 23:46 |
|
__machine
| i started with git svn clone ... then i added an "origin" remote at bitbucket as well... when working i pull from Subversion/git-svn, which rebases my local commits on top of latest svn code... then i push to Subversion/git-svn ... then i push to origin/master to keep the bitbucket remote up to date | 23:47 |
| → psoo joined | 23:47 |
|
SethRobertson
| That, specifically the rebase nature of git-svn, would do it. You need to push -f to bitbucket. | 23:48 |
| ← Dreamer3__ left | 23:48 |
| → pl0sh joined | 23:48 |
|
__machine
| the Subversion/git-svn commits are 12 minutes *after* the origin/master commits, according to the timestamps... the origin/master commits have the svn commit metadata on them... | 23:48 |
|
dinduks
| Thanks SethRobertson, I don't know from where to start thought. :/ How can I fix that? | 23:48 |
| → barr5790 joined | 23:48 |
|
SethRobertson
| First make sure there are no outstanding changes. `git status` | 23:49 |
|
__machine
| i see... still not sure what i did wrong to cause this though? i did plenty of other commits this way before now and did not get this problem... i must have changed the workflow slightly this time, but im not sure how... | 23:49 |
| → TL joined | 23:50 |
|
SethRobertson
| __machine: Any time you have a local commit which is rebased, it changes and gets a new SHA. If you have pushed that commit somewhere else, then they will need a force push. Either you previously hadn't uploaded to bitbucket yet or you had uploaded to svn | 23:50 |
| → robotmay joined | 23:51 |
| ← giallu left | 23:51 |
| ← drizzd left | 23:51 |
|
__machine
| SethRobertson: could it be... i pushed to svn... then rebased from origin... so my commits which were already pushed to svn but not on origin, were rebased and then pushed... so what i should do is... local commit, git svn rebase... then pull from origin (NOT rebase)... and then push to origin? | 23:53 |
|
SethRobertson
| If you are not pushing your changes to svn, any svn change will cause your local changes to be rebased and thus bitbucket will need a force push | 23:54 |
| → Dreamer3 joined | 23:55 |
| → al4nc4ds joined | 23:58 |
|
__machine
| thanks... i think i fixed it... did a reset to the last git-svn commit, and force pushed that to bitbucket | 23:58 |
|
SethRobertson
| That doesn't sound like a good idea, but if you are happy | 23:59 |
|
__machine
| why is it not a good idea? | 23:59 |
|
SethRobertson
| Because you just lost your local commits!! | 23:59 |
| ← krisfremen left | 23:59 |