| 2012-06-28 |
| ← blendedbychris left | 00:00 |
|
mns
| its accessible from the internet. so I work on ~/.emacs.d, make changes, do git commit, no need to do a push. I go to work, do a git pull and I should have my changes. | 00:01 |
| → simesy joined | 00:01 |
| ← simesy left | 00:01 |
| ← ben_alman left | 00:01 |
|
cmn
| yes, pull will download and merge the changes | 00:02 |
| → intransit joined | 00:02 |
|
cmn
| you won't be able to push to your ~/.emacs.d's active branch directly | 00:02 |
|
sitaram
| cjz: you didn't have to look in the log file. The push output should have shown you a nice "FATAL: git config .... not allowed" | 00:03 |
|
cjz
| sitaram: it did | 00:03 |
|
| im just a dummy | 00:03 |
|
sitaram
| cjz: then why would you think your permissions and repos would work if you got a FATAL on the push? | 00:03 |
|
| shouldnt you investigate *that* before going into chmod and all that? | 00:04 |
|
cjz
| well i thought it was doing everything just warning me about something | 00:04 |
|
| i was going to look at it later.. | 00:04 |
|
mns
| cmn: thanks for helping and clearing up things | 00:04 |
|
sitaram
| cjz: you have a different meaning of FATAL -- in all caps too | 00:04 |
|
| sitaram notes this down for future support issues | 00:04 |
|
cjz
| yes thats probably true | 00:04 |
|
| again, im a dummy | 00:04 |
|
| i should have figured it out | 00:04 |
|
| but cmn helped.. thank you again | 00:05 |
|
sitaram
| cjz: either that or English is not your first language. The latter is common enough | 00:05 |
|
cjz
| nah, i just assumed that FATAL was on something else | 00:05 |
|
| sitaram does not actually *say* it but the former is even more so | 00:05 |
|
cjz
| like some post_hook… | 00:05 |
|
sitaram
| who cae *what* it was on. A FATAL is something tobe investigated | 00:06 |
|
| gaaah! | 00:06 |
|
cjz
| ok ok | 00:06 |
|
| sitaram gives up on humanity | 00:06 |
|
cjz
| anyway, have to head home | 00:06 |
| ← intransit left | 00:06 |
| → davidbanham joined | 00:06 |
|
Owner
| how do you remove curse words from prior commit messages | 00:06 |
|
cjz
| its ok, im not a systems engineer, so maybe you can give up on devs doing system engineering work | 00:06 |
|
nevyn
| Owner: rewrinting it is the only real option | 00:07 |
|
cjz
| anyhoo, see you tomorrow | 00:07 |
| ← cjz left | 00:07 |
| ← avpx left | 00:07 |
|
Owner
| nevyn~# ?? | 00:07 |
| → enmand joined | 00:07 |
|
nevyn
| rewriting rather | 00:07 |
|
| so you rewrite that commit. | 00:07 |
|
| how far back is it? | 00:07 |
| → orzo joined | 00:08 |
|
Owner
| many are far back | 00:08 |
|
| how would you automate it | 00:08 |
|
basicallyu
| do you guys know if egit ignores .gitattributes file? | 00:08 |
|
orzo
| so, trivial question, I have some changes i just made and realize now i want to save them in a new branch rather than the current one. What do i do? | 00:08 |
|
nevyn
| orzo: git branch -b newbranch | 00:09 |
|
| oops | 00:09 |
| ← AaronMT left | 00:09 |
|
nevyn
| git checkout -b newbranch (make a new branch of what you've got now) | 00:09 |
| → ben_alman joined | 00:10 |
|
nevyn
| git checkout oldbranch (go back to where it shouldn't be but is) | 00:10 |
|
| git reset --hard HEAD^ (reset back one commit) | 00:10 |
| ← twisted` left | 00:11 |
| → AaronMT joined | 00:11 |
| ← AaronMT left | 00:11 |
| ← oriba left | 00:11 |
| ← Myhro left | 00:12 |
| → AaronMT joined | 00:12 |
| ← AaronMT left | 00:12 |
|
orzo
| okay, well ive not commited anything anywhere, so i think all i want is that first command "git checkout -b newbranch" to start a new branch with altering the working tree and then i would commit -a. right? | 00:12 |
|
| s/with/without/ | 00:12 |
|
nevyn
| right | 00:12 |
| → AaronMT joined | 00:12 |
| ← AaronMT left | 00:12 |
|
nevyn
| I thought you'd committed. | 00:12 |
|
| yes git checkout -b and commit | 00:13 |
| → twisted` joined | 00:13 |
| → AaronMT joined | 00:13 |
| ← AaronMT left | 00:13 |
| ← squentin left | 00:13 |
|
orzo
| thanks | 00:13 |
| → AaronMT joined | 00:14 |
| ← AaronMT left | 00:14 |
| ← w0m left | 00:14 |
| ← Mowsh left | 00:14 |
| → AaronMT joined | 00:14 |
| ← AaronMT left | 00:14 |
| → AaronMT joined | 00:15 |
| ← AaronMT left | 00:15 |
| → AaronMT joined | 00:16 |
| ← thornofmight_ left | 00:16 |
|
basicallyu
| I am badly failing to use "* text" inside .gitattributes in the root of the workdir and actually have the .gitattributes itself stored in the repo on commit with LF lineendings , they are not touched | 00:17 |
|
| but I am using egit... | 00:17 |
| → Myhro joined | 00:18 |
| ← cakehero left | 00:19 |
| → squentin joined | 00:20 |
| ← squentin left | 00:20 |
| → squentin joined | 00:20 |
|
basicallyu
| now i notice that if i run git status it shows a lot of modified files which aren't seen by egit meh | 00:20 |
| ← cbreak left | 00:21 |
| → w0m joined | 00:21 |
| ← AaronMT left | 00:22 |
| ← Davey left | 00:23 |
|
bitkiller
| regarding my problem with pub key copying to the gitolite host, i found that copying the key using ssh-copy-id does work, but with scp doesn't | 00:23 |
|
basicallyu
| I'm taking it that means egit doesn't consider .gitattributes ... meaning there's no way i can ensure that devs will commit files with LF endings regardless | 00:23 |
|
bitkiller
| work -> ssh-keygen -lf validades the key | 00:24 |
|
sitaram
| you said it was already valid before | 00:24 |
| → oriba joined | 00:24 |
| ← Sebo left | 00:27 |
| → jcromartie joined | 00:28 |
| ← lightcap left | 00:28 |
| ← dreiss left | 00:31 |
| → dmiles_afk joined | 00:34 |
| ← kenperkins left | 00:34 |
|
bitkiller
| sitaram, yes...and i have just found the problem | 00:35 |
|
| thanks to #openssh guys | 00:35 |
|
| selinux disabled in the host, enabled in the VM | 00:35 |
| ← beatak left | 00:35 |
| ← adamm left | 00:35 |
| → cody_ joined | 00:35 |
| ← DrNick left | 00:36 |
| → DrNick joined | 00:37 |
| → macabre joined | 00:37 |
|
dmiles_afk
| i have this git repository I am trying to make using git2svn ... but I only want a sub-bit of the SVn repository | 00:37 |
|
| should i make the entire reprository to GIT then.. somehow only use what i want? | 00:37 |
|
| or is there a way of only snatchign the sub part of the SVN | 00:38 |
|
offby1
| dmiles_afk: I don't know, but if you get stuck, google for "reposurgeon" | 00:38 |
|
| it's advanced but might be useful anyway | 00:38 |
| ← harish left | 00:39 |
|
dmiles_afk
| looks good.. i cna probly make the whole thing into the GIT .. then use reprosurgious to trim it up | 00:41 |
|
| i have thjis project on googlecode that has a submodule thqt deserves its very onw project on github | 00:42 |
|
| deserves its very own project on github* | 00:42 |
| ← berserkr left | 00:42 |
|
dmiles_afk
| but the submodule/subproject is like 4% of the content and history | 00:43 |
|
bitkiller
| sitaram, i suppose i can place the repositories directory anywhere. am i correct? | 00:44 |
|
orzo
| i have a situation where there are two popular forks of the same software maintaining separate histories. Although they are both forks of the same base code and they both have git histories, they are two indepently created repositories (not cloned). There's been many changes and particularly name-changes for files and directories. Still, I'd like to merge changes from either into a single | 00:46 |
|
| combined repository. Is that doable? | 00:46 |
|
| perhaps having my local repository having two separate remote tracking branch anda personal branch that i can merge patches into? | 00:48 |
| → luxurymode joined | 00:48 |
| ← keltvek left | 00:49 |
| → beneggett joined | 00:50 |
| → carpediembaby joined | 00:50 |
|
carpediembaby
| hi. if i create a new branch on my local machine and commit and then push my changes, does it also create the same new branch on the remote server? | 00:51 |
|
cmn
| carpediembaby: see man git config push.default | 00:51 |
|
gitinfo
| carpediembaby: the git-config manpage is available at http://git-scm.com/docs/git-config.html | 00:51 |
| ← andref_dias left | 00:51 |
|
orzo
| that's not typically tehdefault i do not think | 00:51 |
|
cmn
| if you push to a new branch explicitly, it will create it | 00:51 |
| → Hemebond joined | 00:51 |
| ← oriba left | 00:52 |
|
cmn
| orzo: you can try to merge histories even if they're unrelated, but the chances of success aren't that great | 00:52 |
|
Hemebond
| Why would "git fetch upstream" not fetch the latest commits? | 00:52 |
| → keltvek joined | 00:53 |
|
cmn
| that depends completely on what upstream is, and what you mean by latest commits | 00:53 |
|
| and whether you're using the term fetch correclty | 00:53 |
|
Hemebond
| I mean that exact command in quotes. | 00:53 |
|
carpediembaby
| cmn: what precisely do i look at in the config file? i just don't want to push to master. so i just say, git push my-branch? | 00:53 |
|
Hemebond
| And using "git log" to see what commits it contains. | 00:54 |
|
cmn
| carpediembaby: what I told you, push.default | 00:54 |
|
| it explains what happens | 00:54 |
|
| Hemebond: git log only? that won't be affected by a fetch unless you're in a bare repo | 00:54 |
| → AaronMT joined | 00:54 |
|
Hemebond
| I mean "git log upstream/master" | 00:55 |
|
cmn
| actually, forget about the bare repo, the settings would have to be changed for that to do anything sane | 00:55 |
|
| Hemebond: and you think there's stuff missing why? | 00:55 |
| ← jcromartie left | 00:55 |
|
Hemebond
| Diff shows wrong changes. | 00:55 |
|
cmn
| does git ls-remote upstream refs/heads/master and git rev-parse refs/remotes/upstream/master return the same | 00:55 |
|
| Hemebond: what's diff got to do with this? | 00:55 |
|
Hemebond
| Trying to compare local branch to the upstream branch | 00:56 |
|
cmn
| that is unrelated to fetch working | 00:56 |
|
Hemebond
| git diff master upstream/master | 00:56 |
|
| Really? | 00:56 |
|
cmn
| does git ls-remote upstream refs/heads/master and git rev-parse refs/remotes/upstream/master return the same | 00:56 |
|
| ? | 00:56 |
|
Hemebond
| Sorry, trying to help someone else with this. | 00:57 |
|
| It seems we had the fetch command wrong. | 00:57 |
|
| We were doing "git fetch upstream master" | 00:58 |
|
cmn
| that won't update the remote-tracking branch | 00:58 |
|
Hemebond
| What does it do? | 00:58 |
|
cmn
| it fetches the master branch and doesn't store it anywhere other than FETCH_HEAD | 00:58 |
|
| because you told it not to store it anywhere | 00:58 |
| ← w09x left | 00:58 |
|
Hemebond
| Oh, we did? | 00:58 |
|
cmn
| yes | 00:59 |
| → w09x joined | 00:59 |
|
Hemebond
| What do you add to specify where to store it? | 00:59 |
|
cmn
| a right-hand side to the refspec | 00:59 |
|
| see your config file | 00:59 |
|
EugeneKay
| !fetchfour | 01:00 |
|
gitinfo
| Never use the four-word version of git-fetch or git-pull (e.g. git fetch remote refspec). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). | 01:00 |
|
EugeneKay
| I thought there was a writeup attached to that. Hrm. | 01:00 |
|
| EugeneKay must need more booze | 01:00 |
|
Hemebond
| aha | 01:00 |
|
| Okay. | 01:00 |
|
cmn
| man git fetch should say about refspecs | 01:00 |
|
gitinfo
| the git-fetch manpage is available at http://git-scm.com/docs/git-fetch.html | 01:00 |
| ← etcetera left | 01:00 |
|
EugeneKay
| The four-word version gives you FETCH_HEAD, which, if you look at the output, it states. | 01:01 |
|
Hemebond
| I see | 01:01 |
|
| so | 01:01 |
| ← fuzzybunny69y left | 01:01 |
|
Hemebond
| +refs/heads/*:refs/remotes/upstream/* | 01:02 |
|
EugeneKay
| Correct | 01:02 |
|
Hemebond
| says to store the stuff from refs/heads into refs/remotes/upstream/ | 01:02 |
|
EugeneKay
| Bravo for not using 'origin' | 01:02 |
| ← acl_ left | 01:02 |
| ← keltvek left | 01:03 |
|
Hemebond
| I don't really understand what our "master" argument actually told it to do. | 01:03 |
|
| (if anything) | 01:03 |
| ← neurodrone left | 01:03 |
|
EugeneKay
| Grab the master branch from the remote named upstream and put it into FETCH_HEAD | 01:03 |
|
cmn
| not to store it anywhere | 01:03 |
|
Hemebond
| Oh | 01:03 |
|
cmn
| you never gave it the right-hand side | 01:03 |
|
Hemebond
| Could we have put a refspec after it? | 01:03 |
|
EugeneKay
| Not anywhere permanent, anyway | 01:03 |
|
cmn
| you did put a refspec | 01:03 |
|
EugeneKay
| Sure. master:bacon | 01:03 |
|
cmn
| that's why you overrode the config | 01:04 |
| ← duckxx left | 01:04 |
|
Hemebond
| Ah, I see. | 01:04 |
|
| It was the left side of a refspec. | 01:05 |
|
| Is it possible to see the currently stored... stuff? | 01:05 |
|
bitkiller
| sitaram, well, i've read the g2 migration doc and found the REPO_BASE change. i'll use symlink as suggested | 01:05 |
|
Hemebond
| Oh | 01:05 |
|
| It's not permanent, so it's lost at the end of the fetch? | 01:05 |
|
cmn
| as fetch told you, it stored the ref in FETCH_HEAD | 01:07 |
| → zheng joined | 01:07 |
| → keltvek joined | 01:08 |
| → aantix_ joined | 01:08 |
|
Hemebond
| Right. | 01:08 |
|
| Ah, neat. | 01:08 |
| ← aantix left | 01:09 |
| ← mtx_init left | 01:11 |
| ← xinming left | 01:11 |
| ← erkules left | 01:11 |
| ← aspotashev left | 01:11 |
| → erkules joined | 01:11 |
| → Vampire0 joined | 01:12 |
|
Hemebond
| Thank you, again, for the help :-) | 01:12 |
| ← wilmoore left | 01:12 |
| → xinming joined | 01:12 |
| ← Hemebond left | 01:13 |
| → mtx_init joined | 01:13 |
| ← aantix_ left | 01:13 |
| ← Vampire0_ left | 01:15 |
| ← kanch left | 01:15 |
| → kanch joined | 01:16 |
| ← ben_alman left | 01:17 |
| → iori joined | 01:17 |
| → ben_alman joined | 01:18 |
| ← smw left | 01:18 |
| → smw joined | 01:18 |
| → v0n joined | 01:19 |
|
carpediembaby
| so i get that i need to create a remote branch. now, i have one remote branch and another local branch which tracks the remote. how do i now push changes only to the new remote branch? | 01:19 |
| ← Lgb left | 01:20 |
| ← palm_vue left | 01:20 |
| ← palyboy left | 01:20 |
| → palm_vue joined | 01:21 |
| → Lgb joined | 01:21 |
| ← osmosis left | 01:21 |
|
frogonwheels
| carpediembaby: I just read back up, and I'm still not quite sure what you are asking by that. | 01:22 |
| → cooloney joined | 01:22 |
|
cmn
| tell push to only push that one branch | 01:22 |
|
| git push <where> <what> | 01:22 |
| ← SkAzZ left | 01:22 |
| → kenperkins joined | 01:24 |
|
carpediembaby
| frogonwheels: i created a remote branch (git push origin origin:refs/heads/new_feature_name) and also a local branch which tracks the remote one. but i don't know how to push changes i make in the new local branch to the new remote branch | 01:24 |
|
frogonwheels
| carpediembaby: wow, you like doing it the hard way don't you ! | 01:25 |
| → palyboy joined | 01:25 |
|
carpediembaby
| cmn: git push origin local_branch ? | 01:25 |
|
frogonwheels
| carpediembaby: ..and that syntax doesn't look right anyway. | 01:25 |
|
cmn
| if the name is the same, you can omit the right-hand side | 01:26 |
| ← hwrd|work left | 01:26 |
|
frogonwheels
| carpediembaby: and unless you have a very unusual case, you should keep it the same. things will run better. | 01:26 |
|
carpediembaby
| in my frogonwheels what's the easy way?! | 01:27 |
|
frogonwheels
| carpediembaby: git push -u origin local_branch (set upstream as well) | 01:27 |
|
| carpediembaby: if you need a different name on the remote, then create the branch with the same name locally | 01:28 |
|
carpediembaby
| cmn, i'm not sure i understand. you mean if the name of the remote branch and the local branch is the same? i can just say "git push origin" and it will push from my current branch to the corresponding branch on remote? | 01:28 |
|
cmn
| no | 01:28 |
| ← xxthink left | 01:28 |
|
cmn
| for that, see man git config push.default | 01:28 |
|
gitinfo
| the git-config manpage is available at http://git-scm.com/docs/git-config.html | 01:28 |
|
frogonwheels
| carpediembaby: git push origin local_branch is what he. This is the equivalent of git push origin branch_name:branch_name .. or close to. | 01:28 |
| ← diamonds left | 01:29 |
|
frogonwheels
| he *meant | 01:29 |
|
| err.. cmn meant. | 01:29 |
|
cmn
| yes, if you omit the right-hand side of the refspec, it will assume you mean the same name | 01:29 |
|
| just as you can omit the refs/heads/ because you usually push branches | 01:30 |
| → harish joined | 01:30 |
|
carpediembaby
| cmn, frogonwheels : what i am confused about is the use of origin. i created a branch named 'guides'. and i can't use that as a remote. in my .git/config file, 'guides' is there with a remote = origin | 01:31 |
|
frogonwheels
| carpediembaby: you mean you can't use that as a remote branch name? | 01:31 |
|
cmn
| a remote isn't a branch | 01:31 |
|
frogonwheels
| carpediembaby: a remote is a reference to a repository | 01:32 |
|
carpediembaby
| frogonwheels: yes, from what i'm thinking, i should be saying git push guides | 01:32 |
| ← zheng left | 01:32 |
| ← Targen_ left | 01:32 |
|
frogonwheels
| carpediembaby: you have to specify where you push it to (which repository, or 'remote') | 01:32 |
|
| carpediembaby: so git push origin guides (if you are using the default remote) | 01:32 |
| → centipedefarmer joined | 01:34 |
| → intripoon_ joined | 01:34 |
| → apok_ joined | 01:35 |
| → jhardinee joined | 01:35 |
| ← apok_ left | 01:35 |
| ← w09x left | 01:36 |
| → w09x joined | 01:36 |
| ← intripoon left | 01:37 |
| → etcetera joined | 01:37 |
| ← apok left | 01:38 |
| ← mocramis left | 01:38 |
| → mocramis joined | 01:39 |
| → Davey joined | 01:39 |
| → metcalfc joined | 01:40 |
| → jackh joined | 01:42 |
| → jackh_ joined | 01:44 |
| infogulch → infogulch|afk | 01:44 |
| → kvda joined | 01:44 |
| ← alegen left | 01:44 |
| ← mcluskydodallas left | 01:45 |
| ← tonsofpcs left | 01:46 |
| → jpmelos joined | 01:47 |
| ← segher left | 01:50 |
| ← thearthur left | 01:50 |
| → mritz joined | 01:50 |
| ← jpmelos left | 01:50 |
| → jpmelos joined | 01:51 |
| → segher joined | 01:51 |
| ← carpediembaby left | 01:53 |
| → tonsofpcs joined | 01:53 |
| ← antgel left | 01:55 |
| → fuzzybunny69y joined | 01:57 |
| ← jpmelos left | 01:59 |
| ← basicallyu left | 01:59 |
| → macrover joined | 02:01 |
| ← cody_ left | 02:02 |
| → _d4rklit3 joined | 02:03 |
| → ferdna joined | 02:06 |
| → delight joined | 02:07 |
| ← metcalfc left | 02:07 |
| → xiangfu joined | 02:08 |
| ← davidbanham left | 02:09 |
| ← kukks left | 02:09 |
| → jpmelos joined | 02:09 |
| → tmcmahon joined | 02:10 |
| ← jeyanth left | 02:10 |
| → davidbanham joined | 02:10 |
| → nadavoid joined | 02:10 |
| ← zanneth left | 02:11 |
| ← mtytel left | 02:14 |
| → weiyang joined | 02:16 |
| → Anxi80_ joined | 02:16 |
| → dhruvasagar joined | 02:16 |
| ← btanaka left | 02:17 |
| ← Anxi80_ left | 02:19 |
| → Ecesis joined | 02:21 |
| ← lolfrenz left | 02:22 |
| ← Ecesis left | 02:22 |
| ← davidbanham left | 02:22 |
| ← frogonwheels left | 02:23 |
| → davidban_ joined | 02:23 |
| ← JEEB left | 02:24 |
| → JEEB joined | 02:25 |
| ← Bombe left | 02:25 |
| → Targen joined | 02:26 |
| → jnewt joined | 02:27 |
| ← Fandekasp left | 02:27 |
| ← v0n left | 02:27 |
| → Fandekasp joined | 02:27 |
| ← acrocity left | 02:28 |
|
jnewt
| what is the correct way to reset a folder to a previous commit? I have some support headers / source files that i want to "rollback" to a previous state (I alsow want to remove created and add deleted since a specific commit) I don't want to lose modifications to other folders | 02:29 |
| ← weiyang left | 02:29 |
| ← mdhopkins left | 02:30 |
| ← nadirvardar left | 02:31 |
|
cmn
| checkout in file mode | 02:31 |
|
| checkout commit -- dir | 02:31 |
| → leeight_ joined | 02:34 |
| ← SirFunk left | 02:35 |
| ← fuzzybunny69y left | 02:36 |
| → Parth_ joined | 02:36 |
| ← xinming left | 02:36 |
|
jnewt
| i take it that can't be done via git gui, or there's no support here or anywhere else for non-command line git | 02:37 |
|
cmn
| git-gui can probably do it somehow | 02:37 |
| → SirFunk joined | 02:38 |
| → edude03 joined | 02:38 |
|
cmn
| but I never use it; and it's not like checkout is compliated | 02:38 |
| → wilmoore joined | 02:38 |
| ← TheDudeKnows left | 02:38 |
|
jnewt
| i never could figure out how to use git from windows and the command line. works fine when i'm using my linux computer, but most of my work is on windows based software | 02:39 |
| ← MattRichardson left | 02:39 |
| ← delight left | 02:39 |
|
cmn
| you either tell the installer to put it in your usual path; or you click the so-called "git bash" | 02:39 |
| → v0n joined | 02:40 |
| → delight joined | 02:41 |
| → weiyang joined | 02:42 |
| ← jhford left | 02:43 |
| → neurodrone joined | 02:44 |
| → blendedbychris joined | 02:45 |
| ← blendedbychris left | 02:45 |
| → blendedbychris joined | 02:45 |
| → mvrilo joined | 02:46 |
| → thursday joined | 02:47 |
| → Bombe joined | 02:48 |
| → MattRichardson joined | 02:48 |
| ← mvrilo left | 02:48 |
| → jhford joined | 02:49 |
| ← macabre left | 02:50 |
| ← redii left | 02:50 |
| ← AaronMT left | 02:50 |
|
jnewt
| i can't believe you can't copy that commit code from git bash and have to type the whole thing | 02:51 |
| ← bgerber left | 02:51 |
| ← Parth_ left | 02:52 |
| ← edude03 left | 02:53 |
| ← simesy_work left | 02:53 |
| → macabre joined | 02:54 |
| → xinming joined | 02:55 |
| → simesy_work joined | 02:55 |
|
cmn
| of course you can | 02:55 |
|
| cmd is just stupid and you have to activate edit mode | 02:55 |
| → bgerber joined | 02:55 |
| ← dhruvasagar left | 02:56 |
| ← jackh_ left | 02:56 |
| ← ehsan left | 02:56 |
| ← williamcotton left | 02:57 |
|
jnewt
| i can't even type in this thing, it's aweful. i start to type at $, and my typing jumps half way up the scrollback. what a pos | 02:58 |
| ← Anxi80 left | 02:58 |
|
cmn
| what? | 02:58 |
|
jnewt
| this git-bash is the most unfriendly thing i've ever used. | 02:58 |
|
cmn
| it's cmd | 02:59 |
| ← iori left | 02:59 |
|
cmn
| it's just what git gives you | 02:59 |
|
milki
| try linux. i hear its great. | 02:59 |
|
cmn
| what Windows gives you | 02:59 |
|
jnewt
| i use linux milki, it is great, but it doesn't run 90% of the software I need | 02:59 |
| ← relurk left | 03:00 |
|
milki
| virtualization! | 03:00 |
| → iori joined | 03:00 |
|
jnewt
| milki: ever tried to virtualize solidworks. good luck | 03:00 |
|
cmn
| use powershell if you like it better | 03:00 |
|
mns
| you're using it for CAD type work jnewt ? | 03:00 |
|
| milki doesnt have hardware that can handle virtualization :P | 03:01 |
|
jnewt
| mns: i'm using git for embedded source code, but yes, i do hardware design as well | 03:01 |
| → nareshgbhat joined | 03:02 |
|
mns
| jnewt: I was presuming that when you said you couldn't run 90% of the applications you need and then you mentioned solidworks .. | 03:02 |
| → jeyanth joined | 03:03 |
|
jnewt
| i just know solidworks doesn't render right when virtulized. lots of people have tried it, as have I, and it is buggy, slow, crashes, etc. it just doesn't work right. I also know that mplab (my ide), doesn't run right, and although there is a fix in the works, it doesn't either. my pcb sofware doesn't either. or my accounting. i use excel alot, and the open office version whatever it's called is not as good. so, i'm bas | 03:06 |
|
| ically stuck on windows other than my servers (freebsd), which runs great, but severly limited in the scope of software i need | 03:06 |
| → Yuuhi` joined | 03:07 |
| → relurk joined | 03:07 |
|
jnewt
| and i see an os as just a place to use software, nothing more than a container, so regardless of how well a specific os completes performance or stability tests, if it can't run software i need, it's worthless to me. | 03:08 |
| ← thursday left | 03:08 |
| ← Yuuhi left | 03:08 |
| → cakehero joined | 03:08 |
|
mns
| to each their own, but I understand what you're saying | 03:09 |
| ← sharenothing left | 03:10 |
| → mvrilo joined | 03:11 |
| → andref_dias joined | 03:11 |
|
mns
| for accounting have you looked at GnuCash or jGnash ? | 03:11 |
| ← tyatpi_ left | 03:11 |
| ← mvrilo left | 03:11 |
| ← Aleric left | 03:12 |
| → tyatpi_ joined | 03:12 |
| ← macrover left | 03:12 |
| → ipoval joined | 03:13 |
| ← marhaban left | 03:13 |
| ← xiangfu left | 03:14 |
| ← tyatpi left | 03:15 |
| → tyatpi joined | 03:16 |
| ← aruiz left | 03:16 |
| → techhelp2 joined | 03:16 |
| → xiangfu joined | 03:16 |
|
jnewt
| mns: installed it, ran it, poked around the code to see if i could modify it. it's amateur hour. | 03:17 |
|
mns
| which one GnuCash ? | 03:18 |
|
| or jGnash ? | 03:18 |
|
jnewt
| oh, my bad, never heard of jGnash | 03:18 |
| ← techhelp left | 03:18 |
|
mns
| try jGnash ... its Java based .. you know, that whole write once run anywhere thingamajig ... | 03:19 |
|
jnewt
| mns: i'm aware java. At least from an android development perspective | 03:20 |
| → chintanparikh joined | 03:20 |
| → thursday joined | 03:20 |
|
chintanparikh
| Hey people. I have a branch, lets call it 'a_branch' that's based off develop | 03:21 |
|
| I then checkout develop and checkout -b a new branch 'another_branch' | 03:21 |
|
jnewt
| mns: jGnash is really elementary too. | 03:21 |
|
chintanparikh
| Now for some reason, some changes from a_branch have stuck themselves in another_branch | 03:21 |
|
| Is there anyway to remove all those changes from another_branch? | 03:21 |
|
| I imagine I could somehow do it via rebase? | 03:21 |
|
| But I'm not entirely sure how | 03:21 |
|
| I've also committed another_branch a few times already | 03:22 |
| infogulch|afk → infogulch | 03:22 |
|
mns
| I dont use either anyway. | 03:22 |
|
| jnewt could have re-written all the headers in the time it's taking to get them back | 03:22 |
| ← leeight_ left | 03:23 |
|
jnewt
| every time i type gi, then press t, it says "No next tag (press RETURN)" | 03:24 |
| ← delight left | 03:24 |
| → ISF joined | 03:26 |
| → chaowang joined | 03:26 |
| → techhelp joined | 03:27 |
| ← macabre left | 03:27 |
| → duckxx joined | 03:28 |
| → aantix joined | 03:28 |
| ← techhelp2 left | 03:29 |
| ← aantix left | 03:29 |
| ← bitkiller left | 03:30 |
| ← duckxx left | 03:30 |
| → duckxx joined | 03:31 |
| ← bwidmer left | 03:34 |
| ← chrisgeorge left | 03:36 |
| → the_cybersphinx joined | 03:36 |
| → Eridius joined | 03:37 |
| ← v0n left | 03:37 |
| ← duckxx left | 03:38 |
| ← cybersphinx left | 03:39 |
| ← bgerber left | 03:40 |
| → EricKamsky joined | 03:40 |
| ← centipedefarmer left | 03:40 |
| → bgerber joined | 03:42 |
| → centipedefarmer joined | 03:44 |
| → mikepack joined | 03:46 |
| → ehsan joined | 03:48 |
| ← centipedefarmer left | 03:49 |
| ← thursday left | 03:50 |
| ← Davey left | 03:51 |
| ← Eridius left | 03:52 |
| → redii joined | 03:52 |
| → duckxx joined | 03:53 |
| → subhojit777 joined | 03:54 |
| → aantix joined | 03:54 |
| ← redii left | 03:55 |
| → hwrd|work joined | 03:56 |
| → macabre joined | 03:57 |
| ← lacrymology left | 03:57 |
| ← tyatpi_ left | 03:58 |
| ← luxurymode left | 03:59 |
| → gavin_huang joined | 04:00 |
| → DofLeFou joined | 04:01 |
| → tyatpi_ joined | 04:01 |
| ← cakehero left | 04:02 |
| → adamm joined | 04:03 |
| → thursday joined | 04:03 |
| → Zenith77|2 joined | 04:03 |
| → d4rklit3 joined | 04:04 |
| ← xiangfu left | 04:04 |
| ← MattRichardson left | 04:04 |
| ← _d4rklit3 left | 04:04 |
| ← erkules left | 04:04 |
| ← Zenith77 left | 04:04 |
| ← cagedwisdom left | 04:04 |
| ← teotwaki left | 04:04 |
| ← roland left | 04:04 |
| ← brentratliff left | 04:04 |
| ← Werring left | 04:04 |
| ← Axsuul left | 04:04 |
| ← RichardBronosky left | 04:04 |
| ← surfdue left | 04:04 |
| ← trout left | 04:04 |
| → roland joined | 04:04 |
| ← tmcmahon left | 04:04 |
| ← AlbireoX`Laptop left | 04:06 |
| → alexukf joined | 04:06 |
| ← chintanparikh left | 04:06 |
| ← nadavoid left | 04:07 |
| ← davidban_ left | 04:08 |
| → Joseph_ joined | 04:08 |
| ← Kuukunen left | 04:09 |
| ← duckxx left | 04:09 |
| → xiangfu joined | 04:09 |
| → MattRichardson joined | 04:09 |
| → erkules joined | 04:09 |
| → cagedwisdom joined | 04:09 |
| → teotwaki joined | 04:09 |
| → brentratliff joined | 04:09 |
| → Werring joined | 04:09 |
| → Axsuul joined | 04:09 |
| → RichardBronosky joined | 04:09 |
| → surfdue joined | 04:09 |
| → trout joined | 04:09 |
| ← jhardinee left | 04:09 |
| → zdk joined | 04:10 |
| ← cilly left | 04:12 |
| → BiggFREE joined | 04:12 |
| ← andref_dias left | 04:13 |
| → cilly joined | 04:14 |
| ← tyatpi_ left | 04:16 |
| ← tyatpi left | 04:16 |
| → sangi joined | 04:18 |
| → tmcmahon joined | 04:18 |
| ← macabre left | 04:18 |
| ← ISF left | 04:18 |
| → rchavik joined | 04:19 |
| → rtjure joined | 04:20 |
| ← xiangfu left | 04:22 |
| ← MattRichardson left | 04:22 |
| ← erkules left | 04:22 |
| ← cagedwisdom left | 04:22 |
| ← teotwaki left | 04:22 |
| ← brentratliff left | 04:22 |
| ← Werring left | 04:22 |
| ← Axsuul left | 04:22 |
| ← RichardBronosky left | 04:22 |
| ← surfdue left | 04:22 |
| ← trout left | 04:22 |
| → abstrusenick joined | 04:22 |
| ← mikepack left | 04:23 |
| ← tmcmahon left | 04:23 |
| → duckxx joined | 04:24 |
| → Axsuul joined | 04:25 |
| ← d4rklit3 left | 04:25 |
| ← alexukf left | 04:26 |
| → davidbanham joined | 04:26 |
| → tyatpi joined | 04:26 |
| → dfr|mac joined | 04:26 |
| → teotwaki joined | 04:27 |
| → xiangfu joined | 04:28 |
| → MattRichardson joined | 04:28 |
| → cagedwisdom joined | 04:28 |
| → brentratliff joined | 04:28 |
| → Werring joined | 04:28 |
| → RichardBronosky joined | 04:28 |
| → surfdue joined | 04:28 |
| → trout joined | 04:28 |
| → frogonwheels joined | 04:28 |
| ← rtjure left | 04:28 |
| ← jeyanth left | 04:29 |
| ← bgerber left | 04:30 |
| ← duckxx left | 04:30 |
| → cbreak joined | 04:31 |
| → igotnolegs joined | 04:31 |
| → bgerber joined | 04:32 |
| → erkules joined | 04:38 |
| → grandy joined | 04:38 |
| → tyatpi_ joined | 04:40 |
| → PRETTY_FUNCTION joined | 04:41 |
| → grandy` joined | 04:42 |
| ← grandy left | 04:42 |
| → davidban_ joined | 04:42 |
| ← davidbanham left | 04:43 |
| ← nareshgbhat left | 04:44 |
| ← grandy` left | 04:45 |
| → grandy` joined | 04:46 |
| ← Soliton left | 04:46 |
| → TheDudeKnows joined | 04:48 |
| → Soliton joined | 04:48 |
| ← grandy` left | 04:49 |
| ← davidban_ left | 04:49 |
| → grandy` joined | 04:49 |
| gitinfo set mode: +v | 04:49 |
| → duckxx joined | 04:49 |
|
grandy`
| hello! | 04:50 |
|
gitinfo
| grandy`: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 04:50 |
|
grandy`
| hello, trying to use git diff to see the changes between two spots in the tree... as in git diff hash..HEAD .... but it's showing a lot of stuff that did not actually change between those two points... confused. | 04:50 |
| → davidbanham joined | 04:50 |
| ← davidbanham left | 04:51 |
| ← frogonwheels left | 04:51 |
| → davidbanham joined | 04:51 |
|
grandy`
| when I use gitx to view the commits in HEAD it shows what i'd expect all the way back to the hash in question... oddly the diff shows other files that were not modified by any of the commits | 04:51 |
|
| i'm obviously doing something wrong but not sure what... any ideas? | 04:52 |
| → hexaphixylix joined | 04:53 |
| ← bgerber left | 04:55 |
| ← toothr left | 04:55 |
| → bgerber joined | 04:56 |
| → toothr joined | 04:57 |
| → airborn joined | 04:57 |
| → arvind_khadri joined | 04:57 |
| ← dmiles_afk left | 05:00 |
| → Zenmaker__ joined | 05:00 |
| → dmiles_afk joined | 05:01 |
| ← madewokherd left | 05:02 |
| ← infogulch left | 05:03 |
| → infogulch joined | 05:03 |
| ← duckxx left | 05:04 |
| ← Zenmaker_ left | 05:04 |
| → williamcotton joined | 05:05 |
| ← kpreid left | 05:06 |
| infogulch → infogulch|afk | 05:11 |
| → spaceonline__ joined | 05:12 |
|
grandy`
| hmm, looks like maybe it's b/c i cherry picked one commit... not sure | 05:13 |
| ← spaceonline left | 05:14 |
| → JeremyWei joined | 05:16 |
| → Eridius joined | 05:16 |
| ← andrewhl left | 05:16 |
| → acl_ joined | 05:17 |
| ← BiggFREE left | 05:17 |
| ← dfr|mac left | 05:18 |
| gitinfo set mode: +v | 05:18 |
| ← hexaphixylix left | 05:19 |
| → marciodias__ joined | 05:21 |
| ← spaceonline__ left | 05:21 |
| ← acl_ left | 05:21 |
| ← delinquentme left | 05:22 |
| → acl_ joined | 05:23 |
| → toabctl joined | 05:25 |
| → maleknet joined | 05:26 |
| → ThomasLocke joined | 05:27 |
| → dpino joined | 05:29 |
| ← aantix left | 05:30 |
| → bluesnow joined | 05:33 |
| ← relurk left | 05:33 |
| → jaredoconnor joined | 05:34 |
|
jaredoconnor
| is there any way to remove an intermediate commit and merge from our source as if they never happened? | 05:35 |
|
bluesnow
| Hi, I'm wondering what Git considers a conflict when it merges two branches | 05:35 |
|
jaredoconnor
| i dont care whether they stay in the log, i just want the code to reflect that they were never comitted | 05:35 |
|
| it seems that if we just revert those two commits, we get a lot of problems due to one of them being a merge | 05:35 |
|
| sorry let me put that a better way... | 05:35 |
| → harshpb joined | 05:36 |
| ← bluesnow left | 05:36 |
| → relurk joined | 05:36 |
|
jaredoconnor
| there was a commit and a merge made a while ago | 05:37 |
|
| we want to revert all those changes as if they never occurred, but its fine if they stay in the git log/history/etc | 05:37 |
| ← jwmann left | 05:38 |
| → jwmann joined | 05:38 |
|
jaredoconnor
| if we jsut revert both those commits, a lot of stuff gets changed/removed that we dont want to | 05:38 |
| ← jwmann left | 05:38 |
| ← bgerber left | 05:38 |
|
jaredoconnor
| any suggestions? | 05:38 |
| → bluesnow joined | 05:39 |
| ← adamm left | 05:42 |
| ← xtagon left | 05:43 |
| ← bluesnow left | 05:44 |
| → lightcap joined | 05:45 |
| → pantsman joined | 05:45 |
| ← pantsman left | 05:45 |
| → pantsman joined | 05:45 |
|
nevyn
| so if a revert doesn't work (which it won't on a merge that old..) your only real option is rebase I think | 05:46 |
| md_5|away → md_5 | 05:46 |
| ← beneggett left | 05:47 |
| ← airborn left | 05:47 |
| ← fisted left | 05:48 |
| ← lightcap left | 05:49 |
| → fisted joined | 05:50 |
| → dreiss joined | 05:50 |
| ← grandy` left | 05:54 |
| → AlbireoX`Laptop joined | 05:55 |
|
jaredoconnor
| thanks nevyn we've sorted it out | 05:58 |
| ← toabctl left | 06:01 |
| ← oogatta left | 06:02 |
| → oogatta joined | 06:03 |
| ← ehsan left | 06:03 |
| ← blorbx left | 06:03 |
| ← ferdna left | 06:05 |
| → nareshgbhat joined | 06:06 |
| ← intripoon_ left | 06:08 |
| → intripoon joined | 06:09 |
| → dzonder joined | 06:09 |
| → dvide joined | 06:10 |
| ← damnick left | 06:11 |
| → dc5ala joined | 06:11 |
| ← Targen left | 06:12 |
| → damnick joined | 06:12 |
| → marthinal joined | 06:15 |
| → dhruvasagar joined | 06:15 |
| → cbreak-work joined | 06:17 |
| → ilogger2 joined | 06:18 |
| → soee joined | 06:20 |
| → tsdh joined | 06:22 |
| → theCole joined | 06:25 |
| → codezombie joined | 06:25 |
| → jceb_ joined | 06:25 |
| → bgerber joined | 06:29 |
| → jh3_ joined | 06:31 |
| → toabctl joined | 06:32 |
| → twem2 joined | 06:33 |
| ChanServ set mode: +v | 06:36 |
| → txdv joined | 06:36 |
| → afuentes joined | 06:37 |
| → dhruvasagar joined | 06:38 |
| ← toabctl left | 06:39 |
| → cesc joined | 06:42 |
| → shruggar joined | 06:44 |
| → acrocity joined | 06:44 |
| → Dave^| joined | 06:44 |
| → milli joined | 06:44 |
| → sangxiaolong joined | 06:46 |
| ← jceb_ left | 06:47 |
| → dpino joined | 06:50 |
| → ashphy joined | 06:51 |
| → Strogg joined | 06:54 |
| ← ashphy left | 06:55 |
| → saju_m joined | 07:00 |
| → pom_ joined | 07:02 |
| → hoschi joined | 07:05 |
| → jdpo joined | 07:05 |
| → palam joined | 07:05 |
| → stodan joined | 07:06 |
| → yizumi joined | 07:06 |
| ← afuentes left | 07:06 |
| → doug_carmichael joined | 07:06 |
| → Swathe joined | 07:06 |
|
palam
| is there a way to force conflict resolution by asking git to choose HEAD over the other changes? | 07:07 |
|
| that's basically what i'm about to do, but it'll take forever manually... | 07:07 |
| → afuentes joined | 07:07 |
| → luke joined | 07:07 |
| → nareshgbhat joined | 07:08 |
| → jceb_ joined | 07:10 |
|
wereHamster
| checkout --ours ... | 07:11 |
| → nadirvardar joined | 07:12 |
|
palam
| wereHamster: thanks. does that have to be done for each file? | 07:14 |
| → spaceonline joined | 07:15 |
| → Kuukunen joined | 07:16 |
|
wereHamster
| no | 07:16 |
| → Littlex joined | 07:17 |
|
palam
| ahh, 'git checkout --ours .' thanks wereHamster | 07:17 |
| → mishok13 joined | 07:19 |
| ← cesc left | 07:19 |
| → na3r joined | 07:19 |
| → chrisf|work joined | 07:20 |
| → ph^ joined | 07:21 |
| → palm_vue joined | 07:21 |
| → frogonwheels joined | 07:21 |
| → Lgb joined | 07:21 |
| → bwidmer joined | 07:21 |
| → PRETTY_F_ joined | 07:21 |
| → jonnu joined | 07:23 |
| → psoo joined | 07:24 |
| ← Littlex left | 07:25 |
| → thiago joined | 07:30 |
| ← yizumi left | 07:31 |
| ← nadirvardar left | 07:31 |
| → teknopaul joined | 07:31 |
| → iwoj joined | 07:32 |
| → QaDeS joined | 07:34 |
| → shredding joined | 07:34 |
| ← palam left | 07:35 |
| → und3f joined | 07:35 |
| → spaceonline__ joined | 07:37 |
| ← spaceonline left | 07:39 |
| → polymar joined | 07:41 |
| → Sebo joined | 07:42 |
| → whitman joined | 07:43 |
| ← theCole left | 07:44 |
| → fsvend joined | 07:45 |
| → flip214 joined | 07:47 |
|
flip214
| Are feature requests ok here, or should I send an email to [email@hidden.address] | 07:48 |
| → caseymcg joined | 07:48 |
| → rtuin joined | 07:48 |
|
cmn
| that stuff belongs in the mailing list; it's the only way to know you're reaching developers | 07:48 |
|
flip214
| ok, thanks | 07:49 |
| ← flip214 left | 07:49 |
| → yizumi joined | 07:49 |
| ← jdpo left | 07:51 |
|
EugeneKay
| We're mostly just gits. | 07:51 |
| → berserkr joined | 07:53 |
| → jkremser joined | 07:54 |
| → ipalaus joined | 07:55 |
| → rurufufuss joined | 07:56 |
| → agile joined | 07:56 |
| ← mishok13 left | 07:57 |
| ← ipalaus left | 07:57 |
| → ipalaus joined | 07:59 |
| → simesy joined | 07:59 |
| → ToBeFree joined | 08:00 |
| → mishok13 joined | 08:00 |
| ← simesy left | 08:00 |
| → segher joined | 08:01 |
| → LimeBlast joined | 08:02 |
| → shirish joined | 08:05 |
| → _Qman joined | 08:05 |
| ← shirish left | 08:05 |
| → OOPMan joined | 08:06 |
| → erasmospunk joined | 08:06 |
| → BarryCrayon joined | 08:06 |
| → SkAzZ joined | 08:09 |
| → marcogmonteiro joined | 08:09 |
| ← na3r left | 08:10 |
| ← BarryCrayon left | 08:11 |
| → angelsl joined | 08:11 |
| → eno joined | 08:11 |
| ← eno left | 08:11 |
| → eno joined | 08:11 |
| → BarryCrayon joined | 08:13 |
| → timotei joined | 08:14 |
|
timotei
| hello. I've git reset --hard on an older commit, before implementing some breaking functionality. Made a tag, and now I want to get back to the latest head (last commit before reset) | 08:14 |
| → puneetgoyal joined | 08:14 |
|
timotei
| Is that possible without specifying that commit's sha? | 08:14 |
| ← nareshgbhat left | 08:15 |
|
thiago
| timotei: yes | 08:15 |
|
| do you have a branch or another ref pointing to the commit you want to get to? | 08:15 |
| → blacktulip joined | 08:16 |
|
timotei
| A... nope | 08:16 |
|
thiago
| git reflog then | 08:16 |
|
| find it there | 08:16 |
|
timotei
| thiago, thanks. It worked! | 08:19 |
|
| I love git. I fell safe whatever it would happen :D | 08:19 |
|
cbreak-work
| timotei: it was a stupid thing to do | 08:20 |
|
| you should have done git checkout -b tmpname commit instead | 08:20 |
|
timotei
| cbreak-work, stupid things what? | 08:20 |
|
| s/things/thing/ | 08:20 |
|
cbreak-work
| to use reset --hard without the intention to want to kill your current branch's history | 08:20 |
|
thiago
| I agree | 08:21 |
|
| reset --hard has the intention of killing work | 08:21 |
|
| or of permanently moving the branch, at least | 08:21 |
|
nevyn
| yep | 08:21 |
|
timotei
| Hmm... well, I knew that my commits won't be lost. | 08:22 |
|
| I just wanted to tag that previous state. | 08:22 |
|
| What would have been a better way of doing it? | 08:22 |
|
thiago
| checkout | 08:22 |
| → tcurdt joined | 08:23 |
| ← tcurdt left | 08:23 |
|
thiago
| yes, your work wasn't lost, but you're not using the tool the way it was meant to | 08:23 |
|
| for example, you've reset again back to where you were, right? | 08:23 |
|
timotei
| Yes | 08:23 |
|
| And tagged that too | 08:23 |
|
thiago
| the work you've done, where is it now? | 08:23 |
|
timotei
| Ok, I have a branch: master (with unstable changes) and safe (with stable ones) | 08:23 |
|
| 2 branches* | 08:23 |
|
| and 2 tags pointing to the same | 08:23 |
|
thiago
| why do you need those tags? | 08:24 |
|
timotei
| So yes, I've used reset to get back to the commit previous to unstable work, tag/branch it, and then back to normal | 08:24 |
|
| Well... to be able to get back quick to the safe changes\ | 08:24 |
|
cbreak-work
| timotei: you can just git tag name commithash | 08:24 |
|
thiago
| note that a tag is not supposed to be moved | 08:24 |
|
cbreak-work
| no need to switch anything if you want to tag only | 08:24 |
|
thiago
| once created, it should stay pointing to the same commit forever | 08:25 |
|
timotei
| cbreak-work, I see | 08:25 |
|
thiago
| so you need to create a LOT of tags | 08:25 |
|
| instead, you should use something that is like a tag but that can easily be moved: a branch | 08:25 |
|
timotei
| thiago, Yeah. Well, only the safe tag would be ... important | 08:25 |
|
| I see | 08:25 |
|
thiago
| if you wanted to create a branch out of the work you're about to do, you should create the branch upon moving | 08:25 |
|
| e.g., git checkout -b new_work <the commit where it applies to> | 08:25 |
|
| once you're done, git checkout master | 08:26 |
|
timotei
| Ah. Without the need to reset all that stuff | 08:26 |
|
| Right? | 08:26 |
|
thiago
| right | 08:26 |
|
timotei
| Good to know xD | 08:26 |
|
thiago
| the way you've done it accomplished the same goal, but it's not how git was designed | 08:26 |
|
| also, reset --hard will destroy uncommitted changes | 08:26 |
|
timotei
| Yes. I know that | 08:26 |
|
thiago
| that checkout will complain if it can't move | 08:27 |
|
| it will not destroy uncommitted changes | 08:27 |
| → robotmay joined | 08:27 |
| → madsy joined | 08:28 |
| → AlbireoX`Laptop joined | 08:29 |
| → BiggFREE joined | 08:29 |
|
timotei
| Is it possible to make the safe branch a remote one? | 08:30 |
|
| So I can push it? | 08:30 |
|
thiago
| to make a branch a remote one, you need to push it | 08:30 |
|
| so your first question doesn't make sense with the second | 08:31 |
|
cmn
| pushing is what makes a branch appear on a remote | 08:31 |
|
| and git can't do anything with remote branches other than fetch them, so they're pretty useless | 08:31 |
|
thiago
| except for the uses they were meant to have, of course :-) | 08:32 |
|
timotei
| Well, currently the master branch is shared with the others | 08:32 |
|
| I created a new branch which I want to make visible to the others too | 08:32 |
|
thiago
| push it | 08:32 |
| ← OOPMan left | 08:32 |
|
timotei
| Ok. | 08:32 |
| → Nirvanko joined | 08:33 |
|
Nirvanko
| Is it a good practice to store binary files in the Git repository? | 08:33 |
| → Zespre joined | 08:34 |
|
thiago
| Nirvanko: no | 08:34 |
|
| Git was invented to track source code | 08:34 |
| → marc_kdab_ joined | 08:35 |
|
frogonwheels
| Nirvanko: What type of files were you thinking? | 08:35 |
|
thiago
| source code often has some binary files (like images and other artwork), so storing them *works* | 08:35 |
|
| but it's not meant to store huge files that change often | 08:35 |
|
frogonwheels
| Nirvanko: git-annex provides a solution by not storing the files themselves,but softlinks that it has some funky way of having alternate repositories of the large files | 08:37 |
|
| which means it doesn't work in windoze | 08:37 |
|
thiago
| softlink != symlink | 08:38 |
|
frogonwheels
| well yeah, they are symlinks | 08:38 |
|
timotei
| Symlinks work in Windows actually :P | 08:39 |
|
cmn
| under lab conditions, sure | 08:39 |
|
timotei
| No. NTFS supports symlinks actually | 08:40 |
|
frogonwheels
| timotei: but not in msys or msysgit (yet - I've got some work on it i need to get back to) and the implementation in cygwin of symlinks doesn't involve windows ntfs sy mlinks | 08:40 |
|
cmn
| yes, but you need to be an admin to create them | 08:40 |
| ← AlbireoX`Laptop left | 08:40 |
|
cmn
| which is why you can't use them on the field | 08:40 |
|
frogonwheels
| timotei: one of the big stumbling blocks is that you need certain permissions which only admins have by default.. | 08:40 |
|
| cmn: I believe you can give other users permissions to create them... but I've not really explored that properly | 08:41 |
|
cmn
| my Windows guy just mentions having to be admin | 08:41 |
|
| but even if you can, you can't rely on it | 08:42 |
|
frogonwheels
| cmn: I think it's more complex than that - like I think there's some special permission you need .. which admin users have. | 08:42 |
|
Nirvanko
| frogonwheels, images | 08:42 |
|
cmn
| sure, just like in Linux you need some capabilities, but generally only root has them | 08:43 |
|
frogonwheels
| Nirvanko: are they generated? big? change often? | 08:43 |
| → raatiniemi joined | 08:43 |
|
cmn
| (not for symlinks, but it's related) | 08:43 |
| ← iwoj left | 08:43 |
| → kpl joined | 08:43 |
|
frogonwheels
| cmn: http://superuser.com/questions/104845/permission-to-make-symbolic-links-in-windows-7 .. buried deep! | 08:43 |
|
Nirvanko
| Not often | 08:43 |
|
frogonwheels
| Nirvanko: are they generated? | 08:43 |
|
| Nirvanko: Sure, you can store them. Merging is obviously not handled. | 08:45 |
| → nareshgbhat joined | 08:45 |
|
Nirvanko
| Very well then | 08:45 |
|
| thx | 08:45 |
|
cmn
| frogonwheels: as with most paths on Windows, once you know which one it is, every path element makes sense, but you'd never think of looking there | 08:45 |
|
frogonwheels
| cmn: lol. soooo true | 08:45 |
| → spyro joined | 08:47 |
| ← spyro left | 08:47 |
| → spyro joined | 08:47 |
| ← bgerber left | 08:49 |
|
kpl
| If by mistake a number of files where committed at some point, and thereafter some new commits have been done, I assume that the files added by mistake are only present in the object created by the commit where those files were added. Right? Do the objects created by later commits depend on the object with all the unwanted files, so that it is not possible to remove the object with the... | 08:50 |
|
| ...unwanted files form the repo? | 08:50 |
| → jatt joined | 08:51 |
|
kpl
| Is it possible to remove objects from the repo at all? | 08:51 |
| ← BiggFREE left | 08:52 |
|
kpl
| I understand that an object cannot be changed, because it is uniquely identified by the SHA1 of its contents. But can it be removed? | 08:52 |
|
DrNick
| not without producing a corrupted repository | 08:53 |
|
| but this problem is one of the reasons git filter-branch exists | 08:53 |
| → bgerber joined | 08:55 |
| → andref_dias joined | 08:57 |
| → uraimo joined | 08:59 |
| ← hoschi left | 09:02 |
| ← jkremser left | 09:03 |
| → stkrzysiak joined | 09:03 |
| → leeight_ joined | 09:03 |
| ← teknopaul left | 09:04 |
| → nax joined | 09:07 |
| → maknz joined | 09:09 |
| ← maknz left | 09:09 |
| → maknz joined | 09:09 |
| ← nax left | 09:09 |
| → marhaban joined | 09:10 |
| ← thiago left | 09:13 |
| ← _Qman left | 09:13 |
| ← spaceonline__ left | 09:14 |
| → hoschi joined | 09:14 |
| → variousnefarious joined | 09:20 |
| → cortana2 joined | 09:20 |
| → jatt` joined | 09:21 |
| ← bgerber left | 09:24 |
| → Vile joined | 09:24 |
| ← Vile left | 09:24 |
| ← jatt left | 09:27 |
| ← jatt` left | 09:27 |
| → jatt joined | 09:27 |
| → rtjure joined | 09:29 |
| → Lord_DeathMatch joined | 09:30 |
| → aspotashev joined | 09:34 |
| → eijk joined | 09:38 |
| → _Qman joined | 09:38 |
| ← caseymcg left | 09:43 |
| → Cinecity joined | 09:45 |
| ← Cinecity left | 09:45 |
| ← shredding left | 09:47 |
| ← sangxiaolong left | 09:48 |
| ← madsy left | 09:49 |
| → mklappstuhl joined | 09:49 |
| ← aspotashev left | 09:50 |
| → newbie999 joined | 09:51 |
| → jn_ joined | 09:51 |
| → danslo_ joined | 09:54 |
| ← luke left | 09:55 |
| ← marhaban left | 09:57 |
| ← newbie999 left | 09:57 |
| ← danslo_ left | 09:58 |
| → danslo joined | 09:58 |
| → naquad joined | 09:59 |
|
danslo
| In an interactive rebase, a commit was changed - however, those changes were unwanted. I can edit the commit again during a rebase, but how do I undo those changes relative to some remote? I want to do something like; git reset --hard origin/development COMMIT_SHA ; how can I achieve something like this? | 09:59 |
|
| (does that make any sense?) | 09:59 |
|
| preferably without the reflog | 10:00 |
| ← puneetgoyal left | 10:00 |
|
danslo
| ooohh | 10:01 |
|
| git reset --hard ORIG_HEAD | 10:01 |
|
frogonwheels
| danslo: or use git checkout branchname -- filename | 10:01 |
| ← raatiniemi left | 10:01 |
|
danslo
| frogonwheels: the thing is I don't know specific filenames | 10:02 |
| ← naquad left | 10:02 |
|
danslo
| and ORIG_HEAD won't cut it either actually, due to HEAD being actual HEAD and not the 'virtual' head you get during a rebase | 10:02 |
| → tomislater joined | 10:03 |
| → sebrock joined | 10:03 |
| → harish joined | 10:05 |
|
danslo
| frogonwheels: never mind me… i can just 'git fetch ssh://some_repo refs/changes/85/17085/2 && git checkout FETCH_HEAD' thanks to gerrit being so awesome :) | 10:05 |
| → puneetgoyal joined | 10:06 |
| → rbarraud joined | 10:06 |
| → naquad joined | 10:07 |
| ← jn_ left | 10:07 |
| ← dhruvasagar left | 10:08 |
| ← stkrzysiak left | 10:08 |
| → dhruvasagar joined | 10:08 |
| → webben joined | 10:11 |
| → heroux joined | 10:11 |
| → cedeon joined | 10:14 |
| ← cedeon left | 10:15 |
| → arietis joined | 10:16 |
| → cedeon joined | 10:16 |
| ← rbarraud left | 10:19 |
| → rbarraud joined | 10:19 |
| → jkremser joined | 10:21 |
| → arti_t joined | 10:22 |
| → PapaSierra joined | 10:27 |
| → Codif joined | 10:28 |
| ← Codif left | 10:28 |
| → noisebleed joined | 10:29 |
| → wolog joined | 10:29 |
|
PapaSierra
| morning, i've added "system" as a submodule. i don't want to tamper with its contents. from my main repo i must have done something wrong because i get the following: http://www.hastebin.com/fetewowura.mel what can i do to "reset" this change or whatever's gone wrong? | 10:30 |
| → dkannan joined | 10:30 |
| ← cedeon left | 10:30 |
| ← arti_t left | 10:30 |
| → arti_t joined | 10:31 |
|
cbreak-work
| PapaSierra: cd into it and diff again | 10:32 |
|
dkannan
| hi. i have deleted a remoted branch and on local as well. can i remover it ? | 10:32 |
|
| eh. can i recover it | 10:33 |
|
| i tried fsck and reflog. but it does not tell me the SHA for the branch | 10:34 |
| → newbie999 joined | 10:34 |
| → alansaul joined | 10:34 |
| → SkAzZ1 joined | 10:35 |
| ← afuentes left | 10:35 |
| ← SkAzZ left | 10:36 |
| → nareshbhat joined | 10:36 |
| ← erasmospunk left | 10:37 |
| gitinfo set mode: +v | 10:37 |
| → rcu joined | 10:38 |
| ← puneetgoyal left | 10:38 |
| → argoneus joined | 10:41 |
| ← rbarraud left | 10:46 |
| → gusnan joined | 10:48 |
| → afuentes joined | 10:48 |
| → puneetgoyal joined | 10:50 |
| → Vile joined | 10:50 |
| ← kpl left | 10:50 |
| → skylamer` joined | 10:50 |
| → tvw joined | 10:51 |
| → RaceCondition joined | 10:55 |
| ← tomislater left | 10:55 |
| → glennpratt joined | 11:00 |
| ← glennpratt left | 11:01 |
| → dcarper joined | 11:01 |
| → glennpratt joined | 11:01 |
| ← Sebo left | 11:04 |
| → jcromartie joined | 11:04 |
| ← dcarper left | 11:05 |
| → enmand joined | 11:06 |
| → tomislater joined | 11:08 |
| → Tinti_ joined | 11:09 |
| ← skylamer` left | 11:14 |
| → raatiniemi joined | 11:16 |
| → Nibato joined | 11:16 |
| → thiago joined | 11:18 |
| → avinashhm joined | 11:19 |
| → wbednarski joined | 11:19 |
| → Eridius joined | 11:21 |
| → Sebo joined | 11:22 |
|
charon
| dkannan: if you delete a branch, the reflog is deleted along with it. so you can either dig up the tip commit from the reflog of HEAD (or another branch), or you can look in the unreachable commits. perhaps !fixit has instructions for that | 11:23 |
|
gitinfo
| dkannan: [!fixup] So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 11:23 |
| → tjadc joined | 11:24 |
| → shredding joined | 11:25 |
| ← avinashhm left | 11:25 |
| ← rcu left | 11:26 |
| ← nareshgbhat left | 11:26 |
| ← Eridius left | 11:26 |
| → avinashhm joined | 11:27 |
| ← jcromartie left | 11:29 |
|
dkannan
| thanks @charon. i do not see my branch name in "git reflog --all' | 11:29 |
|
| is that because as u said, deleting the local branch deleted the reflog as well | 11:30 |
|
| how do i, "dig up the tip commit from the reflog of HEAD (or another branch" | 11:30 |
| ← tsdh left | 11:30 |
| → luke joined | 11:33 |
|
charon
| dkannan: HEAD's reflog will only contain this commit if you had the branch checked out recently. in this case, you would stare at 'git reflog' until you find the commit | 11:34 |
|
| dkannan: you can also search for the branch name in 'git reflog', git-checkout records it | 11:34 |
| → Alir3z4 joined | 11:35 |
|
Alir3z4
| is git-subtree merged into main git or not? | 11:35 |
|
cmn
| Alir3z4: it's in contrib/ | 11:36 |
| ← afuentes left | 11:36 |
|
Alir3z4
| Because when i run "$ git subtree" i get => "git: 'subtree' is not a git command. See 'git --help'" | 11:36 |
|
cmn
| then you don't have it | 11:37 |
|
| your distribution might not have activated it | 11:37 |
|
| if you built it yourself, you need to install it explicitly | 11:37 |
|
Alir3z4
| i'm on archlinux | 11:37 |
| → cehteh joined | 11:37 |
|
cmn
| then it looks like the maintainer didn't decide to install it | 11:38 |
|
Alir3z4
| cmn: I have to check, maybe it's in testing repo | 11:39 |
|
danslo
| I installed git just yesterday, 1.7.11, that command is not available for me either | 11:40 |
|
| downloaded from git-scm | 11:40 |
|
cmn
| installed how? from where? | 11:40 |
|
danslo
| from git-scm, by executing installer | 11:40 |
|
cmn
| then whoever makes the package for your OS didn't install it either | 11:41 |
|
danslo
| I suppose. I don't need it, thought it would be relevant ^ | 11:41 |
|
Alir3z4
| cmn: That maintainer have to be effected by zombies :| | 11:42 |
|
cmn
| :S | 11:42 |
| → JeremyWei joined | 11:43 |
| ← JeremyWei left | 11:43 |
|
cmn
| you should go complain to him then | 11:44 |
| ← mklappstuhl left | 11:44 |
| → tatsuya_o joined | 11:45 |
| ← shredding left | 11:46 |
|
Alir3z4
| cmn: I'm complaining right now on #archlinux, which i know it's not take me anywhere! | 11:46 |
|
cmn
| I don't see why it would | 11:47 |
| ← RaceCondition left | 11:47 |
| → tyatpi joined | 11:48 |
|
Alir3z4
| cmn: Is subtree module in stable ? | 11:48 |
|
| Oh yes | 11:49 |
|
cmn
| meaning what? | 11:49 |
| → levi501d joined | 11:49 |
| ← shruggar left | 11:49 |
|
tabakhase
| hi folks | 11:50 |
|
levi501d
| is it possible to fetch a pull request into my forked repository ( a pull request from the originating repository)? | 11:50 |
|
tabakhase
| shouldnt 1.7.10 be able to clone into a nonempty folder? =( | 11:50 |
|
cmn
| tabakhase: no version lets you do that | 11:51 |
|
tabakhase
| cmn hmpf? i thing that where one of these things that didint worked one one but on another machine... | 11:51 |
|
levi501d
| tabakhase: http://stackoverflow.com/questions/2411031/git-how-do-i-clone-into-a-non-empty-directory might help you out | 11:51 |
| → toothr joined | 11:51 |
|
tabakhase
| so the deal is still clone it bare, make it unbare, copy the .git dir into another one and checkout? sic... | 11:51 |
|
cmn
| what are you actually trying to achieve? | 11:52 |
| → afuentes joined | 11:53 |
|
tabakhase
| cmn ma repo is ma homedir | 11:55 |
|
| where "my" is "the company product project thing on our servers" ;-) | 11:55 |
|
levi501d
| nvm figured my question out | 11:55 |
| ← levi501d left | 11:55 |
| → rgsteele joined | 11:55 |
|
cmn
| that doesn't seem like it's anything close to a good idea; but what it's definitely not is a goal | 11:56 |
| ← Alir3z4 left | 11:56 |
| → cedeon joined | 11:56 |
|
tabakhase
| cmn not a god idea io totaly agree, but a project running sice 2008 with 60k files and about 2.8 million lines of code is not that easy to reorganise (specialy without a vcs) ;-) | 11:57 |
|
cmn
| that is still not a goal | 11:58 |
|
| and if you're not using version control, what is the problem with git? | 11:58 |
| ← Lord_DeathMatch left | 11:59 |
|
tabakhase
| so when a new webnode popsUp puppet creates a user and then should be able to clone the repo "in him" (ignoring server individual files like ~/.ssh and so on whats just fine) | 11:59 |
| → Lord_DeathMatch joined | 11:59 |
|
cmn
| do something sane like rsync or git-archive | 11:59 |
|
tabakhase
| then im gone stay on the old cp way | 12:01 |
|
cmn
| git isn't for deployment | 12:03 |
|
| and if copying the files is enough, using git is most likely a huge overkill | 12:03 |
| ← Sebo left | 12:04 |
|
danslo
| to be fair, rsync isn't really for deployment either (though Im not sure you implied such a thing) | 12:04 |
|
cmn
| rsync is a hundred times better than git for that | 12:04 |
|
| and for simple things, it's good enough | 12:05 |
| → tyatpi_ joined | 12:05 |
|
cmn
| as long as you choose the flags carefully | 12:05 |
|
tabakhase
| cmn reprase webnode with devnodes | 12:06 |
|
| webnodes are synced from the stage system | 12:06 |
|
cmn
| neither mean anything without context | 12:06 |
|
danslo
| cmn: I know, we actually use rsync with jenkins, but there is the odd chance of race conditions with db migrations in our case … want to swap to something symlink based (capistrano) asap | 12:06 |
|
| you said simple, I know | 12:07 |
|
cmn
| if you need to do migrations, you're in a completely different game | 12:07 |
| ← dpino left | 12:08 |
| → Fullmoon joined | 12:08 |
| → yaymukund joined | 12:09 |
| ← arti_t left | 12:10 |
| → AeroNotix joined | 12:11 |
| → tqmz joined | 12:12 |
| → TheJH joined | 12:13 |
| → jcromartie joined | 12:14 |
| ← alansaul left | 12:14 |
| → Sebo joined | 12:16 |
| ← toothr left | 12:17 |
| → toothr joined | 12:17 |
| toothr → toothrot | 12:17 |
| → mabrand joined | 12:18 |
| → tkboy joined | 12:19 |
| → d0k joined | 12:19 |
| ← jatt left | 12:20 |
| ← afuentes left | 12:20 |
| → afuentes joined | 12:21 |
| ← leeight_ left | 12:24 |
| ← afuentes left | 12:24 |
| ← PRETTY_F_ left | 12:24 |
| → project2501a joined | 12:25 |
| → afuentes joined | 12:25 |
| ← danslo left | 12:25 |
| → Lulzon joined | 12:28 |
| ← AeroNotix left | 12:29 |
| → bitkiller joined | 12:30 |
| ← tkboy left | 12:30 |
| → bgerber joined | 12:31 |
| → AeroNotix joined | 12:32 |
| ← AeroNotix left | 12:34 |
| → leeight_ joined | 12:37 |
| ← yaymukund left | 12:38 |
| → danslo joined | 12:40 |
| → yaymukund joined | 12:40 |
|
project2501a
| good morning! | 12:40 |
|
| is there a way i can take a pre-installed OS on a host computer and cp it, some way, into a virtual image? | 12:41 |
| → ISF joined | 12:41 |
| → jargon- joined | 12:42 |
|
charon
| project2501a: huh, how is that a git question? | 12:43 |
|
| (i would also imagine that if the OS is linux, simply making a disk image should work to some extent) | 12:44 |
| ← afuentes left | 12:44 |
|
tabakhase
| can i revert a checkout? as in "transform to bare"? git-ls | xargs rm is "..." | 12:44 |
|
wereHamster
| tabakhase: that doesn't make a repo bare | 12:44 |
|
cmn
| checkout doesn't transform anything to non-bare, so undoing it wouldn't make it bare | 12:44 |
|
wereHamster
| tabakhase: why don't you git clone --bare ? | 12:44 |
|
tabakhase
| not a real bare, thats why its in quotes ;-) | 12:46 |
|
wereHamster
| what do you mean by bare then? | 12:47 |
|
| what are you actually trying to do.. ? | 12:47 |
|
tabakhase
| "no working tree" or better "all files that are 'in git' removed from the working tree | 12:47 |
|
| for getting 'files that are in there but not in git' or so... | 12:47 |
| → Maccer joined | 12:48 |
|
wereHamster
| eh? | 12:48 |
|
tabakhase
| wereHamster a git clone --no-checkout is kind of what im looking for | 12:48 |
|
| but "fixing a forgotten --no-checkout" is what im looking for | 12:49 |
|
wereHamster
| tabakhase: why not make a bare clone? | 12:49 |
|
| what problem are you trying to solve? | 12:49 |
|
MacGyver
| wereHamster: I think what he means is he did a checkout into a non-empty folder and now wants to isolate the files that are not in git. | 12:49 |
|
| Or something. | 12:49 |
|
| (Not even sure that doing that directly is possible) | 12:50 |
|
tabakhase
| MacGyver quite yes - the "direct possible" is my question in here ;-) | 12:50 |
|
MacGyver
| No, I mean, if it's directly possible to checkout into a non-empty folder. | 12:51 |
|
tabakhase
| atm im ls -la | xargs deletewhennotingit.sh $0 where deletzewhennotingit checks for "non empty output" of a git log for the particular file | 12:51 |
|
| works, but its a shame | 12:51 |
|
charon
| tabakhase: git ls-files -z | xargs -0 rm | 12:51 |
| ← fsvend left | 12:52 |
|
tabakhase
| charon hm that seems great | 12:53 |
| → shruggar joined | 12:53 |
|
tabakhase
| and ls-files -o gives the counterprobe, wonderfull | 12:54 |
|
| expect heas eating directorys on the default settings | 12:58 |
| → mxweas_ joined | 12:58 |
| → Targen joined | 12:58 |
| → stuntmachine joined | 12:58 |
| → bartek joined | 12:59 |
| → dcarper joined | 13:01 |
| → jackh joined | 13:02 |
| → Vert joined | 13:03 |
| ← dcarper left | 13:05 |
| ← mxweas_ left | 13:05 |
|
Rhonda
| huhm, why did my fingers let me mistype "git diff" as "big diff". | 13:05 |
|
| … especially when the diff is empty currently. :) | 13:05 |
| → ThePremier joined | 13:05 |
|
tango_
| lol | 13:06 |
| ← Targen left | 13:07 |
| → mxweas_ joined | 13:07 |
| → benjam_es joined | 13:08 |
| ← mxweas_ left | 13:12 |
| → TeckniX joined | 13:12 |
| → macabre joined | 13:12 |
| → centipedefarmer joined | 13:13 |
| → mxweas_ joined | 13:13 |
| → AaronMT joined | 13:14 |
| → mklappstuhl joined | 13:14 |
| → mns joined | 13:16 |
| → juanfer joined | 13:18 |
| → dv310p3r joined | 13:18 |
| → dcarper joined | 13:19 |
| ← palm_vue left | 13:20 |
| ← Lgb left | 13:20 |
| → Ecesis joined | 13:21 |
| → Lgb joined | 13:21 |
| → palm_vue joined | 13:21 |
| ← mns left | 13:22 |
| → bambams joined | 13:22 |
| → neurodrone joined | 13:22 |
| ← ph^ left | 13:23 |
| → rendar joined | 13:23 |
|
bambams
| I rebased a (private) upstream and am trying to figure out how to rebase a local branch on it in one command. There are 9 commits different in each branch. | 13:23 |
|
| I tried: git rebase --onto master~9 my-remote/master~9 master | 13:23 |
| → Zenmaker_ joined | 13:24 |
| → ph^ joined | 13:24 |
|
bambams
| That's not working. :\ I also tried with my-remote/master, which does something, but still leaves 2 and 9 commits different, respectively. :\ | 13:24 |
| ← jcromartie left | 13:25 |
| → hellopat joined | 13:25 |
| → ph^_ joined | 13:25 |
| ← ph^_ left | 13:26 |
| → superdmp joined | 13:26 |
| → erichynds joined | 13:27 |
| → ph^_ joined | 13:27 |
| ← ph^ left | 13:28 |
|
bambams
| Hmmm, maybe I just have to do it in two steps. First rebase master to remove those 9 commits, and then rebase or fast-forward merge the remote.. | 13:29 |
|
superdmp
| i use https://github.com/divio/django-cms/, but I also need to use my custom version of it (which implements a couple of new features). What I need is a convenient way to keep up to date with their develop branch, and merge my own feature code into each time their is updated. | 13:29 |
| ← mxweas_ left | 13:29 |
| ← Ecesis left | 13:29 |
| → axl_ joined | 13:29 |
|
nevyn
| rebase? or a munge filter | 13:29 |
|
superdmp
| And later, I might like to make my features a commit for their master version | 13:29 |
|
| so what would be a good strategy for that | 13:30 |
|
bambams
| git rebase --onto master~9 master && git merge my-remote/master # This was a triumph... | 13:30 |
| ← TheJH left | 13:31 |
|
charon
| bambams: starting on which branch? | 13:31 |
| ← ph^_ left | 13:31 |
|
charon
| bambams: i'd have to look, but if you start on master, that would seem to *discard* 9 commits from master | 13:32 |
| → mns joined | 13:32 |
| → jcromartie joined | 13:33 |
| ← rgsteele left | 13:33 |
| → eueu joined | 13:34 |
| → kaputtmacher joined | 13:34 |
|
kaputtmacher
| hi all | 13:34 |
|
gitinfo
| kaputtmacher: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 13:34 |
|
kaputtmacher
| i have some strange message since i tried the command "git add .gitattributes" | 13:35 |
|
| now i'm getting this one each time: | 13:35 |
|
| behaviour, is not a valid attribute name: .gitattributes:1 | 13:35 |
|
bambams
| charon: Yes, that is basically what I wanted to do. Throw away those 9 commits in master and then add those rebased commits back from the rebased remote branch. | 13:35 |
| → thornofmight joined | 13:35 |
|
kaputtmacher
| the 1st line of my gitattributes is a comment and looks like this: # Set default behaviour, in case users don't have core.autocrlf set. | 13:35 |
| ← benjam_es left | 13:35 |
|
kaputtmacher
| any hints how to get rid of that message every time i make some commits | 13:36 |
|
| ?? | 13:36 |
|
bambams
| I'm not sure, but perhaps git-pull --force would do that too? I'm trying to learn to rebase though (I rebase interactively all the time, but I want to do it non-interactively when possible). | 13:36 |
| → consti joined | 13:37 |
| → mxweas_ joined | 13:37 |
| gitinfo set mode: +v | 13:38 |
|
consti
| Hi! We have a very old and pretty large repository and we would like to reduce its size by removing everything in the history (including objects) before a certain commit | 13:38 |
| → gour joined | 13:38 |
|
thiago
| consti: my suggestion is to choose "a certain commit" to be "the latest right now" | 13:38 |
| → chrisgeorge joined | 13:38 |
|
thiago
| consti: rm -rf .git; git add .; git commit -m "New history starts" | 13:38 |
|
| consti: push to a different repository and people will clone | 13:39 |
|
consti
| would we still be able to cherry pick things from the old repository? | 13:39 |
| ← toothrot left | 13:39 |
| ← raatiniemi left | 13:39 |
|
bambams
| kaputtmacher: I'm not familiar with .gitattributes, but the docs don't say anything about comments in that file (that I can see). Are you sure that file supports comments? | 13:40 |
| → raatiniemi joined | 13:40 |
| → intransit joined | 13:40 |
|
consti
| thiago: I tried something like this http://eggandham.com/2010/08/clear-old-git-history/ - but that didn't help | 13:40 |
| → beniamin joined | 13:40 |
|
kaputtmacher
| bambams: i'm sure it supports comments, because of all the other gitattribute files out there being commented somehow | 13:40 |
|
| i just think it was some kind of a typo of mine | 13:41 |
| → guampa joined | 13:41 |
|
kaputtmacher
| what does <filename>:1 stand for? | 13:41 |
|
| does it mean line 1 on file <filename> ? | 13:41 |
|
bambams
| I assume that means line 1. | 13:41 |
|
kaputtmacher
| well okay | 13:41 |
|
consti
| our ./.git/objects/pack is 233M, but the current repository is only around 45 MB | 13:41 |
|
kaputtmacher
| i will remove the comment and read it again after a commit :) | 13:41 |
| → toothr joined | 13:41 |
|
bambams
| kaputtmacher: Perhaps file encoding. :\ (guessing...) | 13:41 |
|
kaputtmacher
| hmm | 13:42 |
| → thornofmight_ joined | 13:42 |
| ← thornofmight left | 13:42 |
|
kaputtmacher
| i had a lot trouble with crlf stuff… therefore i use a gitattributes now | 13:42 |
|
consti
| I would have guessed that there is some straight forward way to remove everything in history before a certain commit. I don't mind checking out a new repository for that - | 13:43 |
|
kaputtmacher
| since i added it to the repo via git add .gitattributes, the message appears.. | 13:43 |
| ← mxweas_ left | 13:44 |
|
jast
| kaputtmacher: my guess is you have a comma somewhere in .gitattributes | 13:44 |
|
kaputtmacher
| i do | 13:44 |
|
jast
| yeah. remove it. ;) | 13:44 |
|
kaputtmacher
| # Set default behaviour, in case users don't have core.autocrlf set. | 13:45 |
| → Pupeno_W joined | 13:45 |
|
kaputtmacher
| lol, that's all?! | 13:45 |
|
bambams
| o_O | 13:45 |
|
kaputtmacher
| <- keeps in mind never to use commas again… :-P | 13:45 |
|
jast
| .gitattributes doesn't support comments, apparently | 13:45 |
|
| so that line is treated as an attribute assignment | 13:45 |
| ← jackh left | 13:45 |
|
kaputtmacher
| aah.. thx wise man :) | 13:45 |
|
bambams
| Pffft, grammar. Who needs it? errrr i mean grammar who needs it | 13:45 |
| → mxweas_ joined | 13:45 |
|
consti
| :) | 13:46 |
| → arvind_khadri joined | 13:46 |
| → kpreid joined | 13:46 |
| → heptadecagram joined | 13:47 |
| → quazimodo joined | 13:47 |
| ← wbednarski left | 13:47 |
|
consti
| anyone else who has an idea how I could remove everything (including objects) before a certain commit? | 13:48 |
|
jast
| sure. use a graft, then filter-branch. | 13:48 |
|
| finally, clone the result to get rid of the unreferenced objects easily | 13:48 |
|
consti
| thanks! that sounds doable :) (reading up on graft) - any 'tutorial' you can point me to? | 13:49 |
| → dpino joined | 13:49 |
| → lledet joined | 13:50 |
|
jast
| it's pretty easy, really. the 'grafts' file is documented very briefly in man gitrepository-layout | 13:50 |
|
gitinfo
| the gitrepository-layout manpage is available at http://git-scm.com/docs/gitrepository-layout.html | 13:50 |
| ← puneetgoyal left | 13:51 |
|
jast
| it just means you put a line in there with nothing but the ID of the commit you want to change | 13:51 |
|
| since there's nothing else in that line, git will take that to mean you want that commit to pretend to have no parent commit(s) | 13:51 |
|
| then you just need to run git filter-branch -- --all and that should be it | 13:51 |
|
| bambams recommends a tarball backup first. xD | 13:52 |
| ← mxweas_ left | 13:52 |
| → shirish joined | 13:52 |
|
consti
| wow | 13:52 |
|
jast
| filter-branch backs up all the refs itself, too... but the tarball is quite a bit easier :) | 13:52 |
| → puneetgoyal joined | 13:54 |
| → revagomes joined | 13:54 |
|
consti
| jast: will try all of this as soon as I cloned the repository again (since I destroyed my local copy with filter-branch.. ;)) - thanks! | 13:54 |
| ← puneetgoyal left | 13:55 |
| → asedeno_work joined | 13:58 |
| → ixti joined | 13:58 |
| ← timotei left | 13:58 |
| → Davey joined | 13:59 |
|
rendar
| is the git code released under gpl? why there is a LGPL file in the root dir? :) | 13:59 |
| ← Zespre left | 13:59 |
| ← eueu left | 14:00 |
| → Zespre joined | 14:00 |
| ← tyatpi left | 14:01 |
| → john2496 joined | 14:01 |
| ← soee left | 14:01 |
|
cmn
| probably because that file is under the LGPL | 14:03 |
|
wereHamster
| rendar: see for yourself. Find the commit which added the file, it's described why. | 14:03 |
|
jast
| indeed so | 14:04 |
|
| git itself is GPL'd | 14:04 |
| → ehsan joined | 14:05 |
| → shawngo joined | 14:05 |
|
wereHamster
| except for the parts thart are LGPL :) | 14:06 |
|
project2501a
| charon: mis-messge, sorry | 14:09 |
| ← Fullmoon left | 14:09 |
|
rendar
| wereHamster: i'm searching, btw i need to know if the sha1.c is under LGPL or GPL, do you know that? | 14:12 |
| → madsy joined | 14:12 |
| ← madsy left | 14:12 |
| → madsy joined | 14:12 |
| → Fandekasp joined | 14:12 |
| → archdori joined | 14:12 |
|
wereHamster
| rendar: gpl, I would assume | 14:13 |
|
| rendar: LGPL is only for those tihngs that are described in the commit message of the commit which added the LGPL file | 14:13 |
| → TheHaven joined | 14:13 |
|
rendar
| wereHamster: i see | 14:13 |
| → fidothe joined | 14:14 |
| → dfr|mac joined | 14:14 |
| ← shirish left | 14:14 |
| → alester joined | 14:15 |
| → Joseph__ joined | 14:15 |
| → yatiohi joined | 14:16 |
| → kerrick joined | 14:17 |
| → beatak joined | 14:18 |
| ← tjadc left | 14:18 |
| → jjbohn joined | 14:19 |
| ← danslo left | 14:19 |
| → andrewhl joined | 14:20 |
| ← Fandekasp left | 14:23 |
| ← archdori left | 14:23 |
| → giallu joined | 14:24 |
| ← giallu left | 14:24 |
| → giallu joined | 14:24 |
|
jast
| wereHamster: the commit message says "and so on" ;) | 14:24 |
| → plastics joined | 14:25 |
| → GuestQ283503 joined | 14:25 |
| ← Sebo left | 14:27 |
| → Pupeno_W_ joined | 14:28 |
| → fly9 joined | 14:28 |
| ← Pupeno_W_ left | 14:28 |
| ← Pupeno_W left | 14:29 |
| → joshteam joined | 14:29 |
| → dpino_ joined | 14:29 |
| → danslo joined | 14:30 |
| → shirish joined | 14:30 |
| → Synthead joined | 14:30 |
| ← jjbohn left | 14:32 |
| ← dpino left | 14:32 |
| ← shirish left | 14:33 |
| ← ISF left | 14:34 |
| → arturaz joined | 14:35 |
| ← thiago left | 14:36 |
| → Destos joined | 14:36 |
|
arturaz
| Hello. Is there a way to only clone one revision from remote repo? | 14:36 |
| → senny joined | 14:36 |
| → kukks joined | 14:37 |
|
kpreid
| git clone --depth 1, but note that such a clone is mostly useless -- see man git-clone | 14:37 |
|
gitinfo
| the git-clone manpage is available at http://git-scm.com/docs/git-clone.html | 14:37 |
|
wereHamster
| arturaz: it's easier if you download a tarball | 14:37 |
| → alansaul joined | 14:40 |
|
arturaz
| wereHamster, tarball from where? | 14:40 |
| ← psoo left | 14:40 |
| → devn joined | 14:41 |
| → irqq joined | 14:41 |
|
wereHamster
| how am I supposed to know what repo you're tryign to clone | 14:41 |
| ← andrewhl left | 14:41 |
| → sylr joined | 14:41 |
| ← luke left | 14:43 |
| ← senny left | 14:44 |
| → Sebo joined | 14:47 |
| → kermit joined | 14:47 |
| ← Lord_DeathMatch left | 14:48 |
| → macrover joined | 14:50 |
| ← dfr|mac left | 14:51 |
| → Silex joined | 14:51 |
|
consti
| jast: I added the SHA1 to grafts and ran the filter-branch command | 14:52 |
|
| jast: but the objects/pack is still very large | 14:52 |
| ← ThePremier left | 14:53 |
|
consti
| ..and gitk still shows history way before my SHA1 - | 14:54 |
|
| so I'm not sure if that helped :( | 14:54 |
|
superdmp
| can I use git (or github) to show me a diff between two branches? I don't care about all the intervening commits, it's only the end result of changed files that I am interested in | 14:54 |
|
PerlJam
| superdmp: yes | 14:55 |
|
Silex
| give Silex !tias (ignore this it's for me) | 14:55 |
|
gitinfo
| Try it and see™. You learn much more by experimentation than by asking without having even tried. If in doubt, make backups before you experiment (see !backup). http://sitaramc.github.com/1-basic-usage/tias.html may help with git-specific TIAS. | 14:55 |
| → mxweas_ joined | 14:56 |
| → styx_ joined | 14:56 |
|
superdmp
| PerlJam: can you elucidate? the best I have got so far is GitHub's compare view: https://github.com/evildmp/django-cms/compare/84f1212d44a147f8bb6f4c985b05a6aa5e30c63a...pageflags for example, but it's giving me a lot more than I need or want | 14:56 |
| → Laura__ joined | 14:58 |
|
cbreak-work
| superdmp: man git-diff | 14:58 |
|
gitinfo
| superdmp: the git-diff manpage is available at http://git-scm.com/docs/git-diff.html | 14:58 |
|
cbreak-work
| just git diff a b and you're done | 14:58 |
|
| if you want it to look better, use --patience and maybe --color-words | 14:59 |
|
superdmp
| thanks cbreak-work | 14:59 |
| ← jcromartie left | 15:00 |
| ← yizumi left | 15:00 |
|
devn
| Any suggestions for options other than submodules? I have a repo where devs switch back and forth quite a bit between the master and foo branches. In master there are a few subdirectories like "bin" and "lib". In the foo branch bin and lib have been `git rm -rf bin`ed, and added to .gitignore. I then cloned bin and lib into the foo branch. Everything looked fine (probably see where this is headed) until I switched back to master, and then back to the foo ... | 15:00 |
|
| ... branch again. Oops. If I descend into bin or lib, they show that all the files have been deleted due to switching branches. So, this is obviously a less than happy solution. Submodules seem like a poor fit particularly given the constant branch switching by devs. What about git subtree? Does that get me closer to heaven? | 15:00 |
| ← giallu left | 15:00 |
| ← mxweas_ left | 15:00 |
| ← jonnu left | 15:01 |
| ← dhruvasagar left | 15:02 |
| → blendedbychris joined | 15:02 |
| ← blendedbychris left | 15:02 |
| → blendedbychris joined | 15:02 |
| → mxweas_ joined | 15:03 |
| ← Maccer left | 15:03 |
| ← centipedefarmer left | 15:03 |
| → wilmoore joined | 15:03 |
| → stkrzysiak joined | 15:04 |
| → kevwil joined | 15:06 |
| ← mxweas_ left | 15:07 |
| → marhaban joined | 15:07 |
| ← jceb_ left | 15:07 |
| → mxweas_ joined | 15:08 |
| → _iron joined | 15:09 |
| → FabTG_ joined | 15:10 |
| ← raatiniemi left | 15:11 |
|
jast
| consti: there will still be the backup refs created by filter-branch that contain the old history. the only easy way to get rid of everything is to clone the repository and look at the clone. | 15:12 |
| → cakehero joined | 15:12 |
|
jast
| consti: if, however, you're in the correct branch and the old history is still shown there, that means something didn't work | 15:12 |
|
| devn: if you follow the hints in !subpro, you get brief explanations of the various options | 15:13 |
|
gitinfo
| devn: [!subprojects] So, you want to add git repositories inside of other git repositories? Well, you have four main options. First is to just do it, add the repo to the outer project's .gitignore, and treat them entirely separately. Best if they are entirely seperate. Otherwise your best options are "!submodule" "!gitslave" and "!subtree" Try typing those commands into this IRC channel. | 15:13 |
| → dermoth|work joined | 15:13 |
| ← Laura__ left | 15:13 |
| → i42n joined | 15:13 |
| → diwic joined | 15:14 |
| → ipoval joined | 15:14 |
| ← mxweas_ left | 15:14 |
| ← guampa left | 15:14 |
|
consti
| thanks jast! - I have to run now, but I think it didn't work (I still see the old history) - will look into it tomorrow | 15:15 |
| ← Zenmaker_ left | 15:15 |
| ← Davey left | 15:15 |
| → ph^ joined | 15:15 |
| → Zenmaker_ joined | 15:15 |
| → etcetera joined | 15:15 |
| gitinfo set mode: +v | 15:15 |
| → Pupeno_W joined | 15:15 |
|
diwic
| Hi! Is it possible to remove all merge commits with e g "git filter-branch"? | 15:15 |
| ← danslo left | 15:15 |
| → mxweas_ joined | 15:16 |
|
jast
| sure... but note that that won't remove the *effects* of the merge | 15:16 |
| → davidg joined | 15:17 |
|
diwic
| jast, exactly, I want to remove the merge commit but not the effects of it | 15:17 |
| → danslo joined | 15:17 |
| → bluj joined | 15:17 |
|
jast
| diwic: then filter-branch is your friend | 15:18 |
|
bluj
| i have a local commit with 2 files in it... and i would like to remove 1 of those 2 files from the commit (but still keep the changes... e.g. just keep it in the staging area again), how do i do this? | 15:18 |
| → kenperkins joined | 15:18 |
| → Gizmokid2005 joined | 15:19 |
| ← Synthead left | 15:19 |
| → jcromartie joined | 15:19 |
|
diwic
| jast, so that if I have commits A1 and A2 in branch A, B1 and B2 in branch B, then branch A has merged branch B in a merge commit. After the filter-branch, it would look like B1 and B2 were directly committed to branch A. | 15:19 |
|
wereHamster
| bluj: completely remove the file frmo the next commit or just unstage the changes? | 15:20 |
| ← ipoval left | 15:20 |
| → alvaro_o joined | 15:20 |
| → Zenmaker__ joined | 15:20 |
|
bluj
| wereHamster: i want to eventually still have 1 local commit, but it to only contain changes to 1 file instead of two. however, that second file i would like to retain the changes (e.g. just kept it staged, i'll add it to a separate commit later) | 15:20 |
|
diwic
| jast, any hint about how to go about doing such a filter? | 15:21 |
| → Quanteek joined | 15:21 |
| ← Quanteek left | 15:21 |
|
wereHamster
| bluj: are you realizing that what is staged goes into the next commit? You can't keep it staged and not have it go into the next commit | 15:21 |
|
jast
| diwic: okay, for that you actually want to rebase the branch. this sounds tricky to do with filter-branch. | 15:21 |
|
bluj
| wereHamster: sorry not staged then, untracked i guess | 15:21 |
| → egarcia joined | 15:22 |
| → tr-808_ joined | 15:22 |
| → tr-808 joined | 15:22 |
|
jast
| diwic: try git rebase with --root. note that rebase incantations can be tricky to figure out, so do look at the examples in the manpage. | 15:22 |
| → Synthead joined | 15:22 |
|
diwic
| jast, but there are thousands of these merges, won't I then have to make thousands of rebases? | 15:22 |
|
wereHamster
| bluj: untracked? git rm --cached <file> | 15:22 |
|
bluj
| thanks | 15:22 |
|
jast
| diwic: it should be possible to have rebase rewrite the complete branch at once | 15:22 |
|
| but actually I think it squashes the merges | 15:22 |
|
| that's not what you want, is it? | 15:22 |
|
| the problem if you mangle the merged commits into a linear history is that the result will look rather nonsensical | 15:23 |
| ← Zenmaker_ left | 15:23 |
|
jast
| I mean, suppose B1 and B2 were made after A1 and A2 were made. then you have the merge, and you insert B1 and B2 in that place instead | 15:24 |
| → thiago joined | 15:24 |
| ← arvind_khadri left | 15:24 |
|
jast
| now B1 will look as if it magically reverted the effects of A1 and A2, and you'll have to add an extra commit after B2 that contains the actual effects of the merge (including fixed conflicts etc.) | 15:24 |
| ← alvaro_o left | 15:24 |
|
diwic
| jast, hmm, yeah that sounds a little strange I guess | 15:25 |
| → tjadc joined | 15:25 |
|
jast
| the only sensible way to linearize merges is to turn them into regular commits | 15:25 |
|
| assuming that you think linearizing merges can be sensible at all ;) | 15:25 |
| ← mxweas_ left | 15:26 |
|
superdmp
| when I push: git push <remote> <some new branch> that should create the new branch on the remote, is that correct? if so, why: error: src refspec new-pageflags does not match any ? | 15:26 |
|
milki
| superdmp: does it exist as a local branch? | 15:27 |
| → Yuuhi joined | 15:27 |
| → sternocera joined | 15:27 |
|
superdmp
| milki: yes, though it has a differnet name locally | 15:27 |
| ← Zenmaker__ left | 15:27 |
| → mxweas_ joined | 15:27 |
|
milki
| thats your problem | 15:28 |
| ← tr-808_ left | 15:28 |
| ← tr-808 left | 15:28 |
| → Zenmaker__ joined | 15:28 |
| → tr-808 joined | 15:28 |
|
milki
| superdmp: read the definition for refspec in man git-push | 15:28 |
|
superdmp
| thanks milki | 15:28 |
|
gitinfo
| superdmp: the git-push manpage is available at http://git-scm.com/docs/git-push.html | 15:28 |
|
wereHamster
| superdmp: so, please explain how you expect git to figure out which branch you want to push? I mean.. it can't read your mind.. | 15:28 |
| → tr-808_ joined | 15:28 |
|
superdmp
| wereHamster: it does sometimes | 15:29 |
| ← blendedbychris left | 15:29 |
|
wereHamster
| superdmp: from your command, 'git push origin new-pageflags', how should git know that you want to push your local branch frotz? | 15:29 |
| → plastics- joined | 15:29 |
| → Zenmaker_ joined | 15:30 |
| ← wilmoore left | 15:31 |
| → tonyj joined | 15:31 |
|
diwic
| jast, yeah I guess A1 and A2 could be conflicting with the changes from B1 and B2... | 15:31 |
| ← plastics left | 15:31 |
| ← mxweas_ left | 15:32 |
|
superdmp
| wereHamster: actually I assumed it would push the current branch to origin new-pageflags | 15:32 |
| ← tr-808 left | 15:33 |
| → mxweas_ joined | 15:33 |
| ← Zenmaker__ left | 15:33 |
| ← shawngo left | 15:34 |
| ← tr-808_ left | 15:34 |
| → flijten joined | 15:34 |
|
wereHamster
| superdmp: a refspec 'foo' is the same as 'foo:foo' | 15:34 |
| → dfr|mac joined | 15:35 |
| → tr-808 joined | 15:35 |
| ← flijten left | 15:36 |
| → tr-808_ joined | 15:36 |
| ← doug_carmichael left | 15:36 |
| ← Sebo left | 15:36 |
| → doug_carmichael joined | 15:37 |
| ← mxweas_ left | 15:38 |
| → mxweas_ joined | 15:39 |
| ← tr-808 left | 15:40 |
| ← polymar left | 15:40 |
| → tr-808 joined | 15:40 |
| ← mishok13 left | 15:41 |
| → RESNO joined | 15:41 |
|
RESNO
| there's a way to use git without ssh-agent, passing the private key directly to it | 15:41 |
| ← doug_carmichael left | 15:42 |
| ← danslo left | 15:42 |
|
RESNO
| is there way to use git without ssh-agent passing theprivate key toit? | 15:42 |
|
RandalSchwartz
| sure | 15:42 |
| ← tr-808_ left | 15:42 |
|
milki
| if thats a question, the answer is yes via .ssh/config | 15:42 |
| ← AaronMT left | 15:43 |
| → tr-808_ joined | 15:43 |
| → danslo joined | 15:43 |
| ← rtuin left | 15:43 |
| ← dj_tjerk left | 15:43 |
| ← Lulzon left | 15:43 |
|
RESNO
| RandalSchwartz: milki cool, im helping with a project piggybacking on git :) | 15:43 |
| ← tyatpi_ left | 15:44 |
|
RESNO
| milki: how would you set it? | 15:44 |
| → eijk_ joined | 15:44 |
| ← eijk left | 15:45 |
|
milki
| RESNO: man ssh_config | 15:45 |
|
| i dont use it myself | 15:45 |
|
RESNO
| ah ok | 15:45 |
| → dj_tjerk joined | 15:45 |
| → Lulzon joined | 15:45 |
| ← tr-808 left | 15:46 |
| ← rtjure left | 15:46 |
| → AeroNotix joined | 15:46 |
| → tr-808 joined | 15:47 |
| → cambrian joined | 15:48 |
| → AaronMT joined | 15:48 |
| ← AaronMT left | 15:48 |
| ← tr-808_ left | 15:48 |
| → AaronMT joined | 15:49 |
| ← AaronMT left | 15:49 |
| ← saju_m left | 15:49 |
| → ISF joined | 15:49 |
| → AaronMT joined | 15:49 |
| ← AaronMT left | 15:49 |
| ← tvw left | 15:49 |
| → tr-808_ joined | 15:49 |
| → cryptocompress joined | 15:50 |
| → AaronMT joined | 15:50 |
| ← AaronMT left | 15:50 |
| ← cryptocompress left | 15:50 |
| → AaronMT joined | 15:50 |
| ← Lulzon left | 15:51 |
| ← tr-808 left | 15:52 |
| → tr-808 joined | 15:53 |
| → robbyoconnor joined | 15:53 |
| ← nareshbhat left | 15:54 |
| → techhelp joined | 15:54 |
| → xtagon joined | 15:54 |
| → maletor joined | 15:54 |
| → Maccer joined | 15:54 |
| ← LimeBlast left | 15:55 |
| ← tr-808_ left | 15:55 |
| → nareshbhat joined | 15:55 |
| ← lledet left | 15:55 |
| → tr-808_ joined | 15:56 |
| → Cerise joined | 15:56 |
| → tyatpi_ joined | 15:56 |
| ← mxweas_ left | 15:56 |
| → ferdna joined | 15:56 |
| ← fly9 left | 15:56 |
| → mxweas_ joined | 15:58 |
| ← robotmay left | 15:59 |
| → aruiz joined | 16:00 |
| ← kerrick left | 16:00 |
|
devn
| !gitslave | 16:01 |
|
gitinfo
| gitslave (http://gitslave.sf.net) is useful to add subsidiary git repositories to a git superproject when you control and develop on the subprojects at more or less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc. all repositories at the same time. | 16:01 |
|
devn
| !subtree | 16:01 |
|
gitinfo
| The git subtree merge method is ideal to incorporate a subsidiary git repositories directly in to single git repository with "unified" git history, where you only need to pull changes in from external sources not contribute your own changes back (which if technically possible is at least difficult). See http://progit.org/book/ch6-7.html Type "!subtree_alt" for more options | 16:01 |
| ← leeight_ left | 16:01 |
| ← whitman left | 16:02 |
| ← Nirvanko left | 16:03 |
| ← mxweas_ left | 16:05 |
| → barneybook joined | 16:05 |
| ← barneybook left | 16:05 |
| → mxweas_ joined | 16:06 |
| → williamcotton joined | 16:07 |
| ← dj_tjerk left | 16:07 |
| → Eridius joined | 16:07 |
| → andrewhl joined | 16:08 |
| ← maletor left | 16:08 |
| → TheJH joined | 16:08 |
| → barneybook joined | 16:08 |
| ← mklappstuhl left | 16:09 |
| → hwrd|work joined | 16:09 |
| → fly9 joined | 16:09 |
| → apok joined | 16:09 |
| → dj_tjerk joined | 16:10 |
| → mmc1 joined | 16:10 |
| → Targen joined | 16:11 |
| ← macrover left | 16:12 |
| ← barneybook left | 16:12 |
| ← mxweas_ left | 16:13 |
| → aantix joined | 16:13 |
| ← uraimo left | 16:13 |
| → mastro joined | 16:13 |
| ← aantix left | 16:14 |
| → aantix joined | 16:14 |
| → mxweas_ joined | 16:15 |
| → devth joined | 16:15 |
| → wilmoore joined | 16:16 |
|
elik
| I'm reading http://dotfiles.github.com and am left wondering why it's better to put your dotfiles in a subdir rather than just git init and git add the home directory directly | 16:16 |
| ← Pupeno_W left | 16:16 |
| ← kaputtmacher left | 16:17 |
| → maletor joined | 16:18 |
|
sente
| what scripts/hooks do people use such that the shell's prompt always shows the current branch and/or other git related info? | 16:19 |
|
RandalSchwartz
| depends on the shell | 16:19 |
|
sente
| bash | 16:19 |
|
| within (usually) a virtualenv | 16:19 |
| ← tjadc left | 16:20 |
|
RICHIH
| sente: if you are serious about this, try zsh with vcs_info (built-in) | 16:20 |
|
sente
| RICHIH: I'm serious about learning git | 16:21 |
|
| RICHIH is not aware of anything that works with bash and is as good | 16:21 |
|
sente
| I prefer one thing at a time | 16:21 |
|
| also I use a lot of systems which don't have zsh installed I believe | 16:21 |
|
RICHIH
| sente: understandable | 16:21 |
|
| but then, i can't help you, sorry | 16:21 |
|
| PerlJam just uses git-completion.bash | 16:21 |
|
sente
| thanks for the feedback anyhow | 16:21 |
| → dvide_ joined | 16:21 |
|
RICHIH
| sente: no worries | 16:22 |
| ← axl_ left | 16:22 |
|
RICHIH
| PerlJam: that does not give you any info though, oes it? | 16:22 |
| → axl__ joined | 16:23 |
|
m1sc
| sente: check the comment: https://github.com/gitster/git/blob/master/contrib/completion/git-completion.bash | 16:23 |
|
PerlJam
| RICHIH: what sort of "info" are we talking about? | 16:23 |
| ← ixti left | 16:24 |
|
RICHIH
| PerlJam: 18:19:00 < sente> what scripts/hooks do people use such that the shell's prompt always shows the current branch and/or other git related info? | 16:24 |
|
sente
| m1sc: thanks | 16:24 |
|
PerlJam
| RICHIH: git-completion.bash shows the current branch and other info. | 16:24 |
|
devn
| I don't have a git subtree command. Is that part of an extra package or something? | 16:24 |
|
RICHIH
| at least in my case: branch, uncommited changes, ongoing merges, tag/name/commit id etc | 16:24 |
|
| PerlJam: then its name is misleading :p | 16:25 |
|
PerlJam
| well, it also allows for completion of branch/tag names and git subcommands | 16:26 |
|
| :) | 16:26 |
|
m1sc
| RICHIH: true, will be a separate script soon | 16:26 |
| ← etcetera left | 16:26 |
|
| RICHIH wonders why that's not integrated into bash proper, but oh well | 16:26 |
|
m1sc
| devn: I think you have to install it separately: https://github.com/gitster/git/tree/master/contrib/subtree | 16:26 |
| → ajpiano joined | 16:27 |
| ← tyatpi_ left | 16:28 |
| → KBme joined | 16:28 |
| → Kicer86 joined | 16:29 |
| ← mxweas_ left | 16:30 |
| ← stkrzysiak left | 16:31 |
| ← angelsl left | 16:31 |
| ← i42n left | 16:31 |
| → mxweas_ joined | 16:33 |
| → mikepack joined | 16:33 |
| → mwrosen joined | 16:33 |
| ← robbyoconnor left | 16:34 |
| → robbyoconnor joined | 16:34 |
| ← _Qman left | 16:36 |
| ← mxweas_ left | 16:37 |
| → Chel joined | 16:38 |
| → ixti joined | 16:38 |
| ← yaymukund left | 16:38 |
|
Chel
| question: if i made git checkout rev , how can i undo this action to HEAD before this command ? | 16:38 |
| → mxweas_ joined | 16:38 |
| → sporous joined | 16:39 |
| → boombatower joined | 16:39 |
| → yaymukund joined | 16:39 |
| → nadavoid joined | 16:40 |
| ← danslo left | 16:41 |
| → Shusshu joined | 16:42 |
|
m1sc
| Chel: you can allways check the reflog for HEAD to see what happened before | 16:42 |
|
| *always | 16:42 |
| → mklappstuhl joined | 16:43 |
| → JEEB joined | 16:43 |
| ← mklappstuhl left | 16:43 |
| → Goplat joined | 16:45 |
| → wubino joined | 16:47 |
| → QaDeS_ joined | 16:48 |
| ← BarryCrayon left | 16:48 |
| ← QaDeS_ left | 16:48 |
| ← robbyoconnor left | 16:49 |
| ← ixti left | 16:49 |
| → robbyoconnor joined | 16:49 |
| ← Targen left | 16:50 |
| ← yaymukund left | 16:50 |
| ← nadavoid left | 16:52 |
| ← mikepack left | 16:52 |
| ← Vile left | 16:52 |
| → nadavoid joined | 16:53 |
| ← nadavoid left | 16:53 |
| → AlbireoX`Laptop joined | 16:53 |
| → tewecske joined | 16:54 |
| ← fly9 left | 16:55 |
| ← plastics- left | 16:55 |
| → txomon joined | 16:56 |
|
txomon
| hi, I have a branch that comes from the master's head, and I would like to have *some* lines merged, not all of them. Is there anyway git doesn't use a merge strategy and represents all differences as conflicts? | 16:57 |
| ← AlbireoX`Laptop left | 16:57 |
| ← kevwil left | 16:57 |
|
shruggar
| you shouldn't use git's merge for partial merges | 16:59 |
|
txomon
| but I want to have that branch integrated in master | 16:59 |
|
| merged* | 16:59 |
| ← andref_dias left | 17:01 |
| → kevwil joined | 17:01 |
|
txomon
| what would you suggest shruggar ? | 17:01 |
|
shruggar
| if I was doing a fake merge, I'd probably make the tree look however I wanted, then record the merge manually using git hash-object, I'm lame like that :/ | 17:02 |
| ← sylr left | 17:02 |
|
shruggar
| not the most user-friendly solution | 17:03 |
| → AlbireoX`Laptop joined | 17:03 |
| → delight joined | 17:04 |
| ← alansaul left | 17:04 |
|
txomon
| definetly that is not the way I want to do it ;) | 17:04 |
|
| found this | 17:05 |
|
| http://www.gelato.unsw.edu.au/archives/git/0701/37964.html | 17:05 |
| ← neurodrone left | 17:05 |
| → etcetera joined | 17:07 |
| ← delight left | 17:10 |
| → mishok13 joined | 17:12 |
| ← stuntmachine left | 17:13 |
| → danslo joined | 17:13 |
| ← Shusshu left | 17:15 |
| ← robbyoconnor left | 17:15 |
| → martinjlowm joined | 17:15 |
| → raatiniemi joined | 17:15 |
| → JStoker joined | 17:15 |
| → Macca- joined | 17:16 |
| ← project2501a left | 17:17 |
| ← mxweas_ left | 17:17 |
|
Macca-
| if someone makes changes on a branch (branch X) then merges it back into branch Y.. is it possible to reverse all changes that were merged in, if development continued on branch Y after the merge, without losing those subsequent changes? | 17:17 |
| → btree joined | 17:18 |
| → mxweas_ joined | 17:18 |
| → rking joined | 17:18 |
|
txomon
| Macca-: see man git revert | 17:19 |
|
gitinfo
| Macca-: the git-revert manpage is available at http://git-scm.com/docs/git-revert.html | 17:19 |
| → Linc joined | 17:19 |
| ← Linc left | 17:20 |
|
Macca-
| ta | 17:20 |
| → Linc joined | 17:20 |
|
txomon
| ta? | 17:20 |
|
Macca-
| thanks | 17:21 |
|
txomon
| ah ok | 17:21 |
| ← rking left | 17:22 |
| → rking joined | 17:22 |
| ← davidg left | 17:23 |
| → dgasson joined | 17:23 |
| ← mishok13 left | 17:24 |
| → tinti joined | 17:24 |
| ← mxweas_ left | 17:24 |
| ← jkremser left | 17:25 |
| → kerrick joined | 17:25 |
| ← dpino_ left | 17:27 |
| → mxweas_ joined | 17:27 |
| → whitman joined | 17:28 |
| → Xizor joined | 17:28 |
| → tyatpi joined | 17:30 |
| ← heroux left | 17:30 |
|
| strobert loves git-svn | 17:30 |
| → mtytel joined | 17:31 |
| ← tomislater left | 17:31 |
| ← mxweas_ left | 17:32 |
| ← marcogmonteiro left | 17:32 |
| → heroux joined | 17:32 |
| → Vile joined | 17:33 |
| ← jargon- left | 17:33 |
| ← dgasson left | 17:33 |
| → dgasson joined | 17:34 |
| → mxweas_ joined | 17:34 |
|
EugeneKay
| BURN THE HERETIC | 17:35 |
| ← Macca- left | 17:36 |
| → linguini joined | 17:36 |
| ← mxweas_ left | 17:38 |
| ← heroux left | 17:39 |
| ← Joseph__ left | 17:39 |
| → heroux joined | 17:39 |
| ← ehsan left | 17:39 |
| → ehsan joined | 17:40 |
| ← ipalaus left | 17:40 |
| ← Tinti_ left | 17:40 |
| → rgsteele joined | 17:40 |
| ← tinti left | 17:41 |
| → tinti joined | 17:41 |
| → cjz joined | 17:42 |
|
cjz
| what is handling the git+ssh type url ? | 17:42 |
| → spaceonline joined | 17:42 |
|
cjz
| is that gitolite or just plain old git handling that | 17:42 |
| → OOPMan joined | 17:43 |
| ← heroux left | 17:44 |
| → mxweas_ joined | 17:44 |
| ← tinti left | 17:45 |
| → tinti joined | 17:46 |
| ← tinti left | 17:46 |
| → tinti joined | 17:47 |
| ← OOPMan left | 17:47 |
| ← ferdna left | 17:48 |
|
PerlJam
| cjz: git | 17:48 |
|
cjz
| ah | 17:49 |
| ← mxweas_ left | 17:49 |
| → dreiss joined | 17:49 |
| → mxweas_ joined | 17:50 |
| → stuntmachine joined | 17:50 |
| ← marhaban left | 17:51 |
| → jargon- joined | 17:51 |
| → EvanDotP1o joined | 17:52 |
| → heroux joined | 17:52 |
| ← EvanDotP1o left | 17:53 |
| → ffwacom joined | 17:55 |
| ← mxweas_ left | 17:55 |
|
ffwacom
| git | 17:55 |
| → Sigma joined | 17:55 |
| → mxweas_ joined | 17:55 |
| → rryoumaa joined | 17:56 |
| gitinfo set mode: +v | 17:56 |
| ← danslo left | 17:57 |
| → toabctl joined | 17:57 |
| → danslo joined | 17:58 |
| → neurodrone joined | 17:58 |
| ← neurodrone left | 17:58 |
| → neurodrone joined | 17:58 |
| ← toabctl left | 17:58 |
| ← mxweas_ left | 18:00 |
| ← heroux left | 18:01 |
| → ciao joined | 18:01 |
| → mxweas joined | 18:02 |
| → OOPMan joined | 18:03 |
| ← kevwil left | 18:04 |
| ← danslo left | 18:05 |
| ← ciao left | 18:06 |
| ← cortana2 left | 18:06 |
| → puneetgoyal joined | 18:06 |
| ← mxweas left | 18:06 |
| → mxweas_ joined | 18:08 |
| → imachuchu joined | 18:08 |
| → heroux joined | 18:08 |
| → tsuMi joined | 18:08 |
| ← mns left | 18:09 |
| ← tatsuya_o left | 18:10 |
| ← intransit left | 18:10 |
| → intransit joined | 18:11 |
| → miceiken joined | 18:11 |
|
miceiken
| is it any way to force git to remove files matching .gitignore after they've been pushed? | 18:11 |
| ← ffwacom left | 18:12 |
| ← mxweas_ left | 18:12 |
| → kevwil joined | 18:12 |
| → yaymukund joined | 18:12 |
| → fisted joined | 18:12 |
| ← Sigma left | 18:12 |
|
PerlJam
| miceiken: what do you mean? | 18:13 |
|
miceiken
| I already commited all the files in my git folder, then just now I made a .gitignore file. However all the files I don't want in the remote repo are already pushed | 18:14 |
|
| so is there any way to remove them from the repo but still keep them locally, without having to do that manually? | 18:14 |
| → mxweas_ joined | 18:14 |
|
PerlJam
| miceiken: git rm --cached | 18:15 |
|
miceiken
| what more? | 18:15 |
| → Sigma joined | 18:16 |
| → andref_dias joined | 18:16 |
|
miceiken
| ah thanks PerlJam | 18:18 |
| ← mxweas_ left | 18:19 |
| ← yaymukund left | 18:20 |
| → mxweas_ joined | 18:20 |
| ← andrewhl left | 18:21 |
| → danslo joined | 18:22 |
| → mns joined | 18:22 |
| ← noisebleed left | 18:23 |
|
strobert
| EugeneKay: I love pure git better, but better git-svn than having to use svn directly :) | 18:23 |
|
| EugeneKay raises pitchfork | 18:23 |
| ← mxweas_ left | 18:24 |
| → Ste-Jay joined | 18:25 |
| ← SkAzZ1 left | 18:25 |
| gitinfo set mode: +v | 18:26 |
| → rtjure joined | 18:26 |
| ← miceiken left | 18:26 |
|
Ste-Jay
| Hi all - I'm working on a backup system using rsync, and I'm considering using GIT to track changes between snapshots (thus allowing restoration of old versions of the files or files which have been deleted)... | 18:27 |
|
| I read somewhere that GIT shouldn't be used for projects larger than 2GB - My backup currently stands at 81GB - this will be reduced somewhat as I am pruning our files down and removing a lot of unneeded data - none the less I expect to have several GB of data which would need processing | 18:28 |
|
| Are there any special considerations using GIT on such a large directory? | 18:28 |
| ← gusnan left | 18:29 |
| ← tsuMi left | 18:29 |
| ← ph^ left | 18:30 |
|
EugeneKay
| !GIT | 18:30 |
|
gitinfo
| Git is not an acronym. Writing it in all caps is heresy and will be punished by Subversion or SCCS for more grievous offences. It's "git" or "Git". Thank you for your help in making the world a better place. | 18:30 |
|
EugeneKay
| !big | 18:30 |
|
gitinfo
| [!large_files] Git isn't yet great at large files(larger than RAM). Look at !annex for solutions. You can 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:30 |
| → mxweas_ joined | 18:30 |
|
EugeneKay
| !big_repos | 18:30 |
|
| Oh, wtf is it. | 18:30 |
|
| !large_repos | 18:30 |
|
gitinfo
| Git can be slow in the face of large repositories. There are git-config options which can help. pack.threads=1; pack.deltaCacheSize=1; pack.windowMemory=512m; core.packedGitWindowSize=16m; core.packedGitLimit=128m. Other likely ones exist. | 18:30 |
| → danslo_ joined | 18:30 |
|
EugeneKay
| !annex | 18:31 |
|
gitinfo
| Storing lots of binary files in git causes repo balloon. git-annex and git-media are two solutions to work around this by keeping the blobs out of the repo. http://git-annex.branchable.com/ and https://github.com/schacon/git-media | 18:31 |
| → gusnan joined | 18:31 |
|
Ste-Jay
| awesome - many thanks | 18:31 |
|
EugeneKay
| Ste-Jay - git can be used as a file store for a backup system, but rsync and hardlinking works better for it, IMO. | 18:31 |
| → andrewhl joined | 18:32 |
|
Ste-Jay
| *nods* i'm using rsync for the actual synchronisation - I thought git might have been a more elegant solution than hardlinking though, especially in the face of the Windows servers I'm forced to tolerate | 18:32 |
|
EugeneKay
| It will balloon up quickly, and that causes issues. | 18:33 |
|
| Especially if you're talk about binaries | 18:33 |
| ← danslo left | 18:34 |
| danslo_ → danslo | 18:34 |
| ← mxweas_ left | 18:35 |
| → gitinner joined | 18:35 |
|
Ste-Jay
| *nods* i suspect about 90% of our data won't need to be tracked for changes, so it's still possible that we could use it - mostly I'm interested in tracking our staff's files (excel, word, etc) and some dbf databases, so it is mostly binary info | 18:36 |
| → mxweas_ joined | 18:36 |
|
EugeneKay
| As silly as it sounds, svn will probably do a better job of that. | 18:36 |
|
Ste-Jay
| yeah, i did think of svn first but like most people I much prefer git - sometimes it's hard choosing the right tool for the job rather than the one that fits best in your hand :) | 18:37 |
|
| anyway, you've been very helpful and therefore are a star. Thanks very much :D | 18:37 |
| ← gitinner left | 18:38 |
| → gitinner joined | 18:39 |
| → cbreak joined | 18:39 |
|
EugeneKay
| Sure. | 18:40 |
| → kyphi joined | 18:40 |
| ← mxweas_ left | 18:40 |
|
EugeneKay
| git-annex MIGHT work, but for windows homedirs.... well.... no. :-p | 18:40 |
|
cjz
| lord gitlab is difficult to setup | 18:40 |
|
jast
| lemme guess... rails-based? | 18:41 |
| ← stodan left | 18:41 |
|
cjz
| yeah | 18:41 |
| ← kyphi left | 18:42 |
| → mxweas_ joined | 18:43 |
| → fly9 joined | 18:44 |
| ← Chel left | 18:44 |
| → ph^ joined | 18:45 |
| ← gitinner left | 18:45 |
| → thoraxe joined | 18:46 |
|
EugeneKay
| jast - there was some complaint about using the git-scm man page reference. Apparently they stripped the command directory from 'man git' | 18:47 |
|
gitinfo
| jast: the git manpage is available at http://git-scm.com/docs/git.html | 18:47 |
| ← mxweas_ left | 18:47 |
| → Axsuul joined | 18:47 |
| → mxweas_ joined | 18:49 |
| → Macca- joined | 18:49 |
| → BarryCrayon joined | 18:49 |
|
Macca-
| is there any way to query a git repository for a list of commits without cloning it? | 18:49 |
| → j416 joined | 18:49 |
|
EugeneKay
| No, not really. | 18:49 |
| ← toothr left | 18:49 |
| → Chillance joined | 18:50 |
| → itsrachelfish joined | 18:51 |
|
itsrachelfish
| Hi #git! | 18:51 |
|
gitinfo
| itsrachelfish: welcome to #git, a place full of helpful gits. If you have a question, just ask it–somebody should answer shortly. For more information about git and this channel, see the links in the topic. It can't hurt to do a backup (type !backup for help) before trying advice you receive here. | 18:51 |
|
itsrachelfish
| Oh thanks mister git robot | 18:51 |
| → toothr joined | 18:51 |
| ← JStoker left | 18:52 |
|
itsrachelfish
| Is there any option for git diff to only display additions? | 18:52 |
| ← mxweas_ left | 18:53 |
| → JStoker joined | 18:53 |
|
bremner
| itsrachelfish: you can probably use filterdiff for that | 18:53 |
| → stickyboot joined | 18:53 |
| ← BarryCrayon left | 18:53 |
|
bremner
| or grep | 18:53 |
| → \toothrot joined | 18:53 |
|
j416
| itsrachelfish: git diff --diff-filter=A | 18:53 |
|
| for added files | 18:54 |
|
| added lines? not sure if A applies | 18:54 |
|
itsrachelfish
| Yeah added lines | 18:54 |
|
| I suppose *could* just regex ^+ | 18:54 |
|
j416
| git diff | egrep '^\+' | 18:54 |
|
| or something | 18:54 |
| → mxweas_ joined | 18:54 |
|
j416
| heh | 18:55 |
|
Ste-Jay
| ok guys and gals - thanks for all the help, see you soon :D | 18:55 |
| ← Ste-Jay left | 18:55 |
| → gdoteof joined | 18:55 |
| → Targen joined | 18:56 |
| ← toothr left | 18:56 |
| → yaymukund joined | 18:56 |
| → Gitzilla joined | 18:56 |
| ← txomon left | 18:57 |
| ← tr-808_ left | 18:57 |
| ← tr-808 left | 18:57 |
| → tr-808 joined | 18:58 |
| ← mxweas_ left | 18:59 |
| → drizzd_ joined | 18:59 |
| → thearthur joined | 19:00 |
| ← kevwil left | 19:00 |
| → mxweas_ joined | 19:00 |
| ← kerrick left | 19:01 |
| → kerrick joined | 19:02 |
| ← diwic left | 19:02 |
| → v0n joined | 19:02 |
| ← \toothrot left | 19:03 |
| → toothr joined | 19:04 |
| ← mxweas_ left | 19:05 |
| → avpx joined | 19:05 |
|
Olipro
| if I do a "git clone --mirror" of a git-svn repo, how do I update the mirror after an svn rebase | 19:06 |
| → flijten joined | 19:06 |
| ← flijten left | 19:06 |
| ← thearthur left | 19:06 |
| → jeyanth joined | 19:06 |
| → Joseph__ joined | 19:07 |
| ← fisted left | 19:08 |
| ← rgsteele left | 19:08 |
| → codeM0nK3Y joined | 19:09 |
| → scanf joined | 19:10 |
| → mxweas_ joined | 19:10 |
| → gjeoffroy joined | 19:11 |
| ← toothr left | 19:11 |
| → spaceonline__ joined | 19:11 |
| ← Macca- left | 19:11 |
| ← spaceonline left | 19:12 |
| ← gjeoffroy left | 19:12 |
| ← dfr|mac left | 19:13 |
| → toothr joined | 19:13 |
| → teknopaul joined | 19:14 |
| → dfr|mac joined | 19:14 |
| ← mxweas_ left | 19:14 |
|
heoa
| How to use Milestones in Ticgit? | 19:15 |
| ← Sigma left | 19:15 |
| ← AeroNotix left | 19:16 |
| → mxweas_ joined | 19:16 |
| → SmogMonkey joined | 19:16 |
|
avpx
| Olipro: Couldn't you just a) mirror again, or b) fetch the changes from your repo with git fetch? | 19:16 |
| → mdhopkins joined | 19:18 |
|
avpx
| Olipro: The latter option is a bit harder because you will have some sequence on the mirror like: | 19:19 |
|
| A -- B -- C | 19:19 |
|
| And on your working repo like: | 19:19 |
|
| A' -- B' -- C' -- D | 19:19 |
|
Olipro
| git push --mirror worked | 19:19 |
| ← Lgb left | 19:20 |
| ← palm_vue left | 19:20 |
|
avpx
| Oh, good. | 19:20 |
| ← mxweas_ left | 19:20 |
| → kevwil joined | 19:21 |
| → palm_vue joined | 19:21 |
| → mxweas_ joined | 19:21 |
| → Lgb joined | 19:21 |
| ← SmogMonkey left | 19:22 |
| ← spaceonline__ left | 19:23 |
| ← mxweas_ left | 19:25 |
| → rtjure_ joined | 19:27 |
| → spaceonline joined | 19:27 |
| → mxweas_ joined | 19:28 |
| ← danslo left | 19:28 |
| ← toothr left | 19:29 |
| → danslo joined | 19:29 |
| ← rtjure left | 19:29 |
| ← mxweas_ left | 19:32 |
| → ivan12345 joined | 19:32 |
| → ivan12346 joined | 19:33 |
| ← jeyanth left | 19:33 |
| → mxweas_ joined | 19:34 |
| → bronson joined | 19:34 |
| → toothr joined | 19:34 |
| ← boombatower left | 19:35 |
| → Garrick joined | 19:35 |
| → davidjdagino joined | 19:36 |
|
Garrick
| how should I approach a situation where I want to create a new git repo from an existing repo's branch | 19:37 |
| → dorkmafia joined | 19:37 |
| ← andrewhl left | 19:37 |
| → AeroNotix joined | 19:37 |
|
dorkmafia
| how come araxis isn't loading a three way merge by default anymore? | 19:37 |
| → ivan12347 joined | 19:38 |
|
Owner
| Garrick~# uhhh couldnt it be as simple as changing to the branch, copying all files to a new directory, changing ot that directory, and deleting .git/, then git init ? | 19:40 |
| ← mxweas_ left | 19:40 |
| → Jay_Levitt joined | 19:40 |
| ← jcromartie left | 19:41 |
|
canton7
| Garrick, duplicate (clone) the repo, and delete the other branches | 19:41 |
|
Owner
| Garrick~# that would be a new git repo...if you want some kind of linkage, i dont know the best practicies | 19:41 |
|
Garrick
| Owner: but how would you retain the history? | 19:41 |
| → jcromartie joined | 19:41 |
| → Yaodin_ joined | 19:41 |
|
Garrick
| canton7: that could do it. | 19:42 |
| → andrewhl joined | 19:42 |
| → mxweas_ joined | 19:42 |
| → Nikoli_ joined | 19:42 |
| → booginga joined | 19:43 |
| → harshpb joined | 19:43 |
| → matthavener joined | 19:44 |
|
Olipro
| if I'm using git-svn, can I safely take two branches say "branchA" and "branchB" and simply merge B into A and then take that and rebase against master? | 19:44 |
|
matthavener
| is it possible to list the files in a remote (http://) repo without cloning it? | 19:44 |
|
cehteh
| no, but you could do a shallow clone | 19:45 |
|
matthavener
| cehteh: ah, ok, i think that'll do. thanks :) | 19:46 |
|
Owner
| what is a shallow clone | 19:46 |
|
matthavener
| Owner: git clone --depth 1 | 19:47 |
| ← kerrick left | 19:47 |
|
matthavener
| basically you get the repo, but you don't get any history, just the last commit (that's my limited understanding anyways) | 19:47 |
| → apok_ joined | 19:47 |
|
Owner
| hmm and what is --bare | 19:48 |
| ← apok left | 19:48 |
| apok_ → apok | 19:48 |
|
Olipro
| Owner: it builds the git repo but doesn't actually dump out the files themselves | 19:49 |
| ← shruggar left | 19:49 |
|
Owner
| ah, so the opposite | 19:49 |
| → teweWORK joined | 19:49 |
|
Olipro
| no | 19:49 |
|
| you could have a shallow, bare repo | 19:49 |
|
Owner
| also, how is this useful http://git-scm.com/search/results?search=--bare | 19:50 |
|
Olipro
| the point of a bare repo is when you want a location for everyone to be able to push and pull to/from | 19:50 |
| ← andref_dias left | 19:50 |
| → kerrick joined | 19:50 |
| ← jh3_ left | 19:50 |
|
Olipro
| for a common commit point, you're unlikely to want the files in the working tree to be written to the FS | 19:50 |
| ← kerrick left | 19:51 |
|
heoa
| How can I see Github -style punchcards and timeline of git -repo? | 19:51 |
| → kerrick joined | 19:51 |
| → jeyanth joined | 19:51 |
|
Owner
| Olipro~# interesting...... | 19:52 |
| ← rryoumaa left | 19:52 |
| → pantsman joined | 19:52 |
| ← pantsman left | 19:52 |
| → pantsman joined | 19:52 |
| → bartman`` joined | 19:53 |
| → kaen joined | 19:53 |
| → comps joined | 19:54 |
| ← ajpiano left | 19:54 |
| → ajpiano joined | 19:55 |
| → aidan joined | 19:56 |
|
aidan
| I tried to do a git cherry-pick and it conflicted, how do I make it like I never typed that command? | 19:56 |
| → u37 joined | 19:56 |
|
aidan
| I tried to revert it but it won't, because it's conflicted and I have local changes | 19:56 |
|
finch
| git reset --hard HEAD | 19:57 |
|
comps
| cherry-pick --abort | 19:57 |
|
| or git rebase --abort or whatever it uses as "backend" | 19:58 |
| ← matthavener left | 19:58 |
| ← kaen left | 19:58 |
|
EugeneKay
| !bare | 19:58 |
|
gitinfo
| an explanation of bare and non-bare repositories (and why pushing to a non-bare one causes problems) can be found here: http://bare-vs-nonbare.gitrecipes.de/ | 19:58 |
|
aidan
| comps: no --abort on cherry-pick and "no rebase in progress" on git rebase | 19:59 |
| → Renari joined | 19:59 |
| ← bgerber left | 19:59 |
| → thearthur joined | 19:59 |
|
comps
| then just hard reset | 19:59 |
|
| and possibly clean -fdx | 20:00 |
|
aidan
| reset --hard HEAD^ seemed to work | 20:00 |
|
| lucky I backed up my local changes | 20:00 |
|
| otherwise tears. | 20:00 |
| ← Targen left | 20:01 |
| gitinfo set mode: +v | 20:01 |
|
Owner
| git...as if programming wasn't already hard enough | 20:01 |
|
u37
| probably not a git question. anyway, i have 2 repo(s) that use the same config file, where do i save it? Do people create another repo for storing config files? | 20:01 |
|
Olipro
| so, anyone have comment on whether it's safe to merge two branches together and then rebase against master for the purposes of git-svn | 20:01 |
| → danslo_ joined | 20:02 |
|
comps
| Olipro: -p, --preserve-merges | 20:02 |
|
| for git-rebase | 20:02 |
|
imachuchu
| Owner: what? Git is fairly simple once you realize what's all going on. | 20:02 |
|
Olipro
| comps: and that's desirable when subsequently doing the "git svn dcommit" ? | 20:03 |
|
Owner
| imachuchu~# funny...its easier to pickup a new language than realize what's all going on | 20:03 |
|
comps
| Olipro: well, I always dcommited only linear history, so no idea on that | 20:04 |
|
Olipro
| right | 20:04 |
|
comps
| perhaps dcommit can make svn branch merges as well | 20:04 |
|
Olipro
| right, I want to do the same for SVN | 20:04 |
|
| so, I'm planning to be using master as the branch to make svn dcommits from | 20:05 |
| ← cedeon left | 20:05 |
|
Olipro
| so say I've got BranchA | 20:05 |
|
| I do some stuff | 20:05 |
| → plastics joined | 20:05 |
|
imachuchu
| Owner: !simple | 20:05 |
|
gitinfo
| Owner: At it's heart, git is made up of many concepts that are individually simple. Getting the whole picture right is often tricky, and it's usually about breaking up the complex concept into its simple, individual parts and grokking those. | 20:05 |
|
Olipro
| then branch to BranchB from BranchA | 20:05 |
|
| do more stuff | 20:05 |
|
| can I then merge BranchB into BranchA | 20:05 |
|
| then, rebase BranchA against master | 20:05 |
| ← mxweas_ left | 20:05 |
|
Olipro
| then svn dcommit master | 20:05 |
| ← danslo left | 20:06 |
| → danslo__ joined | 20:06 |
| → wabash joined | 20:07 |
|
wabash
| Is there a way to merge through mergetool when there are no conflicts? | 20:07 |
| ← Renari left | 20:07 |
|
Owner
| imachuchu~# so how do i remove all cusswords from all previous commit messages ? | 20:08 |
| → mxweas_ joined | 20:08 |
| ← danslo_ left | 20:08 |
| ← j416 left | 20:08 |
| → nelk joined | 20:08 |
|
comps
| Olipro: "The merge/dcommit problem is that whenever you 'git svn dcommit' a branch, the merge history of that branch is 'flattened': git forgets about all merge operations that went into this branch: Just the file contents is preserved, but the fact that this content (partially) came from a specific other branch is lost." | 20:09 |
| ← ISF left | 20:09 |
|
imachuchu
| Owner: that's a very complex question, what is a cussword? | 20:09 |
|
Owner
| imachuchu~# like vulgar words | 20:09 |
|
comps
| Olipro: http://stackoverflow.com/questions/190431/is-git-svn-dcommit-after-merging-in-git-dangerous , quite long answer, 4th post | 20:09 |
| ← cjz left | 20:10 |
| → Beryllium joined | 20:11 |
| → delinquentme joined | 20:11 |
|
Olipro
| comps: right, thus why I want to rebase branchA onto master and dcommit whilst on master | 20:11 |
|
delinquentme
| forked a repo ... repo was updated ... want to get the most recent version of whats running on the repo .. on my fork | 20:11 |
| → Renari joined | 20:11 |
|
delinquentme
| how do efficient? | 20:11 |
|
| I could delete my fork and refork .. but im pretty sure theres a better way. | 20:11 |
| ← erichynds left | 20:11 |
|
Beryllium
| hey, um. I just did a "git add" to a local repository and it added some .svn folders that were hidden in subfolders. Is there any way I can remove them from my git add (I haven't committed yet) without removing them from disk? | 20:11 |
|
bremner
| Owner: the short answer is man git-filter-branch | 20:12 |
|
gitinfo
| Owner: the git-filter-branch manpage is available at http://git-scm.com/docs/git-filter-branch.html | 20:12 |
|
comps
| Olipro: ? .. I thought your question was purely theoretical, since one would probably rebase branchA on top of master and branchB on top of the result, and then use dcommit anyway | 20:12 |
|
u37
| well looks like subtree merges is one way | 20:12 |
|
Olipro
| no, not theoretical | 20:12 |
|
Beryllium
| nevermind, I fixed it :) Purged the empty git repo folder and made a .gitignore and redid my stuff. Nice. | 20:12 |
|
Olipro
| say I make a bunch of structural changes on branch B that will require conflict resolution and merging | 20:13 |
|
imachuchu
| Owner: ahh, well git doesn't know that the word "poop" is acceptable while other derivatives of it are not. Do you have a list of all words you think are cusswords? | 20:13 |
|
Olipro
| *and would benefit from merging | 20:13 |
|
Owner
| imachuchu~# how can we teach git that poop is acceptable? can you make a patch? | 20:13 |
|
comps
| dcommit probably commits the merge resolution in the merge commit | 20:13 |
|
Owner
| bremner~# interesting | 20:13 |
|
Olipro
| if I merge A and B, I would hope I can safely rebase that onto master | 20:14 |
| ← mxweas_ left | 20:14 |
|
imachuchu
| Owner: I'll get right on that, a bigger problem is the word "Hell". Is it a cussword? | 20:14 |
|
comps
| Olipro: you can, with -p | 20:14 |
| ← heptadecagram left | 20:14 |
|
comps
| but you can't push that nonlinear history to svn | 20:14 |
|
Olipro
| but | 20:15 |
|
| when I rebase it onto master | 20:15 |
|
imachuchu
| Owner: if you know all words you want to replace in all history the command filter-branch can be used to remove things in the past. All to often though it's moot, just change it today and let the past be the past | 20:15 |
|
comps
| right, conflicts, hmm | 20:15 |
|
Olipro
| master should still be linera | 20:15 |
|
| *linear | 20:15 |
|
| all the crap I've done on BranchA and BranchB will just be a single commit on the master branch | 20:15 |
|
| courtesy of the rebase | 20:15 |
| → edude03 joined | 20:16 |
|
EugeneKay
| !enter | 20:16 |
|
gitinfo
| The enter key is not a punctuation mark. Please use fewer lines, with complete sentences on them. | 20:16 |
|
Owner
| imachuchu~# i removed all history to solve it | 20:17 |
| → mxweas_ joined | 20:17 |
|
Owner
| is each commit treated as a branch or something? | 20:17 |
|
| because i wanted to rewrite commits not branches | 20:18 |
| ← nelk left | 20:18 |
| ← enmand left | 20:18 |
|
imachuchu
| Owner: a solution to be sure | 20:18 |
| → Eridius_ joined | 20:19 |
| ← Beryllium left | 20:19 |
|
EugeneKay
| Which commit are you wanting to fiddle? The last one? | 20:19 |
|
Owner
| imachuchu~# yes there was lots of wailing and gnashing of teeth before version 1.0 | 20:19 |
|
PerlJam
| Owner: git filter-branch is perhaps a little misnamed, but it does what you want | 20:19 |
| ← dvide_ left | 20:19 |
| → fisted joined | 20:19 |
|
Owner
| awesome....good to know there is an easy way | 20:20 |
| ← dfr|mac left | 20:21 |
| → nelk joined | 20:21 |
| → codewrangler joined | 20:21 |
| ← Renari left | 20:21 |
| → Renari joined | 20:21 |
| ← mxweas_ left | 20:21 |
|
Garrick
| thx for the help, guys. | 20:21 |
| → boombatower joined | 20:22 |
| ← Garrick left | 20:22 |
| → mxweas_ joined | 20:23 |
| ← dorkmafia left | 20:24 |
| → mcluskydodallas joined | 20:24 |
| → dorkmafia joined | 20:24 |
| ← harshpb left | 20:25 |
| → Koganei joined | 20:25 |
|
avpx
| PerlJam: It seems like it should be map-branch | 20:25 |
|
jast
| but it can remove commits, too | 20:26 |
|
| or add new ones | 20:26 |
|
| both 'filter' and 'map' are similarly inaccurate :) | 20:27 |
| ← u37 left | 20:27 |
| ← mxweas_ left | 20:27 |
| → Lubinski joined | 20:28 |
| → Kogsworth joined | 20:28 |
| ← nelk left | 20:28 |
| → starsinmypockets joined | 20:29 |
|
starsinmypockets
| Is it possible to do a `git pull remote master` while maintaining other local development branches? | 20:30 |
| → shruggar joined | 20:30 |
|
cmn
| other branches won't be affected by the merge | 20:30 |
| ← Koganei left | 20:30 |
|
cmn
| also, !fetchfour | 20:30 |
|
gitinfo
| Never use the four-word version of git-fetch or git-pull (e.g. git fetch remote refspec). It always ends in tears. Yes, if you understand the implications of FETCH_HEAD it can technically be done, but really it is easier to just fetch the whole remote (or perhaps edit the fetchspec if you never want other bits). | 20:30 |
|
jast
| personally I think it's okay with pull, if not ideal | 20:30 |
| → mxweas_ joined | 20:31 |
|
jast
| anyway, merges only affect the branch checked out at the time | 20:31 |
|
starsinmypockets
| Thanks, so if I go fetch the remote HEAD and merge it with the master branch, my dev branches remain unchanged? | 20:32 |
|
cmn
| it's OK if you know what it does | 20:32 |
|
| but most people expect the remote-tracking branch to be updated, and then come asking why 'git pull origin master && git diff origin/master' is confusing them | 20:32 |
| → aspotashev joined | 20:33 |
|
cmn
| starsinmypockets: other branches are not affected by a merge you do in a branch | 20:33 |
| ← Renari left | 20:33 |
| → ew0 joined | 20:34 |
| ← mabrand left | 20:34 |
| ← chrisf|work left | 20:34 |
| ← mxweas_ left | 20:35 |
| → Renari joined | 20:36 |
| → mxweas_ joined | 20:36 |
| → nelk joined | 20:36 |
|
Hunner
| Hmm. Why does git-svn not create a remote name for the svn remote branches? | 20:36 |
|
| Super confusing when I have local branches named the same as the remote branches | 20:37 |
|
jast
| it's git-svn | 20:37 |
|
| 'nuff said | 20:37 |
|
cmn
| they're not remote branches, they're refs with odd names | 20:37 |
|
Hunner
| :P | 20:37 |
|
cmn
| it's a bit of tape that's holding way too many moving parts together | 20:37 |
|
Hunner
| Oh! You can add a remote name with --prefix when doing the clone | 20:38 |
|
| Stackoverflow is invaluable sometimes :) | 20:38 |
| ← stuntmachine left | 20:38 |
|
cmn
| then man git svn should also tell you | 20:39 |
|
gitinfo
| the git-svn manpage is available at http://git-scm.com/docs/git-svn.html | 20:39 |
| → theCole joined | 20:39 |
|
cmn
| and you don't have to scour a possibly unreliable source | 20:39 |
|
Hunner
| cmn: Yeah, but it's usually a case of not knowing exactly what I'm looking for | 20:39 |
|
| Human search engine for the win :) | 20:39 |
|
cmn
| you can still, read, can't you? | 20:39 |
|
jast
| to be fair, reading git manpages from top to bottom is usually a pretty time-intensive task :) | 20:40 |
|
Hunner
| cmn: I'm not a support leach. No need to get testy :/ | 20:40 |
|
cmn
| huh? | 20:40 |
|
Hunner
| Never mind... thanks for the help :) | 20:40 |
| ← mxweas_ left | 20:40 |
| ← gour left | 20:41 |
| → gour1 joined | 20:41 |
| ← Destos left | 20:41 |
| → mxweas_ joined | 20:42 |
| ← ajpiano left | 20:42 |
|
| Hunner is this close -| |- to actually getting them add 'fully convert from svn to git' to the roadmap | 20:42 |
| → harshpb joined | 20:42 |
|
jast
| my workplace switched over to git shortly before I joined | 20:42 |
|
| now I just have to get them to have a separate repository for each component | 20:42 |
| → dfr|mac joined | 20:43 |
|
| Hunner is a consultant, so it changes from week to week :) | 20:43 |
|
jast
| in fact I think I've already convinced them... just need to make it happen when I find some time | 20:43 |
|
Hunner
| jast: Hah :) | 20:43 |
|
wabash
| So, say I want to merge something, and it ends up being a fast forward merge. No conflicts. Now, is there a way to review and alter it, like using mergetool, before the FF is performed? | 20:44 |
|
jast
| wabash: no, but you can undo it if you don't like it (just don't push it yet) | 20:45 |
|
wabash
| jast: Yes, that will work. | 20:45 |
| ← segher left | 20:45 |
| → lightcap joined | 20:45 |
| ← ph^ left | 20:45 |
| ← lightcap left | 20:45 |
| → ajpiano joined | 20:45 |
| → UukGoblin joined | 20:46 |
|
jast
| unless you change something else between the merge and the undo, 'git reset --hard HEAD@{1}' should do the trick (destroys uncomitted changes etc.) | 20:46 |
|
wabash
| jast: But I'm looking for something like either the mergetool, or else a way to do something similar to add --patch, where I can review and patch line by line, or chunk by chunk. | 20:46 |
|
| jast: Yes, I thought about that too. | 20:46 |
| → ph^ joined | 20:46 |
| ← cakehero left | 20:46 |
| → segher joined | 20:46 |
|
wabash
| jast: Just that, diff is sometimes hard to review for goodness, especially if there are so many lines changed! | 20:46 |
| ← mxweas_ left | 20:46 |
|
jast
| well, I suppose you could force a non-ff merge and use -n | 20:46 |
|
wabash
| jast: what's -n? For non-op? | 20:47 |
|
| jast: how do I force a non-ff merge? | 20:47 |
|
jast
| "don't actually commit the merge yet" | 20:47 |
|
| --non-ff | 20:47 |
|
| err, --no-ff | 20:47 |
| → bgerber joined | 20:47 |
|
jast
| as mentioned in the manpage :) | 20:47 |
| → stkrzysiak joined | 20:47 |
|
wabash
| jast: Sure. | 20:48 |
|
| jast: Ok, thank you. | 20:48 |
| ← segher left | 20:48 |
|
jast
| you're welcome | 20:49 |
| → SmogMonkey joined | 20:49 |
| → segher joined | 20:49 |
| ← segher left | 20:50 |
| ← ToBeFree left | 20:50 |
| ← ph^ left | 20:50 |
| → segher joined | 20:50 |
| → jh3 joined | 20:50 |
| → mxweas_ joined | 20:52 |
| ← consti left | 20:52 |
|
comps
| Olipro: http://pastebin.com/Ps36sGN2 .. the hashes in both examples are different because of the rebase and because of the fact that I had to commit --allow-empty each commit, since I made empty commits for this example and rebase doesn't pass that flag by default | 20:54 |
| ← segher left | 20:54 |
|
comps
| however you're right that it can't be produced using simple rebase command with basic syntax, which really surprised me | 20:54 |
| → segher joined | 20:55 |
| ← segher left | 20:56 |
|
comps
| it could be probably simplified using various revspecs | 20:56 |
| ← etcetera left | 20:56 |
| ← mxweas_ left | 20:56 |
| ← Xizor left | 20:56 |
| ← und3f left | 20:57 |
| → mxweas_ joined | 20:57 |
| → Koganei joined | 20:57 |
| → jjbohn joined | 20:58 |
| → und3f joined | 20:58 |
| ← Koganei left | 20:58 |
| → segher joined | 20:58 |
| ← TheHaven left | 20:59 |
| ← Kogsworth left | 21:00 |
| → opdynamiks joined | 21:00 |
| ← gour1 left | 21:00 |
| ← nelk left | 21:01 |
| ← mxweas_ left | 21:02 |
| → marhaban joined | 21:02 |
| ← Renari left | 21:02 |
| → hayward joined | 21:02 |
| → yakovv joined | 21:02 |
| → mxweas_ joined | 21:03 |
| → nelk joined | 21:03 |
| → Renari joined | 21:03 |
|
Olipro
| how would I go about copying/cloning a git-svn repo from a remote server such that everything is identical save for the URI to the SVN store | 21:03 |
|
| would it be sufficient to just tarball up the whole project folder, extract at my end and then manually alter the URI to the SVN repo? | 21:04 |
| ← _iron left | 21:05 |
| → jexmex joined | 21:05 |
| ← hayward left | 21:07 |
|
jexmex
| I do some modifications inside the submodule directory, but for some reason my branch was not checked out (it was before, I know submodules are headless by default). Anyways I now need to get my changes over to the branch, what can I do? | 21:07 |
| ← mxweas_ left | 21:07 |
|
comps
| Olipro: I don't understand the question, if you want to transfer "commits", you can use git-bundle | 21:08 |
| → mxweas_ joined | 21:08 |
| → airborn joined | 21:08 |
|
comps
| Olipro: if you git-svn clone the svn repo to another location, commit hashes will remain the same, feature of git-svn | 21:08 |
|
Olipro
| cloning an svn repo into git is slow - I want to clone from svn on the local machine and then transfer to the remote | 21:09 |
|
comps
| then just push git-svn ref | 21:09 |
|
| (or pull from it, that is) | 21:09 |
| ← intransit left | 21:09 |
|
Olipro
| ok, it's a little more complex; I have git branches on this repo already that I've been working on | 21:09 |
|
| I don't want the git repo on my local machine to treat those git branches as remote | 21:10 |
| ← heroux left | 21:10 |
|
Olipro
| I want it to *only* interact with the SVN repo | 21:10 |
|
comps
| you can probably use git-svn in combination with bare repos, ie. "git-svn fetch" ("git-svn rebase" is basically "git-svn fetch ; git-rebase git-svn" | 21:10 |
| → intransit joined | 21:10 |
|
comps
| sort of a cron-automated svn->git bot | 21:11 |
| ← bgerber left | 21:11 |
| ← hoschi left | 21:11 |
| → goshawk joined | 21:11 |
| ← SmogMonkey left | 21:11 |
| → nicc joined | 21:11 |
|
Olipro
| I think I'll just tarball the dir | 21:12 |
|
comps
| git for-each-ref should list that git-svn ref, git branch -a should do so as well | 21:12 |
|
Olipro
| transfer to myself | 21:12 |
|
| then modify the URI from file:// to ssh | 21:12 |
| → kogent joined | 21:12 |
| → heroux joined | 21:12 |
|
haarg
| modify the svn uri? | 21:13 |
|
comps
| I probably didn't understand the question correctly | 21:13 |
|
devn
| I have a sha and I want to get its symbolic name. It looks like `git name-rev 123fbbcdefg` will work, but is there anything that gives back ONLY the symbolic name and not the SHA along with it? | 21:13 |
| ← mxweas_ left | 21:13 |
|
Olipro
| haarg: right | 21:13 |
| ← cambrian left | 21:13 |
|
haarg
| did you use rewrite-root? | 21:13 |
|
| because otherwise that sounds problematic | 21:13 |
|
Olipro
| comps: do a git-svn clone on a remote server, put the repo on my local machine in such a way that it was as if I ran the clone from my local machine in the first place | 21:13 |
|
haarg
| the URI is embedded in all of the commit messages | 21:14 |
|
cmn
| devn: pipe it to cut and select the first field | 21:14 |
|
comps
| Olipro: then you're right, removing all the files (except .git), doing git-gc and using tar is probably the easiest way | 21:14 |
|
Olipro
| [svn-remote "svn"] | 21:15 |
|
| url = file:///svn/myrepo | 21:15 |
|
| is it not sufficient to just change that? | 21:15 |
| ← avinashhm left | 21:15 |
| → etcetera joined | 21:15 |
| → mxweas_ joined | 21:15 |
| ← heroux left | 21:16 |
| → plasticle joined | 21:16 |
|
haarg
| the URL becomes part of the commit messages, which impacts the hashes of every commit. i'm not sure what happens if you just change it, but i suspect bad things. | 21:16 |
| → ph^ joined | 21:17 |
|
haarg
| there is the --rewrite-root option to clone and related config setting to use a different URL than where you are actually fetching from in the commit messages, and after the initial clone you can remove the rewrite-root config option and change the url. | 21:18 |
| ← yakovv left | 21:18 |
| → HyperNerdV2 joined | 21:18 |
| ← argoneus left | 21:18 |
|
cmn
| devn: actually, see man git name-rev, it's right there | 21:18 |
|
gitinfo
| devn: the git-name-rev manpage is available at http://git-scm.com/docs/git-name-rev.html | 21:18 |
| ← Jay_Levitt left | 21:19 |
| ← mxweas_ left | 21:20 |
| → bgerber joined | 21:20 |
| ← harshpb left | 21:21 |
| → mxweas_ joined | 21:23 |
| ← bartek left | 21:23 |
| ← hellopat left | 21:23 |
| ← sebrock left | 21:24 |
|
Olipro
| haarg: the crux of my issue is that I need to clone in such a way that the branches on the remote repo are considered local in the clone, rather than remote | 21:24 |
| → ISF joined | 21:25 |
| → Destos joined | 21:25 |
| ← nelk left | 21:25 |
| → nelk joined | 21:26 |
| ← nicc left | 21:26 |
|
haarg
| just create a local branch for each remote branch after fetching? | 21:26 |
| ← plasticle left | 21:26 |
| ← martinjlowm left | 21:26 |
| → Tor_ joined | 21:26 |
|
Olipro
| ok, and what about also pulling it across so that it's svn savvy | 21:26 |
|
wereHamster
| Olipro: you mean clone --mirror ? | 21:27 |
|
Olipro
| no, because that will result in a bare repo | 21:27 |
| ← mxweas_ left | 21:27 |
|
Olipro
| although... | 21:27 |
|
| what if I do a --mirror and change the bare flag to 0 afterwards? | 21:27 |
|
wereHamster
| then create a non-bare repo with a fetch refspec of refs/*:refs/* | 21:27 |
| → nicc joined | 21:28 |
| → mxweas_ joined | 21:29 |
| → avinashhm joined | 21:29 |
|
ndim
| I am trying some operations with grafts or git-replace - and in both cases, "gitk --all" shows the intended new inheritance information, but a "git clone ssh://..../" of the modified repo does not contain the graft/replace information any more. | 21:29 |
|
| Is it intentional that "git clone" does not copy that information? | 21:30 |
| ← mcluskydodallas left | 21:30 |
| ← nicc left | 21:30 |
| → eletuchy joined | 21:31 |
| ← Destos left | 21:32 |
| → Mowsh joined | 21:32 |
| ← Tor_ left | 21:32 |
| ← mxweas_ left | 21:33 |
| ← juanfer left | 21:34 |
| ← Renari left | 21:34 |
| ← plastics left | 21:34 |
| → mxweas_ joined | 21:34 |
| ← nelk left | 21:34 |
| → tatsuya_o joined | 21:34 |
| → Destos joined | 21:35 |
| → psoo joined | 21:35 |
| → zero1337 joined | 21:35 |
| → nicc joined | 21:36 |
| → enmand joined | 21:37 |
| → heroux joined | 21:38 |
| ← Lubinski left | 21:38 |
| ← mxweas_ left | 21:39 |
| → mxweas_ joined | 21:40 |
| ← booginga left | 21:42 |
| ← mxweas_ left | 21:44 |
| ← rtjure_ left | 21:45 |
| → mxweas_ joined | 21:45 |
| ← jjbohn left | 21:49 |
| ← mxweas_ left | 21:50 |
| → s0ber_ joined | 21:50 |
| → mxweas_ joined | 21:51 |
| → DanielConvissor joined | 21:51 |
| ← neurodrone left | 21:51 |
| → avandenhoven joined | 21:52 |
| s0ber_ → s0ber | 21:52 |
| ← egarcia left | 21:52 |
| → nelk joined | 21:52 |
| → _W_ joined | 21:52 |
| ← imachuchu left | 21:53 |
|
DanielConvissor
| hi folks. just published some handy hooks and shell scripts for deploying websites and synchronizing databases via git and ssh. perhaps some folks here will find it useful: https://github.com/convissor/git_push_deployer | 21:53 |
| ← rendar left | 21:54 |
| → JoshuaA joined | 21:55 |
| ← mxweas_ left | 21:55 |
| ← AeroNotix left | 21:55 |
| → egarcia joined | 21:55 |
| → mxweas_ joined | 21:56 |
| → Renari joined | 21:57 |
| ← TheJH left | 21:57 |
| → ben_alman joined | 21:59 |
| ← JoshuaA left | 22:00 |
| ← mxweas_ left | 22:01 |
| ← superdmp left | 22:01 |
| ← beniamin left | 22:01 |
| ← ew0 left | 22:02 |
|
avandenhoven
| DanielConvissor: Looks interesting. I may have to borrow large chunks of it for my own deploy scripts. | 22:02 |
| → mxweas_ joined | 22:02 |
| → superdmp joined | 22:02 |
| ← superdmp left | 22:02 |
| → superdmp joined | 22:02 |
| → ew0 joined | 22:03 |
| → madewokherd joined | 22:03 |
| ← blacktulip left | 22:04 |
|
DanielConvissor
| avandenhoven: go for it. fork away! | 22:05 |
| → axl_ joined | 22:05 |
| ← pantsman left | 22:05 |
|
DanielConvissor
| avandenhoven: if you have any feedback, or pull requests, that'd be great. | 22:06 |
|
avandenhoven
| DanielConvissor: it seems that this expects you to have the repo cloned on the remote | 22:06 |
| ← andrewhl left | 22:06 |
| ← mxweas_ left | 22:06 |
|
DanielConvissor
| avandenhoven: yeah, need to start on the remote so the hooks are in place. | 22:06 |
|
arooni-mobile
| why does git insist on using nano; i want to use vim in commit messages | 22:07 |
|
avandenhoven
| DanielConvissor: I mean you can't use a bare repo | 22:07 |
| ← ph^ left | 22:07 |
| → mcluskydodallas joined | 22:08 |
| → mxweas_ joined | 22:08 |
|
avandenhoven
| DanielConvissor: I doubt anything I do will be generally useful. I'm trying to take a _rational_ git repo and ftp changes to an irrational server. | 22:08 |
| → ph^ joined | 22:08 |
| ← axl__ left | 22:08 |
| ← axl_ left | 22:08 |
|
haarg
| arooni-mobile: set GIT_EDITOR, VISUAL, EDITOR, or the core.editor config option | 22:08 |
|
arooni-mobile
| thx | 22:08 |
| → Fandekasp joined | 22:08 |
| → archdori joined | 22:08 |
| → axl_ joined | 22:09 |
| ← dv310p3r left | 22:09 |
| → shruggar1 joined | 22:10 |
| ← shruggar left | 22:10 |
| → chrisf|work joined | 22:11 |
| → axl__ joined | 22:11 |
|
DanielConvissor
| avandenhoven: need a checked out repo to reflect the files out to. | 22:11 |
| ← whitman left | 22:11 |
| → Anxi80 joined | 22:12 |
| ← mxweas_ left | 22:12 |
| ← ph^ left | 22:12 |
| → mxweas_ joined | 22:13 |
| ← tqmz left | 22:13 |
| → MrMagic joined | 22:13 |
|
avandenhoven
| DanielConvissor: yeah. I suppose. I have 2 branches to do this for so that means I have the full repo twice at all times (and I only need the files when I do a build since I have to FTP files over) but this arrangement might not be a bad idea. | 22:13 |
| ← mns left | 22:14 |
| ← axl_ left | 22:14 |
| axl__ → axl_ | 22:14 |
| ← airborn left | 22:14 |
| ← wilmoore left | 22:16 |
| ← john2496 left | 22:16 |
| ← macabre left | 22:16 |
| → ph^ joined | 22:17 |
| ← mxweas_ left | 22:18 |
| → stkrzysiak_ joined | 22:18 |
|
DanielConvissor
| the pushes go into the index for all branches / refs pushed. the checked out ref/branch is the one that gets the reflection out to the checked out file system. that's done mainly via "git reset --hard" | 22:19 |
|
| avandenhoven: ^ | 22:19 |
| → mxweas_ joined | 22:19 |
| ← stkrzysiak left | 22:21 |
| ← ph^ left | 22:21 |
| ← stkrzysiak_ left | 22:23 |
| ← Linc left | 22:23 |
| ← mxweas_ left | 22:24 |
| ← superdmp left | 22:24 |
| ← Anxi80 left | 22:24 |
| ← Eridius_ left | 22:25 |
| → mxweas_ joined | 22:25 |
| → mns joined | 22:26 |
| ← kogent left | 22:27 |
| → rizzuh joined | 22:27 |
|
rizzuh
| Created a private key, added public to github, added to pageant, I get "Permission denied (publickey)." when trying to clone. Why? SSH works for Codebase and Bitbucket O_o | 22:28 |
|
RandalSchwartz
| did you test it by ssh'ing in yet? | 22:29 |
| → Anxi80 joined | 22:29 |
| ← revagomes left | 22:29 |
|
RandalSchwartz
| and this is #git, not #github :) | 22:29 |
|
rizzuh
| ssh'ing in to here? | 22:29 |
|
| RandalSchwartz, I know xD Trying on both channels. | 22:29 |
|
tomek
| ssh -T [email@hidden.address] | 22:29 |
|
RandalSchwartz
| step 5 of https://help.github.com/articles/generating-ssh-keys | 22:29 |
|
| you apparently aren't following the instructions. :( | 22:29 |
| ← mxweas_ left | 22:30 |
|
rizzuh
| I don't have openssh though. I'll try through putty. | 22:30 |
|
frogonwheels
| rizzuh: or plink | 22:30 |
|
| RandalSchwartz . o O (putty? ugh) | 22:30 |
|
tomek
| to use putty | 22:30 |
|
| you need to convert your key to putty format | 22:30 |
|
rizzuh
| I do have it in that format. | 22:30 |
|
frogonwheels
| rizzuh: it's ok. I use putty for git. Mostly so it's easier for my team to manage :| | 22:31 |
| → mxweas_ joined | 22:31 |
|
rizzuh
| Yep, works to ssh directly. | 22:31 |
|
RandalSchwartz
| but... windows. :) | 22:31 |
|
frogonwheels
| RandalSchwartz: yeah. i hear ya | 22:31 |
|
rizzuh
| Can't get to clone a repo though. I know SSH is set up properly, I use it all the time with Mercurial. | 22:31 |
|
| RandalSchwartz, no, don't go there. | 22:31 |
|
frogonwheels
| rizzuh: so what happens whenyou use plink ? | 22:32 |
| ← nicc left | 22:33 |
|
rizzuh
| frogonwheels, same as through putty gui, "Hi cmircea! You've successfully authenticated, but GitHub does not provide shell access." | 22:33 |
| ← starsinmypockets left | 22:33 |
|
rizzuh
| frogonwheels, so it accepts my key it seems. | 22:33 |
|
frogonwheels
| rizzuh: well that's a start. | 22:33 |
| ← TeckniX left | 22:33 |
|
frogonwheels
| rizzuh: are you using ssh to access your own repo? | 22:33 |
|
rizzuh
| yeah | 22:34 |
|
frogonwheels
| have you got git setup properly to use putty? | 22:34 |
| ← kerrick left | 22:34 |
|
frogonwheels
| msysgit presumably? | 22:34 |
|
rizzuh
| frogonwheels, on mysys installed I left the default, to use plink/pageat. | 22:34 |
| ← egarcia left | 22:34 |
|
rizzuh
| Yup | 22:34 |
| ← Dave^| left | 22:34 |
|
DanielConvissor
| rizzuh: what's your remote url look like? here's one i use for pushing to git via ssh: [email@hidden.address] | 22:35 |
| → Eridius_ joined | 22:35 |
|
frogonwheels
| rizzuh: you actually saw that option? | 22:35 |
|
rizzuh
| [email@hidden.address] | 22:35 |
|
| that's mine | 22:35 |
|
| frogonwheels, yeah. | 22:35 |
| ← mxweas_ left | 22:35 |
|
frogonwheels
| rizzuh: echo IT_SSH% (or ${GIT_SSH} if you are in bash ) | 22:36 |
|
| that was meant to be % GIT_SSH % without the gaps | 22:36 |
| → mxweas_ joined | 22:36 |
| ← d0k left | 22:37 |
|
rizzuh
| frogonwheels, doesn't seems to exist, well cmd says %GIT_SSH% on the output | 22:37 |
| → neurodrone joined | 22:37 |
| → kerrick joined | 22:37 |
|
frogonwheels
| rizzuh: ok. then it's setup in the bash file | 22:37 |
|
DanielConvissor
| rizzuh: tomek may be on to something. putty and openssh use different key formats. fix it and submit it to github again. | 22:37 |
|
frogonwheels
| .bat file | 22:37 |
|
rizzuh
| according to bash, nothing. | 22:37 |
|
frogonwheels
| DanielConvissor: nah.. plink is validating | 22:37 |
|
rizzuh
| DanielConvissor, I gave github the ssh2 format, don't worry. | 22:38 |
|
frogonwheels
| rizzuh: have a look in the git.bat file then | 22:38 |
|
DanielConvissor
| col | 22:38 |
|
rizzuh
| frogonwheels, where would I find it? | 22:38 |
| ← davidjdagino left | 22:38 |
|
frogonwheels
| in your path.. um | 22:38 |
|
DanielConvissor
| gotta go. good luck. | 22:38 |
| → philips joined | 22:38 |
| ← DanielConvissor left | 22:38 |
|
tomek
| thats why i use cygwin & openssh + git from cygwin | 22:38 |
| ← dorkmafia left | 22:38 |
|
frogonwheels
| rizzuh: C:\Program Files\Git\cmd\git.cmd | 22:38 |
|
rizzuh
| alright, what about it? | 22:39 |
| ← kevwil left | 22:39 |
| ← fly9 left | 22:39 |
| → cagedwisdom joined | 22:39 |
|
frogonwheels
| rizzuh: check to see if it sets GIT_SSH | 22:39 |
| ← Anxi80 left | 22:39 |
|
rizzuh
| no it doesn't | 22:39 |
| → Anxi80 joined | 22:40 |
|
frogonwheels
| rizzuh: hmm.. you know, why don't you just try setting it... | 22:40 |
|
rizzuh
| To... uh... what? | 22:40 |
| ← gusnan left | 22:40 |
| ← teweWORK left | 22:40 |
|
frogonwheels
| rizzuh: set GIT_SSH=c:\path_to\plink.exe | 22:40 |
| ← mxweas_ left | 22:40 |
|
TML
| something like 'C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe' | 22:41 |
| ← marhaban left | 22:42 |
| → mxweas_ joined | 22:42 |
|
TML
| (That just happened to be the only copy of Plink on my only Windows VM - your path may vary) | 22:42 |
| → revagomes joined | 22:42 |
|
rizzuh
| frogonwheels, thanks, set an env variable with the path to plink, works now! | 22:43 |
|
frogonwheels
| rizzuh: :) | 22:43 |
|
| TML: I thin kthat might be the only good thing about tortoise - a plink that presents a gui 'do you want to accept this key' dialog. | 22:44 |
| ← revagomes left | 22:44 |
| ← kerrick left | 22:45 |
| ← mxweas_ left | 22:46 |
| ← thearthur left | 22:46 |
| → ipalaus joined | 22:47 |
| ← ben_alman left | 22:48 |
| ← boombatower left | 22:49 |
| ← Destos left | 22:49 |
| → boombatower joined | 22:50 |
| → mxweas_ joined | 22:51 |
|
frogonwheels
| rizzuh: by any chance did you not restart your cmd shell since installing msysgit? | 22:52 |
|
rizzuh
| frogonwheels, I never use cmd. | 22:52 |
|
frogonwheels
| rizzuh: ok. then bash ? | 22:52 |
|
rizzuh
| frogonwheels, no, I use PowerShell. I did restart it. | 22:52 |
| → nicc joined | 22:53 |
| → thearthur joined | 22:53 |
|
frogonwheels
| rizzuh: was GIT_SSH set in your env variables? | 22:53 |
|
rizzuh
| no, I set it manually | 22:53 |
|
frogonwheels
| rizzuh: I mean the system/user ones | 22:53 |
|
rizzuh
| no | 22:53 |
|
frogonwheels
| hm.. that's bad. oh well, fixed now. | 22:54 |
| ← boombatower left | 22:54 |
| ← theCole left | 22:54 |
| ← dfr|mac left | 22:55 |
| ← mxweas_ left | 22:56 |
| ← Fandekasp left | 22:56 |
| ← archdori left | 22:57 |
| → ben_alman joined | 22:57 |
| ← raatiniemi left | 22:57 |
| → mxweas_ joined | 22:58 |
| → Destos joined | 22:58 |
| ← Anxi80 left | 22:58 |
| → Anxi80 joined | 22:59 |
|
avandenhoven
| Does git "know" when a file is binary or text? and if so, how can I find out what Git knows? | 22:59 |
| ← teknopaul left | 23:00 |
| → dfr|mac joined | 23:00 |
| ← eijk_ left | 23:02 |
| ← tewecske left | 23:02 |
| ← mxweas_ left | 23:02 |
|
frogonwheels
| avandenhoven: yeah, git knows.. um | 23:03 |
| ← delinquentme left | 23:05 |
| → mxweas_ joined | 23:05 |
| ← toothr left | 23:05 |
|
avandenhoven
| frogonwheels: Ok, I'm building a post-recieve script to do a deploy over FTP to a crappy server I don't have ssh access to. I know how to get the files that were changed, i just need to know whether a file that I'm putting on the see is text or binary. | 23:05 |
|
frogonwheels
| avandenhoven: I'm no sure exactly how to find out sorry um. | 23:06 |
| → kerrick joined | 23:07 |
| → osmosis joined | 23:07 |
| ← shruggar1 left | 23:08 |
| → zackiv31 joined | 23:08 |
| ← zero1337 left | 23:08 |
|
thiago
| avandenhoven: upload everything as binary | 23:08 |
|
avandenhoven
| thiago: that works? | 23:08 |
|
thiago
| sure | 23:08 |
| → toothrot joined | 23:08 |
|
avandenhoven
| facepalm - Thanks | 23:09 |
| ← arietis left | 23:09 |
| → _huoxito joined | 23:09 |
| ← HyperNerdV2 left | 23:10 |
| ← dfr|mac left | 23:11 |
| → dfr|mac joined | 23:12 |
| ← dfr|mac left | 23:12 |
|
cbreak
| avandenhoven: text is just a special case | 23:14 |
|
| (or in other words: text is binary) | 23:15 |
| ← intransit left | 23:15 |
| → SkAzZ joined | 23:16 |
| ← danslo__ left | 23:16 |
| → danslo joined | 23:16 |
| → stkrzysiak joined | 23:17 |
| ← stkrzysiak left | 23:17 |
| ← ajpiano left | 23:19 |
| ← mxweas_ left | 23:20 |
| → marhaban joined | 23:20 |
| → ajpiano joined | 23:20 |
| ← thiago left | 23:21 |
| → mxweas_ joined | 23:22 |
| ← tatsuya_o left | 23:24 |
| ← thornofmight_ left | 23:25 |
| ← marhaban left | 23:25 |
| → cjz joined | 23:25 |
|
cjz
| hmmm, my .gitolite.rc definitely has UMASK = 0007, | 23:25 |
|
| but gitlab seems to not see that | 23:25 |
| ← neurodrone left | 23:26 |
| ← toothrot left | 23:27 |
|
cjz
| gitolite doesnt run per se, there is nothing to restart | 23:27 |
|
| right? | 23:27 |
| ← etcetera left | 23:29 |
| → toothr joined | 23:29 |
| ← Zenmaker_ left | 23:29 |
| → schnatta joined | 23:29 |
| ← techhelp left | 23:30 |
| → Zenmaker_ joined | 23:30 |
| → \toothrot joined | 23:31 |
| → beneggett joined | 23:33 |
| → etcetera joined | 23:33 |
|
arosen
| if you change some files and do git add file ; How do you see what you have changed before you do a git commit? | 23:33 |
| ← toothr left | 23:34 |
|
milki
| diff --cached | 23:34 |
|
| arosen: ^ | 23:35 |
|
arosen
| thanks | 23:35 |
| ← rizzuh left | 23:36 |
| → imachuchu joined | 23:37 |
| ← MrMagic left | 23:40 |
| → MrMagic joined | 23:41 |
| → jjbohn joined | 23:41 |
| → tazle_ joined | 23:41 |
| → bijan0770 joined | 23:41 |
| → bfig joined | 23:42 |
|
bfig
| hello. i was having conflicts and i wanted to redownload a whole folder on my repo. how can i download a specific folder with all it's contents? | 23:42 |
|
| (since the new pull only brought a fraction of the files i wanted to get) | 23:42 |
| ← codewrangler left | 23:43 |
| ← cjz left | 23:44 |
| → PatF joined | 23:45 |
| ← kerrick left | 23:46 |
|
imachuchu
| bfig: "a whole folder", has the whole folder been checked into the repo (i.e. in the past were all of the files in the folder added then commited to some commit)? | 23:46 |
|
bfig
| imachuchu, yes | 23:46 |
| ← mxweas_ left | 23:46 |
|
bfig
| i have this: repo/ -> .git,other,folders | 23:47 |
|
| i erased the contents of "folders" | 23:47 |
| → mxweas_ joined | 23:47 |
|
bfig
| i pulled and it only brought those who were new, but didn't redownload the old ones | 23:47 |
|
| i have other changes in the "other" folder, so i don't want to reset --hard (that's as far as my git arsenal goes) | 23:48 |
| → erichynds joined | 23:48 |
| ← Destos left | 23:48 |
| PatF → Destos | 23:48 |
| → centipedefarmer joined | 23:48 |
| ← bijan0770 left | 23:49 |
|
imachuchu
| bfig: "git checkout HEAD folders", though you may want to create a copy of other elsewhere just in case | 23:50 |
| ← opdynamiks left | 23:50 |
|
bfig
| imachuchu, excellent! thanks | 23:50 |
|
imachuchu
| bfig: you actually don't need to download anything (git already knows about it), what you actually need to do is tell git to ignore the changes you've made (the deletion of folders) | 23:51 |
|
bfig
| ohh ok | 23:51 |
| ← enmand left | 23:52 |
| ← ipalaus left | 23:52 |
| → callen joined | 23:53 |
|
callen
| so, I had a branch "Experimental" | 23:53 |
| ← psoo left | 23:53 |
|
callen
| it diverged from master | 23:53 |
|
| I want to reset it to equal the current HEAD of master without losing the "Experiment" history | 23:53 |
| → subrosa joined | 23:53 |
|
callen
| the git-reset appeared to work, but when I try to push it, I'm told I need to merge | 23:53 |
|
| if I pull, the reset gets undone. | 23:54 |
|
| ideas? | 23:54 |
| → bolowni joined | 23:54 |
| ← dcarper left | 23:54 |
|
subrosa
| Anyone know how to run a webhook from one level under public folder? | 23:54 |
|
imachuchu
| callen: "I want to reset it to equal the current HEAD of master", what? Are you asking to basically add a new commit on experimental with the current state of master? | 23:54 |
|
callen
| imachuchu: basically, yes. | 23:55 |
|
| imachuchu: am I using the wrong tool or idiom to accomplish that? | 23:55 |
|
| I know I don't want to rebase. | 23:55 |
|
imachuchu
| callen: no, it's just not something I've heard usually done. Quite often a new branch will be created off of master, or the old branch could be renamed/tagged instead, but there is nothing wrong with what you are trying to do (just a bit odd) | 23:57 |
|
callen
| imachuchu: there are good reasons for it. | 23:57 |
|
imachuchu
| callen: as for how, I'm not sure. give me a sec | 23:57 |
|
| callen: what reasons? | 23:57 |
| ← dgasson left | 23:57 |
|
callen
| experimental is a canonical branch that is tracked by a server, but we want to ditch the experiment we tried recently without losing the full history. | 23:57 |
|
| I thought it would be a matter of git checkout experimental; git reset --hard origin/master | 23:57 |
|
SethRobertson
| !fixup | 23:57 |
|
gitinfo
| So you lost or broke something or need to otherwise find, fix, or delete commits? Look at http://sethrobertson.github.com/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 23:57 |
|
callen
| which seems to work at first, but then I can't push it without it forcing me to pull and merge which ditches the reset. | 23:58 |
|
SethRobertson
| You want to delete the branch? git branch -D experimental | 23:58 |
|
callen
| no! | 23:58 |
|
imachuchu
| SethRobertson: actually not useful in this situation. | 23:58 |
|
callen
| we want to keep the full history. | 23:58 |
|
| just change it to equalling the current HEAD of master. | 23:58 |
| ← ISF left | 23:58 |
|
kevlarman
| callen: git revert then | 23:58 |
|
| callen: if it's a simple list of commits | 23:59 |
|
callen
| er, no. | 23:59 |
|
| no. | 23:59 |
|
| we don't want to revert the commits | 23:59 |
|
| we want to keep the history | 23:59 |
|
SethRobertson
| A better approach would be a new commit from master to experimental making experimental a directory. The best approach would be to use a new branch | 23:59 |
|
kevlarman
| callen: revert keeps the history | 23:59 |
|
imachuchu
| callen: first off branches can be thought of as throw away. If you have something you want to keep in archive why not tag it? Second, while not a git command, a checkout of master, copy that to somewhere else, checkout experimental, copy back, git add -u will do it (but messy) | 23:59 |
|
kevlarman
| callen: git revert generates inverse commits of whatever you tell it to | 23:59 |
|
callen
| I don't want that. | 23:59 |