| 2018-07-25 |
| → durham_ joined | 00:00 |
| → __nd__ joined | 00:00 |
|
nedbat
| michael2: this isn't a git problem: this is an organizing your work problem. | 00:00 |
|
| michael2: why are you starting on a new feature when there is old work unfinished? | 00:00 |
|
michael2
| nedbat: you're right, git is doing everything right - its an operator issue | 00:01 |
|
nedbat
| michael2: but even if you ignore those old unfinished branches, can't you just start a new branch from master (or wherever), and start on the new work? | 00:01 |
| ← LiftLeft left | 00:02 |
|
michael2
| the rate at which work comes in exceeds the rate at which I can put away residual pending changes onto branches and push to server | 00:02 |
| ← _nd_ left | 00:02 |
| ← durham left | 00:03 |
|
nedbat
| michael2: you say, "put changes onto branches." Don't you make the branch before you've made any changes? And your commits go onto the branches? | 00:03 |
|
michael2
| nedbat: about 70% percent of time, I can't checkout back to development (the main "trunk" I work from ) becauuse of checkout conflicts | 00:04 |
|
nedbat
| michael2: conflicts with what? You want to get the latest development code, you just check it out. | 00:04 |
|
| michael2: are you trying to get the latest development code and also keep your local changes? | 00:05 |
|
michael2
| nedbat: thats one problem, I'm not making the branches _before_ I do the work - which I should be doing | 00:05 |
|
nedbat
| michael2: yes, make the branch first. | 00:05 |
|
michael2
| nedbat: If I understand you , you're asking why I dont just checkout back to the main "trunk" branch - despite having a dirty working dir - is that right? | 00:06 |
|
nedbat
| michael2: no, i'm saying you should commit your changes to a branch. | 00:06 |
|
| michael2: when work comes in, make a branch. all your changes get committed to the branch | 00:07 |
| ← ZyX-I left | 00:07 |
|
michael2
| nedbat: yes, but in order to isolate the experimental commits I need to checkout from whatever branch I was on - back to the common trunk | 00:08 |
|
nedbat
| michael2: yes, when you start a new thing, you go back to development, and start a new branch | 00:08 |
| ← jp left | 00:09 |
| → jp joined | 00:09 |
|
nedbat
| michael2: why is your working tree dirty? Why not commit your changes? | 00:10 |
| ← applecrumble left | 00:11 |
|
tzo
| or stash them at least | 00:11 |
|
michael2
| nedbat: thats the problem Im not commiting fast enough | 00:11 |
|
| tzo: stash is no good | 00:12 |
|
tzo
| stash is bae | 00:12 |
|
nedbat
| michael2: ok. 1) make a new branch when you start new work. 2) commit your changes to the branch. | 00:12 |
|
michael2
| tzo: because its indiscriminent | 00:12 |
| → vdamewood joined | 00:13 |
|
michael2
| it stashes everythin - what you want is to caputure the branch specific changes as a commit - on that branch | 00:13 |
|
| even if its only a "work in progress" commit | 00:14 |
|
tzo
| so why don't you commit before switching branches then | 00:14 |
| → LiftLeft joined | 00:14 |
|
michael2
| tzo: im trying, im trying... | 00:14 |
|
tzo
| :p | 00:14 |
| ← gruetzkopf left | 00:14 |
| → gruetzkopf joined | 00:15 |
| ← jrnieder left | 00:15 |
| ← arecacea1 left | 00:15 |
| ← kerframil left | 00:15 |
| → arecacea1 joined | 00:16 |
| → akushner joined | 00:16 |
|
michael2
| nedbat: yes, I think I need to develop a reflex or a habit - where _before_ I start work - I identify the branch - this work should be on - make the branch *then* start coding | 00:17 |
|
| must make the branch - then start coding | 00:18 |
|
| always make the branch before coding | 00:18 |
|
| code with no branch bad | 00:18 |
| ← Enphuego left | 00:18 |
|
nedbat
| michael2: right | 00:19 |
| ← cagomez left | 00:20 |
|
michael2
| so - solution one - If I dont have a branch to receive the code into - then I put the computer down and slowly step away from the keyboard - with my hands where nedbat can see them | 00:20 |
| ← m0viefreak left | 00:20 |
|
nedbat
| michael2: solution two: make a branch | 00:21 |
|
michael2
| thats where my real sticking point actually is | 00:21 |
|
| I have multiple models of branching | 00:21 |
|
nedbat
| michael2: models? | 00:22 |
|
michael2
| and I get "paralysis by analysis" | 00:22 |
|
nedbat
| michael2: can you describe two different models? | 00:22 |
|
michael2
| nedbat: 3 modiesl | 00:22 |
|
| models | 00:22 |
|
| nedbat: 1) hotfixes - that go straight onto master | 00:23 |
| ← jottr left | 00:23 |
| → Kaisyu joined | 00:23 |
|
parsnip
| nooooo | 00:23 |
|
michael2
| major pain, because I need to rebase everything afterwards | 00:23 |
|
| usually requiring `rebase --onto ...' | 00:24 |
|
tzo
| out of curiousity, how many people are working on this project | 00:24 |
|
michael2
| parsnip: I know, right? | 00:24 |
|
| tzo: just me | 00:25 |
|
parsnip
| i make lots of `scratch/<blah>` branches | 00:25 |
|
tzo
| ok | 00:25 |
|
parsnip
| i think i saw that in the emacs project. | 00:25 |
|
| more than half of them are never pushed. | 00:26 |
|
| i mean, mine. | 00:26 |
|
michael2
| parsnip: but if you don't push you won't have backups of the work? | 00:26 |
|
parsnip
| michael2: i might start pushing really scratch branches to a private repo. | 00:27 |
|
| michael2: i don't lose my laptop very often. | 00:27 |
| → BallChang-CN joined | 00:27 |
|
parsnip
| let's hear your other two mental models? | 00:28 |
|
michael2
| nedbat: 2) model/strategy - is to commit direct to development branch 3) is the branching as we discusssed | 00:28 |
|
| parsnip: ^^^ | 00:28 |
|
| I think parsnip's make a "scratch" branch is how I will start doing things | 00:29 |
|
nedbat
| michael2: you can push all your branches to your real repo | 00:31 |
|
michael2
| the reason I like that approach is because - I think - if you create a branch - but it turns out a dedicated branch was overkill (e.g. was only a couple lines of edits) you always have the option of checking back to develpment and merging | 00:32 |
|
| but if you didn't capture the work onto a dedicated branch its much harder to retract those commits onto a branch with history rewrites | 00:33 |
|
nedbat
| michael2: right. it's easy to merge branches | 00:33 |
| → g2anj joined | 00:35 |
|
michael2
| nedbat: exactly - but very hard to "de-merge" a branch ! | 00:35 |
|
nedbat
| michael2: i don't understand | 00:35 |
| ← Tobbi left | 00:35 |
| → tangmou joined | 00:37 |
|
michael2
| nedbat: say your repo has only a single branch - with all of changes which serve different focuses/purposes all interspersed along that single history | 00:37 |
|
| and intermingled amongst each other | 00:38 |
|
parsnip
| at worst, you can kind of unmerge with a rebase. but at best, it's often a quick reset. | 00:38 |
|
michael2
| then you decide you want to take all the commits related to say some install and config code and put them onto a single branch | 00:39 |
|
parsnip
| i think he's often looking at fast forward as a merge. | 00:39 |
|
| not sure actually | 00:39 |
|
michael2
| nedbat: how would you identify and retract them out of the history into a single branch? thats what I meant by a "de-merge" | 00:40 |
|
parsnip
| i think of that as a lot rebasing. | 00:40 |
|
| not a de-merge | 00:40 |
| ← Wetmelon left | 00:40 |
|
nedbat
| michael2: you are describing the thing you want to avoid: don't put all those commits on one branch in the first place | 00:40 |
| ← dpirch left | 00:40 |
|
michael2
| nedbat: exactly | 00:40 |
|
parsnip
| well, often you are making many edits in succesion, but flipping topics. i don't think it's that unusual. | 00:41 |
|
nedbat
| michael2: i think we are all in agreement: you should start branches before making changes, and commit all your work | 00:41 |
|
parsnip
| though they're vaguely related. | 00:41 |
|
| i mean, in a recent case for myself. | 00:41 |
|
| i'm trying to remove a framework from a project. i have sort of two topics of regressions i would have to fix. | 00:42 |
|
| i go back and forth, and they're not strictly split on divergent branches. | 00:42 |
| ← Singmyr left | 00:43 |
|
parsnip
| but usually when i'm in the hacking phase, i make extra scratch branches where things might split, until i pick the next winner to fast forward say `scratch/master`. | 00:43 |
|
| i might be working on both topics in two branches, and whichever i make good progress on next, i fast forward to. | 00:43 |
|
| then i rebase the other scratch branches to that. | 00:44 |
|
| and i may even rebase _all of it_ before finally adding to master. | 00:44 |
| → dreiss joined | 00:44 |
|
parsnip
| like, if some commits were typo fixes for earlier commits. | 00:44 |
| ← bergice_ left | 00:44 |
| → oxguy3 joined | 00:45 |
| ← HZun left | 00:47 |
| ← durham_ left | 00:48 |
| → durham joined | 00:49 |
| ← unreal left | 00:49 |
| ← Guest73 left | 00:49 |
|
michael2
| nedbat: just to finish our train of thought and move onto parsnips issue. Yes I think we are in agreement. I need to develop a habit/refex of always creating a branch _before_ opening a text editor (you literally can't go wrong if you do this) and in regard to the location the branch will be based off - I guess - always go off development - if thats not right - it can be fixed later- with a cherry pick or | 00:50 |
|
| rebase - but as long as the code is contained into a branch - 1) its isolated from develpment 2) it clears uncommitted changes out of the working directory to free up more checkouts 3) it allows saving the work to remotes (pushing) | 00:50 |
|
nedbat
| michael2: right, right, and right. | 00:51 |
| → Guest73 joined | 00:52 |
| ← Guest73 left | 00:54 |
| ← m00sehead left | 00:57 |
| → fission6 joined | 00:58 |
| → Wetmelon joined | 00:58 |
| → m00sehead joined | 00:59 |
| → jakogut joined | 01:00 |
| → unreal joined | 01:01 |
| → CarlFK joined | 01:01 |
|
CarlFK
| ugh - commited and pushed, the realized I should have squashed. | 01:01 |
|
| how do I squash the last 2 commits ? | 01:01 |
| ← fission6 left | 01:01 |
| → mud joined | 01:03 |
| → Utility joined | 01:04 |
| ← Utility left | 01:05 |
| → Vortex34 joined | 01:08 |
| → finalbeta joined | 01:10 |
| → UtilityDave joined | 01:10 |
| ← wizardedit left | 01:11 |
|
michael2
| if you've already pushed, you'll have to rewrite history locally then push --force - and deal with backlash - if you have other devs | 01:11 |
| ← Vortex35 left | 01:12 |
| → infinite joined | 01:12 |
| ← netlar left | 01:12 |
| → netlar joined | 01:12 |
| → inkbottle joined | 01:13 |
|
CarlFK
| just me - trying to make a cleaner PR | 01:13 |
| ← Sasazuka left | 01:13 |
|
michael2
| git probably has somme "squash" feature- but I would just git reset --soft HEAD^^ which should leave the index intact - then just git commit - then git push --force <remote> | 01:14 |
|
tzo
| git rebase -i HEAD^^ | 01:14 |
|
michael2
| tzo: what do you do with the commit/s CarlFK doesn't want? <delete> ? | 01:15 |
| ← Oatmeal left | 01:16 |
|
mud
| You can squash from the rebase -i interface. The reset --soft thing is quicker, but many people don't know that. rebase -i is easier to remember | 01:16 |
|
| Or at least I end up using it more, it's more general for my usages than invocations of reset | 01:17 |
|
michael2
| I guess I like the control of doing things manually, but I'd like to use rebase more, it just seems a nice convenience thing | 01:18 |
|
| its gives you some automation | 01:18 |
|
CarlFK
| git rebase -i HEAD^^ I think that reverted my commit? (its fine, I deleted 2 lines of debugging code I can delete again) | 01:20 |
| ← thiago left | 01:20 |
|
CarlFK
| but that still leaves me with a commit with the debug code that I don't want included | 01:21 |
|
mud
| CarlFK: It should have brought up a text editor letting you choose what changes to make | 01:21 |
|
| You can reorder and squash commits by using that editor interface thing. | 01:21 |
|
CarlFK
| it did, but I guess I didn't edit right | 01:21 |
|
| so now I have uncommited changes - how do I .. make them part of the last commit? | 01:22 |
| ← m00sehead left | 01:23 |
|
nedbat
| CarlFK: git commit --amend | 01:23 |
|
mud
| CarlFK: If you have changes you just want to include in the most recent commit, that's 'git add .' (if they're not staged, stage them how you want) and then 'git commit --amend' | 01:23 |
|
CarlFK
| i've heard of that | 01:23 |
| → doubtful joined | 01:24 |
|
michael2
| one other thing I like about rebase - is that when I do rewrites of a branch - I often create a temporary branch, so say the branch to do history rewrites was "foo" I would create a temporary branch - named "Foo" - then once the branch is fixed up - Im stuck with a branch named "Foo" or whatever the temporary branch was - rebase lets you keep your original branch name after the history rewrite | 01:24 |
| ← inovas left | 01:24 |
| → dsdeiz joined | 01:25 |
| ← dsdeiz left | 01:25 |
| → dsdeiz joined | 01:25 |
|
CarlFK
| arg. can someone figure out how my local repo and github are not in sync? :p | 01:28 |
|
| http://paste.ubuntu.com/p/qhm7j5XZrs/ | 01:28 |
| ← jakogut left | 01:28 |
|
CarlFK
| https://github.com/CarlFK/video-stack-deploy/commit/60d0373f34519850d5873f0b3f3e39ce307bea99 | 01:28 |
| → dviola joined | 01:28 |
|
parsnip
| CarlFK: have you fetched? | 01:29 |
|
CarlFK
| 2 lines I am trying to get rid of +- debug: + msg: "foo {{ hostvars }}" | 01:29 |
| → jakogut joined | 01:29 |
|
CarlFK
| parsnip: no. just did, nothing happened. | 01:29 |
|
parsnip
| !lol | 01:29 |
|
gitinfo
| A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 01:29 |
|
parsnip
| !paste | 01:29 |
|
gitinfo
| Please use a pastebin for snippets longer than one line. Persistent and can be used with a GitHub account: https://gist.github.com/ - one hour auto-delete: https://upaste.de/ | 01:29 |
| → inovas joined | 01:30 |
|
parsnip
| CarlFK: i'm guessing `git lol` will show the branches have diverged. | 01:30 |
|
CarlFK
| git: 'lol' is not a git command. See 'git --help'. | 01:30 |
|
parsnip
| so pushing would not be a simple fast-forward, and so is prevented. | 01:30 |
|
| CarlFK: okay, try `git log --oneline --graph --decorate --all` | 01:30 |
|
CarlFK
| http://paste.ubuntu.com/p/nBw6GM32xp/ | 01:31 |
| → strugee joined | 01:32 |
| ← _ADN_ left | 01:33 |
| ← RougeR left | 01:34 |
| → durham_ joined | 01:34 |
| → qrc joined | 01:35 |
|
parsnip
| CarlFK: what part are you looking at that is not in sync? | 01:36 |
| ← shah^ left | 01:36 |
|
CarlFK
| I see this in gh: +- debug: but not my local file | 01:36 |
| ← durham left | 01:37 |
| → cagomez joined | 01:37 |
| → hat^^ joined | 01:37 |
| → dstw joined | 01:38 |
|
CarlFK
| https://github.com/CarlFK/video-stack-deploy/blob/bm-connection/roles/voctomix/tasks/voctomix.yml#L2 | 01:38 |
| ← Sleepy63 left | 01:38 |
| ← durham_ left | 01:38 |
| → nickenchuggets joined | 01:39 |
| ← nickenchuggets left | 01:39 |
| → nickenchuggets joined | 01:39 |
|
parsnip
| git diff bm-connection -- bm-connection/roles/voctomix/tasks/voctomix.yml | 01:39 |
|
| git diff bm-connection -- roles/voctomix/tasks/voctomix.yml | 01:40 |
|
CarlFK
| empyt | 01:40 |
|
parsnip
| okay, and if you open the file? | 01:40 |
|
CarlFK
| 2nd one shows a diff | 01:40 |
|
parsnip
| ah | 01:40 |
|
CarlFK
| I thought this commited it: git commit --amend | 01:41 |
|
parsnip
| did you add? | 01:41 |
|
| commit only commits things in staging area | 01:41 |
|
CarlFK
| I need to add if it is already tracked? | 01:41 |
|
parsnip
| to get it from working tree to staging area, you have to add. | 01:41 |
|
| being tracked doesn't continuously update things to the staging area. | 01:42 |
|
CarlFK
| k | 01:42 |
| ← monoprotic left | 01:43 |
|
CarlFK
| yay, all pretty now! | 01:43 |
|
| thank you everyone | 01:43 |
|
parsnip
| :) | 01:43 |
| ← dreiss left | 01:43 |
| ← hat^^ left | 01:44 |
| ← akushner left | 01:45 |
| → hphat joined | 01:46 |
| ← negaduck left | 01:46 |
| ← Karyon left | 01:48 |
| → Sleepy63 joined | 01:48 |
| → Karyon joined | 01:48 |
| → dreiss joined | 01:48 |
| → JeffH joined | 01:49 |
|
JeffH
| I need some help. I freshly cloned a repo to my Mac. A ‘git status’ shows modifications. I suspect case issues but nothing I’ve tried seems to have and effect. | 01:52 |
| → negaduck joined | 01:53 |
|
tzo
| what does git diff say | 01:53 |
| ← fran__ left | 01:53 |
|
tzo
| or erm what files are changed | 01:54 |
| → fran__ joined | 01:54 |
|
tzo
| it might be permissions or something | 01:54 |
| ← upperdeck_ left | 01:54 |
| → upperdeck joined | 01:54 |
|
JeffH
| A diff seems to think the files are completely different. | 01:55 |
| ← fran__ left | 01:55 |
|
tzo
| :o | 01:55 |
|
| git checkout -f # since it's a fresh clone | 01:56 |
| → Lyqyd joined | 01:56 |
|
JeffH
| Git shows the file purify-Results is modified. The file on disk is purify-results | 01:57 |
|
tzo
| hm, idk sorry | 01:58 |
|
| I'm a windows so I've had different git vs filesystem weirdness >_> | 01:58 |
|
JeffH
| Anyone else here or just you? | 01:58 |
| → thiago joined | 01:59 |
| ← GreenJello left | 01:59 |
|
tzo
| 1174 others | 01:59 |
| ← veegee left | 01:59 |
|
parsnip
| what is git config --get core.ignoreCase | 02:00 |
|
JeffH
| parsnip: false | 02:02 |
| → Jackneill joined | 02:02 |
|
parsnip
| what if you `mkdir testthis && mkdir TestThis`? | 02:03 |
|
| ah, or `diskutil info /` | 02:04 |
|
| see if it says "Case-sensitive" | 02:04 |
|
| i have `File System Personality: APFS` | 02:04 |
|
JeffH
| Don’t see anything about Case-sensitive | 02:05 |
| → GreenJello joined | 02:05 |
| → zlib_is_awesome joined | 02:06 |
| ← tzo left | 02:06 |
|
parsnip
| not sure. maybe something in .bashrc? | 02:06 |
|
JeffH
| Modify: TestThis: File exists | 02:07 |
|
parsnip
| maybe `mv purify-results temp && mv temp purify-Results` | 02:10 |
|
| !backup | 02:10 |
|
gitinfo
| Worried about your data while trying stuff out in your repo? The repository in its entirety lives inside the .git directory in the root of your work tree so to backup everything `cp -a path/to/workdir path/to/backup` or equivalent will suffice as long as the repo is not modified during backup. See also http://sethrobertson.github.com/GitBestPractices/#backups | 02:10 |
| → MoziM joined | 02:11 |
| ← Praxi left | 02:15 |
| → swalladge joined | 02:15 |
| ← JeffH left | 02:15 |
| → veegee joined | 02:17 |
| → fission6 joined | 02:19 |
| ← dreiss left | 02:20 |
| → zumba_addict joined | 02:20 |
| ← swalladge left | 02:20 |
| → swalladge joined | 02:21 |
| ← CarlFK left | 02:22 |
| ← Karyon left | 02:23 |
| ← GreenJello left | 02:24 |
| → lagothri1 joined | 02:25 |
| ← konsolebox left | 02:27 |
| ← lagothrix left | 02:28 |
| ← Jackneill left | 02:28 |
| → Jackneill joined | 02:29 |
| ← cagomez left | 02:29 |
| → cagomez joined | 02:29 |
| → konsolebox joined | 02:30 |
| ← finalbeta left | 02:30 |
| → finalbeta joined | 02:31 |
| ← hussam left | 02:32 |
| → GreenJello joined | 02:33 |
| → braderhart joined | 02:33 |
| ← nahtnam left | 02:33 |
| braderhart → Guest13679 | 02:33 |
| → ManiacTwister joined | 02:33 |
| ← dilijev left | 02:34 |
| ← cagomez left | 02:34 |
| → Mrdoor joined | 02:34 |
| → vedu joined | 02:34 |
| → idmistir joined | 02:35 |
| ← idmistir left | 02:35 |
| → idmistir joined | 02:35 |
| ← Peng_ left | 02:35 |
| → hussam joined | 02:35 |
| → dilijev joined | 02:35 |
| ← rossome left | 02:35 |
| ← VSpike left | 02:35 |
| → msonntag joined | 02:35 |
| → ^MillerBoss joined | 02:36 |
| → fahadash joined | 02:36 |
| ← egc left | 02:36 |
| ← jakesyl_mobile left | 02:36 |
| → nahtnam joined | 02:36 |
| → MatthewAllan93 joined | 02:36 |
| → egc joined | 02:36 |
| → Peng_ joined | 02:36 |
| ← scarcry left | 02:37 |
| → jakesyl_mobile joined | 02:37 |
| → xPucTu4 joined | 02:38 |
| → scarcry joined | 02:39 |
| → dmarr joined | 02:39 |
| → angular_mike_2 joined | 02:39 |
| → Klumben joined | 02:40 |
| → linuxdaemon joined | 02:40 |
| ← fission6 left | 02:43 |
| ← GreenJello left | 02:43 |
| → GreenJello joined | 02:44 |
| → winny joined | 02:46 |
| → durham joined | 02:47 |
| ← gruetzkopf left | 02:49 |
| → gruetzkopf joined | 02:49 |
| ← strugee left | 02:49 |
| ← subroot left | 02:50 |
| ← plexigras left | 02:51 |
| ← a3Dman_ left | 02:52 |
| → cagomez joined | 02:53 |
| ← nikio_ left | 02:57 |
| ← dirtyroshi left | 02:58 |
| → m00sehead joined | 03:00 |
| ← m00sehead left | 03:01 |
| → VSpike joined | 03:02 |
| → rossome joined | 03:02 |
| → de-vri-es joined | 03:03 |
| ← durham left | 03:03 |
| → nuc joined | 03:05 |
| → JeffH joined | 03:09 |
| ← JeffH left | 03:11 |
| → profmac joined | 03:14 |
| → YuGiOhJCJ joined | 03:16 |
| ← MACscr left | 03:18 |
| → matlock joined | 03:20 |
| ← matlock left | 03:20 |
| ← netlar left | 03:23 |
| → netlar joined | 03:23 |
| ← cfoch left | 03:35 |
| → shicks_ joined | 03:36 |
| → maryo joined | 03:36 |
| → bergice_ joined | 03:49 |
| → mlopezviedma_ joined | 03:50 |
| ← cagomez left | 03:51 |
| → cagomez joined | 03:51 |
| → Guest73 joined | 03:52 |
| ← maryo left | 03:52 |
| ← mlopezviedma left | 03:53 |
| ← UtilityDave left | 03:54 |
| ← dsdeiz left | 03:54 |
| ← cagomez left | 03:56 |
| → matsaman joined | 03:58 |
| ← matsaman left | 03:58 |
| ← Gustavo6046 left | 04:00 |
| ← Lyqyd left | 04:01 |
| → dpyro joined | 04:02 |
| ← donofrio left | 04:15 |
| ← tangmou left | 04:17 |
| ← dviola left | 04:22 |
| ← yohnnyjoe left | 04:43 |
| ← vdamewood left | 04:46 |
| ← TheRuckus left | 04:51 |
| ← oxguy3 left | 04:51 |
| ← finalbeta left | 04:53 |
| → finalbeta joined | 04:54 |
| → bsaboia joined | 04:57 |
| → inxiti joined | 05:00 |
| → pks_ joined | 05:00 |
| ← pks left | 05:02 |
| pks_ → pks | 05:02 |
| ← Wetmelon left | 05:04 |
| → howdoi joined | 05:08 |
| ← scrptktty left | 05:10 |
| → nolfie joined | 05:16 |
| ← graphene left | 05:19 |
| → graphene joined | 05:20 |
| → strugee joined | 05:21 |
| ← ferdna left | 05:22 |
| → venmx joined | 05:24 |
| → dreiss joined | 05:25 |
| ← Guest73 left | 05:25 |
| → Guest73 joined | 05:27 |
| ← floppydh left | 05:28 |
| → floppydh joined | 05:28 |
| → soee joined | 05:29 |
| → sauvin joined | 05:35 |
| ← venmx left | 05:36 |
| ← _joes_ left | 05:38 |
| ← inovas left | 05:40 |
| → jimmyrcom joined | 05:41 |
| → inovas joined | 05:44 |
| ← hphat left | 05:45 |
| → a0sc0tt joined | 05:47 |
| ← bsaboia left | 05:47 |
| → subhojit777 joined | 05:47 |
| → skisela joined | 05:48 |
| → a3Dman joined | 05:52 |
| → mikedd joined | 05:53 |
| ← doubtful left | 05:56 |
| → |DM| joined | 06:00 |
| ← inxiti left | 06:06 |
| → TheRuckus joined | 06:07 |
| ← scarcry left | 06:08 |
| → scarcry joined | 06:08 |
| ← Puffball left | 06:09 |
| → zais joined | 06:14 |
| → _joes_ joined | 06:14 |
| → DMmd joined | 06:15 |
| → rominronin joined | 06:15 |
| ← thiago left | 06:16 |
| ← |DM| left | 06:17 |
| ← rominronin left | 06:19 |
| → martinus__ joined | 06:19 |
| → rominron_ joined | 06:20 |
| ← speedmann left | 06:20 |
| ← rominron_ left | 06:20 |
| → speedmann joined | 06:20 |
| ← graphene left | 06:20 |
| → rominronin joined | 06:21 |
| → graphene joined | 06:21 |
| ← speedmann left | 06:21 |
| → speedmann joined | 06:21 |
| ← tomfarr left | 06:22 |
| ← speedmann left | 06:22 |
| → speedmann joined | 06:22 |
| → bsaboia joined | 06:23 |
| ← speedmann left | 06:23 |
| → speedmann joined | 06:23 |
| ← speedmann left | 06:24 |
| → speedmann joined | 06:24 |
| ← speedmann left | 06:25 |
| ← gxt left | 06:25 |
| → rchavik joined | 06:26 |
| ← xcm left | 06:32 |
| → JeroenT joined | 06:32 |
| → xcm joined | 06:32 |
| ← gruetzkopf left | 06:37 |
| → gruetzkopf joined | 06:37 |
| ← JeroenT left | 06:37 |
| → JeroenT joined | 06:38 |
| → yohnnyjoe joined | 06:40 |
| ← dreiss left | 06:41 |
| ← yohnnyjoe left | 06:44 |
| → wandering_vagran joined | 06:44 |
| → up_here joined | 06:48 |
| ← bergice_ left | 06:48 |
| ← Ayo left | 06:50 |
| ← GreenJello left | 06:50 |
| → Zarthus joined | 06:52 |
| → MACscr joined | 06:52 |
| → tangmou joined | 06:52 |
| → oxymoron93 joined | 06:53 |
| ← nolfie left | 06:54 |
| ← tangmou left | 06:54 |
| → tangmou joined | 06:54 |
| ← al-damiri left | 06:55 |
| → supernovah joined | 06:57 |
| → cagomez joined | 06:58 |
| → opalepatrick joined | 06:59 |
| ← graphene left | 06:59 |
| ← gruetzkopf left | 06:59 |
| → Oatmeal joined | 06:59 |
| → gruetzkopf joined | 06:59 |
| → graphene joined | 06:59 |
| ← subhojit777 left | 07:02 |
| ← cagomez left | 07:02 |
| ← a0sc0tt left | 07:03 |
| → ZyX-I joined | 07:07 |
| → tig_ joined | 07:07 |
| → staafl_ joined | 07:07 |
| → komonsterko joined | 07:08 |
| ← gruetzkopf left | 07:09 |
| → gruetzkopf joined | 07:09 |
| ← komonsterko left | 07:09 |
| ← ColeW_Picaro left | 07:09 |
| → sysvalve joined | 07:10 |
| ← infinite left | 07:10 |
| ← ZyX-I left | 07:11 |
| ← Arcatech left | 07:13 |
| ← gruetzkopf left | 07:13 |
| → gruetzkopf joined | 07:13 |
| ← jfr left | 07:14 |
| → gxt joined | 07:15 |
| → infinite joined | 07:15 |
| → TomyWork joined | 07:18 |
| → jfr joined | 07:20 |
| → charolastra joined | 07:28 |
| ← Mat001 left | 07:31 |
| ← gruetzkopf left | 07:31 |
| → gruetzkopf joined | 07:32 |
| → schleppel joined | 07:33 |
| ← gruetzkopf left | 07:33 |
| → gruetzkopf joined | 07:33 |
| ← gruetzkopf left | 07:34 |
| → gruetzkopf joined | 07:35 |
| ← moei left | 07:35 |
|
mikedd
| morning o/ | 07:37 |
| → Mat001 joined | 07:37 |
| ← JeroenT left | 07:39 |
| ← schleppel left | 07:39 |
| → schleppel joined | 07:39 |
| → onecoder779981 joined | 07:40 |
| ← schleppel left | 07:41 |
| → JeroenT joined | 07:41 |
| → schleppel joined | 07:41 |
| ← jimmyrcom left | 07:43 |
| ← Guest73 left | 07:45 |
| ← opalepatrick left | 07:47 |
| ← monty left | 07:48 |
| → monty joined | 07:48 |
| ← Zarthus left | 07:48 |
| → j7k6 joined | 07:49 |
| → GeraldW joined | 07:49 |
| → Zarthus joined | 07:49 |
| → jimmyrcom joined | 07:50 |
| → styler2go joined | 07:52 |
| → doubtful joined | 07:52 |
| → dre_ joined | 07:54 |
| → Tobbi joined | 07:55 |
|
tafa2
| hey guys, I'm fairly new to git and am trying to wrap my head around "the best" way to deploy my code. So for example I'm currently coding a small static site locally which I push to the repo, then login into the web hosting environment and pull the code down again - is this how you all do it too? | 07:56 |
|
bremner
| !deploy | 07:58 |
|
gitinfo
| Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html | 07:58 |
| → kes joined | 07:58 |
| ← JeroenT left | 07:59 |
| ← tangmou left | 08:01 |
| → mikecmpbll joined | 08:01 |
| → VladGh_ joined | 08:02 |
| → tangmou joined | 08:03 |
| ← nickenchuggets left | 08:06 |
| → mikemcowie joined | 08:07 |
| ← \void left | 08:08 |
| ← Mat001 left | 08:11 |
| → amosbird joined | 08:15 |
| ← dstw left | 08:15 |
| → dstw joined | 08:17 |
| → nolfie joined | 08:18 |
| ← _icantc_ left | 08:19 |
| → deathwishdave joined | 08:20 |
| ← zlib_is_awesome left | 08:22 |
| ← kegster left | 08:22 |
| ← raulp left | 08:22 |
| → kegster joined | 08:23 |
| → raulp joined | 08:24 |
| → moei joined | 08:25 |
| ← YuGiOhJCJ left | 08:25 |
| → muahah joined | 08:26 |
| ← Tobbi left | 08:27 |
| → hsn joined | 08:28 |
|
hsn
| how to undo staged changes without touching working copy? | 08:28 |
| ← crater2150 left | 08:29 |
|
up_here
| git reset -- file | 08:30 |
| → durre joined | 08:30 |
|
hsn
| yeah, thanks up_here | 08:30 |
|
j416
| hsn: git status will also tell you this | 08:31 |
|
| (if you forget) | 08:31 |
|
hsn
| i just converted repo from bzr after spend yesterday fixing bzr fast export | 08:31 |
|
| converted nicely, tags, branches. | 08:32 |
| ← muahah left | 08:32 |
|
hsn
| what is difference between .gitinore and .git/info/exclude ? | 08:38 |
| → yohnnyjoe joined | 08:41 |
|
sitaram
| hsn: the former is part of the repo -- gets added, committed, pushed, etc.. The latter is purely local to your repo | 08:43 |
| ← yohnnyjoe left | 08:45 |
| ← foul_owl left | 08:45 |
| ← TinkerT left | 08:45 |
| → mescalinum joined | 08:46 |
| → TinkerT joined | 08:47 |
| → tomfarr joined | 08:47 |
| → RougeR joined | 08:52 |
| ← RougeR left | 08:52 |
| → RougeR joined | 08:52 |
| → venmx joined | 08:53 |
| → amirpro joined | 08:57 |
| → T_UNIX joined | 08:57 |
| ← gruetzkopf left | 08:59 |
| → gruetzkopf joined | 09:00 |
| ← xcm left | 09:00 |
| → foul_owl joined | 09:00 |
| → xcm joined | 09:00 |
| → dhollin3 joined | 09:01 |
| ← durre left | 09:03 |
| ← dhollinger left | 09:03 |
| ← goweol left | 09:04 |
| ← felixsanz left | 09:05 |
| → nimbleark joined | 09:06 |
| → rsrx joined | 09:09 |
| → kurkale6ka joined | 09:10 |
| → ZyX-I joined | 09:14 |
| ← catsup left | 09:15 |
| → kerframil joined | 09:15 |
| → catsup joined | 09:15 |
| ← kurkale6ka left | 09:15 |
| → smallville7123 joined | 09:16 |
| ← catsup left | 09:16 |
| ← dakar left | 09:16 |
| → catsup joined | 09:16 |
| → _ADN_ joined | 09:17 |
| → kurkale6ka joined | 09:17 |
| → nemesit|znc joined | 09:17 |
| → dakar joined | 09:18 |
| → Orphis joined | 09:21 |
| ← shinnya left | 09:23 |
| → felixsanz joined | 09:24 |
| ← tangmou left | 09:26 |
| → tangmou joined | 09:26 |
| ← tangmou left | 09:31 |
| ← ZyX-I left | 09:33 |
| → Darcidride joined | 09:34 |
| ← peepsalot left | 09:36 |
| → pR0Ps joined | 09:37 |
| → CodeSlingerPaul joined | 09:38 |
| ← Darcidride left | 09:39 |
| → leeN joined | 09:40 |
| → Darcidride joined | 09:41 |
| ← Darcidride left | 09:44 |
| ← deathwishdave left | 09:45 |
| ← smallville7123 left | 09:48 |
| → Darcidride joined | 09:49 |
| → zulutango joined | 09:51 |
| → nevodka joined | 09:53 |
| ← Darcidride left | 09:54 |
| ← inovas left | 09:54 |
| → Case_Of joined | 09:56 |
| ← ilmostro left | 09:58 |
| → inovas joined | 09:59 |
| ← lankanmon left | 10:01 |
| → plitter joined | 10:01 |
| ← dre_ left | 10:02 |
| → Regon joined | 10:02 |
| ← strugee left | 10:02 |
| → abba joined | 10:03 |
| → ilmostro joined | 10:03 |
| ← onecoder779981 left | 10:07 |
| → onecoder779981 joined | 10:08 |
| → strugee joined | 10:10 |
| → plexigras joined | 10:10 |
| ← xcm left | 10:11 |
| ← mikemcowie left | 10:12 |
| ← BallChang-CN left | 10:12 |
| ← beatzz left | 10:16 |
| → xcm joined | 10:18 |
| ← eblip left | 10:19 |
| ← skisela left | 10:19 |
| ← Kaisyu left | 10:20 |
| ← qrc left | 10:21 |
| → skisela joined | 10:22 |
| ← _joes_ left | 10:23 |
| → ruslangaripov joined | 10:26 |
| ← nolfie left | 10:26 |
| ← skisela left | 10:27 |
| → tangmou joined | 10:32 |
| → tvw joined | 10:33 |
| ← tangmou left | 10:36 |
| ← zulutango left | 10:36 |
| ← kes left | 10:38 |
| ← amirpro left | 10:39 |
| → w3stside| joined | 10:40 |
| ← dstw left | 10:40 |
| → muahah joined | 10:40 |
| ← w3stside| left | 10:41 |
| ← muahah left | 10:41 |
| → yohnnyjoe joined | 10:41 |
| → m00sehead joined | 10:42 |
| → lankanmon joined | 10:43 |
| → Guest16880 joined | 10:44 |
| ← Guest16880 left | 10:44 |
| → jesse| joined | 10:45 |
| ← jesse| left | 10:45 |
| → balrog| joined | 10:46 |
| ← yohnnyjoe left | 10:46 |
| ← balrog| left | 10:46 |
| ← rsrx left | 10:47 |
| → amirpro joined | 10:49 |
| → Guest23519 joined | 10:53 |
| → shinnya joined | 10:53 |
| → kes joined | 10:54 |
| ← Guest23519 left | 10:55 |
| → muahah joined | 10:56 |
| ← stoopkid left | 10:56 |
| ← TomyWork left | 10:57 |
| ← muahah left | 10:57 |
| → physpi| joined | 10:57 |
| → aLeSD_ joined | 10:58 |
| ← leeN left | 11:00 |
| ← physpi| left | 11:01 |
| → Guest49727 joined | 11:03 |
| ← fstd left | 11:03 |
| ← Guest49727 left | 11:04 |
| → fstd joined | 11:04 |
| → smallville7123 joined | 11:06 |
| ← xcm left | 11:07 |
| → eshlox joined | 11:11 |
| ← smallville7123 left | 11:12 |
| → yaewa joined | 11:12 |
| ← yaewa left | 11:12 |
| → mango__ joined | 11:12 |
| ← moei left | 11:13 |
| → crater2150 joined | 11:15 |
| ← DMmd left | 11:15 |
| → amrits_ joined | 11:15 |
| → xcm joined | 11:17 |
| ← TheRuckus left | 11:17 |
| → leeN joined | 11:20 |
| ← MrAureliusR left | 11:23 |
| → MrAureliusR joined | 11:23 |
| ← dpyro left | 11:28 |
| → blur48 joined | 11:28 |
| ← m00sehead left | 11:29 |
| gitinfo set mode: +v | 11:29 |
|
blur48
| I just initialised a new repo and tried to commit, but I keep getting "fatal: could not parse HEAD" errors. I have already tried removed .git and initialising again. | 11:30 |
| ← doubtful left | 11:30 |
| ← onecoder779981 left | 11:32 |
|
up_here
| can you `cat .git/HEAD` ? | 11:33 |
|
blur48
| ref: refs/heads/master | 11:33 |
| → onecoder779981 joined | 11:33 |
|
up_here
| and `git show master` | 11:34 |
|
| at least, does it exist? | 11:34 |
|
blur48
| fatal: bad object master | 11:34 |
|
up_here
| That's not the error message I'd expect after initialising a repo... | 11:37 |
|
blur48
| I already have files there, though. I just haven't committed. | 11:39 |
|
up_here
| how far do you get when you try git checkout -b master ; touch .gitignore ; git add .gitignore ; git commit | 11:40 |
|
blur48
| fatal: A branch named 'master' already exists | 11:42 |
|
up_here
| and without the -b? | 11:43 |
|
blur48
| fatal: reference is not a tree: master | 11:44 |
|
| I can touch .gitignore and stage it, but not commit | 11:44 |
|
up_here
| I doubt your git directory is really empty... (or you've run out of disk space?) | 11:47 |
| → _joes_ joined | 11:49 |
| → fission6 joined | 11:50 |
|
blur48
| the working dir has lots of files, but .git was just created and I have plenty of free space | 11:52 |
| ← MrAureliusR left | 11:52 |
|
_rgn
| 6alk | 11:52 |
| → cdown_ joined | 11:53 |
|
up_here
| Besides working on a branch other than master, I don't know what else to try. | 11:54 |
| ← cdown left | 11:55 |
| cdown_ → cdown | 11:55 |
|
blur48
| could reinstalling git do the trick? | 11:56 |
| → TheRuckus joined | 11:58 |
| ← MoziM left | 11:58 |
|
up_here
| Your error messages are different from mine, so one of us has an outdated version at best. | 11:58 |
| → dreiss joined | 12:00 |
| → dstw joined | 12:00 |
| ← TheRuckus left | 12:01 |
| → vdamewood joined | 12:01 |
| → rafasc joined | 12:02 |
| → Rashad_ joined | 12:02 |
| → muelleme joined | 12:04 |
| ← blur48 left | 12:04 |
| ← dstw left | 12:07 |
| → m00sehead joined | 12:08 |
| ← vdamewood left | 12:10 |
| → CheckDavid joined | 12:12 |
| ← zumba_addict left | 12:13 |
| ← fission6 left | 12:14 |
| → eblip joined | 12:14 |
| → Wetmelon joined | 12:18 |
| ← gruetzkopf left | 12:18 |
| → TomyWork joined | 12:19 |
| → gruetzkopf joined | 12:21 |
| ← onecoder779981 left | 12:22 |
| → TheRuckus joined | 12:23 |
| ← TheRuckus left | 12:24 |
| → TheRuckus joined | 12:24 |
| Rashad_ → Rashad | 12:27 |
| ← TheRuckus left | 12:29 |
| ← dreiss left | 12:29 |
| ← howdoi left | 12:29 |
| → TheRuckus joined | 12:31 |
| → paws__ joined | 12:33 |
| → sdwrage joined | 12:34 |
| ← Rashad left | 12:35 |
| → yohnnyjoe joined | 12:42 |
| → emihir0 joined | 12:43 |
| ← emihir0 left | 12:43 |
| ← yohnnyjoe left | 12:46 |
| → vdamewood joined | 12:47 |
| → RoriconKnight joined | 12:48 |
| ← TomyWork left | 12:49 |
| ← RoriconKnight left | 12:49 |
| → RoriconKnight joined | 12:50 |
| → TomyWork joined | 12:50 |
| ← RoriconKnight left | 12:51 |
| → RoriconKnight joined | 12:51 |
| → tangmou joined | 12:51 |
| → smallville7123 joined | 12:55 |
| → Rashad joined | 12:55 |
| → dc13ff joined | 12:55 |
| ← tangmou left | 12:56 |
| → tangmou joined | 12:56 |
| ← gruetzkopf left | 12:56 |
| → gruetzkopf joined | 12:57 |
| ← Rashad left | 12:59 |
| → Rashad joined | 13:00 |
| ← gruetzkopf left | 13:00 |
| → gruetzkopf joined | 13:00 |
| ← m00sehead left | 13:00 |
| ← RoriconKnight left | 13:01 |
| ← smallville7123 left | 13:01 |
| → RoriconKnight joined | 13:01 |
| ← RoriconKnight left | 13:02 |
| → m00sehead joined | 13:02 |
| → RoriconKnight joined | 13:03 |
| ← gruetzkopf left | 13:03 |
| → gruetzkopf joined | 13:04 |
|
deepy
| I have a branch that contains a change to a bunch of XML files which is correct, but it also contains changes to some java files, is there any simple way to rewrite the history and discard the java changes so I can merge and get this up to date? | 13:05 |
| ← gruetzkopf left | 13:09 |
| → gruetzkopf joined | 13:09 |
| ← muelleme left | 13:09 |
|
rafasc
| deepy: yes. But 'simple' will depend on how your commits are made. | 13:10 |
|
| deepy: are these java commits intermingled with the xml commits? | 13:10 |
| ← tangmou left | 13:10 |
|
rafasc
| or were they added separately? | 13:10 |
| → dstw joined | 13:11 |
| ← Perflosopher left | 13:11 |
| → Perflosopher joined | 13:11 |
| → gde33 joined | 13:12 |
| ← Perflosopher left | 13:12 |
| → Perflosopher joined | 13:13 |
|
rafasc
| If they're nice and isolated commits, you can rebase and drop the commits. | 13:14 |
|
deepy
| intermingled | 13:14 |
|
rafasc
| If they're not you'll need to do something along the lines of !remove_sensitive for those .xml files | 13:14 |
|
deepy
| I've found a commit which I think is the biggest offender, and I'm currently editing it :P | 13:15 |
| ← gruetzkopf left | 13:15 |
|
rafasc
| deepy: when I said intermingled I meant if you have commits that change both java and xml on the same commit. | 13:15 |
| → gruetzkopf joined | 13:15 |
| → staafl__ joined | 13:16 |
| → LionsMane joined | 13:16 |
| → bathtub_shark joined | 13:17 |
| ← staafl_ left | 13:18 |
| → Raed|Laptop joined | 13:18 |
| → Bob8989|2 joined | 13:18 |
| ← Perflosopher left | 13:19 |
| → Perflosopher joined | 13:19 |
| → muahah joined | 13:20 |
| ← RoriconKnight left | 13:21 |
| ← vdamewood left | 13:21 |
| → noteness joined | 13:22 |
| ← Perflosopher left | 13:22 |
| → Perflosopher joined | 13:22 |
| ← gxt left | 13:22 |
| ← muahah left | 13:24 |
| ← soee left | 13:24 |
| → JimmyRcom_ joined | 13:24 |
| → gxt joined | 13:24 |
| → RoriconKnight joined | 13:24 |
| ← Perflosopher left | 13:25 |
| → Perflosopher joined | 13:25 |
| ← JimmyRcom_ left | 13:25 |
| ← oxymoron93 left | 13:25 |
| → subroot joined | 13:26 |
| ← Wetmelon left | 13:26 |
| ← graphene left | 13:26 |
| → graphene joined | 13:26 |
| ← graphene left | 13:27 |
| ← Perflosopher left | 13:27 |
| → Mat001 joined | 13:27 |
| → graphene joined | 13:27 |
|
up_here
| I have origin/master and master pointing to A, then I do git commit --amend. Will git rebase origin/master "undo" the amend? | 13:27 |
| ← gruetzkopf left | 13:28 |
| → gruetzkopf joined | 13:28 |
| → Perflosopher joined | 13:29 |
| → PioneerAxon_ joined | 13:30 |
| ← PioneerAxon left | 13:30 |
| ← eshlox left | 13:31 |
| → crose joined | 13:34 |
| → Eryn_1983_FL joined | 13:35 |
| → partikkel joined | 13:41 |
| → Yoda| joined | 13:42 |
| → MyIgel joined | 13:42 |
| ← graphene left | 13:42 |
| → graphene joined | 13:42 |
| → fluxAeon joined | 13:43 |
| ← xcm left | 13:44 |
| → xcm joined | 13:44 |
| ← graphene left | 13:44 |
| ← MyIgel left | 13:45 |
| ← Yoda| left | 13:45 |
| → graphene joined | 13:45 |
| ← ruslangaripov left | 13:46 |
|
fuchstronaut
| how do i rebase everything after A to (including) B ontop of master? | 13:46 |
| ← TomyWork left | 13:48 |
|
up_here
| fuchstronaut, | 13:51 |
|
| git rebase --onto master A B | 13:51 |
| ← rchavik left | 13:51 |
| ← subroot left | 13:51 |
| → greyline joined | 13:53 |
|
greyline
| hi all | 13:53 |
| dhollin3 → dhollinger | 13:53 |
|
greyline
| how can I use sourcetree? | 13:53 |
|
| it asks bitbucket server or atlassian account, but I just want to use this with aws git repo | 13:53 |
| → muelleme joined | 13:53 |
|
up_here
| doubleclick on the icon? | 13:53 |
| ← graphene left | 13:53 |
| → zys joined | 13:54 |
| → graphene joined | 13:54 |
| ← graphene left | 13:55 |
| → graphene joined | 13:55 |
| ← amirpro left | 13:56 |
| → amirpro joined | 13:56 |
| ← kurkale6ka left | 13:58 |
| ← amirpro left | 14:00 |
| → amirpro joined | 14:01 |
|
greyline
| "Please commit your changes or stash them before you merge." | 14:01 |
|
| what the hell means "stash them"? | 14:01 |
| → Anticom joined | 14:01 |
| ← crater2150 left | 14:01 |
| → drot| joined | 14:02 |
| ← m1r4g3_ left | 14:02 |
|
fuchstronaut
| up_here: thank you !! | 14:02 |
|
nedbat
| greyline: git stash --help | 14:04 |
| → kurkale6ka joined | 14:04 |
| ← drot| left | 14:05 |
| → Mir4g3 joined | 14:05 |
| ← _joes_ left | 14:06 |
| → stoopkid joined | 14:06 |
|
greyline
| okay, I truly hate version control systems | 14:08 |
| ← bsaboia left | 14:08 |
|
greyline
| give me errors almost everytime for files I didn't change or commit | 14:08 |
| → stutter_ joined | 14:08 |
|
greyline
| not enough user friendly at all | 14:08 |
| → subroot joined | 14:09 |
|
greyline
| another informatic system which needs tons of hours reading forums, websites, etc. to learn and understand | 14:09 |
| → scrptktty joined | 14:09 |
| → michagogo| joined | 14:09 |
|
rafasc
| greyline: you may consider switching careers to something that doesn't involve coding. | 14:09 |
|
nedbat
| greyline: if you give us clear information about the problem, someone here can help | 14:09 |
| ← michagogo| left | 14:10 |
|
rafasc
| because that's the bread and butter of every programmer in the world. | 14:10 |
|
greyline
| rafasc: I know, but I always nervous and struggling about that | 14:10 |
|
| nedbat: it says when pulling "error: Your local changes to the following files would be overwritten by merge:" | 14:11 |
| → dsdeiz joined | 14:11 |
| ← dsdeiz left | 14:11 |
| → dsdeiz joined | 14:11 |
|
greyline
| and "Please commit your changes or stash them before you merge." | 14:11 |
|
nedbat
| greyline: what files? | 14:11 |
|
greyline
| I have already committed everything... | 14:11 |
|
nedbat
| greyline: how did you commit them? What does "git status" show? | 14:12 |
|
greyline
| important files, containing work (not scripts) | 14:12 |
|
rafasc
| that means you have files locally with changes, but the merge wants to overwrite those files. So git aborts to give you a chance to deal with it. | 14:12 |
|
nedbat
| greyline: you seem to be saying scripts are not important files, which confuses me, but let's investigaste. | 14:12 |
|
doug16k
| greyline, he's right, this is one of the super-helpful rooms | 14:13 |
| ← Arcaelyx_ left | 14:13 |
|
doug16k
| I know approximately nothing about git compared to most of the people here :) | 14:14 |
| ← a3Dman left | 14:14 |
| → Arcaelyx joined | 14:14 |
|
greyline
| nedbat: unity files. scene files | 14:14 |
|
| I have commited my scripts, tried to pull things and some meta and other files were in conflict (not my work) | 14:15 |
| ← mud left | 14:15 |
|
greyline
| then I deleted the conflicted files and without commit obviously I pulled again, but it says again and again that some files are in conflict | 14:16 |
|
| which is weird, since I didn't commit those... | 14:16 |
| → rsrx joined | 14:16 |
|
rafasc
| greyline: how do you commit? are you using any flags like -a or -- . ? | 14:16 |
| → PedolordIV joined | 14:17 |
|
up_here
| If you are in conflict, you have to solve it or abort it. Try `git merge --abort` | 14:17 |
|
greyline
| and it asks me to commit... | 14:17 |
|
| rafasc: nope, since I afraid from git console like fire and I use Sourcetree instead | 14:17 |
|
| so I don't know what parameters use that for commiting and pulling, etc | 14:17 |
|
| but I clone the whole project now instead | 14:18 |
|
| maybe I commited accidently my other files also... | 14:18 |
|
| and they're conflicting | 14:18 |
| → HarryS| joined | 14:18 |
| ← HarryS| left | 14:19 |
| ← PedolordIV left | 14:19 |
|
rafasc
| greyline: can you paste git status? | 14:20 |
| ← up_here left | 14:20 |
|
greyline
| rafasc: I don't even know how to ask that | 14:20 |
| → a3Dman joined | 14:20 |
|
greyline
| since sourcetree doesn't have that button... | 14:20 |
| ← RoriconKnight left | 14:20 |
| → greggerz joined | 14:20 |
| → up_here joined | 14:21 |
| → RoriconKnight joined | 14:21 |
| → fission6 joined | 14:21 |
| ← upperdeck left | 14:21 |
|
rafasc
| I don't use sourcetree, if you can deal with using the console, I and certainly others will probably help you. | 14:21 |
| → weird_error joined | 14:21 |
|
up_here
| hm... #sourcetree is pretty much empty, too. | 14:22 |
| ← PioneerAxon_ left | 14:22 |
|
rafasc
| because there's a couple of things we may need to check to make sure you do the correct thing. | 14:22 |
|
| and it's hard to know the state of your repo, if you are not able to tell us information. | 14:23 |
| → PioneerAxon joined | 14:23 |
| → AndresInSpace joined | 14:24 |
| → roler joined | 14:26 |
| ← Bob8989|2 left | 14:27 |
| → smallville7123 joined | 14:29 |
| → LadyElusive| joined | 14:29 |
| → crater2150 joined | 14:29 |
| ← muelleme left | 14:30 |
| → donofrio joined | 14:30 |
| → Ayo joined | 14:30 |
| ← hsn left | 14:31 |
| ← LadyElusive| left | 14:31 |
| ← javlens left | 14:31 |
| → Connection joined | 14:32 |
| → KeyJoo joined | 14:34 |
| ← Connection left | 14:35 |
| → soee joined | 14:35 |
| ← roler left | 14:36 |
| → tjbp joined | 14:37 |
| ← crater2150 left | 14:38 |
| → ghost43 joined | 14:38 |
| ← smallville7123 left | 14:39 |
| → axsuul joined | 14:40 |
| → vdamewood joined | 14:41 |
| ← graphene left | 14:41 |
| → graphene joined | 14:42 |
| ← RoriconKnight left | 14:43 |
| → yohnnyjoe joined | 14:43 |
| → thiago joined | 14:44 |
| → crater2150 joined | 14:45 |
| → ABIX_Adamj joined | 14:46 |
| ← ABIX_Adamj left | 14:46 |
| → RoriconKnight joined | 14:47 |
| ← VladGh_ left | 14:48 |
| ← yohnnyjoe left | 14:48 |
| ← RoriconKnight left | 14:48 |
|
nedbat
| I want information that I usually get from git log, but i want it in machine-readable format. what other command do I use? | 14:48 |
| → VladGh joined | 14:49 |
|
greyline
| i have solved that | 14:51 |
|
| I was afraid again more, than I should have | 14:52 |
| → rpage joined | 14:52 |
| → beefjoe joined | 14:52 |
| ← paws__ left | 14:52 |
| ← jhaenchen_temp left | 14:53 |
|
rafasc
| nedbat: depends on the information you want to get. | 14:53 |
| → jhaenchen_temp joined | 14:53 |
| ← Regon left | 14:53 |
|
nedbat
| rafasc: i want hash, message, author. i think rev-list is it? | 14:54 |
|
rafasc
| nedbat: usually, it's git rev-list --format | 14:54 |
|
| but you may want to use log --format for that. rev-list is a bit harder to parse because it always prints the hash, even if you don't specify it on the format argument. | 14:55 |
|
nedbat
| rafasc: yeah, i'm seeing that.... | 14:55 |
| ← zys left | 14:55 |
| ← xcm left | 14:57 |
| → xcm joined | 14:58 |
| ← jhaenchen_temp left | 14:58 |
| ← crater2150 left | 14:58 |
| ← mango__ left | 14:58 |
| → g00s joined | 14:58 |
| → crater2150 joined | 14:58 |
| ← kerframil left | 14:59 |
| ← TheRuckus left | 15:00 |
| ← graphene left | 15:01 |
| → graphene joined | 15:02 |
| ← zais left | 15:02 |
| ← nuc left | 15:02 |
| ← tig_ left | 15:03 |
| → nuc joined | 15:04 |
| ← Anticom left | 15:04 |
| → knownasilya__ joined | 15:04 |
| ← subroot left | 15:04 |
| ← dc13ff left | 15:05 |
| → durham joined | 15:05 |
| → wpcarro joined | 15:07 |
| ← durham left | 15:07 |
| ← Rashad left | 15:07 |
| ← m00sehead left | 15:08 |
| → durham joined | 15:08 |
| ← wpcarro left | 15:08 |
| → smallville7123 joined | 15:08 |
| → bsaboia joined | 15:08 |
| → m00sehead joined | 15:09 |
| → wpcarro joined | 15:09 |
| → jhaenchen_temp joined | 15:09 |
| → maryo joined | 15:09 |
| → Geminizer joined | 15:10 |
| → matsaman joined | 15:10 |
| → zsoc joined | 15:10 |
| ← zsoc left | 15:10 |
| → zsoc joined | 15:10 |
| ← matsaman left | 15:11 |
| ← amirpro left | 15:11 |
| ← graphene left | 15:13 |
| → graphene joined | 15:13 |
| → lanlink joined | 15:13 |
| ← maryo left | 15:14 |
| → Xoc3 joined | 15:16 |
| ← Xoc3 left | 15:16 |
| ← Tobbi_ left | 15:16 |
| ← thiago left | 15:16 |
| ← sdwrage left | 15:17 |
| ← smallville7123 left | 15:17 |
| ← ShockingIsntIt left | 15:18 |
| ← gruetzkopf left | 15:20 |
| → gruetzkopf joined | 15:21 |
| → Cory26 joined | 15:22 |
| ← Cory26 left | 15:22 |
| ← weird_error left | 15:23 |
| ← gruetzkopf left | 15:24 |
| → gruetzkopf joined | 15:24 |
| ← shinnya left | 15:25 |
| → weird_error joined | 15:25 |
| ← graphene left | 15:25 |
| → graphene joined | 15:26 |
| → muelleme joined | 15:26 |
| → cfoch joined | 15:27 |
| ← wpcarro left | 15:29 |
| → smallville7123 joined | 15:29 |
| → prepend joined | 15:31 |
| → wpcarro joined | 15:32 |
| ← muelleme left | 15:32 |
| → wizardedit joined | 15:32 |
| ← wizardedit left | 15:32 |
| → wizardedit joined | 15:32 |
| ← staafl__ left | 15:33 |
| → jesst joined | 15:35 |
| ← gruetzkopf left | 15:35 |
| → gruetzkopf joined | 15:36 |
| → jimi_ joined | 15:36 |
| ← wpcarro left | 15:38 |
| ← gruetzkopf left | 15:39 |
| → gruetzkopf joined | 15:40 |
| → muahah joined | 15:40 |
| ← muahah left | 15:41 |
| → Forty-3_ joined | 15:43 |
| → wpcarro joined | 15:43 |
| → a0sc0tt joined | 15:44 |
| ← erratic left | 15:45 |
| ← gruetzkopf left | 15:45 |
| → gruetzkopf joined | 15:45 |
| ← gruetzkopf left | 15:46 |
| → gruetzkopf joined | 15:46 |
| ← TinkerT left | 15:47 |
| ← wpcarro left | 15:47 |
| ← gruetzkopf left | 15:47 |
| → TinkerT joined | 15:47 |
| → gruetzkopf joined | 15:48 |
| → luke_penn joined | 15:48 |
| ← donofrio left | 15:50 |
| → lanlink_ joined | 15:50 |
| ← tvw left | 15:50 |
| → donofrio joined | 15:51 |
| ← jesst left | 15:51 |
| ← lanlink left | 15:52 |
| ← donofrio left | 15:52 |
| ← shicks_ left | 15:53 |
| ← foul_owl left | 15:53 |
| ← gruetzkopf left | 15:53 |
| ← hays left | 15:54 |
| → gruetzkopf joined | 15:54 |
| → donofrio joined | 15:54 |
| → patate4 joined | 15:54 |
| ← patate4 left | 15:54 |
| → hays joined | 15:55 |
| ← Dreamer3 left | 15:56 |
| ← gruetzkopf left | 15:56 |
| → gruetzkopf joined | 15:57 |
| ← graphene left | 15:57 |
| → shicks2525 joined | 15:57 |
| ← bsaboia left | 15:57 |
| → graphene joined | 15:57 |
| → thiago joined | 15:57 |
| → TehNut13 joined | 15:58 |
| ← TehNut13 left | 15:58 |
| → ekl- joined | 15:58 |
| ← ekl- left | 15:58 |
| → duckgoose7 joined | 15:58 |
| ← duckgoose7 left | 15:58 |
| → horse joined | 15:58 |
| ← horse left | 15:58 |
| ← T_UNIX left | 15:59 |
| ← Eryn_1983_FL left | 15:59 |
| → Madcotto6 joined | 15:59 |
| ← Madcotto6 left | 15:59 |
| ← dmone left | 15:59 |
| ← durham left | 16:00 |
| ← weird_error left | 16:00 |
| ← netj left | 16:00 |
| → netj joined | 16:00 |
| → durham joined | 16:00 |
| → Tobbi joined | 16:01 |
| → maestrojed joined | 16:02 |
| ← smallville7123 left | 16:02 |
| → cagomez joined | 16:02 |
| ← luke_penn left | 16:02 |
| ← sysvalve left | 16:03 |
| ← Ayo left | 16:04 |
| → Ayo joined | 16:04 |
| ← lanlink_ left | 16:05 |
| ← gruetzkopf left | 16:06 |
| → gruetzkopf joined | 16:06 |
| → Guest73 joined | 16:07 |
| → newbsie joined | 16:07 |
| ← graphene left | 16:08 |
| → graphene joined | 16:08 |
|
newbsie
| I have a question. I have recently merged a feature branch into master branch, the master branch then had several commits. Now I want to work on my feature branch, and need the changes from master. Is the only way to bring that in via merge or rebase? | 16:08 |
|
| All my research seems to suggest that, but I wanted to make sure I understood the git process properly. | 16:09 |
| ← wandering_vagran left | 16:09 |
| → pd09041999 joined | 16:09 |
| ← gruetzkopf left | 16:09 |
| → gruetzkopf joined | 16:10 |
| → foul_owl joined | 16:10 |
| → applecrumble joined | 16:10 |
| → wandering_vagran joined | 16:10 |
| ← charolastra left | 16:12 |
|
rafasc
| newbsie: since you already merged, can't you just create a brand new branch from the new master tip? | 16:12 |
| → Eryn_1983_FL joined | 16:13 |
|
rafasc
| the alternative is to either merge master back into feature, or cherry-pick the commits that introduced the changes you need. | 16:13 |
|
| both will make your history confusing if you use them too many times. | 16:13 |
|
newbsie
| rafasc: Frankly, I thought once I merged the branch is no more, but I tried to create the feature branch (with the same name), it just switched me over to the older branch stuck at the older merge commit | 16:14 |
| ← inovas left | 16:14 |
|
rafasc
| merging only affects the branch you have checked out. | 16:14 |
| → zais joined | 16:15 |
| → fairuz joined | 16:15 |
|
rafasc
| git checkout master; git merge dev; will bring the changes from dev into master, but dev is left alone. | 16:15 |
| ← stoopkid left | 16:16 |
| → Praxi joined | 16:17 |
|
newbsie
| rafasc: So do most developers just merge or rebase master into feature? | 16:17 |
| ← vdamewood left | 16:17 |
|
newbsie
| rafasc: I'm trying to understand the proper workflow with git. | 16:17 |
|
rafasc
| newbsie: that's the problem. There isn't a proper workflow for git. | 16:17 |
|
| git supports multiple ways to do stuff. | 16:18 |
| ← applecrumble left | 16:18 |
| → applecrumble joined | 16:18 |
|
newbsie
| rafasc: So what do people do when they want to keep their feature branch up to date with master? | 16:18 |
|
rafasc
| newbsie: it depends. | 16:19 |
| ← stutter_ left | 16:19 |
|
rafasc
| newbsie: if it's a "private" branch, by private I mean a branch you know no one else will be using... You can rebase your private branch onto master. | 16:20 |
| → inovas joined | 16:20 |
| ← up_here left | 16:20 |
|
rafasc
| this will rewrite the branch commits, to make it look as if they were made on the most recent master. | 16:20 |
|
| this is a form of history !rewrite | 16:21 |
|
gitinfo
| Rewriting public history is not recommended. Everyone who has pulled the old history will have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push --force-with-lease <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum | 16:21 |
| ← shicks2525 left | 16:22 |
|
rafasc
| Since you already merged into master, the commits from your branch are reachable from master. So rebase is a bit out of the question. | 16:22 |
| → hsn joined | 16:22 |
|
newbsie
| rafasc: Are there any reasons to keep branch history (as a separate branch)? | 16:23 |
| → wpcarro joined | 16:23 |
| → jesst joined | 16:23 |
| → amirpro joined | 16:23 |
| ← wandering_vagran left | 16:23 |
|
rafasc
| newbsie: can you reformulate your question? I am not sure what you mean by keep branch history as a separate branch.. | 16:23 |
| → wandering_vagran joined | 16:24 |
|
hsn
| i have tags with numeric names like 20 if i reference it like 28^{tag}..HEAD i got error. expected tag type but object dereferences to tree type | 16:24 |
| → Regon joined | 16:24 |
|
newbsie
| rafasc: So when I look in the graph, I can see each branch commit and when it gets merged back into the master. With a rebase I remove all of that branch history, and it looks like I was working on the master branch all along. | 16:24 |
|
| rafasc: by branch history, I mean it appears in the graph as a separate work, then remerged back. | 16:25 |
| → rorx2 joined | 16:26 |
| ← rorx2 left | 16:26 |
| → vdamewood joined | 16:26 |
| ← amirpro left | 16:26 |
| → TheRuckus joined | 16:26 |
| → amirpro joined | 16:27 |
|
rafasc
| newbsie: got it, It's mostly developer/project preference. You can do both actually. You can rebase your private branch on top of master, (that will essentially make it linear after master). Go to master and merge "private" with --no-ff | 16:27 |
|
| newbsie: that way you force git to make a merge commit, registering that that work as done separately. | 16:28 |
| ← abba left | 16:28 |
| → upperdeck joined | 16:29 |
| ← Regon left | 16:30 |
| ← wpcarro left | 16:31 |
|
newbsie
| rafasc: So my research seems to indicate this --no-ff flag is to not do a fast forward merge and force a merge commit instead. | 16:31 |
|
rafasc
| hsn: $git for-each-ref refs/tags/28; say commit? If yes, you're using lightweight tags.. | 16:32 |
| → stutter_ joined | 16:32 |
| ← mikecmpbll left | 16:33 |
|
hsn
| yes using refs/tags works | 16:33 |
|
newbsie
| rafasc: I guess I really should ask you, in my situation. I wanted to branch off head of master, but re-use my existing branch name (that was previously merged) and keep the branching history. Is that possible? I think a lot of small merges from master into feature makes it messy. | 16:33 |
|
rafasc
| hsn: you didn't answer my question. | 16:33 |
| ← Tobbi left | 16:33 |
|
hsn
| it say commit | 16:34 |
| ← lss8 left | 16:35 |
|
rafasc
| newbsie: to clarify what I said before, you can rebase your private branch, and it will write on top of the new master, if you tried to merge now, it would just fast foward. (no merge commit would be created). | 16:35 |
| → Regon joined | 16:36 |
|
rafasc
| newbsie: So you can get the best of both worlds by rebasing privately to keep it up to date, and force a merge commit with --no-ff to register the work was done in a separate branch. | 16:36 |
| → Enphuego joined | 16:37 |
| ← gruetzkopf left | 16:37 |
|
rafasc
| but once you merge, you shouldn't rebase again. Because those commits will be reachable from master. And you shouldn't rewrite public history. | 16:38 |
| → gruetzkopf joined | 16:38 |
|
rafasc
| hsn: git has two kinds of tags, annotated and lightweight. annotated are the ones considered ^{tag}. The other are just references to commits. If this is about versioning, you should be using annotated instead of lightweight tags.. | 16:40 |
| ← Regon left | 16:40 |
| ← kurkale6ka left | 16:41 |
| ← jesst left | 16:42 |
| ← jimi_ left | 16:42 |
| → maryo_ joined | 16:43 |
|
rafasc
| newbsie: I agree with merging back from master makes a mess. If you already merged, you can delete the old branch and create a new with the same name at the new tip. (that may be unwise though, as it may be confusing if you ever need to refer back to this branch). | 16:44 |
| ← _ADN_ left | 16:44 |
| ← fairuz left | 16:44 |
| → salasrod joined | 16:44 |
| ← gxt left | 16:45 |
| ← korzq left | 16:49 |
|
newbsie
| rafasc: Thank you for your help. It went ahead and tried it on a copied repo to make sure it worked the way I intended it, and it looks great. Really appreciate your help! :) | 16:50 |
| ← flaviodesousa left | 16:50 |
| ← Geminizer left | 16:50 |
|
rafasc
| newbsie: which one did you choose? | 16:50 |
| → GreenJello joined | 16:50 |
| → Regon joined | 16:51 |
|
newbsie
| rafasc: I choose to merge, which fast forwards the branch. Then when I have changes in my branch, then I merge master into feature using --no-ff | 16:51 |
| → Ontaine joined | 16:51 |
| → \void joined | 16:52 |
| ← graphene left | 16:52 |
|
newbsie
| rafasc: I think will rebase when I don't want to keep the branch history. | 16:52 |
| → ams__ joined | 16:52 |
| → MrNePruM joined | 16:52 |
| → graphene joined | 16:53 |
| → Randy23 joined | 16:53 |
| ← Randy23 left | 16:53 |
| ← minionofgozer_ left | 16:53 |
| ← MrNePruM left | 16:53 |
| → MoziM joined | 16:54 |
|
rafasc
| !lol | 16:55 |
|
gitinfo
| A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all | 16:55 |
| → minionofgozer joined | 16:56 |
| ← floppydh left | 16:56 |
|
rafasc
| ^ this is handy when inspecting the history. | 16:56 |
| ← beefjoe left | 16:56 |
|
newbsie
| rafasc: My mind cannot comprehend that. | 16:57 |
|
rafasc
| newbsie: that means you're not being careful with your history. :P | 16:57 |
|
| can you paste it? | 16:57 |
| ← Guest73 left | 16:58 |
| → Guest73 joined | 16:58 |
|
newbsie
| rafasc: It's not that advanced. It's just me. :) | 17:00 |
| ← graphene left | 17:00 |
|
newbsie
| rafasc: I use Sourcetree since I got a Bitbucket account and that does a good job of displaying the graph. | 17:00 |
|
rafasc
| newbsie: it does get confusing, especially if you merge back and forward.. (master to feature, feature to master) | 17:01 |
| BrAsS_mO- → BrAss_mOnKEy | 17:01 |
| → dpirch joined | 17:01 |
| → graphene joined | 17:01 |
|
newbsie
| rafasc: In my case, I started with two separate repositories, that I merged into a new one to keep the history. | 17:01 |
| → jesst joined | 17:02 |
|
newbsie
| rafasc: So you have these two dangling branches that didn't start from master, but merged into master, and now branching out again. | 17:02 |
| ← dpirch left | 17:02 |
|
rafasc
| they're called root commits. | 17:03 |
| → dpirch joined | 17:03 |
|
rafasc
| not very usual, But I guess it makes sense in your case. | 17:03 |
| ← dpirch left | 17:04 |
| → dpirch joined | 17:04 |
|
newbsie
| rafasc: Did not know that. Yeah, I started with two repositories thinking it is better to keep them separate, but it was a pain to keep separate and there was little reason to do so other than try and keep them contained. To speed things up I just did root commits ;) | 17:05 |
|
rafasc
| I remember there was a email from the linux kernel mailing list where Linus was a bit angry because someone accidentally introduced a root commit. heh | 17:05 |
| → Gustavo6046 joined | 17:06 |
|
newbsie
| lol... He made the tool. | 17:06 |
|
rafasc
| root commits are the ones listed by: git rev-list --max-parents=0; | 17:06 |
| ← Gustavo6046 left | 17:07 |
| ← fission6 left | 17:07 |
| → Gustavo6046 joined | 17:07 |
|
newbsie
| That command didn't work for me. | 17:07 |
|
rafasc
| forgot --all; | 17:09 |
| ← jhaenchen_temp left | 17:13 |
| → jhaenchen_temp joined | 17:13 |
| → fission6 joined | 17:14 |
| ← leeN left | 17:15 |
| ← fission6 left | 17:20 |
| → kfoonamalik joined | 17:21 |
| ← maryo_ left | 17:22 |
|
rafasc
| newbsie: http://lkml.iu.edu/hypermail/linux/kernel/1603.2/01926.html | 17:22 |
|
| heh | 17:22 |
| ← KeyJoo left | 17:23 |
| → KeyJoo joined | 17:25 |
| ← pd09041999 left | 17:26 |
| → muelleme joined | 17:26 |
| ← Ontaine left | 17:27 |
| → diamondjed joined | 17:29 |
| → fission6 joined | 17:29 |
| ← maestrojed left | 17:30 |
| ← muelleme left | 17:31 |
| → shinnya joined | 17:33 |
| → staafl__ joined | 17:33 |
| ← gruetzkopf left | 17:35 |
| → gruetzkopf joined | 17:35 |
| → khmarbaise joined | 17:35 |
| → gxt joined | 17:38 |
| ← polman left | 17:41 |
| → Kysia joined | 17:41 |
| ← shinnya left | 17:41 |
| ← venmx left | 17:42 |
| ← fission6 left | 17:42 |
|
newbsie
| rafasc: lol. "silly new root". | 17:45 |
|
| rafasc: The irony is just too good! | 17:45 |
| → sveinse joined | 17:45 |
| ← gruetzkopf left | 17:46 |
| → gruetzkopf joined | 17:46 |
|
rafasc
| newbsie: http://lkml.iu.edu/hypermail/linux/kernel/1603.2/01906.html | 17:47 |
|
| this part is better. | 17:47 |
| ← CheckDavid left | 17:47 |
| → lmartin9227 joined | 17:48 |
| ← lmartin9227 left | 17:48 |
|
sveinse
| I had expected that running git fetch and then git checkout master would get master in sync with origin/master, but apparently I'm mistaking | 17:49 |
|
_ikke_
| yeah, just checking out a branch does not make it up-to-date | 17:51 |
| ← graycat left | 17:51 |
|
sveinse
| _ikke_: why? | 17:51 |
|
_ikke_
| you either need to merge the changes in (and sometimes that can fast-forward), or you need to rebase your lcoal branch on top of the other | 17:51 |
|
| if you checkout master, you do just that, check out master | 17:52 |
|
newbsie
| rafasc: That's hilarious. Pure comedy gold! What kind of insane tool? lmao! Intentional broken workflow by nvidia? XD | 17:52 |
| → fission6 joined | 17:52 |
| → shicks2525 joined | 17:52 |
|
sveinse
| What is the procedure of getting from a detached head state to head on a branch? | 17:53 |
|
_ikke_
| sveinse: if you did not commit anything, you can just checkout the branch again | 17:53 |
|
sveinse
| _ikke_: no, it just stays in being behind origin/master. So perhaps I need to git fetch; git checkout master; git pull | 17:55 |
|
_ikke_
| sveinse: git pull = git fetch + git merge | 17:56 |
| → pheizax joined | 17:56 |
| ← pheizax left | 17:56 |
|
_ikke_
| git checkout master; git pull | 17:56 |
|
| for example | 17:56 |
|
sveinse
| (because running the normal git pull to get to master on a detached head repo ends up being not what you want, since it runs git merge on the detached head) | 17:56 |
|
_ikke_
| but doing a fetch first and inspect hwat you are merging is recommended | 17:56 |
| → yohnnyjoe joined | 18:00 |
| ← fission6 left | 18:00 |
| ← rominronin left | 18:01 |
| → Pilfers joined | 18:01 |
| ← Pilfers left | 18:01 |
| → avelardi22 joined | 18:01 |
| ← avelardi22 left | 18:01 |
| ← gruetzkopf left | 18:02 |
| → gruetzkopf joined | 18:02 |
| ← yohnnyjoe left | 18:05 |
| → Sasazuka joined | 18:08 |
| ← Regon left | 18:14 |
| → publio joined | 18:14 |
| ← Khisanth left | 18:17 |
| → Puffball joined | 18:17 |
| → shenglong11 joined | 18:17 |
| ← shenglong11 left | 18:17 |
| ← m00sehead left | 18:17 |
| → GHABFUW0 joined | 18:17 |
| → m00sehead joined | 18:18 |
| ← stutter_ left | 18:18 |
| → joebobjoe joined | 18:18 |
| ← elichai2 left | 18:18 |
|
joebobjoe
| anyone else think the documentation for git ls-files -i could be improved a tad? | 18:19 |
|
| the second and third sentences could be merged | 18:20 |
| → al-damiri joined | 18:21 |
| ← gruetzkopf left | 18:21 |
| ← tombusby left | 18:21 |
| → maryo joined | 18:21 |
| → gruetzkopf joined | 18:22 |
| ← staafl__ left | 18:22 |
|
joebobjoe
| -i, --ignoredShow only ignored files in the output. When showing files in the index, print only those matched by an exclude pattern. When showing "other" files, show only those matched by an exclude pattern. Standard ignore rules are not automatically activated, therefore at least one of the --exclude* options is required. | 18:23 |
| → stoopkid joined | 18:23 |
|
joebobjoe
| is there a difference between "print" and "show"? | 18:24 |
| ← Salek left | 18:25 |
| → shakalaka joined | 18:25 |
| ← gruetzkopf left | 18:26 |
| → gruetzkopf joined | 18:26 |
| → TikityTik joined | 18:27 |
|
TikityTik
| How can I set my local repo to automatically add all untracked files in a certain directory? | 18:27 |
| → tombusby joined | 18:27 |
| ← veegee left | 18:28 |
| ← sauvin left | 18:28 |
|
joebobjoe
| git add directory/ ? | 18:29 |
| → Salek joined | 18:29 |
|
joebobjoe
| git add directory/\* ? | 18:29 |
| ← arecacea1 left | 18:32 |
| → bsanford joined | 18:32 |
|
TikityTik
| no, that will not automatically add new files, i want it permanently | 18:32 |
| → arecacea1 joined | 18:32 |
| ← amirpro left | 18:32 |
|
TikityTik
| so i don't have to type git add directory/ each time | 18:32 |
|
joebobjoe
| I mean you just want them added to the index? | 18:33 |
| → amirpro joined | 18:33 |
| ← bsanford left | 18:34 |
|
joebobjoe
| there is gitwatch but that is for automatically committing | 18:36 |
| → Khisanth joined | 18:37 |
| ← amirpro left | 18:37 |
| → veegee joined | 18:37 |
| → amirpro joined | 18:38 |
| → JellybeanCantrel joined | 18:38 |
| ← JellybeanCantrel left | 18:38 |
|
TikityTik
| ahh | 18:39 |
| → kerframil joined | 18:39 |
| ← dpirch left | 18:40 |
| ← rpage left | 18:42 |
| → x49F joined | 18:43 |
| ← x49F left | 18:43 |
| → dreiss joined | 18:47 |
| ← greyline left | 18:50 |
| → weird_error joined | 18:50 |
| ← netlar left | 18:50 |
| → Dreamer3 joined | 18:52 |
| → icantc joined | 18:52 |
| ← graphene left | 18:53 |
| → graphene joined | 18:53 |
| → netlar joined | 18:57 |
| ← jhaenchen_temp left | 18:58 |
| → jhaenchen_temp joined | 18:59 |
| ← icantc left | 18:59 |
| → Ontaine joined | 19:00 |
| ← gruetzkopf left | 19:01 |
| → gruetzkopf joined | 19:01 |
| → jhaenche_ joined | 19:01 |
| ← jhaenchen_temp left | 19:02 |
| → beefjoe joined | 19:04 |
| ← kerframil left | 19:05 |
| ← graphene left | 19:06 |
| ← fatalhalt left | 19:06 |
| → graphene joined | 19:06 |
| ← Ontaine left | 19:07 |
| ← soee left | 19:07 |
| ← wandering_vagran left | 19:07 |
| → brethil18 joined | 19:08 |
| ← brethil18 left | 19:08 |
| → dpyro joined | 19:08 |
| ← xcm left | 19:09 |
| → kerframil joined | 19:11 |
| ← kes left | 19:12 |
| ← dreiss left | 19:12 |
| ← cfoch left | 19:12 |
| → staafl_ joined | 19:13 |
| → xcm joined | 19:13 |
| ← graphene left | 19:13 |
| → graphene joined | 19:13 |
| ← joebobjoe left | 19:14 |
| → stutter_ joined | 19:21 |
| ← vdamewood left | 19:22 |
| ← knownasilya__ left | 19:24 |
| ← newbsie left | 19:26 |
| ← zais left | 19:26 |
| ← graphene left | 19:26 |
| → graphene joined | 19:27 |
| ← partikkel left | 19:28 |
| → venmx joined | 19:33 |
| ← Guest73 left | 19:36 |
| → Guest73 joined | 19:37 |
| → exezin1 joined | 19:37 |
| ← exezin1 left | 19:37 |
| → ptx024 joined | 19:38 |
| ← ptx024 left | 19:38 |
| ← thiago left | 19:39 |
| → silverballz joined | 19:40 |
| → graycat joined | 19:40 |
| ← netlar left | 19:40 |
| → Sitri6 joined | 19:44 |
| ← Sitri6 left | 19:44 |
| ← amrits_ left | 19:44 |
| ← crose left | 19:45 |
| → vdamewood joined | 19:47 |
| ← xcm left | 19:49 |
| → xcm joined | 19:49 |
| ← hsn left | 19:50 |
| ← dpyro left | 19:51 |
| ← Guest73 left | 19:51 |
| → netlar joined | 19:52 |
| → staafl__ joined | 19:54 |
| ← maryo left | 19:55 |
| → _joes_ joined | 19:56 |
| ← shicks2525 left | 19:58 |
| ← staafl_ left | 19:58 |
| → SpeakerToMeat joined | 20:00 |
| ← jhaenche_ left | 20:01 |
| → yohnnyjoe joined | 20:01 |
| → Ontaine joined | 20:01 |
| → jhaenchen_temp joined | 20:01 |
| ← Ontaine left | 20:01 |
| → Ontaine joined | 20:02 |
| → shicks2525 joined | 20:03 |
| → Guest73 joined | 20:03 |
| ← yohnnyjoe left | 20:05 |
| ← jhaenchen_temp left | 20:06 |
| → dpyro joined | 20:06 |
| → mallu joined | 20:06 |
| gitinfo set mode: +v | 20:06 |
| ← m00sehead left | 20:07 |
|
mallu
| in .gitignore, do I need to specify the full path of the file or just file name? | 20:07 |
| ← Jackneill left | 20:07 |
| → Jackneill joined | 20:08 |
| → cfoch joined | 20:10 |
| → moei joined | 20:10 |
| → muelleme joined | 20:10 |
| ← zmt00 left | 20:11 |
| → erratic joined | 20:12 |
| ← Jackneill left | 20:12 |
| → Jackneill joined | 20:13 |
| → joebobjoe joined | 20:16 |
| → subroot joined | 20:16 |
| ← Guest73 left | 20:17 |
| ← staafl__ left | 20:17 |
| → shinnya joined | 20:17 |
| → staafl__ joined | 20:17 |
| ← JanC left | 20:18 |
| → rishi` joined | 20:19 |
| → JanC joined | 20:19 |
| → Guest73 joined | 20:19 |
| ← rishi left | 20:19 |
|
mallu
| in .gitignore, do I need to specify the full path of the file or just file name? | 20:20 |
| → fairuz joined | 20:20 |
| ← shicks2525 left | 20:20 |
| → shicks2525 joined | 20:21 |
| → jhaenchen_temp joined | 20:23 |
|
dzho
| the path relative to the given directory, I think | 20:23 |
|
nedbat
| mallu: if you give just a file name, it will be ignored no matter where it is found | 20:24 |
|
dzho
| eg, if the location of your .git directory is /home/mallu/project/.git and you have /home/mallu/project/library/boilerplate.py then you need a line in /home/mallu/project/.gitignore of 'library/boilerplate.py' | 20:25 |
|
| but then I defer to nedbat on the general case | 20:25 |
| ← tuxd00d left | 20:25 |
|
mallu
| thanks nedbat.. I just wanted to confirm it | 20:25 |
|
nedbat
| i often need to cherry-pick changes from a github pull request that has (say) 3 commits. I can cherry-pick the individual commits, but is there an easier way to get all of them? | 20:31 |
| ← Ontaine left | 20:32 |
| → thiago joined | 20:32 |
| → bobe3 joined | 20:32 |
| ← bobe3 left | 20:32 |
| → __idiot__ joined | 20:32 |
| ← __idiot__ left | 20:32 |
| ← mikedd left | 20:34 |
| ← Guest73 left | 20:34 |
| → banisterfiend joined | 20:35 |
| ← Typhon left | 20:37 |
| ← mlopezviedma_ left | 20:37 |
| → fatalhalt joined | 20:37 |
| ← fluxAeon left | 20:37 |
| → avar joined | 20:39 |
| → bsaboia joined | 20:39 |
| ← avar left | 20:39 |
| → avar joined | 20:39 |
| ← mallu left | 20:39 |
| ← subroot left | 20:39 |
| → m00sehead joined | 20:40 |
| ← Puffball left | 20:40 |
| → bouncy joined | 20:41 |
| → Puffball joined | 20:42 |
|
_ikke_
| !github_pr | 20:42 |
|
| !pr | 20:42 |
| ← khmarbaise left | 20:42 |
|
_ikke_
| !github_pull | 20:42 |
|
gitinfo
| To easily see Github Pull Requests in your local repo, use this fetchspec trick: https://gist.github.com/piscisaureus/3342247 | 20:42 |
| → _ADN_ joined | 20:49 |
| → Mikaela22 joined | 20:49 |
| ← Mikaela22 left | 20:49 |
| → sdwrage joined | 20:50 |
| ← netj left | 20:50 |
| → netj joined | 20:51 |
| → jnavila joined | 20:51 |
| → Typhon joined | 20:52 |
| ← graphene left | 20:54 |
| → mallu joined | 20:55 |
| gitinfo set mode: +v | 20:55 |
| → graphene joined | 20:55 |
|
mallu
| I have a couple of config files in my repo I don't want anyone to edit/delete/modify. How can I lock those files? | 20:56 |
| → kurkale6ka joined | 20:56 |
|
_ikke_
| because git is distributed, it has no concept of locks | 20:56 |
|
| What you can do is to use git hooks for example to reject changes to these files (when comitting locally, or when pushing to a remote) | 20:57 |
| → edwardly joined | 20:57 |
| ← edwardly left | 20:57 |
| → edwardly joined | 20:57 |
| → c0c0 joined | 20:57 |
|
mallu
| _ikke_: is there any example you can provide? | 20:58 |
| ← muelleme left | 21:00 |
|
_ikke_
| see man githooks | 21:02 |
|
gitinfo
| the githooks manpage is available at https://gitirc.eu/githooks.html | 21:02 |
|
_ikke_
| If you want to prevent others from pushing changes, you'd need a pre-receive hook on the server | 21:02 |
| → troulouliou_div2 joined | 21:04 |
| ← troulouliou_div2 left | 21:04 |
| ← m00sehead left | 21:04 |
| → ZyX-I joined | 21:05 |
|
nedbat
| _ikke_: thanks, i have a way to get the pr branch (https://nedbatchelder.com/blog/201407/fetching_github_pull_requests.html), but the branch doesn't make clear what the commits are, or how to get N commits nicely into one cherry-pick. | 21:06 |
| ← jnavila left | 21:06 |
| ← plitter left | 21:07 |
| ← joebobjoe left | 21:07 |
| → jnavila joined | 21:09 |
| → m0viefreak joined | 21:13 |
| ← sdwrage left | 21:13 |
| ← jnavila left | 21:16 |
| ← dolphy left | 21:16 |
| → Tobbi joined | 21:17 |
| → phantombeta joined | 21:17 |
| → dolphy joined | 21:18 |
| ← publio left | 21:18 |
| ← amirpro left | 21:18 |
| ← phantombeta left | 21:18 |
| → phantombeta joined | 21:19 |
| ← phantombeta left | 21:19 |
| ← dsdeiz left | 21:20 |
| ← banisterfiend left | 21:21 |
| → phantombeta joined | 21:23 |
| ← phantombeta left | 21:23 |
| ← graphene left | 21:26 |
| → graphene joined | 21:26 |
| → Guest73 joined | 21:26 |
| ← staafl__ left | 21:26 |
| → mattcen joined | 21:27 |
| → syncretism_mbl5 joined | 21:28 |
| ← syncretism_mbl5 left | 21:28 |
| ← dolphy left | 21:30 |
| ← applecrumble left | 21:30 |
| → nickenchuggets joined | 21:31 |
| ← nickenchuggets left | 21:31 |
| → nickenchuggets joined | 21:31 |
| → doubtful joined | 21:32 |
| → beatzz joined | 21:33 |
| ← Ayo left | 21:34 |
| → Dougie187 joined | 21:34 |
| ← bsaboia left | 21:36 |
| ← CodeSlingerPaul left | 21:36 |
| ← gruetzkopf left | 21:37 |
| → fluxAeon joined | 21:37 |
| → gruetzkopf joined | 21:37 |
| → ffernand29 joined | 21:38 |
| ← ffernand29 left | 21:38 |
| → apollojustice21 joined | 21:38 |
| ← apollojustice21 left | 21:38 |
| ← Dreamer3 left | 21:38 |
|
Dougie187
| Hopefully there is a `git notes` expert in the house... Does anyone know how to pull notes from a refspec and have them merge into your existing notes without overwriting the notes you currently have? | 21:39 |
| → dsdeiz joined | 21:40 |
| ← dsdeiz left | 21:40 |
| → dsdeiz joined | 21:40 |
| ← graphene left | 21:40 |
| → graphene joined | 21:40 |
| → muelleme joined | 21:41 |
| → Wetmelon joined | 21:47 |
| ← durham left | 21:49 |
| ← silverballz left | 21:49 |
| → durham joined | 21:49 |
| → banisterfiend joined | 21:50 |
| ← AndresInSpace left | 21:50 |
| ← c0c0 left | 21:51 |
| → matsaman joined | 21:52 |
| ← TheRuckus left | 21:52 |
| ← greggerz left | 21:54 |
| → bergice_ joined | 21:55 |
| ← muelleme left | 21:57 |
| ← fluxAeon left | 21:57 |
| → TheRuckus joined | 21:58 |
| ← doubtful left | 21:58 |
| ← martinus__ left | 21:59 |
| → yohnnyjoe joined | 22:02 |
| ← TheRuckus left | 22:02 |
| → Dreamer3 joined | 22:05 |
| ← vdamewood left | 22:05 |
| ← stutter_ left | 22:06 |
| ← yohnnyjoe left | 22:06 |
| ← Tobbi left | 22:07 |
| ← banisterfiend left | 22:11 |
| ← beatzz left | 22:12 |
| → sarp joined | 22:14 |
| → arooni joined | 22:14 |
| ← schleppel left | 22:14 |
| ← fairuz left | 22:14 |
| → TheRuckus joined | 22:15 |
| ← Dougie187 left | 22:15 |
| → applecrumble joined | 22:16 |
| → Ayo joined | 22:19 |
| ← beefjoe left | 22:20 |
| ← mattcen left | 22:23 |
| → Tobbi joined | 22:24 |
| → mattcen joined | 22:25 |
| ← mallu left | 22:25 |
| ← plexigras left | 22:26 |
| → silverballz joined | 22:29 |
| ← Forty-3_ left | 22:31 |
| → fstd_ joined | 22:31 |
| → Forty-3 joined | 22:32 |
| → fairuz joined | 22:32 |
| → r0bby9 joined | 22:32 |
| ← r0bby9 left | 22:32 |
| ← fairuz left | 22:34 |
| ← fstd left | 22:34 |
| fstd_ → fstd | 22:34 |
| → valkyr2e joined | 22:37 |
| ← jcarpenter2 left | 22:39 |
| ← ams__ left | 22:42 |
| → FernandoBasso joined | 22:45 |
| ← TheRuckus left | 22:46 |
| ← Tobbi left | 22:48 |
| ← Wetmelon left | 22:48 |
| → pztrick joined | 22:50 |
| ← rafasc left | 22:55 |
| → TheRuckus joined | 22:55 |
| ← silverballz left | 22:56 |
| → eGGshke joined | 22:57 |
| ← prepend left | 22:57 |
| ← mmattice left | 23:00 |
| ← g00s left | 23:01 |
| ← graycat left | 23:02 |
| → sst6623 joined | 23:03 |
| ← sst6623 left | 23:03 |
| → joebobjoe joined | 23:04 |
| ← finalbeta left | 23:04 |
| ← dstw left | 23:04 |
| ← xcm left | 23:06 |
| → Cthalupa joined | 23:07 |
| → xcm joined | 23:07 |
| → mikecmpbll joined | 23:07 |
| → LewsThanThree0 joined | 23:08 |
| ← LewsThanThree0 left | 23:08 |
| → bolt4 joined | 23:08 |
| ← bolt4 left | 23:08 |
| ← KeyJoo left | 23:09 |
| → banisterfiend joined | 23:12 |
| ← netj left | 23:13 |
| ← mescalinum left | 23:13 |
| → netj joined | 23:13 |
| ← matsaman left | 23:13 |
| → Powielony joined | 23:13 |
| → goweol joined | 23:14 |
| ← Powielony left | 23:15 |
| ← TikityTik left | 23:19 |
| → Guest94814 joined | 23:22 |
| ← Guest94814 left | 23:22 |
| → wreed joined | 23:24 |
| → kus_ubuntui686 joined | 23:27 |
| → dendazen joined | 23:30 |
| ← rsrx left | 23:30 |
| → graycat joined | 23:31 |
| ← wizardedit left | 23:31 |
| ← Ayo left | 23:32 |
| ← graycat left | 23:36 |
| ← scrptktty left | 23:38 |
| → Kaisyu joined | 23:43 |
| ← _ADN_ left | 23:45 |
| ← m0viefreak left | 23:48 |
| ← applecrumble left | 23:49 |
| → RuckusBringer joined | 23:50 |
| ← TheRuckus left | 23:54 |
| ← diogenese left | 23:56 |
| → lanlink joined | 23:57 |
| → catch22 joined | 23:59 |