IRCloggy #git 2014-01-14

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2014-01-14

Kayra joined00:00
thomas_b joined00:00
revyd left00:02
thomas_b left00:04
leeN left00:05
SeptDePique left00:05
becks__ left00:05
osse Just got an email from tip4commit. Is that a real thing? I got it due to a commit in git.git00:06
thomas_b joined00:06
David left00:06
lazers joined00:07
khmarbaise left00:07
psyl0n joined00:07
rawtaz i have a feeling, based on `git status` after doing `git add .`, that the `git add .` added files that are in a folder where i have a .gitignore specifying to ignore * and !.gitignore - should `git add .` really add files that should be ignored?00:08
unreal left00:09
momomomomo joined00:09
teran joined00:09
rednaks left00:09
infynyxx left00:10
rawtaz "Ignored files reached by directory recursion or filename globbing performed by Git (quote your globs before the shell) will be silently ignored." - i interpret that as files that according to .gitignore should be ignored would not be added to the index by a `git add .`00:10
momomomomo left00:10
petey left00:11
endiruna how do i merge the history of two repositories. say that one of them has x->y and the second has y->z, I would like to have a unique repository that has x->y->z00:11
unreal joined00:11
gusblan joined00:11
FortySix2 left00:12
rawtaz hm ok i am probably misreading which files were actually added..00:12
Vivekananda joined00:12
Gavrisimo left00:13
amcsi left00:13
sb- left00:13
strictlyb joined00:13
LuxuryMode joined00:13
thomas_b left00:14
becks__ joined00:14
jayallen_ joined00:15
gnu-man_ left00:15
flagon joined00:15
plasticle left00:15
plasticle joined00:15
jayallen left00:15
jayallen_jayallen00:15
ciampix joined00:16
petey joined00:16
Watabou joined00:16
Noldorin joined00:17
becks__ left00:17
senj left00:18
Destos left00:18
johnkevinmbasco joined00:19
ketas left00:19
BlueOrg joined00:19
dyng joined00:19
BlueOrg left00:19
ShalokShalom left00:19
BlueOrg joined00:20
BlueOrg left00:20
decotii left00:20
psyl0n left00:20
BlueOrg joined00:20
ciampix left00:21
Watabou left00:21
mklappstuhl joined00:22
mitz left00:22
BlueOrg left00:23
danecando joined00:23
mitz joined00:23
chessguy left00:23
acharlieh joined00:23
unreal left00:23
CKyle joined00:24
mklappstuhl left00:25
marcjs left00:25
dyng left00:25
BlueOrg joined00:26
dyng joined00:26
dyng_ joined00:27
dyng left00:27
guardianx joined00:27
boombatower left00:27
BlueOrg left00:27
jrnieder osse: probably perf pulled another batch of changes from git00:28
johnkevinmbasco left00:28
jrnieder oh, no00:28
I was thinking of linux-tip00:28
BlueOrg joined00:28
BlueOrg left00:28
jrnieder I don't know what tip4commit is. Filed it as spam :)00:28
explodes joined00:28
BlueOrg joined00:28
leotello left00:29
becks__ joined00:29
LuxuryMode left00:30
Destos joined00:31
dyng_ left00:31
nZac joined00:32
dyng joined00:32
becks__ left00:32
hays_ joined00:33
hays left00:33
becks__ joined00:35
dyng left00:35
dyng joined00:35
nZac left00:36
dyng left00:36
psyl0n joined00:36
oskarkv left00:36
dyng joined00:37
dyng left00:37
dyng joined00:37
becks__ left00:38
Argure left00:38
becks__ joined00:39
gusblan left00:39
Argure joined00:39
sohail left00:40
King_Hual left00:40
ErKa left00:41
marhaban joined00:42
hyperair left00:42
harish joined00:44
revyd joined00:45
JerryT joined00:45
LucasKA joined00:45
CKyle left00:46
Destos left00:46
FatDarrel left00:46
becks__ left00:46
LuxuryMode joined00:47
becks__ joined00:47
fphilipe joined00:47
hays_ left00:48
zz_karupanerurakarupanerura00:49
hays joined00:49
Balliad left00:49
dreiss left00:50
blackmesa left00:50
Spudster joined00:50
becks__ left00:52
ciampix joined00:52
fphilipe left00:52
psyl0n left00:52
beastd left00:52
rafaqueque left00:53
nutron joined00:53
DrNick left00:54
SocalNick left00:54
hays_ joined00:54
hays left00:55
gnu-man joined00:55
gusblan joined00:56
gusblan left00:57
devoldmx_ left00:57
FatDarrel joined00:57
YoMomma_ joined00:58
David joined00:58
gusblan joined00:58
jrnieder osse: http://blog.anonymousads.com/2013/10/tip4commit-first-bitcoin-related.html01:00
Argure left01:00
dosequis_ joined01:01
jrnieder is not thrilled with it. Creates a perverse incentive to break a change into as many commits as possible.01:01
Argure joined01:01
tobias__ left01:02
gusblan left01:02
imachuchu left01:03
harish left01:04
ojacobson joined01:06
plasticle left01:08
skorgon_ joined01:08
jbarker left01:09
ciampix left01:09
hays_ left01:10
lyang0 left01:11
DrNick joined01:11
hays joined01:11
endiruna left01:11
mlimaloureiro left01:11
lyang0 joined01:12
mizu_no_oto left01:13
petey left01:13
Happzz joined01:15
milki one commit per character01:15
and an extra commit per commit that just says WIP01:15
ojacobson --allow-empty hides a multitude of sins01:15
milki :P01:15
Nizumzen joined01:16
hyperair joined01:16
mlimaloureiro joined01:16
halu left01:18
skorgon_ left01:18
psyl0n joined01:19
psyl0n left01:20
psyl0n joined01:20
jrnieder also, gah, I wish I knew which mailing list the site I linked to scraped its content from :/01:21
marhaban left01:21
tummy_ joined01:21
rawtaz which site?01:22
jrnieder the link I sent to osse01:22
rawtaz hmm01:23
DrShoggoth left01:23
jrnieder anyway, never mind01:23
FatDarrel left01:23
jrnieder I saw 'ads' and thought 'sleezy part of the internet' :)01:23
gusblan joined01:23
jrnieder from a little more searching I think I misread01:24
harish joined01:24
gusblan left01:25
gusblan joined01:26
unreal joined01:26
Dougie187 joined01:27
simesy joined01:28
YoMomma_ left01:28
dyng left01:29
weiyang joined01:30
dyng joined01:30
simesy left01:30
chrisTech joined01:33
maestrojed left01:33
chrisTech How do I view/edit content of previously committed files? Or, how do I get the previous files back?01:33
Watabou joined01:34
ojacobson chrisTech: depends on why you want them :)01:35
dyng left01:35
diegoviola joined01:35
quup chrisTech: git checkout a43hb13hashthingy01:36
chrisTech: http://git-scm.com/book/en/Git-Basics-Viewing-the-Commit-History01:36
dyng joined01:38
chrisTech ojacobson, I just want to be able to copy it.01:38
copy the content, that is01:39
ojacobson quup's basically covered it, then01:39
MistuhKurtz left01:40
mizu_no_oto joined01:40
mue_ left01:41
ewnd9 joined01:42
chrisTech That doesn't like reverse the updated file, does it?01:42
luc_ joined01:42
chrisTech Like update it to the previously committed one?01:43
akiva left01:43
echo-area joined01:44
plasticle joined01:45
Annak joined01:45
gitinfo set mode: +v01:45
Kayra left01:45
ErKa joined01:45
dohdoh joined01:46
pen left01:46
Diemuzi left01:47
jbarker joined01:47
AnnakDiemuzi01:48
ojacobson it updates the work tree to <sha1>, and points HEAD ("the current commit") at <sha1>01:48
dohdoh left01:48
chrisTech left01:49
moondoggy joined01:49
moondoggy left01:50
moondoggy joined01:50
namita left01:50
bwreilly left01:51
jbarker left01:52
explodes left01:52
Gamecubic left01:52
phipes left01:53
vipzrx left01:54
flagon left01:55
jayallen left01:55
Gamecubic joined01:57
ciampix joined01:58
Diemuzi left02:00
phipes joined02:00
bwreilly joined02:00
Suprano joined02:01
Marenz left02:01
simesy joined02:03
ciampix left02:03
rawtaz ok soo.. when rebase has paused due to a conflict, and you edited the file with a conflict in it and then saved it, is there a way to revert that editing you just did, so that the file goest back to what rebase left it as when it asked you to resolve the conflict?02:04
ruinze left02:04
mizu_no_oto left02:04
harish left02:04
pen joined02:05
revyd left02:05
ErKa left02:05
alpha123alpha123|away02:05
mlimaloureiro left02:05
revyd joined02:05
skorgon_ joined02:06
rawtaz must be one of the oddest questions today :)02:06
jerius left02:07
daito joined02:08
Exancillatus joined02:08
ketas joined02:08
mizu_no_oto joined02:09
gnu-man left02:09
Gamecubic left02:09
guardianx left02:10
revyd left02:10
tmcmahon joined02:10
Silmarilion left02:10
M4renz joined02:10
dougsland left02:11
KeiKun_ joined02:12
KeiKun left02:12
ewnd9 left02:12
daito left02:13
Exancillatus left02:13
Suprano left02:14
gusblan left02:15
skorgon_ left02:16
tmcmahon left02:17
jbarker joined02:18
afhammad joined02:18
makubi left02:18
Cephalostrum joined02:18
Cephalostrum left02:19
BlueOrg left02:19
Cephalostrum joined02:19
Apocalisp left02:20
makubi joined02:20
braj left02:21
daito_ joined02:22
jbarker left02:23
Gamecubic joined02:24
Lewoco joined02:24
h0bbit_ joined02:25
Lewoco I'm trying to checkout the HEAD of a branch, but when I do 'git checkout HEAD' it seems to do nothing... why?02:26
afhammad left02:27
marcjs joined02:27
pen left02:27
ojacobson 'HEAD' is the current commit02:27
pen joined02:27
ojacobson (and, if you're on a branch, the current branch)02:27
Lewoco ojacobson, Is there a special name to refer to the newest rev of a branch?02:28
ojacobson "the HEAD of a branch" doesn't strictly make any sense, but individual branches' most recent commits are co-identified by the branch name itself02:28
the most recent commit on master is named 'master'02:28
man gitrevisions02:28
gitinfo the gitrevisions manpage is available at http://jk.gs/gitrevisions.html02:28
sr105 joined02:29
simesy left02:30
Nicholas_Rishel left02:30
Targen left02:30
pencilcheck joined02:32
marcjs left02:32
h0bbit_ left02:32
pen left02:33
xjiujiu joined02:34
Nizumzen left02:35
fphilipe joined02:36
psyl0n left02:36
pheaver left02:36
Lewoco ojacobson, What do you mean by "most recent commits are co-identified by the branch name itself" ? If I do 'git checkout mybranchname' it doesn't seem to check out the most recent commit on that branch...02:37
ojacobson Lewoco: it absolutely does. What are you observing that convinces you otherwise? !repro02:37
gitinfo Lewoco: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.02:37
mizu_no_oto left02:37
damccull joined02:38
darius93 left02:39
mellernoia left02:39
darius93 joined02:40
fphilipe left02:41
lethjakman left02:42
iderik joined02:42
Goplat joined02:42
Goplat left02:43
Goplat joined02:43
lyang0 left02:43
gwb3 left02:43
shruggar left02:44
Lewoco ojacobson, Ok I think my problem is that somehow I created a branch on my local repo which is no longer following new revisions from the remote repo. Essentially when I checkout 'foo' it is an older revision than when I checkout 'origin/foo'.02:44
chadjuehring joined02:44
jbarker joined02:44
skorgon_ joined02:45
beyondcreed left02:45
chadjuehring left02:45
devin_dglambert02:46
ojacobson Local branches are always independent of same-named branches in remotes02:46
dglambert left02:46
dglambert joined02:46
Destos joined02:46
scoT_T`zZzscoT_T02:46
ojacobson If your workflow implies some relationship (which is common), set the remote branch as the upstream of your local branch and use eg. 'git pull' or 'git pull --rebase' to update your local branch, depending on whether you want to merge your local changes with upstream changes, or rebase your local changes on top of the upstream changes02:46
(there's no meaningful difference is there are no local changes :)02:47
scoT_T left02:47
scoT_T joined02:47
scoT_T left02:47
scoT_T joined02:47
LucasKA left02:48
jhulten left02:48
Lewoco ojacobson, Yay, 'git merge origin/foo' fast forwarded it to where I want. Thank you.02:48
ojacobson git merge can be told to default to upstream (and does by default in later git versions, IIRC), if that's going to com eup a lot :)02:48
man git-config02:48
gitinfo the git-config manpage is available at http://jk.gs/git-config.html02:48
mribeirodantas left02:50
harish joined02:50
pencilcheck left02:53
Guest7625 left02:55
skorgon_ left02:55
daito joined02:56
daito_ left02:57
petey joined02:58
bitkiller left02:58
kt_ joined03:02
kt_ left03:03
mgolawala joined03:03
unomystEz joined03:03
insejn left03:04
David left03:04
unomystEz i cloned a repo from server1 and it's set as my origin (by default I suppose), I want to instead push to server2 on which I created a bare repo, but I can't execute git remote add origin server2:pathspec03:04
mgolawalaKT_03:05
unomystEz do I have to give it another name? I would prefer origin since I'm deleting the repo on server1 anyway03:05
grawity then remove the existing 'origin' remote that `git clone` created03:05
ojacobson unomystEz: man git-remote03:05
gitinfo unomystEz: the git-remote manpage is available at http://jk.gs/git-remote.html03:05
grawity or, just change its URL.03:05
ojacobson have a look at 'rm' or 'set-url'03:05
insejn joined03:05
griotspeak joined03:05
unomystEz ok03:05
set-url worked, thanks alot03:06
Etheco- joined03:06
unomystEz nice, and a git push -all pushed all my tags, branches, looks like i can delete the old repo now03:08
gusblan joined03:09
gwb3 joined03:09
unomystEz btw, I usually alias basically commands like co = checkout, etc.. do you guys usually scp your .gitconfig over to all your boxes you use git on?03:10
or how do you manage your git config across different machines?03:10
Etheco left03:10
lyang0 joined03:10
rylinaux left03:11
grawity unomystEz: I keep it in a Git repo03:11
unomystEz grawity, then pull changes on all the target machines?03:12
grawity sure03:12
unomystEz: search Github for people's repos named "dotfiles"03:12
unomystEz hmm,, i have a lot of boxes though... i have the same setup at home but just may adopt this at work03:12
thanks for the tip03:12
grawity I add something like `git pull --ff-only` in cron03:13
at work, you probably have NFS or at least sshfs? :P03:13
KT_ left03:13
unomystEz grawity, i do but that could get messy (and potentially dangerous)03:14
i like the dotfiles approach, i'll read up on it more, will need it to be rock solid of course03:14
btw, why ff-only? to prevent clobbering local changes?03:14
axl_ joined03:15
gwb3 left03:15
ojacobson or introducing merge commits (or, worse, conflicts) automatically03:15
grawity automated merges done from cronjobs? that way lies madness.03:15
carlos-huang joined03:15
unomystEz git pull --ff-only == git fetch && git merge --ff-only right?03:16
gwb3 joined03:16
grawity pretty much, yeah03:16
local changes are rarely needed if the program lets you include ~/.config/git/config-local or ~/.bashrc-$HOSTNAME or such03:16
diegoviola left03:16
grawity my cronjob's https://github.com/grawity/code/blob/master/dist/pull03:16
gwb3 left03:16
Guest80723 joined03:17
diegoviola joined03:17
grawity and yes, apparently I forgot --ff-only there03:17
gwb3 joined03:18
ojacobson corntab03:18
unomystEz if if ! git-on-master; then <-- two if keywordS?03:18
line 8703:18
ojacobson that's legit03:19
surprising, but legit03:19
have a look at line 9303:19
(I would not write a shell if that way, but it's permitted)03:19
grawity surprisingly, that turned out to be the easiest way to do what I wanted...03:19
ojacobson picking it apart, it looks like a verbose 'or'03:20
without having to deal with bash's || operator's quirks03:20
grawity yep03:20
`if if` is confusing, but `if case ... esac` is nice for making filter lists like rm() in https://raw2.github.com/grawity/dotfiles/master/bashrc-rain03:21
carlos-huang left03:21
Guest80723 left03:23
skorgon_ joined03:23
cmpera joined03:24
dyng left03:24
dyng joined03:25
Vivekananda hey everyone. I need to find out how to change folder structure iin a git repo. Right now my files are inside a/b/c/ and I want everything to get to a/03:26
AaronMT left03:26
Vivekananda the .git is present in the same folder as a ie outside a/03:26
grawity so just `git mv` the files03:26
Targen joined03:27
alpha123|awayalpha12303:28
dyng left03:29
revyd joined03:29
berdario joined03:30
dglambert left03:30
bwreilly left03:31
rylinaux_ joined03:32
Vivekananda grawity: I did not know that03:32
I assumed I had to do a rebase or something03:32
grawity only if you want to move the files in all historical commits03:33
gwb3 left03:33
grawity (in which case it'd probably be `git filter-branch` anyway)03:33
shinnya left03:33
skorgon_ left03:33
grawity `git rebase` is used for editing history and shuffling around commits – it has not much to do with shuffling around files.03:34
smwa joined03:34
chrisshattuck joined03:35
Vivekananda okay that confuses me a little. So is shuffling around commit not the same as shuffling around files ?03:35
also if I put all files inside a/ from a/b/c/ and then commit and push03:36
will I get this new structure in the remote repo ?03:36
SocalNick joined03:36
grawity yes03:37
quup left03:37
berdario I want to do some whitespace cleanup... to avoid cluttering up the blame output, I was thinking of doing a root rebase, but upon reading this http://stackoverflow.com/questions/6088440/git-how-to-use-rebase-with-theirs-strategy it doesn't seem to be what I'm looking for (maybe filter-branch?)... I guess that since lot of new lines have been added since the first commit, rebasing everything unto a commit that already has03:37
the new lines doesn't make sense?03:37
quup joined03:38
echo-area left03:38
herdingcat joined03:38
echo-area joined03:39
berdario (btw, "only" 65% of the lines in my git blame have been affected by the whitespace cleanup... maybe it's not even worth it to change the history?)03:39
LucasKA joined03:39
angrytongan left03:40
smwa left03:42
joelm left03:42
bwreilly joined03:42
Celelibi joined03:42
Celelibi Hi03:43
ojacobson berdario: man git-blame and have a look at the -w option03:43
gitinfo berdario: the git-blame manpage is available at http://jk.gs/git-blame.html03:43
Celelibi How do I remove a change from the index and put it back as "unstaged" change?03:43
gwb3 joined03:43
berdario ojacobson thanks, awesome!03:44
d0liver Is there a way with git to remove all the tracked files from the cache that have been removed in the working directory?03:44
Celelibi git reset -p03:45
ojacobson d0liver: man git-add, read the description of --all03:45
gitinfo d0liver: the git-add manpage is available at http://jk.gs/git-add.html03:45
chrisshattuck left03:45
gwb3 left03:45
acharlieh left03:45
d0liver ojacobson: I don't think that's what I'm after here03:45
Vivekananda I am reading the git cli help and it says I can do: git mv -v/r/f source ... destination to actually move files inside source to a destination and not just rename it03:45
d0liver that will add everything that's untracked and not ignored03:45
Vivekananda do I understand this correclty ?03:45
chrisshattuck joined03:45
ojacobson d0liver: that's not what --all does, read it again :)03:45
dreiss joined03:46
ojacobson 'git add' will do that without passing options.03:46
b3tamax joined03:46
petey left03:46
gwb3 joined03:47
Mars joined03:48
d0liver ojacobson: That's what it looks like to me from the description. Can you give me a counter-example?03:48
MarsGuest3015003:48
gwb3 left03:48
ojacobson -A, --all, --no-ignore-removal03:48
Update the index not only where the working tree has a file matching <pathspec> but also where the index already has an entry. This adds, modifies,03:48
and removes index entries to match the working tree.03:48
line break positioned to draw attention. :)03:49
gwb3 joined03:49
simesy joined03:49
d0liver I'm still not understanding what the difference is here.03:49
gwb3 left03:50
w0ng left03:50
w0ng joined03:50
d0liver adds, modifies, and removes index entries to match the working tree03:50
b3tamax left03:50
d0liver that's what I was saying03:50
ojacobson 'git add foo' will recurse through foo, adding not-ignored files and staging changes in tracked files03:50
'git add --all foo' will do all of that, and remove files that are absent in the work tree from the staging area, so that they will also be absent in the next commit03:51
b3tamax joined03:52
d0liver Okay, I see. It's still not really what I'm after though. I want to stage only the removals disregarding modifications, new files, etc.03:52
I was wondering if there was a way to essentially do a git commit -a but only with removals03:53
sohail joined03:53
d0liver or if the preferred thing is to just git rm them03:53
gwb3 joined03:53
weiyang left03:54
ojacobson man git-rm outlines some alternatives for that03:54
gitinfo the git-rm manpage is available at http://jk.gs/git-rm.html03:54
d0liver okay03:54
thanks03:54
pbrobst left03:54
Celelibi What is the rerere mechanism?03:54
sr105 left03:56
axl_ left03:56
Celelibi Can I merge everything but a commit from the other branch?03:57
Vivekananda any comments anyone ?03:58
plasticle left04:00
ls_ joined04:00
pr0ton joined04:00
ls_ Perhaps someone can tell me how to restore files deleted, with the 'rm' command. I forgot the command.04:01
cehteh checkout04:01
Noldorin left04:02
skorgon_ joined04:02
ls_ Meaning as long I have two things, the .git directory and the commit's sha1 sum, file are restorable?04:03
veebers left04:03
grawity yes04:03
weiyang joined04:07
ls_ left04:08
cmpera left04:08
hog left04:08
CheckDavid left04:09
ariscop left04:09
Celelibi So, what's the best way to deal with this: I have two set of binary files, one for 32 bits, and one for 64 bits.04:10
One set replace the other.04:10
They can't live together.04:10
But most of the code around is the same.04:10
cmpera joined04:10
Celelibi I thought making branches would be nice.04:11
But it's quite a pain to keep them in sync.04:11
JohnBat26 joined04:11
ojacobson Are these binary files as in "the output of some build system like Make" or binary files as in "don't lose them, we'd have to re-buy/re-draw/re-render/etc them, but they're not text"?04:11
Vivekananda do I add .gitignore itself to tracked files ?04:11
grawity Vivekananda: yes04:11
Celelibi ojacobson: more like "re-download by hand".04:12
gdogrady joined04:12
Celelibi These are library given as-is.04:12
libraries*04:12
ojacobson Use a dependency management tool, not git, to import libraries, ideally.04:12
Store the dependency info in git, rather than the dependencies themselves04:13
(eg. npm's package.json file, maven's pom.xml, python's setup.py, a Gemfile, whatever)04:13
Celelibi What is this?04:13
ls_ joined04:13
Gamecubic left04:13
skorgon_ left04:14
ls_ Supprising I run the command sudo git checkout sha1 sum , yet now files are reverted?04:14
Celelibi And then, how do I build my project?04:14
grawity 1) why did you use sudo, 2) reverted to /what/?04:14
preflex_ joined04:15
preflex left04:15
basdfasdf left04:15
ls_ Oh I have fun deleting sys_conf files, rebooting and see how it effect the computer.04:15
grawity ...ok04:15
preflex_preflex04:15
ls_ Which explain why I thought I could use git, so I could revert when back to previous states.04:16
Celelibi ojacobson: these libs are kind of part of the source. They are .a (an archive full of .o) to be linked with.04:16
ojacobson Your other practical option is to restructure your project's directory layout so that you can have both sets of libs around at the same time, and arrange for your build script to pick the right set of libs automatically04:16
abvdfasdf joined04:17
takamichi joined04:18
Celelibi Hum... Yes, that's what I wanted to avoid.04:18
mizu_no_oto joined04:18
ls_ Two, I reverting to the commit with the files.04:19
daito left04:19
Guest30150 left04:20
ncthom91 left04:22
ariscop joined04:23
fphilipe joined04:24
dyng joined04:24
Nicholas_Rishel joined04:24
obert left04:25
ls_ Perhaps the 'git status' command showing deleted: is reversable?04:26
fphilipe left04:29
KeiKun_ left04:29
KT_ joined04:29
GT4066 joined04:32
Gamecubic joined04:33
ls_ Interestingly... running 'sudo git checkout sha1 filename' worked?. How about wildcards in place of the filename?04:33
nodiscc left04:34
ben_alman joined04:34
m0viefreak left04:35
Dougie187 left04:36
ls_ left04:38
mizu_no_oto left04:39
ben_alman left04:39
David joined04:39
ariscop left04:39
Mr_Grim1 joined04:42
ben_alman joined04:45
master_jarch04:47
SocalNick left04:47
ben_alman left04:50
kukks left04:53
dreiss left04:55
harish left04:57
herdingcat left04:57
dreiss joined04:58
herdingcat joined04:59
donmichelangelo left05:00
donmichelangelo joined05:00
guns joined05:03
dyng left05:03
sohail left05:03
Spudster left05:03
mizu_no_oto joined05:05
Mr_Grim1 im just reading up on some git and im wondering if someone could explain to me what this exactly does: git remote add upstream -m master git://github.com/openshift/rails-example.git05:05
git pull -s recursive -X theirs upstream master05:05
n8chur left05:07
caasig joined05:08
myc joined05:08
myc left05:08
ahmedelgabri joined05:09
el3ctron left05:10
pr0ton left05:11
Oobaew83 joined05:11
gusblan left05:11
Oobaew83 Hello.05:12
gitinfo Oobaew83: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.05:12
Oobaew83 Is there a nifty way to git log to xml? I saw I looked for about two hours and only for about 3 posts on SO.05:12
ojacobson Oobaew83: I'd be very surprised if there were: generating *correct* XML given all the permutations of possible inputs from Git is a reasonably hard proposition (you have to use a real XML library, you can't "just" use string manipulation to do it)05:14
man git-log is, of course, authoritative05:14
gitinfo the git-log manpage is available at http://jk.gs/git-log.html05:14
KT_ left05:14
ojacobson What're you hoping to feed it to?05:14
There are more machine-friendly history formats available to git that might work just as well as XML05:15
dreiss left05:15
ojacobson (eg. git rev-list and friends)05:15
Oobaew83 I want to download the diff and commit messages from git repos05:15
http://stackoverflow.com/questions/6327276/parsing-git-log-output-preferably-as-xml/6327321#632732105:15
KT_ joined05:15
Oobaew83 That is one of the links I found, but similar to what you said - one of the comments mentions getting burned for all the xml format it doesn't cover, ojacobson05:16
ojacobson Yeah, and the proposed "fix" (of wrapping everything in <![CDATA[ blocks ]]> ) still runs afoul of the sequence ]]> if it's present in your git repo05:16
again, why XML specifically?05:16
arch left05:16
master_j joined05:17
Oobaew83 I will be working with other xml data, so it seemed conventional if it is possible in git.05:17
ojacobson mm05:18
Stock unix answer - "you could write something, I guess" - applies05:18
Oobaew83 yeah...05:18
Is there another data format I could use instead of xml?05:18
ojacobson walking git-rev-list and running git-cat-file on each object as you go in a python/ruby/perl script that emits XML would work05:18
(note that this is more or less what git-log does :)05:18
danecando left05:19
berdario left05:19
daito joined05:20
Oobaew83 ojacobson: I will look into this, thank you.05:20
ahmedelgabri left05:21
h0bbit_ joined05:21
daito left05:21
ahmedelgabri joined05:21
ojacobson parsing 'git cat-file commit <sha>' is much, much easier than parsing git-log's output, fwiw -- the format is designed to be machine-readable05:21
daito joined05:21
petey joined05:22
offby1 parses git cat-file in fact05:22
frogonwheels Oobaew83: Yeah- I've done a git log to html munger, and it wasn't pretty. Especially as it was a windzoe cmd script !05:22
offby1 https://gist.github.com/8413511 <--- example05:22
Oobaew83 my morale is declining05:22
ojacobson I've got one somewhere that turns git history into dot diagram files05:23
mizu_no_oto left05:23
angrytongan joined05:23
ojacobson python, < 100 lines, only really depends on the subprocess module and on git being available05:23
it's not _actually_ hard, but you do have to do the toolsmithing if you want it done right05:23
if you can make brave assumptions about the contents of your log, you can cheat with custom formats and get pretty close to right05:23
offby1 hitches up his suspenders and spits a chaw of tobaccy05:23
offby1 'at's raht.05:24
Oobaew83 brave is right.05:24
frogonwheels .. and if I can do it using DOS cmd script - doing it in a real language should be a cinch.05:25
RofricTheBearded joined05:25
ojacobson Oobaew83: the line between bravery and stupidity... :)05:25
Oobaew83 luck, sire.05:25
ojacobson on the other hand if your data *does* happen to be cooperating with your assumptions you can be done and in the pub pretty quick05:26
pen joined05:26
ojacobson left05:26
frogonwheels ojacobson: are you insinuating that I crossed the line into stupidity?05:26
dyng joined05:26
Oobaew83 how come git doesn't have xml style for pretty print...05:26
too much work?05:26
chrisshattuck left05:26
Nicholas_Rishel left05:26
frogonwheels Oobaew83: xml is not really a unixy thing05:27
Oobaew83: esp cli unix :)05:27
Oobaew83 what data type is?05:27
frogonwheels um. text?05:27
Oobaew83 how do you store a git commit and diffs as a text file?05:28
marcjs joined05:28
Oobaew83 I am open to alternatives :)05:28
alezost joined05:29
KT_ left05:31
Oobaew83 a csv would be handy, but I don't think that will work05:31
offby1 Oobaew83: you could store the commit by doing "git cat-file -p SHA > file"05:32
but I bet that's not what you meant05:32
you can capture the diff introduced by a non-merge commit with "git show SHA"05:32
marcjs left05:33
offby1 you can capture that diff, plus a bit of metadata that makes it easier to apply as a patch, with "git format-path"05:33
er05:33
git format-patch05:33
and you can apply that patch with "git am"05:33
ariscop joined05:34
Tommy[D]_ left05:34
DolphinDream joined05:37
tgkokk joined05:38
Mars joined05:40
MarsGuest5782305:40
hoschi joined05:41
Oobaew83 I will look at this too, thanks offby1.05:41
KT_ joined05:41
unomystEz left05:41
skorgon_ joined05:42
Guest57823 left05:45
ben_alman joined05:45
KT_ left05:47
beyondcreed joined05:47
cmpera left05:48
Tommy[D]_ joined05:48
beyondcreed left05:48
ben_alman left05:50
akiva joined05:52
skorgon_ left05:52
ArcTanSusan joined05:55
Macaveli joined05:56
tgkokk left05:57
nZac joined05:59
emmajane[emmajane]05:59
tpollard left05:59
LuxuryMode left05:59
kerrick joined05:59
KT_ joined06:00
simesy left06:00
redrocket joined06:00
girishr joined06:02
GeertV joined06:02
Joost left06:02
nZac left06:03
harish joined06:07
pheaver joined06:08
[emmajane]emmajane06:09
petey left06:09
jbarker left06:09
akiva left06:10
ncthom91 joined06:11
Joost joined06:11
fphilipe joined06:12
freimatz_ joined06:15
EngierkO_ joined06:15
cff left06:16
EngierkO left06:16
fphilipe left06:17
Joost left06:17
ahmedelgabri left06:19
wilx left06:20
kcj joined06:20
dprophit joined06:20
revyd left06:23
tarkus left06:23
kbart joined06:23
revyd joined06:23
Joost joined06:24
MissionCritical left06:25
ahmedelgabri joined06:26
donmichelangelo left06:27
DolphinDream left06:27
donmichelangelo joined06:27
master_j left06:27
revyd left06:28
phipes i just deleted a whole directory so i could add a submodule to that directory.06:28
marcjs joined06:29
phipes im sure there's a better way to do that.06:29
freestyl3r left06:29
milki phipes: no, normally its the other way around, !submodule_rm06:30
gitinfo phipes: [!submodules_rm] You want to delete submodules? Excellent choice! All commands are in the superproject. Edit/delete .gitmodules to remove the submodule. Then `rm -rf submodulepath; git rm -f --cached submodulepath; git commit -am "Removed submodules!"` Inspect .git/config for "submodule" entries to remove. Inspect .git/modules for caches to remove "!gitslave" or "!subtree" (type them!) might be alternatives06:30
harish left06:30
pantsman joined06:33
Mission-Critical joined06:33
marcjs left06:34
arvind_khadri joined06:34
namita joined06:35
ncthom91 left06:35
JohnB0 joined06:35
ThomasLocke joined06:36
teran_ joined06:36
arvind_khadri left06:39
Draleth joined06:39
teran left06:39
guns left06:40
jargon joined06:40
Draleth My Google-fu has failed me; I can not find a hook script to echo commit messages just pulled from upstream that contain a tag like 'ANN' (for announcement, i.e. in client-side configuration INI changes).06:40
Any ideas how to accomplish this?06:40
teran joined06:41
phipes milki: git was complaining about some index when i was trying to add a submodule06:41
starkhalo left06:42
teran_ left06:44
jceb joined06:44
Mission-CriticalMissionCritical06:45
cyphase left06:46
CKyle joined06:47
geomyidae left06:48
geomyidae joined06:49
jbarker joined06:50
josealobato joined06:50
ehmatthes joined06:51
kcj left06:52
kcj joined06:53
mlechner joined06:54
jbarker left06:55
takamichi left06:56
ben_alman joined06:56
lite_ joined06:56
milki Draleth: theres no hook fro something like that06:56
harish joined06:57
Draleth That's kinda lame. :/06:58
xjiujiu_ joined06:59
LeeXiaolan__ joined06:59
the_cybersphinx left06:59
Draleth left06:59
JesseC left06:59
marcjs joined07:00
JesseC joined07:00
pantsman left07:00
spudz_ left07:00
spudz joined07:01
ben_alman left07:02
LeeXiaolan_ left07:02
xjiujiu left07:02
jceb left07:02
josealobato This is a rebase (changing the history) question. I know that changing the history once the changes are in the server is bad but I can not imagine what will happen. In my case the server creates the remote branch from master for me (Stash) and I check it out locally to work. If sometime later I rebase locally onto master where there was new changes. will i be able to push? what will be the problem?07:05
Destos left07:05
soee joined07:06
EngierkO_ left07:06
Misan joined07:06
EngierkO joined07:08
hahuang65 joined07:08
ncthom91 joined07:08
nnyk_ joined07:09
papegaaij joined07:10
takamichi joined07:10
cbreak-work joined07:12
Kicer86 joined07:13
xjiujiu_ left07:14
xjiujiu joined07:14
Macaveli left07:14
enr joined07:16
oojacoboo left07:16
chepre` left07:17
KT_ left07:18
KT_ joined07:19
m0ltar joined07:20
lb1a joined07:20
unomystEz joined07:20
leeN joined07:20
leeN left07:20
namita left07:21
Macaveli joined07:21
enr left07:21
frogonwheels josealobato: !rewrite07:22
gitinfo josealobato: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum07:22
xjiujiu left07:22
ferreum joined07:22
xjiujiu joined07:22
FatDarrel joined07:23
josealobato thanks!07:23
KT_ left07:23
frogonwheels josealobato: Hmm.. it is not clear that the scenario you are describing actually rewrites public history07:23
ifdm_ left07:23
introom joined07:23
CKyle left07:24
frogonwheels josealobato: !repro07:24
gitinfo josealobato: Please paste (using https://gist.github.com/ or similar) a transcript (https://gist.github.com/2415442) of your terminal session -- or, even better for complex issues, design a minimal case in which your problem can be reproduced, and share it with us. This will help immensely with troubleshooting.07:24
introom can git track different files in different branches?07:24
frogonwheels introom: sure07:24
introom frogonwheels: wow. that's good. Wait a moment. Let me write down my problem in detail.07:25
frogonwheels introom: really what git cares about when you checkout a branch is the difference between the commit you are at now, and the commit you are going to, and the difference between them.07:25
josealobato @frofonwheels not sure either. The fact that the branch is a remote branch from the user perspective and the user change its parent using rebase looks to me like change in the history.07:26
frongonwheels.07:26
frogonwheels introom: git can actually track two totally unrelated git trees in the same repo, and while that sounds totally bizarre, I have actually used this to significant advantage.07:26
marcjs left07:26
frogonwheels josealobato: frog<tab>07:26
;)07:26
j0ran joined07:27
rath joined07:27
fphilipe joined07:27
xequence joined07:28
introom frogonwheels: hi. https://gist.github.com/introom/3a642be58030d4ebe7f607:28
lb1a frogonwheels, it works \o/07:29
jceb joined07:29
alansaul-laptop joined07:30
slyfox joined07:30
slyfox left07:30
slyfox joined07:30
simesy joined07:30
xjiujiu left07:31
xjiujiu joined07:31
introom frogonwheels: hi. do you have any idea on that?07:31
thiago left07:32
josealobato frogonwheels: thanks!07:32
matanya joined07:33
Bass10 left07:33
ncthom91 left07:34
Goplat left07:35
frogonwheels introom: yeah - use sparse checkout07:36
angrytongan left07:36
nnyk_ left07:36
CKyle joined07:37
Poly-C_atwork joined07:37
ifdm_ joined07:37
nilg joined07:38
introom frogonwheels: thanks. I will have a read on that.07:38
frogonwheels introom: man git-read-tree look for 'sparse checkout'07:38
gitinfo introom: the git-read-tree manpage is available at http://jk.gs/git-read-tree.html07:38
frogonwheels !dotfile07:39
gitinfo [!dotfiles] There are various issues associated with keeping dot-files in git (permissions, avoiding having a .git in ~/ or /). One attempt to manage this is http://dotfiles.github.com/07:39
nnyk_ joined07:39
pen left07:40
ayaz joined07:41
ayaz left07:41
ayaz joined07:41
cff joined07:41
unomystEz left07:41
rob_w joined07:41
ajunior joined07:41
fRAiLtY- joined07:42
xjiujiu left07:42
xjiujiu joined07:42
gain joined07:44
chepre` joined07:44
chepre` left07:44
cff left07:45
cff joined07:46
dvide left07:47
dik_dak left07:47
KT_ joined07:51
jbarker joined07:51
ahmedelg_ joined07:52
David left07:54
fphilipe left07:55
Norm_ left07:55
fphilipe joined07:55
KT_ left07:55
jbarker left07:55
ahmedelgabri left07:55
mishok13 joined07:57
arvind_khadri joined07:58
mitz left07:59
fphilipe left08:00
jargon left08:00
eijk joined08:01
Raging_Hog joined08:01
jargon joined08:02
jargon left08:02
jargon joined08:02
FatDarrel left08:02
h_kon joined08:04
jnavila joined08:04
phipes left08:05
xlinkz0 joined08:06
zackiv31 left08:06
nnyk_ left08:07
nnyk_ joined08:07
zackiv31 joined08:07
Noctis_Lux left08:08
Noctis_Lux joined08:09
CKyle left08:09
nilg left08:09
YoMomma__ joined08:09
jnavila_ joined08:09
JohnB0 left08:09
jnavila left08:10
petey joined08:10
fire joined08:11
mattcen left08:12
cmyers joined08:12
oskarkv joined08:13
Exancillatus joined08:13
cmyers does anyone know the plumbing, off the top of their head, to perform a merge of two hashes in a bare repo / without impacting the working tree (and just fail if there are any conflicts)08:13
or does such plumbing exist?08:13
lite_litebot_08:14
joki left08:14
litebot_ left08:15
petey left08:15
litebot_ joined08:15
Sonderblade joined08:16
osse cmyers: merging requires a work tree08:16
cmyers osse: ballz.08:17
osse (afaik)08:17
luc___ joined08:17
cmyers wonders how the hell atlassian stash does it then08:17
Sonderblade left08:17
macben joined08:17
cmyers it seems like merge expects HEAD to be one of the arguments08:17
luc_ left08:17
Exancillatus left08:17
daito left08:17
Sonderblade joined08:17
macben left08:17
osse cmyers: cd /tmp/foo; clone; merge; push; rm -r /tmp/foo perhaps?08:17
cmyers so if you create two pull requests at the same time, it has to test the merge to know if it merges cleanly...clearly it doesn't have races somehow08:18
harobed_ joined08:18
Exancillatus joined08:18
cmyers yeah, it probably does that08:18
macben joined08:18
cmyers but it is completely fucking opaque to the API they present to plugins08:18
litebot_lite_08:18
cmyers you get a GitScmCommandBuilder and call .builder(repo).merge().normal().argument(...)08:19
frogonwheels cmyers: the other thing is - how likely is that Stash uses jgit, and therefore they use some internal jgit voodoo to do it.08:19
canton7 cmyers, github has some metrics it uses to decide whether a merge will conflict, but they're not bullet-proof. a merge it thinks will conflict might, in fact, not08:19
jast there are some classes of merges you can test without actually doing them08:19
but they're pretty limited08:19
joki joined08:19
cmyers but I have no clue how to set HEAD in this instance and their docs are shit08:19
Gamecubic left08:19
cmyers frogonwheels: actually, it shells out to git, it doesn't use jgit08:19
frogonwheels cmyers: Is it just exposing jgit?08:19
cmyers whcih is why it is fast and doesn't suck08:19
frogonwheels cmyers: oh. wow08:19
cmyers wow indeed =)08:19
frogonwheels cmyers: yeah - that makes sense.08:19
rendar joined08:19
jast we should stop developing git and focus on jgit08:20
because everybody loves java08:20
cmyers it is amazing that so many java ninnies all decided to just bit the bullet and shell out all the fucking time08:20
frogonwheels kicks jast.08:20
jast aww08:20
where's the java AbstractLoveFactory08:20
frogonwheels :)08:20
gua_ould joined08:20
cmyers but don't worry, they did it as java-y as possible, with command-builder-factories and shit08:20
jast what a relief08:21
cmyers yeah, dodged a bullet thar08:21
Olipro left08:21
phipes joined08:21
cmyers man, this shit is seriously making my life sad right now =( They do the merge, but I can't use their merge because it happens "later" for some definition of later (appears to happen synchronously, but after my plugin code's entry point)08:22
so if I want to have a merge ref, I need to perform the merge myself08:22
but their API is eye-bleeding obtuse08:23
cads left08:23
cmyers why can't I just fucking do pullRequest.getMergeSha() or something? *whine bitch*08:23
mattcen joined08:24
intellix joined08:24
Bosox20051 left08:24
jast so, what I'm taking away from your monologue is that atlassian is 125% awesome08:25
cmyers stash is the best product they've ever made, and it sucks a whole lot less than their other ones08:25
but yeah, it'll still make you cry08:25
lb1a ahh now i catched up.08:26
jast at some point, someone suggested that git use jira for tracking bugs08:26
alansaul-laptop left08:26
ehmatthes left08:26
lb1a all this java love distracted me08:26
swaechter joined08:26
cmyers jira isn't terrible from a user perspective, but running a large enterprise deployment is a PITA. If they will give the git project a hosted instance, it would be very low-effort08:26
of course, it's sorta weird for the premier OSS SCM to use a closed source bug tracker.08:27
jast they did hand out a hosted instance08:27
girishr left08:27
jast it ended up not being used by anybody08:27
just like the previous time someone set up a bug tracker08:27
cmyers yeah, I guess that's not suprising.08:27
jast it's mostly outsiders who ask for a bug tracker for git08:27
cmyers our company runs on jira like it's our fucking business.08:27
jast our company is all redmine08:27
cmyers but we are a bunch of java ninnies to begin with08:28
jast which has its own special brand of PITAness08:28
cmyers we're super locked into several atlassian solutions08:28
Happzz left08:28
lb1a our company is redmine, but we're all python lovers. so ruby sucks less than java but it still sucks08:28
jast I like ruby08:28
but rails (and everything inspired by it) is cancer08:28
cmyers python could have had me...but...whitespace sensitive => *puke*08:28
jast I don't care about whitespace sensitivity08:29
cmyers so ruby 4evar08:29
aChatir joined08:29
jast but I don't like python's TIOOWTDI approach08:29
cmyers yeah, I cut my teeth on perl, so ruby was a natural path for me too.08:29
jast I write perl at work08:29
cmyers I hear the newest major release of python is still a bit of a mess too, lots of broken libs and whatnot.08:30
scoT_TscoT_T`zZz08:30
jast I hear python 2.x and 3.x are pretty much both used separately08:30
cmyers ruby 2.0 breaks some things but is generally not a disaster.08:30
Poly-C_atwork So the release notes say there's git-1.8.5.3 but no tarballs available.08:30
aChatir left08:30
cmyers oh god, how am I going to do this *back to the grind*08:31
cmyers is grepping the stash source code for examples of doing merges with his fingers crossed08:31
afhammad joined08:31
jkremser joined08:32
jkremser left08:32
jkremser joined08:32
jast .version08:32
gitinfo changed the topic to: Welcome to #git, the place for git help and seared salmon | Current stable version: 1.8.5.3 | Start here: http://jk.gs/git | Seeing "Cannot send to channel" or unable to change nick? /msg gitinfo .voice | git-bisect: No, not like that. Grow up.08:32
jast yay new version08:33
dreiss joined08:33
Poly-C_atwork Yeah but no tarballs yet :-/08:33
vtunka joined08:33
jast Poly-C_atwork: https://github.com/git/git/archive/v1.8.5.3.tar.gz08:33
tobias__ joined08:33
jast fortunately github autogenerates 'em08:34
Poly-C_atwork jast: meh... I was still looking at http://git-core.googlecode.com/files/ :-/08:34
fire left08:34
jast I think the stuff on google code is updated manually08:34
and AFAIK it's not the official location anyway08:34
YoMomma__ left08:35
jast no idea why that's the one linked to on git-scm.com08:35
Poly-C_atwork jast: exactly the URL I posted above ;)08:35
lite_ left08:35
jast so apparently it _is_ official08:35
oh well08:36
Poly-C_atwork jast: it's not on the kernel.org mirrors as well.08:36
Exancillatus left08:37
noname001__ joined08:38
daito joined08:39
jast yeah, all that stuff is cut manually, I think08:39
Happzz joined08:39
fphilipe joined08:41
jackneill joined08:42
jackneill left08:42
jackneill joined08:42
richwestcoast left08:42
m0ltar left08:44
davipt joined08:46
phipes left08:46
m0ltar joined08:47
konadr joined08:47
rath left08:48
konadr left08:48
konadr joined08:48
makubi1 joined08:48
zz_yuvipandayuvipanda08:49
pheaver left08:50
m0ltar left08:50
obert joined08:50
jbarker joined08:51
makubi1 hi! I read that I can use a .gitattributes-file to get rid of the clrf-problem. I also think setting * text=auto or * text is the best setting for me. where is the difference between * text=auto and * text ? is there any difference?08:51
juril joined08:52
lavong joined08:52
marcjs joined08:53
bwreilly left08:54
ahmedelg_ left08:54
m0ltar joined08:55
jast text=auto enables git's automatic detection of textness08:55
luc___ left08:56
jbarker left08:56
makubi1 jast: and how is that different to 'text'?08:56
jast it's not 100% reliable, of course. if you *know* some type of file is *always* text, explicitly setting text is the best idea. similarly, if you *know* some type of file is *never* text, expicitly setting -text is the best idea08:56
Balliad joined08:56
jast 'text' forces git to assume that the file contains text, and so line ending conversion is enabled08:56
makubi1 jast: alright, I understand, so binary files e.g. would be handled similar08:56
if I use '*'08:57
Happzz left08:57
ben_alman joined08:57
jast yeah. if you use '* text', all files will be converted, even binary files (so that'll break them)08:57
luc___ joined08:57
makubi1 jast: alright, thank you very much :)08:57
jast if you use '* text=auto', you get behaviour similar to enabling core.autocrlf08:57
makubi1 jast: ok, so I may go with explicitly enabling it08:58
or enabling auto and explicitly disabling some file endings08:58
gonna have to think about it, thank you very much!08:59
xlinkz0 left08:59
lite_ joined08:59
adsc joined09:00
jalmeida joined09:00
ben_alman left09:01
adsc someone merged a branch into master too early...what is the general procedure to fix this? checkout the previous commit of master and then?09:01
GyrosGeier that's it09:01
or rather, use reset09:02
basically, you have to make master point at the previous commit09:02
Exancillatus joined09:02
gdogrady left09:03
lifelike left09:03
gdogrady joined09:03
KeiKun joined09:03
goTAN joined09:04
valtih joined09:04
MattMaker left09:04
thevishy joined09:04
ahmedelgabri joined09:04
adsc and the dude can then push into the correct branch and all should be well?09:04
shruggar joined09:04
Norm_ joined09:05
Exancillatus left09:07
MattMaker joined09:07
ben_alman joined09:08
psoo joined09:09
emmajane[emmajane]09:09
elbeardmorez joined09:11
luc___ left09:11
makubi1 GyrosGeier: does this really help? I think if you would have to revert all commits that were merged from branchX --> master09:11
forget the 'if'09:12
luc___ joined09:12
ben_alman left09:12
mitz joined09:13
davipt left09:14
asedeno left09:15
nnyk_ left09:17
takamichi left09:17
ariscop left09:18
takamichi joined09:19
ArcTanSusan left09:19
lavong left09:19
irqq joined09:20
jast once the merge has been pushed, things get difficult09:20
!revert_merge09:20
gitinfo [!faulty_merge] If you have published a merge commit that turned out to be faulty and you'd like to get rid of it, you're probably not going to have a good time. Here's the full story: https://raw.github.com/git/git/master/Documentation/howto/revert-a-faulty-merge.txt09:20
psoo left09:20
psoo joined09:21
dreiss left09:22
jmux joined09:22
goTAN left09:23
dobalina joined09:23
marhaban joined09:23
davividal left09:23
asedeno joined09:24
[emmajane]emmajane09:24
luc____ joined09:24
Vortex35 joined09:25
arand joined09:25
goTAN joined09:26
saorge joined09:26
luc___ left09:26
adsc i just read up on reset, and it doesn't seem to be that scary09:27
Vortex34 left09:28
jmux Is there a way to show the parent branch for a commit? My actual problem is the gerrit review process, which fetches and checks out the change (FETCH_HEAD).09:28
arand adsc: presumably, if you read up on it first, nothing is "scary" ;)09:28
jmux SO basically I want to find the first branch in my fetched change history and check, if its different from the current working branch.09:29
ciampix joined09:30
ajunior left09:30
saorge_ left09:30
simesy left09:31
jmux I could write a script, but I wanted to ask, if there already exists a command.09:31
adsc holy crap, the link jast posted is scary, though, hella scary09:32
teran left09:32
mellernoia joined09:35
jast adsc: the problem is that if only one person fixes the merge in their repo, but other people have already obtained a copy of it, they'll reintroduce the merge the next time they push09:35
adsc ow, that sucks09:35
jast if nobody else has the merge yet, you can just obliterate it with 'git reset' or something like that09:35
adsc they already have it09:35
jast or you can talk to everyone who has a copy of the merge and walk all of them through removing it in exactly the same way09:36
kalleth jast: good three way merge tool for osx go09:36
jast kalleth: I don't use osx09:36
kalleth humbug.09:36
jast my heart weeps for your suffering09:36
kalleth somehow i doubt that09:37
lite_ left09:37
lite__ joined09:37
krosmen32 joined09:41
goTAN left09:42
intellix left09:42
joelrobichaud joined09:43
lite__ left09:44
MattMaker left09:44
Happzz joined09:44
MattMaker joined09:44
simesy joined09:46
jrobichaud left09:47
KeiKun left09:47
KeiKun_ joined09:47
MattMaker left09:47
psyl0n joined09:47
Advocation joined09:47
MattMaker joined09:48
JTAAZQO5 joined09:48
vince_prignano joined09:48
goTAN joined09:48
Macaveli left09:49
tvw joined09:49
surfperch joined09:49
nnyk_ joined09:49
Olipro joined09:49
Nizumzen joined09:49
jbarker joined09:51
endiruna joined09:51
Macaveli joined09:52
kossy left09:52
Silmarilion joined09:53
mikecmpbll joined09:54
ChrisAnn joined09:54
eletuchy_ joined09:54
goTAN left09:54
intellix joined09:55
zackiv31 left09:55
jbarker left09:56
endiruna left09:58
eletuchy left09:58
kossy joined09:59
eletuchy_ left09:59
diegoviola left10:00
kossy left10:01
macben left10:01
surfperch left10:01
adsc alright, my master now points to the commit before the merge, how can I get that into the remote without having to merge?10:01
takamichi left10:02
aspiers left10:02
aspiers joined10:03
teran joined10:03
dyng left10:04
dyng joined10:04
macben joined10:04
takamichi joined10:04
tvw left10:05
xjiujiu left10:05
albertgrala joined10:05
simesy left10:06
poulson joined10:06
bitkid left10:06
bitkid joined10:06
xjiujiu joined10:07
tomek left10:07
spacepluk left10:08
teran left10:09
blinkdesign joined10:09
kossy joined10:09
moondoggy left10:09
dyng left10:09
alezost left10:10
Gavrisimo joined10:10
xjiujiu left10:10
afhammad left10:10
alezost joined10:10
kossy left10:10
dobalina1 joined10:11
Eridius left10:11
Eridius joined10:11
petey joined10:11
moondoggy joined10:11
tomek joined10:11
zackiv31 joined10:11
xjiujiu joined10:12
gtmanfred left10:12
martinjlowm joined10:12
kossy joined10:12
spacepluk joined10:13
gtmanfred joined10:13
angelsl joined10:13
dobalina left10:13
psyl0n left10:14
cff left10:15
goTAN joined10:15
fphilipe left10:16
petey left10:16
LuxuryMode joined10:17
hyperair left10:17
kossy left10:17
kossy joined10:19
amcsi_work_ left10:19
amcsi_work joined10:19
weiyang left10:21
martinjlowm left10:21
Bosox20051 joined10:21
dean[h] joined10:22
dean[h] Hi. I have a change in staging: renamed: web/assets/javascripts/lib/jQueryRotateCompressed.js -> web/assets/javascripts/lib/jQueryRotate.js <-- how do i undo that change10:22
xjiujiu left10:22
xjiujiu joined10:22
dean[h] rename the file myself, or is there something i can do using git10:23
dprophit left10:25
ewnd9 joined10:26
moritz dean[h]: a rename is just a git add and a git rm. 'git status' tells you how to undo both10:26
or if you want to discard all uncommitted changes, you can say 'git checkout .'10:27
daito left10:27
diegoviola joined10:29
daito joined10:30
xjiujiu left10:31
xjiujiu joined10:32
goTAN left10:33
krosmen32 left10:33
halu joined10:33
introom left10:34
introom joined10:35
jaeckel left10:35
echo-area left10:35
phrykwhatvoiceplease10:36
whatvoicepleasephryk10:36
davipt joined10:36
lite_ joined10:36
xjiujiu left10:38
luc____ left10:38
xjiujiu joined10:38
mklappstuhl joined10:39
codehotter left10:40
codehotter joined10:40
gelardi_ joined10:40
kossy left10:41
marhaban left10:41
BlueOrg joined10:42
BlueOrg left10:42
Nizumzen left10:42
BlueOrg joined10:42
BlueOrg left10:42
BlueOrg joined10:43
BlueOrg left10:43
BlueOrg joined10:43
halu left10:43
macben left10:44
WaReZ joined10:46
dyng joined10:47
LBV_User joined10:47
swaechter left10:47
blinkdesign left10:48
swaechter joined10:50
jbarker joined10:51
adsc alright, i have now pushed --force my local reset master into origin, looks good so far10:51
if I do the reset on all workstations that have already pulled the faulty merge, I should be fine, right?10:52
lavong joined10:52
adsc as if it never happened10:52
aspiers left10:53
m0ltar left10:54
jbarker left10:56
m0ltar joined10:56
diegoviola left10:56
Argure left10:56
psyl0n joined10:58
vurma joined10:59
dobalina joined11:00
DoniRS joined11:00
jaeckel joined11:01
PeterBooker joined11:02
Argure joined11:02
dobalina1 left11:02
jbarker joined11:02
daito left11:03
_5kg joined11:04
mikecmpbll left11:05
m0ltar left11:05
vtunka left11:05
jkremser left11:05
MattMaker left11:07
MattMaker joined11:07
jbarker left11:07
matteo joined11:07
mikecmpbll joined11:09
osse adsc: c'rec11:11
rewrite history soviet style11:11
SeptDePique joined11:12
takamichi left11:12
tvw joined11:13
Kayra joined11:13
eletuchy joined11:14
m0ltar joined11:14
Nizumzen joined11:15
Nizumzen left11:15
aspiers joined11:15
Arun joined11:15
SeptDePique hello all! pardon my stupid questions... if i set up a git repository and then commit with eclipse/egit...., is it possible to access this state of project at a future date?11:15
GyrosGeier sure11:16
that's the point of git11:16
herdingcat left11:16
SeptDePique ok thx... i just wasn't sure, if i have to consider some configuration settings or so...11:16
Gavrisimo left11:17
ben_alman joined11:18
mklappstuhl left11:18
Noctis_Lux left11:20
GyrosGeier SeptDePique, everytime you do a commit, that state is recorded, regardless of which tool you use on the higher level11:20
SeptDePique thx again11:21
mklappstuhl joined11:22
ewnd9 left11:23
teran joined11:23
ben_alman left11:23
takamichi joined11:26
goTAN joined11:29
lite_ left11:29
skorgon_ joined11:29
jbarker joined11:30
MindfulMonk joined11:30
adsc left11:32
canton7-mac joined11:33
jalmeida left11:34
dmin joined11:34
dmin Hi, I'm trying to push a commit to the server (apache) on a windows machine in Git Bash... but I'm getting "http-push is not a git command"11:35
dobalina left11:36
dmin does anyone know what could be the culprit?11:36
karupanerurazz_karupanerura11:36
josealobato left11:36
blinkdesign joined11:36
dougsland joined11:40
mklappstuhl left11:40
pfFredd joined11:41
BlueOrg left11:41
vurma left11:42
skorgon_ left11:42
Gavrisimo joined11:43
macben joined11:43
jkremser joined11:43
jkremser left11:43
jkremser joined11:43
mklappstuhl joined11:44
Watabou left11:44
intellix left11:45
dyng left11:45
dyng joined11:46
arand dmin: Seems to indicate that git isn't installed correctly, "git --exec-path" should point to a directory where the different git binaries are available.11:46
eijk_ joined11:46
dbolser left11:47
dmin arand: git --version gives me : git version 1.8.5.2.msysgit.011:47
issueing 'git http-push' gives the error saying its not a command11:47
is it not supported on windows?11:47
mklappstuhl left11:48
eletuchy_ joined11:48
moondoggy left11:48
eletuchy left11:48
eijk left11:49
dyng left11:50
moondoggy joined11:50
moondoggy left11:51
moondoggy joined11:51
introom left11:52
adsc joined11:52
psyl0n left11:52
fluxdude joined11:54
lb1a dmin, man git http-push say something about temporarily disabled11:55
gitinfo dmin: the git-http-push manpage is available at http://jk.gs/git-http-push.html11:55
paulweb515 left11:55
psyl0n joined11:58
psyl0n left11:58
psyl0n joined11:58
dmin lb1a: yes I read about the <7.16 version11:58
LuxuryMode left11:58
dmin but the libcurl shipped with the git Windows download is 7.3011:58
ewet joined11:59
marcjs left12:00
dmin on a Linux box with a low curl version git nicely says http-push is disabled ... but on the latest windows version, it just says "http-push is not a git command"12:00
the curl version is ok, so I'm puzzled12:00
ewet left12:01
mklappstuhl joined12:01
arand dmin: And you have you checked the --exec-path?12:02
ewnd9 joined12:02
renatow joined12:03
dmin $ git --exec-path12:03
C:\Program Files (x86)\Git/libexec/git-core12:03
arand Chekc if http-push exists there.12:03
NET||abuse joined12:04
simesy joined12:04
NET||abuse hi folks, i'm joining a project and the other devs have the code for the site in the root of the git repository, so i checkout to ~/projectname and i have index.php directly in that directory.12:04
dmin hm, no git-http-push.exe12:05
NET||abuse I need to add various assets and build scripts to automate deployment but I dont want to disrupt toher devs workflows untill i have to. how can i push the code into a subdirectory without modifying where they checkout from12:05
can i wrap this as a submodule?12:05
I've never done that before, so I'm not sure if that's the correct approach. if there's a better way please let me know?12:06
cmpera joined12:06
dmin should the latest Windows download include a git-http-push.exe ?12:06
davipt left12:07
kriks joined12:07
ferreum left12:07
rvsjoen left12:08
rawtaz NET||abuse: perhaps you can create a new branch, work on that, and puch it to the server for your deployment testing needs?12:09
tarkus joined12:09
NET||abuse could i continue to merge changes from master even though the paths would be different?12:10
can you map a moved directory between branches like that?12:10
introom joined12:10
dmin_ joined12:11
jargon left12:11
dmin_ sorry, got disconnected. did I miss anything?12:11
Kayra left12:11
NET||abuse dmin_: omg, you would not believe what happend while you were gone!!!12:11
tgkokk joined12:11
dmin_ lol12:12
arand dmin: no12:12
petey joined12:12
dmin_ so is the git-http-push.exe not in the windows release deliberately ?12:12
mklappstuhl left12:12
rawtaz NET||abuse: yes you can merge changes from master to your custom branch12:12
adsc damn, it's exactly like described in the link jast posted...i went back to a commit before the merge, then pushed that with --force and thought all is well, but on the next workstation, when I did the same to the local repo, then pulled, it pulled in the initial commit of the branch that was erroneously merged12:13
arand (I would guess that the binary is supposed to be there, but I don't really know)12:13
rawtaz NET||abuse: not sure what you mean by map a moved directory between branches12:13
Kayra joined12:13
adsc i guess the branches remain merged....12:13
dmin_ hmm12:13
adsc this will be a nightmare to fix12:13
NET||abuse ok, so master ->branch move all files into one subdirectory merge <- from master12:13
mklappstuhl joined12:13
GeertV left12:14
rvsjoen joined12:14
GeertV joined12:14
NET||abuse I dont like the idea of submodules for this, build and puppet scripts and things i want to add should be part of the code base, not some other project.12:14
rawtaz NET||abuse: why do you need to move the files into a subdirectory? by creating a branch you get the isolation from others' work that you want for starters. the others wont see your work unless they look for it12:14
freeed joined12:15
dmin left12:15
dmin_dmin12:15
NET||abuse yeh, but it might take me 2 weeks to get this setup done, by then the changes on master will be substantial, i'd love to be able to keep up with changes on master12:15
afhammad joined12:16
petey left12:17
Exancillatus joined12:18
ben_alman joined12:19
rawtaz NET||abuse: you can regularly merge master to your branch to keep your branch/changes up to date with the rest of the team's work12:20
Exancillatus left12:20
rawtaz consider this a feature branch or so12:20
NET||abuse oh yeh, a feature branch for sure, that's what i mean, can i merge against the moved files though, that's where i'm worried12:20
ferreum joined12:21
dyng joined12:21
rawtaz i dont understand the question12:22
NET||abuse sorry :)12:22
aprx joined12:22
rawtaz you can merge whatever you want, and if there's a conflict you will have to resolve that as a merge conflict12:22
jargon joined12:23
rawtaz if someone else made a change in a file that you have moved i *guess* that will result in a conflict. but im not sure, just a newbie like you :p12:23
hopefully someone else can verify/correct that12:23
dmin Ok... I've set up a special useraccount for pushing over ssh... apparently trying to use http dav push is asking too much ;-)12:24
works over ssh12:24
goTAN_ joined12:24
goTAN_ left12:24
ben_alman left12:24
dmin thanks anyways ;0)12:24
goTAN left12:24
emmajane[emmajane]12:24
NET||abuse yeh, my question is what you said above. when they change the file in master but i've moved in branch and i try to merge, a conflict or will the move be tracked appropriately, is git that smart :)12:24
I guess i'll just try. #12:25
dmin left12:25
skorgon_ joined12:26
saustin left12:26
rawtaz i honestly dont know. but you can easily try it. make a dummy repo, make a file, create a branch, move the file in it and commit, checkout the other/first branch, edit the (not moved) file and commit, checkout the second branch again and try to merge from the first branch12:26
Nizumzen joined12:27
AzizLight joined12:29
AzizLight Hi everybody12:29
ciampix left12:29
cebor left12:29
Raging_Hog left12:29
afhammad left12:30
rethus joined12:30
the_cybersphinx joined12:30
xintron left12:30
jbarker left12:31
cebor joined12:31
AzizLight I think I found a bug in git, or it's a misunderstanding of how git-commit works: When I have no files staged, and I do `git commit ""` it stages all my tracked files before the commit. I would expect git to tell me that there are not files to commit...12:31
is that a known bug, and is there a workaround?12:31
Nizumzen left12:31
xintron joined12:31
ben_alman joined12:32
tgkokk left12:33
JrCs left12:33
JrCs joined12:34
ariscop joined12:34
rawtaz &12:34
zequence joined12:35
kcj left12:35
Noldorin joined12:35
bremner AzizLight: ooc, why are you passing "" to git commit?12:36
ewet joined12:36
AzizLight bremner: I am creating a wrapper bash function around git commit and sometimes it happens that git commit is called with ""12:37
slyfox left12:37
bretzel joined12:37
JohnBat26 left12:38
nutron left12:38
bremner I guess it might be a bug. But I think correct behaviour would be to stop with an error, so maybe you should try to avoid calling with "".12:39
vurma joined12:39
bremner "" is not a valid filename, afaik12:39
[emmajane]emmajane12:39
slyfox joined12:39
slyfox left12:39
slyfox joined12:39
Silmarilion left12:39
intellix joined12:40
bretzel Hi, I have a root-dir projects as one repo( remote ). but I have screwed one of my subdir ( sub-project ). I need 1: commit and push the other dirs, and then rollback back to the last-push for the screwed subdir(project)... ;-) cough!12:40
lite_ joined12:40
ph88 joined12:41
ph88 how can i see which commit is tagged ?12:41
jast many commits may be tagged12:42
Kayra left12:42
ph88 yes how can i view the tags on a commit ?12:42
or rather a list of commits with their tags12:42
AzizLight bremner: I know that "" is not a valid filename, but the point is: an error should be thrown, files should not be staged... looks like a bug..12:42
bremner AzizLight: right. But your script also has a bug in it, and it might be faster to fix that...12:43
swaechter left12:43
Droolio joined12:44
Silmarilion joined12:44
AzizLight bremner: I know. And I will fix it. Just wanted to report what I found. And it would be nice if that "bug" could be fixed.12:44
skorgon_ left12:44
bremner AzizLight: sure, but if you really want to report a bug, send a mail to !list12:44
gitinfo AzizLight: [!mailing_list] The mailing list can be reached via [email@hidden.address] You don't need to subscribe to the list, you will always be put in cc on reply. Read archives at http://j.mp/gitlist12:44
AzizLight bremner: ok. Will do. Thanks12:45
lite_ left12:45
kriks left12:46
Exancillatus joined12:46
MindfulMonk left12:47
nutron joined12:51
plasticle joined12:51
jasonroyle joined12:51
arand ph88: git log --decorate, or maybe something like "git tag | while read -r tag; do git show --decorate "$tag"; done"12:51
psoo left12:52
jasonroyle left12:52
jasonroyle joined12:53
freestyl3r joined12:53
simesy left12:53
doev joined12:54
marcjs joined12:54
jasonroyle left12:54
jasonroyle joined12:55
Agen_Terminator Does anyone know how to use git commit on a specific file (as opposed to the last 2 commits for example)? Thanks12:55
jasonroyle left12:57
shruggar Agen_Terminator, can you rephrase that?12:57
Agen_Terminator, I don't understand what you mean by "as opposed to the last 2 commits"12:57
ewnd9 left12:58
dtrott joined12:58
sohail joined12:59
sohail left12:59
sohail joined12:59
bristleback joined12:59
bristleback hi!12:59
gitinfo bristleback: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.12:59
bristleback !backup12:59
gitinfo Worried about your data while trying out stuff in your repo? To back up commit history on all branches/tags: `git clone --mirror`. To backup everything, including work tree and staging area: `tar cf repo-backup.tar repodir`. Or do your experiment in a throwaway clone instead. See also http://sethrobertson.github.com/GitBestPractices/#backups12:59
MindfulMonk joined12:59
bristleback if I have made a commit into a public repository on github and now I have to modify that commit, how can I do it without forking the project locally?13:00
josealobato joined13:00
shruggar why do you need to modify the commit?13:00
josealobato left13:00
shruggar and define "forking" in this context, as github tends to make people abuse the term13:01
cannonball joined13:01
jbarker joined13:01
marcjs left13:02
gypsymau1o left13:02
marhaban joined13:04
lb1a bristleback, !xy13:04
gitinfo bristleback: Woah, slow down for a bit. Are you sure that you need to jump to that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective...13:04
smashwilson joined13:06
bristleback I have made a change in the documentation of cakephp and commited into their repository on github13:06
jbarker left13:06
bristleback they made some comments and I need to add something to that commit13:06
macben left13:06
bristleback how can I do it?13:06
lazers left13:06
macben joined13:07
ph88 thx arand13:07
dsdeiz left13:08
MindfulMonk left13:08
adsc left13:09
mikecmpbll left13:09
cagedwisdom left13:09
mikecmpbll joined13:09
ph88 what's the best way to take parts of a commit and move them to a new branch ?13:09
arand ph88: cherry-pick --no-commit and then edit as needed.13:11
caasig left13:11
ph88 cherry-pick xD13:11
rabbite joined13:12
vtunka joined13:12
Kayra joined13:13
yacks joined13:15
JerryT left13:16
marcjs joined13:17
tgkokk joined13:17
nutron left13:17
Kayra left13:18
niatish joined13:19
vtunka left13:20
nutron joined13:20
facundor left13:22
_5kg left13:22
marhaban left13:23
thomas_b joined13:23
bristleback anyone any idea about my problem?13:23
carbon joined13:24
carbon left13:25
tgkokk left13:26
xlinkz0 joined13:26
rfoust left13:27
josealobato joined13:28
sohail left13:28
danicampa901 joined13:29
vtunka joined13:30
rudisimo joined13:31
mitz left13:31
bgerber left13:32
Sly1986 joined13:32
JohnBat26 joined13:34
ewnd9 joined13:35
flaguy48 left13:37
flaguy48 joined13:38
llaskin joined13:38
bgerber joined13:39
calcifea left13:39
swaechter joined13:40
ahmedelgabri left13:40
calcifea joined13:40
Hounddog joined13:40
cdleonard1 left13:41
cdleonard joined13:41
tgkokk joined13:42
llaskin https://gist.github.com/llaskin/4a17dcb4fa68fc8af1e7 I wrote a question up in my gist13:42
can anyoen help?13:42
ahmedelgabri joined13:43
m0ltar left13:43
ItSANgo left13:44
iderik left13:45
m0ltar joined13:46
MacGyver If experimental only builds on master, i.e. if there's no changes being merged back, you can simply rebase experimental on top of the new master.13:46
josealobato left13:47
fire joined13:48
ffio joined13:48
llaskin well how would I put experimental on top of the existing master?13:49
I am not "rebuilding my entire repo" here….trying to modify existing structure right?13:49
ItSANgo joined13:49
Noldorin left13:50
diegoviola joined13:50
mizu_no_oto joined13:50
jbarker joined13:51
breakingthings joined13:51
fire left13:53
Noldorin joined13:53
ffio left13:53
tmcmahon joined13:53
dfanjul joined13:54
shinnya joined13:55
_Vi left13:55
Exancillatus left13:55
tmcmahon left13:55
jerius joined13:55
jbarker left13:55
thrakcattack left13:56
autopilot joined13:56
wendellM joined13:57
autopilot hi, I've installed git with `make config ; ./configure ; make ; make install`, there doesn't appear to be an uninstall target... please could someone tell me how I remove git?13:57
thrakcattack joined13:58
mizu_no_oto left13:59
skorgon_ joined13:59
cmpera left14:00
lb1a bristleback, make a new commit?!14:00
bristleback no, not make a new commit, but modify the previous commit on github14:01
cmpera joined14:01
lb1a bristleback, a commit is not changeable14:01
sohail joined14:02
sohail left14:02
sohail joined14:02
psyl0n left14:02
gelardi_ left14:02
lb1a bristleback, published commits should also never be rewritten (!rewrite).14:02
gitinfo bristleback: [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum14:02
decotii joined14:03
konadr left14:03
simesy joined14:04
konadr joined14:04
konadr left14:04
bristleback but not rewriting public history because the commit was never merged with the repository14:04
but anyway14:04
I get the idea14:04
goTAN joined14:04
konadr joined14:04
lb1a bristleback, if you created a commit in a repo hosted on github, wheter due a push or in their webfrontend, this commit is public14:05
it's not a matter of merge14:05
bristleback ok14:05
thanks14:05
lb1a bristleback, create a commit that does the right thing, or maybe revert your 'wrong' commit previous to a brand new commit...14:06
hellopat joined14:06
b3tamax left14:06
bristleback and how can I do that, revert the commit?14:07
that is actually what I'm trying to do14:07
niatish left14:07
lb1a i doubt you can do it via the webgui. you'll have to clone it locally and use `git revert`14:07
man git revert14:07
gitinfo the git-revert manpage is available at http://jk.gs/git-revert.html14:07
bristleback ok14:07
lb1a maybe also !revert helps14:07
gitinfo That's a rather ambiguous question... options: a) make a commit that "undoes" the effects of an earlier commit [man git-revert]; b) discard uncommitted changes in the working tree [git reset --hard]; c) undo committing [git reset --soft HEAD^]; d) restore staged versions of files [git checkout -p]; e) move the current branch to a different point(possibly losing commits)[git reset --hard $COMMIT]?14:07
lb1a option a14:08
bristleback I now know what I have to do14:08
Noldorin left14:08
simesy left14:08
ahmedelgabri left14:09
MacGyver llaskin: Look into git rebase and what it does. Also, you may want to look into hooks if you actually mean you want to automate the process.14:10
ben_alman left14:10
JerryT joined14:10
llaskin MacGyver: nah not worried about automating this process14:12
rethus left14:12
nilg joined14:13
gwb3 left14:13
rurufufuss joined14:14
cannonball Hi all. I had what I think is a misconfiguration in my .git/config. Let me describe it, then I'll ask the question.14:15
Kayra joined14:15
cannonball Through some previous commandline incantations, I had a remote which had a non-default fetch setting. The default is:14:16
rfoust joined14:16
gwb3 joined14:16
_tpavel joined14:16
cannonball fetch = +refs/heads/*:refs/remotes/NAME/*14:16
But I had ended up with an actual branch name instead of the *.14:16
At some point, I did a git push --delete REMOTE BRANCH, and that branch no longer existed on the remote, but the .git/config still referenced it.14:17
rurufufuss left14:17
shingshang joined14:17
mizu_no_oto joined14:17
Luciano joined14:17
Luciano hi14:17
gitinfo Luciano: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.14:17
Luciano list14:18
juliohm joined14:18
Luciano I need a list film14:18
help me14:18
please14:18
cannonball Calling get fetch or git remote update ended up with a ssh hangup. I had to manually change the .git/config for it to work right. Was there a way I could have done this with the git cli instead of manually editing the .git/config?14:18
jast a what?14:18
Luciano tnx14:19
Luciano left14:19
jbarker joined14:22
gdogrady left14:22
tma996 joined14:25
str joined14:25
livingstn joined14:26
goTAN left14:26
Misan left14:27
cmn cannonball: you can use git config to remove particular lines, though I'm not sure it would have been more confortable14:28
zoig joined14:28
cmn but the ref being in a fetch refspec shouldn't have anything to do with an ssh hangup14:28
aChatir joined14:29
cannonball cmn: It complained that the remote branch didn't exist and just closed the connection.14:29
Destos joined14:29
cannonball So I guess my description wasn't exactly accurate.14:29
petey joined14:29
cmn that's something completely different from a hangup14:29
LuxuryMode joined14:31
GODDOG joined14:31
paulweb515 joined14:31
_Vi joined14:32
tonythomas01 joined14:33
psyl0n joined14:33
GeertV left14:33
AaronMT joined14:33
irqq left14:36
skorgon_ left14:37
dtrott left14:37
LBV_User left14:37
Diemuzi joined14:37
gitinfo set mode: +v14:37
paulweb515 left14:38
ehmatthes joined14:38
GODDOG left14:38
GODDOG joined14:39
nZac joined14:40
dyng left14:40
nZac left14:40
kermit left14:40
dyng joined14:40
tonythomas01 left14:42
IrishPrime joined14:42
CheckDavid joined14:44
FortySix2 joined14:45
mizu_no_oto left14:46
HelperW joined14:47
b3tamax joined14:47
rawtaz is there a way a move 0f4b138,6214afe,3c53773,acece25 (lines 11-8) to after/top of head other than cherry-picking? http://pastebin.mozilla.org/401233214:48
Cephalostrum left14:48
phile joined14:48
rawtaz i rebased master on line 20, but only want to grab the last four commits from the old "tree"14:48
dyng left14:48
ewet left14:49
dyng joined14:49
matheus23 joined14:50
soee left14:50
FortySix2 left14:50
paulweb515 joined14:50
FortySix2 joined14:51
Hounddog_ joined14:51
hyperair joined14:51
llaskin left14:52
Poly-C_atwork left14:52
shinnya left14:52
Hounddog left14:52
acharlieh joined14:53
rednaks joined14:53
offby1 sure sounds like cherry pickign14:54
rawtaz yeah14:54
Bass10 joined14:54
kai_ joined14:54
rawtaz just curious if there's another way that is equally "simple"14:54
bhldev__ joined14:54
offby1 probably not.14:54
rawtaz ok :)14:54
I WILL CHERRY PICK14:55
nnyk_ left14:55
rawtaz thanks offby114:55
offby1 you could interactively rebase that branch onto the other, then delete the commits you don't want to keep, but that's probably harder14:55
bhldev_ left14:55
rawtaz right. yeah sounds harder for sure14:55
xjiujiu left14:56
dglambert joined14:57
donmichelangelo left15:00
thiago joined15:00
hyperair left15:00
donmichelangelo joined15:01
sohail left15:01
Macaveli left15:01
goTAN joined15:02
makubi left15:02
nZac joined15:02
swaechter left15:02
axl_ joined15:03
dsdeiz joined15:04
deanclkclk joined15:04
deanclkclk question15:04
vince_prignano left15:04
arvind_khadri left15:04
deanclkclk I am geting an error when I try to clone -> could not read username for "https://github.com": No such file or directory15:05
vince_prignano joined15:05
deanclkclk how can I change from git where the ssh directory is?15:05
dean[h] left15:05
cmn you don't, you tell ssh, but first you would have to use the ssh transport15:06
makubi joined15:06
deanclkclk huh?15:06
cmn look at your url, what does it say to use?15:06
WaReZ left15:07
deanclkclk I don't understand15:07
WaReZ joined15:07
cmn the url you just told us, it starts with https://15:08
diegoviola left15:08
autopilot left15:08
axl_ left15:08
vtunka left15:09
mikecmpbll left15:09
eletuchy_ left15:09
Cephalostrum joined15:09
cmn thus it's using the http(s) transport, not ssh15:09
orion joined15:09
Biopandemic2 joined15:10
Biopandemic2 left15:10
Biopandemic2 joined15:10
irqq joined15:10
eletuchy joined15:10
orion Hi. I want to merge cmake_refactoring in to master~1. Is this possible?15:10
cmake_refactoring is a branch of mine, but the master branch changed a lot in one commit.15:11
However, if I do git diff master~ cmake_refactoring, the diff is clean and nice.15:12
ahmedelgabri joined15:12
Kayra left15:12
ben_alman joined15:12
orion And I want to marge THOSE changes in. I don't want to resolve 1,000 merge conflicts introduced between master~ and master.15:12
xjiujiu joined15:13
Dougie187 joined15:13
goTAN left15:13
acharlieh left15:14
eletuchy left15:15
deanclkclk so how would I be able to fix the problem?15:15
VictorCL joined15:15
Biopandemic2Biopandemic15:15
crazydiamond joined15:15
cmn either fix the issue with the credentials cache or curl or whatever is throwing that error, or use a ssh url if what you want is to use ssh to authenticate15:16
dsdeiz left15:16
jmux left15:17
mrbubbles joined15:17
acharlieh joined15:18
Not_Whatever joined15:18
GT4066 left15:18
Tajha left15:19
Kayra joined15:19
Foldager joined15:19
BeerSerc_ left15:20
vtunka joined15:21
jnavila_ left15:21
charon left15:21
BeerSerc joined15:22
papegaaij left15:23
ErKa joined15:23
hyperair joined15:23
sec^nd joined15:24
sec^nd I'm working on a rather medium sized projected for a company so I can't give many details but when I try to merge I always have merge conflicts. How do I fix this?15:25
Diemuzi left15:25
jnavila joined15:27
bremner sec^nd: come up with a minimal example that doesn't contain proprietery information.15:27
or hire a consultant under NDA ;)15:27
skorgon_ joined15:27
b3tamax left15:28
sec^nd bremner: I pull master, branch from that, they do a bunch of stuff elsewhere in the code, I try to do a merge with master before making a pull request.15:28
bremner: not sure what happened but everytime I get a merge conflict with their code not my new stuff which is fine, just stuff they pushed into master15:28
bremner: if master has been updated why do I get merge issues / conflicts?15:28
dtrott joined15:28
Exancillatus joined15:28
bremner that is pretty odd. Do you get the same problem if you rebase on master?15:28
Exancillatus left15:29
mklappstuhl left15:29
el3ctron_ joined15:29
bwreilly joined15:30
bambams_ joined15:30
_5kg joined15:30
jnavila left15:30
mangoMan joined15:30
mangoMan EVERYONE SEND A MESSAGE TO THAT FAG METALEER HE IDLES IN ##PHYSICS AND #DEFOCUS HE IS A CANCER ON THIS FUCKING NETWORK shgh15:31
EVERYONE SEND A MESSAGE TO THAT FAG METALEER HE IDLES IN ##PHYSICS AND #DEFOCUS HE IS A CANCER ON THIS FUCKING NETWORK xdhdjg15:31
EVERYONE SEND A MESSAGE TO THAT FAG METALEER HE IDLES IN ##PHYSICS AND #DEFOCUS HE IS A CANCER ON THIS FUCKING NETWORK srfhdtj15:31
EVERYONE SEND A MESSAGE TO THAT FAG METALEER HE IDLES IN ##PHYSICS AND #DEFOCUS HE IS A CANCER ON THIS FUCKING NETWORK asryyut15:31
mangoMan left15:31
deanclkclk cmn: I think the problem is git trying to access -> user/.ssh/? for pub key15:31
iderik joined15:31
deanclkclk the problem is15:31
cmn it's not15:31
ChanServ set mode: +o15:31
dyng left15:31
sec^nd ...15:31
bremner set mode: +b15:31
cmn git isn't trying to do anything with ssh15:32
sec^nd bremner: what is the difference between rebase and merge?15:32
Tajha joined15:32
deanclkclk the problem is "usr" directory has security restrictions15:32
dyng joined15:32
skorgon_ left15:32
bremner sec^nd: explained in chapter 3 of !book15:32
gitinfo sec^nd: There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book but also look at !bottomup !cs !gcs !designers !gitt !vcbe and !parable15:32
tgkokk left15:33
bremner sec^nd: in fact your problem could be caused by too much rebasing either by you or by the others.15:33
h0bbit_ left15:33
skorgon_ joined15:33
sec^nd bremner: what book?15:34
bremner the one that fsbot mentions just above15:34
sec^nd oh15:34
tgkokk joined15:34
bremner err, gitinfo. wrong bot15:34
becks__ joined15:34
ChanServ set mode: -o15:35
Swayz joined15:35
zoig left15:35
goTAN joined15:35
xequence left15:36
bremner sec^nd: is there any chance that your collaborators are force pushing the repo after rewriting history?15:37
dyng left15:37
bwreilly left15:37
rob_w left15:37
DolphinDream joined15:38
mizu_no_oto joined15:38
Exdaix left15:38
LuxuryMode left15:38
Exdaix joined15:38
lb1a left15:38
tplaner joined15:39
kai_ left15:40
hyperair left15:40
eletuchy joined15:40
kermit joined15:41
fire joined15:41
hyperair joined15:41
ojacobson joined15:42
sec^nd bremner: I'm not sure, how would I know if they are doing this?15:42
sr105 joined15:42
bremner sec^nd: when you fetch, it should mutter about "forced update"15:43
ben_alman left15:43
sec^nd bremner: I'm not getting those issues, just a bunch of merge conflicts15:43
zackiv31 left15:43
kbart left15:43
ben_alman joined15:44
rgarrigue joined15:44
psyl0n left15:44
rgarrigue Hi guys15:44
gitinfo rgarrigue: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.15:44
swaechter joined15:44
nilg left15:45
Cyb3r-Assassin left15:45
zackiv31 joined15:45
macben left15:45
rgarrigue I want to get a github repo at a specific state, knowing I got the commit SHA115:45
bremner sec^nd: check that the hashes match on "common" commits. If not, your collegues have been naughty.15:45
ojacobson rgarrigue: goals unclear, can you back up a bit and tell us the bigger picture?15:47
Cyb3r-Assassin joined15:47
Targen left15:47
rgarrigue Well, I made a pull request for a small feature on a github repo, the guys say "try again", I want the source to resume work15:48
Here is the pull req: https://github.com/ansible/ansible/commit/1251327c7327ee771f6543a0c14e11b4ee4beff415:48
Exancillatus joined15:49
Nizumzen joined15:49
sohail joined15:49
sohail left15:49
sohail joined15:49
dalias left15:49
dalias joined15:49
rgarrigue ojacobson: I confess I'm a bit lost in git, I read stuff about fetch, checkout etc... I'ld like to understand the "normal" way to go if there's one15:50
ojacobson rgarrigue: I still don't understand your goals15:50
skorgon_ left15:50
sec^nd bremner: will check15:50
ojacobson so I can't responsibly offer any suggestions :)15:50
You've got some changes (in a PR, and on a branch in your own repo), and ansible has its own set of branches in their repo; what do you want to *do* with that information?15:50
"I want the source to resume work" doesn't tell me much; the ansible team presumably does things on their own schedule15:51
gnu-man joined15:52
vtunka left15:53
zatan joined15:54
zatan hey how can I check from where my current branch was branch of ?15:54
Exancillatus left15:54
ahmedelgabri left15:54
ojacobson Nil.15:54
Git doesn't have any concept of "branched from" internally.15:54
FortySix2 left15:55
nwertman left15:55
bwreilly joined15:55
ojacobson You can use the "upstream"/"tracking" info to track that locally (and automate things like merging/rebasing with upstream)15:55
ahmedelgabri joined15:55
zatan hmm15:56
Macaveli joined15:56
rgarrigue ojacobson: hm... I used github webui to edit one file from the ansible devel. It created a fork in my own home repo. Ok so far. I made my modification and a pull request. It resulted in the commit above, which is refused by mdehaan. Ok. If I want to rework my modification, do I have to clone ansible:devel, copy/paste again then work, or can I clone/checkout/whatever ansible:devel + my initial modification ?15:56
macben joined15:57
ojacobson You can continue making changes on the branch you already created in your fork15:57
rgarrigue ojacobson: the pull request removed that15:57
ojacobson Github will automatically update the pull request whenever the source branch changes15:57
hyperair left15:57
lite_ joined15:57
rgarrigue I mean, I can't find it in my home repo i the WebUI15:58
hyperair joined15:58
rgarrigue oh, hell15:58
VictorCL left15:58
becks__ left15:58
rgarrigue didn't saw that, there's a branch:patch-115:59
becks__ joined15:59
aChatir left15:59
deanclkclk left16:00
M00sL0gB0t left16:01
M00sL0gB0t joined16:01
mrbubbles hey guys - i've been asked to use GIT on a wordpress project. I've cloned the existing repo and into a local branch called development (eventually I'll be pushing to a remote branch called development too). now in there is the file system to the existing site. I need to replace it with my new site file system (a newer version, updated config etc). What's the correct way of doing this? Do I create a new local branch and delete everything from the folder and16:02
my files?16:02
Norm_ left16:03
lifelike joined16:03
matheus23 left16:04
goTAN left16:04
FortySix2 joined16:04
dougsland left16:05
tholmes joined16:05
kukks joined16:05
mklappstuhl joined16:06
chrisshattuck joined16:07
mrbubbles apologies for the newb question btw16:07
ThomasLocke left16:07
ojacobson mrbubbles: git is, fundamentally, snapshot based16:07
mrbubbles okay16:08
just got to that bit in my git book16:08
cbreak-work left16:08
ojacobson so if you have a complete tree that you want to check in as the "successor" to some existing commit, you can definitely do that by nuking the work tree and replacing it with your own tree16:08
it's unusual to do it that way, but there are good uses for it16:08
(importing vendor tarballs is the usual case :)16:08
mrbubbles is there a better/different way?16:08
introom left16:09
LuxuryMode joined16:09
ojacobson "Better" is subjective16:09
mrbubbles hehe true16:09
senj joined16:10
ojacobson For existing projects it's a lot more common to make your changes directly on the work tree git creates, though, rather than importing some modified tree16:10
mrbubbles okay16:10
swaechter left16:10
mrbubbles so in my development branch I could just delete the contents of the folder, unzip the wordpress zip and stage the changed files16:10
h_kon left16:10
ferreum left16:11
ngladitz joined16:11
ojacobson So long as you leave .git untouched, yes16:11
man git-add and have a look at the --all option16:11
gitinfo the git-add manpage is available at http://jk.gs/git-add.html16:11
Gamecubic joined16:11
mrbubbles yup I know to stage all the new files16:11
b3tamax joined16:12
macben left16:12
mrbubbles I guess I was just unsure what to do with the old ones. but, as you say, it's snapshot based so if I rm them then when I add the new ones it will only stage the new16:12
jceb left16:12
hyperair left16:13
sr105 left16:13
YoungFrog don't forget to "git status" to check what you're going to commit, because the index most likely contains the older version, so you'll have to remove those.16:13
Gonzo89 joined16:14
mrbubbles why would i need to remove them? If I am clearing the whole folder first?16:14
kotk joined16:14
lethjakman joined16:15
Baluse left16:16
m8 joined16:16
FortySix_ joined16:16
Baluse joined16:17
thomas_b left16:18
thomas_b joined16:18
dougsland joined16:19
juliohm left16:19
saustin joined16:20
FortySix2 left16:20
YoungFrog I mean remove from the index. Clean the folder, import your stuff and see what git status says.16:20
KeiKun joined16:22
b3tamax left16:22
mrbubbles ah will do, cheers :D16:22
infynyxx joined16:22
ojacobson 'git add --all :/' will make the index exactly match the work tree, other than untracked ignored files16:23
lavaman joined16:23
ojacobson easier to do that than to try to pick out the right sequence of adds and removes, if all you want is to stage a tree verbatim :)16:23
FortySix_ left16:23
b3tamax joined16:23
FortySix2 joined16:24
Exancillatus joined16:24
Pullphinger joined16:25
mrbubbles okay so I checked out remote branch master to local master, and development to local development16:25
Etheco- left16:25
mrbubbles while on master all the files are there, i switch to development using git checkout, delete all the files and directories, switch back to development and all of the files are gone16:26
shouldn't they still be there if I've branched it ?16:26
KeiKun_ left16:26
ToxicFrog mrbubbles: I think you mean "switched back to master"16:27
And git will try to "float" uncommitted changes in the working copy as you switch branches.16:27
Macaveli left16:27
mrbubbles sorry yes I meant back to mater16:27
ToxicFrog A "git status" should show all the stuff you removed as uncommitted deletes.,16:27
mrbubbles Ah so i should commit that branch before I switch back16:27
ToxicFrog Yeah, if you actually want to delete them from development, delete them and commit the deletes16:28
If you just deleted them for fun and want them back, git reset to restore them before or after switching branches.16:28
ahmedelgabri left16:29
macrover joined16:29
dglambert left16:30
mlechner left16:30
joelm joined16:31
noname001__ left16:32
konadr left16:32
mrbubbles ToxicFrog: okay think I'm getting my head around it, thank you sir16:32
psyl0n joined16:33
eletuchy left16:33
eletuchy joined16:33
deanclkclk joined16:34
delboy1978uk joined16:34
rgarrigue left16:34
HelperW left16:35
ErKa left16:35
introom joined16:35
delboy1978uk I'd like to clone a git repo from the first commit - is this possible or do i need to clone then reset?16:35
madewokherd joined16:35
crazydiamond left16:36
deanclkclk_ joined16:36
EugeneKay clone has a --depth parameter(which you should never, ever use because) which does the opposite of what you're asking for.16:36
But usually it's the latest commit you're interested in, not the first. !xy ?16:37
gitinfo Woah, slow down for a bit. Are you sure that you need to jump to that particular hoop to achieve your goal? We suspect you don't, so why don't you back up a bit and tell us about the overall objective...16:37
DoniRS left16:37
gua_ould left16:38
deanclkclk left16:38
deanclkclk_deanclkclk16:39
kukks left16:39
introom left16:39
hahuang65 left16:40
koen_serry joined16:41
mrbubbles if I do git commit -a shouldn't that add any unstated files?16:41
grawity no.16:41
ToxicFrog mrbubbles: no.16:41
mrbubbles ah no, just stages tracked files but doesn't track new files16:41
Dougie187 Only tracked unstaged files.16:41
mrbubbles GOT IT16:41
MistuhKurtz joined16:41
Balliad left16:44
saustin left16:44
smef left16:45
jkremser left16:45
gnu-man left16:46
Kayra left16:46
ehmatthes left16:46
gnu-man joined16:47
Sonderblade left16:48
King_Hual joined16:48
arand left16:48
makubi1 left16:50
doener joined16:50
shruggar is there a command for "don't actually switch to this revision, just tell me if any files in my work-tree would be overwritten if I did"?16:53
ojacobson git diff <commit-ish>16:53
--stat, --name-only, whatever16:53
iceblurgt1 joined16:53
Targen joined16:54
Mamoru left16:54
senj left16:54
petey left16:54
shruggar that only tells me about tracked files, afaik16:54
petey joined16:54
bwreilly left16:55
ahmedelgabri joined16:56
lazers joined16:56
m8 left16:56
petey_ joined16:57
lethjakman left16:57
petey left16:57
mishok13 left16:57
macben joined16:57
Gonzo89 left16:57
Targen_ joined16:58
Targen left16:59
mikecmpbll joined16:59
Kayra joined16:59
tma996 left16:59
m8 joined16:59
eletuchy left16:59
eletuchy joined17:00
kermit left17:00
macben left17:02
revyd joined17:02
kermit joined17:02
mewph Hello17:03
Anybody have any problems with creating a repo with git-gui on windows? It doesn't show up in the windows explorer at all17:03
CareBear\ shruggar : I don't think so17:03
Cephalostrum left17:03
SocalNick joined17:03
CareBear\ mewph : I think you might need to create the directory yourself first17:03
mewph CareBear: I created the directory, and it shows up in git-bash and whatnot. but it's not showing in windows explorer and I can't seem to do much with it.17:04
dreiss joined17:05
shruggar is the status code output by --name-status always a single character?17:05
ErKa joined17:05
ewnd9 left17:06
lov mewph: see if it's marked as hidden or something silly17:06
Silmarilion left17:06
mewph lov: How?17:06
lov try navigating to the expected file path with explorer, see what happens17:06
Silmarilion joined17:06
lov uh, explorer settings, view hidden files?17:06
do a google search for how to see hidden files/folders on windows17:07
on your OS version in particular17:07
mewph lov: I did that, it says path does not exist17:07
infynyxx left17:07
ToxicFrog mewph: are you sure you created it where you think you did?17:08
Silmarilion left17:08
MattMaker left17:08
kukks joined17:08
mewph It's quite bizarre17:08
pauld_ joined17:08
mewph ToxicFrog: It shows up in GIT-GUI, but not in windows explorer.17:08
Silmarilion joined17:08
ewnd9 joined17:08
mewph Git-gui reports it in C:\. When I use properties on it from the file selection in git-gui, it shows up in C:\. However, I can't change anything about it. It'll say file not found.17:08
ToxicFrog ...as in, you've versioned C:\? Or as in you have C:\subdirectory\.git?17:09
decotii left17:09
mewph shows up in git-bash when I navigate to /c and ls -la17:09
ToxicFrog: C:\subdir\.git yes.17:09
ahmedelgabri left17:09
MattMaker joined17:10
mewph Why?17:10
intellix left17:10
mrbubbles if I have a folder set to ignore in git ignore, then I use git checkout to switch folders, then switch back again, if the folder that i've ignored isn't in the branch that i switch to will it be deleted?17:10
fire left17:11
tplaner left17:11
lavaman left17:13
ToxicFrog mewph: just wondering. So "ls c:/subdir/" works in gitbash but "dir c:\subdir\" doesn't in cmd?17:14
mrbubbles okay thats a yes by the looks of it17:14
dreiss left17:14
mewph but dir C;\subdir\ does not in cmd17:14
ls /c/subdir works in git-bash17:14
eletuchy left17:14
eletuchy joined17:15
ToxicFrog I assume the ; was a typo.17:15
That is weird.17:15
lavaman joined17:15
gnu-man left17:15
ToxicFrog And c:/ in gitbash shows up normally, it hasn't gotten /c symlinked to something other than windows C:\ or the like?17:15
mewph yes17:16
kevwil joined17:16
ToxicFrog I've got nothing. Good luck.17:16
mewph Nope, /c and C:\ show up properly both places17:16
It's really quite bizarre.17:16
Okay thanks17:16
jbarker left17:16
ToxicFrog (I haven't used gitbash in ages, I just have cygwin installed on the windows machine)17:16
gnu-man joined17:17
xjiujiu left17:18
goTAN joined17:20
CareBear\ don't use windows17:20
senj joined17:21
m0viefreak joined17:21
Panicg joined17:21
jbarker joined17:21
jbarker left17:22
macben joined17:22
bwreilly joined17:24
bbloom joined17:24
el3ctron_ left17:24
psyl0n left17:25
rethus joined17:26
el3ctron_ joined17:26
imachuchu joined17:27
koen_serry left17:27
macben left17:28
juril left17:28
Norm_ joined17:29
mishok13 joined17:29
donmichelangelo left17:30
Octalot left17:30
shuaib joined17:30
fRAiLtY- left17:30
donmichelangelo joined17:30
mikecmpbll left17:31
Hanumaan joined17:31
zatan left17:31
DrShoggoth joined17:32
Hanumaan when I am trying to push getting following error "PUT error: curl result=22, HTTP code=403" . how to resolve ?17:32
pheaver joined17:32
petertretyakov joined17:33
petey_ left17:34
starkhalo joined17:34
EugeneKay That HTTP code corresponds to Forbidden; I suspect you don't have permissions to push to that repo / authentication is not set up correctly.17:34
But it quickly becomes a problem of "what are you trying to push to?"17:34
petey joined17:34
petey left17:35
petey joined17:35
h0bbit_ joined17:36
MattMaker left17:36
HelperW joined17:36
kpreid left17:36
Dougie187 left17:36
MattMaker joined17:37
hahuang65 joined17:37
mizu_no_oto left17:38
infynyxx joined17:38
goTAN left17:38
Hanumaan EugenKay, got it on the repo Limit was not set properly ..17:38
JosephFerano I'm having an issue with git subtree, I make a change in the parent project, push it up to the sub-project, but then the parent project doesn't have that commit in its history when I try to do a split, so what ends up happening is that the remote rejects my changes because it says I'm behind17:38
Hanumaan I mean in the apache file ..17:38
shruggar left17:38
namita joined17:39
Sly1986 left17:39
gain left17:39
jceb joined17:39
gnu-man left17:40
freimatz_ left17:40
Shusshu joined17:40
gnu-man joined17:41
eletuchy left17:41
JosephFerano anyone here familiar with git subtree?17:41
lethjakman joined17:42
eletuchy joined17:42
rethus left17:42
petey left17:42
_ikke_ nope, sorry17:42
milki why would the sub-project need to know about the parent project?17:43
renatow_ joined17:43
petey joined17:43
p4denis left17:43
veebers joined17:43
JosephFerano milki: the parent project is not keeping track of when it has pushed something itself to the sub-project by using git subtree split17:43
wilx joined17:44
p4denis joined17:44
Apocalisp joined17:44
ZaeDrake joined17:45
shingshang left17:46
petey_ joined17:46
renatow left17:46
petey left17:46
rabbite left17:46
gdogrady joined17:47
infynyxx left17:47
mmcdaris joined17:47
bristleback left17:47
JosephFerano it really sounds like I should just switch to submodules...17:47
FatDarrel joined17:48
shuaib left17:48
skorgon_ joined17:48
emmajaneej-webinar17:48
p4denis left17:49
yhager joined17:50
JesseCW joined17:50
JesseCGuest9419817:50
JesseCW left17:50
KeiKun left17:50
macrover left17:50
KeiKun joined17:51
tvw left17:52
goTAN joined17:52
hyperair joined17:52
dreiss joined17:53
thiago left17:54
jbarker joined17:54
petey_ left17:55
phipes joined17:56
milki JosephFerano: that decision should be better informed before you try17:57
JosephFerano: you need to find out if the _workflow_ of subtree and submodules work for you17:57
WaReZ left17:57
milki if you dont follow the workflow, those two things arent for you17:57
JosephFerano milki: I found out that there's a bug with subtree with the version of git I was using, so I'm removing and installing it through brew17:57
milki JosephFerano: !subproject17:57
gitinfo JosephFerano: [!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 separate. Otherwise your best options are "!submodule", "!gitslave", and "!subtree". Try those commands in this channel, or in a PM to avoid flooding.17:57
JosephFerano I'll look into git slave, since I haven't heard of that option17:58
I've researched submodule and subtree and subtree seems like the ideal way to handle this, but it was just giving me trouble17:59
shuaib joined17:59
shuaib left18:00
aard_ joined18:00
vurma left18:00
phipes left18:00
ferreum joined18:00
phipes joined18:01
veebers_ joined18:01
veebers left18:01
veebers_ left18:01
kermit left18:02
infynyxx joined18:03
skorgon_ left18:03
cmpera left18:03
Nizumzen left18:03
Shusshu left18:03
Swayz left18:04
mmcdaris left18:04
dav joined18:04
Norm_ left18:05
gnu-man left18:05
mmcdaris joined18:06
gmac !gitslave18:06
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.18:06
cmpera joined18:06
veebers joined18:06
dav is there a simpler way of doing: git diff `git rev-list br1..br2 | tail -1`~ br218:07
in other word, diff between the last common commit of br1/br2 and br2's HEAD18:07
gnu-man joined18:07
FortySix2 left18:08
Kayra left18:08
ojacobson 'git diff $(git merge-base a b) b'18:09
xlinkz0 left18:09
ojacobson checks if diff accepts the ... notation18:09
takamichi left18:09
jbarker left18:09
ojacobson ah, it does18:09
'git diff a...b'18:09
(which is, per man git-diff, equivalent to what I said.)18:09
gitinfo the git-diff manpage is available at http://jk.gs/git-diff.html18:09
jbarker joined18:09
eletuchy_ joined18:09
revyd left18:09
roymiloh joined18:10
revyd joined18:10
yacks left18:10
eletuchy left18:10
yacks joined18:11
canton7-mac left18:12
Hello71 !dots18:12
gitinfo A..B = stuff that happened between A and B (if A and B are related; otherwise refer to the more technical definition in "man gitrevisions"), A...B = (a) in history viewers: stuff that isn't in both A and B yet; (b) in "git diff": stuff that happened in B since the two diverged. "master.." is the same as "master..HEAD" and "..master" is the same as "HEAD..master", and so forth.18:12
WaReZ joined18:12
jbarker left18:12
SocalNick left18:13
bwreilly_ joined18:14
eletuchy_ left18:14
revyd left18:15
ecky--ptang-zoob joined18:15
bwreilly_ left18:15
dreiss left18:15
Norm_ joined18:15
ZaeDrake left18:15
bwreilly_ joined18:15
kevwil left18:16
bwreilly left18:16
ecky--ptang-zoob I just learned plain GIT and learned how to commit stuff. But where does it commit?! Shouldn't there be an ftp server or some server where changes and new files get stored?!18:16
lavong left18:16
GyrosGeier no18:16
ojacobson Git commits to the repository you run 'git commit' in.18:16
GyrosGeier it's all local18:16
gasbakid joined18:17
ShooterMG left18:17
ojacobson If you want to share those commits with others, you have to arrange for others to be able to fetch them, either from your local repo or from some shared "server" repo you push to18:17
GyrosGeier which is great when working on a plane18:17
ecky--ptang-zoob if it's local, why is it needed? I need multiple to work on it obviously18:17
ToxicFrog ecky--ptang-zoob: each git repo is self-contained. When you "git commit" the commits are stored in the .git directory in your current repo.18:17
hyperair left18:17
ToxicFrog to share those commits with others, you use "push" and "fetch" to sync them with other repos.18:17
ecky--ptang-zoob so if I co-program with someone on the same project, but he's on another PC, how do I get my changes there?18:18
SocalNick joined18:18
primitive joined18:18
_ikke_ ecky--ptang-zoob: usually through some shared repo18:18
deanclkclk left18:18
ecky--ptang-zoob on github?18:18
ojacobson Either he fetches from you, you push to him, or you push to a "shared" repo somewhere (eg. github, your own git server, whatever) and he fetches from it.18:18
!workflow18:18
gitinfo Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See http://sethrobertson.github.com/GitBestPractices/#workflow for a list of references about choosing branching and distributed workflows.18:18
Swayz joined18:19
ojacobson !gcs18:19
gitinfo [!concepts] "Git Concepts Simplified" explains the basic structures used by git, which is very helpful for understanding its concepts. http://gitolite.com/gcs.html18:19
dfanjul left18:19
kermit joined18:19
ecky--ptang-zoob On github it costs money to make a private repository. So it would be possible for me to create a repository locally on my own pc where other people have access to?18:20
EugeneKay ecky--ptang-zoob - !gitolite works great on a VPS; or Bitbucket has free private repos(with caveats)18:20
gitinfo ecky--ptang-zoob: Gitolite is a tool to host git repos on a server. It features fine-grained access control, custom hooks, and can be installed without root. Download: https://github.com/sitaramc/gitolite Docs: http://gitolite.com/gitolite/18:20
macben joined18:21
sealion joined18:21
ecky--ptang-zoob ok thx for the links. I'll read them. So github is maybe not so ideal?18:21
roland_ joined18:23
blinkdes_ joined18:23
ecky--ptang-zoob This link is fuxored though: http://gitolite.com/gcs.html18:23
ben_alman left18:23
takamichi joined18:23
grawity Works fine, it just flips to "slideshow" mode when loaded.18:23
fluxdude left18:23
nwertman joined18:23
infynyxx left18:23
grawity Use ←/→ or PageUp/PageDown18:24
charon joined18:24
kukks left18:25
rabbite joined18:25
relipse what does (modified content) mean and why can't i add it to staging (it is a submodule)18:25
dreiss joined18:25
grawity the submodule has uncommited changes inside18:25
ecky--ptang-zoob oh right, got it18:25
relipse it is a configuration file, is it better to move that outside the submodule directory?18:25
grawity so you'll have to commit them inside the submodule, and add the new commit to the parent18:25
if it's a config file, better don't track it at all18:26
Cephalostrum joined18:26
grawity track a .example or .dist copy of it instead18:26
relipse oh so add it to the ignore18:26
kermit left18:26
cmyers left18:26
eletuchy joined18:26
Foldager left18:26
lite_ left18:26
Cephalostrum left18:27
hyperair joined18:27
blinkdesign left18:27
m8 left18:27
ecky--ptang-zoob left18:28
cads joined18:28
beyondcreed joined18:28
Mars joined18:28
MarsGuest5404418:29
Advocation left18:29
Guest54044 left18:30
jaeckel left18:30
xok joined18:30
xok hello all...18:30
gitinfo xok: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.18:30
eletuchy_ joined18:31
xok I have a bare repo and need to rebase it...18:32
can anyone help me do it?..18:32
_ikke_ xok: step 1. clone it18:32
khmarbaise joined18:32
dyng joined18:33
ojacobson rebase (and, really, most history-manipulating options that aren't 'push') absolutely requires a work tree18:33
so, make a non-bare clone, make your changes there, and (force?) push them back18:33
xok _ikke_: thanks for the answer, I will be more specific... I have a server where the main repo resides, I am pushing the changes from the laptop and "fetch" those changes for the gitweb thing...18:33
cbreak there are quite a few that don't require a working dir18:33
ben_alman joined18:33
xok during set up I've made lots of commits and now wish to clean those things from the log...18:34
Exancillatus left18:34
gnu-man left18:34
dobalina joined18:34
cbreak the rawest probably being update-ref, and co18:34
eletuchy left18:34
xok for that purpose I have a bare repo in the gitweb place, I want it to show the clean title, without any logs inside it...18:34
ZaeDrake joined18:34
kermit joined18:34
gnu-man joined18:35
cbreak I wonder if all filter-branch commands require a tree...18:35
commit-filter or the message ones might not18:35
pinage404 joined18:36
marhaban joined18:37
doev left18:37
Noldorin joined18:37
skorgon_ joined18:37
dyng left18:37
Exancillatus joined18:38
mrbubbles left18:39
thiago joined18:39
Exancillatus left18:39
xok cbreak: how do i clean the all logs inside the cloned repo for example?..18:39
I can clone the repo, clean the log and push it back to the server..18:39
ChrisAnn left18:39
cbreak xok: depends on your definition of clean18:40
sandorjanssen joined18:40
cbreak you know how to use filter-branch?18:40
and git grafts?18:40
xok cbreak: just to leave files uncahged and remove all the "log" things from the repo...18:40
cbreak grafts allow you to cut history off18:40
blinkdes_ left18:40
cbreak oh.18:40
completely kill history18:40
that's easy18:40
tjbiddle joined18:41
cbreak git checkout --orphan death && git commit -m "A new Life"18:41
frankstallone joined18:41
xok cbreak: thank you, I will test it out now...18:41
cbreak then push where ever you want18:41
TomyWork joined18:41
TomyWork hi18:41
can i somehow instruct git checkout <commit> <filename> not to touch the index?18:41
ncthom91 joined18:42
_ikke_ TomyWork: nope18:42
khmarbaise_ joined18:42
TomyWork then i'll just give it a fake index file :P18:42
cbreak TomyWork: that's the path history takes to reach the working dir with checkout18:42
TomyWork: just use cat-file instead18:42
xok cbreak: that removed all the files in it...18:42
TomyWork it's not just a single file18:42
cbreak use cat-file multiple times18:42
matanya left18:42
xok oh, sorry, it is..18:42
khmarbaise left18:42
khmarbaise_khmarbaise18:42
TomyWork it's a multi-level folder structure18:42
cbreak sounds enjoyable.18:43
TomyWork: stash, checkout? :)18:43
TomyWork nah18:43
petertretyakov left18:43
cbreak TomyWork: or commit reset --soft18:43
marhaban left18:43
charon left18:43
charon joined18:43
cbreak that'll save your index as commit18:43
tgkokk left18:43
TomyWork i'll just hand it /dev/null as the index :)18:43
cbreak and with reset --soft HEAD~1 you can kill the commit18:44
and keep the index18:44
TomyWork or some temporary file18:44
cbreak dev/null sounds braindead.18:44
TomyWork yeah it probably wont work18:44
cbreak a different file might work...18:44
TomyWork i'm already doing that for the opposite direction (committing to a branch that isnt checked out), so it's no big deal :)18:45
looper joined18:45
cbreak you could just use new-workdir contrib script :)18:45
deanclkclk joined18:45
ewnd9 left18:46
TomyWork too much porcelain :)18:46
FortySix2 joined18:46
macben left18:47
lite_ joined18:47
phipes left18:48
alexlindenlevy joined18:48
pepper_chico joined18:49
osse printf '%s\n' '#!/bin/sh' 'Usage: git get <commit> <filename>' '[ $# = 2 ] || exit 1' 'git show "$1:$2" > "$2"' > "${PATH%%:*}"/git-get18:50
_ikke_ still works only on one file18:50
revyd joined18:51
osse No it doesn't do even that. I forgot to comment the usage text :(18:51
_ikke_ I was trying to parse it but wondered how that would work18:51
petertretyakov joined18:51
jargon left18:52
xok cbreak: thank you very, very much, you taught me a great thing...18:52
ncthom91 left18:52
cbreak xok: with great power come great responsibilities.18:52
xok cbreak: I promise I will be responsible... :-)18:53
pinage404 left18:53
cbreak if you ever change history in an observable way, you could split the time stream, creating two alternate paths.18:53
ah well, Public history rewriting... :)18:53
marcjs left18:53
_ikke_ * Doc explaining marty about paralel timelines18:55
mmcdaris_ joined18:55
xok cbreak: what happens if I now push these changes to the main repo?...18:55
cbreak: will the repo hold the same thing as this cloned version?..18:55
skorgon_ left18:55
pepper_chico left18:56
maestrojed joined18:56
eletuchy joined18:56
eletuchy left18:56
ej-webinaremmajane18:56
eletuchy joined18:57
_ikke_ https://www.youtube.com/watch?v=5OPkqY9doGE18:57
cored joined18:57
cored hi18:57
mmcdaris left18:57
mmcdaris_mmcdaris18:57
cored I'm trying to remove a set of duplicate commits from my history18:57
after doing an interactive rebase and remove those commits18:57
gnu-man left18:57
tieTYT I'm not sure that I can rebase -i HEAD~5, because I think the commits I want to squash may not be together. is there a way I can just specify the commit ids like 45684e2 and b4a1622?18:58
cored when I tried to push the branch to my remote, I get a difference between the two tips even when I just pull the branch locally, apart from that when I pull again after the rebase I get all the duplicated commits all over again18:58
grawity tieTYT: `rebase -i` lets you reorder commits18:58
ToxicFrog tieTYT: you are allowed to reorder comments when rebase -i'ing18:58
_ikke_ tieTYT: no18:58
cored tieTYT: I'm doing something similar on mine18:58
ToxicFrog Er, s/comments/commits18:58
scelis joined18:59
grawity tieTYT: however, you always start with a range between HEAD and the given commit (whether by ID or by tag or by whatever) – you cannot specify separate commits at once18:59
tieTYT well I want to rebase the commits mentioned in this log: git log --oneline remotes/trunk..master The problem is I'm not sure if they're continuous or if there's commits in between. I'm not sure how to get the # for the HEAD~#18:59
ZujkisNx_ joined19:00
Hanumaan I have a git on apache server and I access it with http now I want to move the location on the server to the new location on the same server keeping the history of git so I just changed in apache document root but still not working what am i doing wrong ?19:00
griotspeak left19:00
eletuchy_ left19:00
tieTYT (btw, my understanding is that that log will show me local changes that haven't been pushed yet)19:00
cored any suggestion?19:01
CKyle joined19:01
tieTYT i suppose I could just say ~x. x being the number of lines in the log output and just make sure the ids match up 1:119:01
scelis left19:02
cbreak xok: you can push it as new branch, then the new history gets added on the side19:02
scelis joined19:02
cbreak xok: or you can force push it to other branches to replace their history19:02
scelis left19:02
_ikke_ tieTYT: Just pass git rebase the parent of the last commit you want to change19:02
nicedice left19:02
scelis joined19:03
_ikke_ tieTYT: git rebase -i <last_commit>~119:03
ncthom91 joined19:03
nicedice joined19:03
_ikke_ But make sure you are on master19:03
tieTYT doesn't that ~1 mean "the one before it"?19:03
_ikke_ \yes19:03
yes19:03
tieTYT: you basically need to pass git rebase the base of the commits19:03
cmpera_ joined19:03
mellernoia left19:04
tieTYT wouldn't that only squash 2 commits instead of all of them?19:04
_ikke_ tieTYT: It won't do anything yet19:04
tieTYT right but my point is it gives me the option to interactively work on 2, instead of all19:04
h0bbit_ left19:04
tieTYT I guess I'm confused about the ~119:04
and why it's 1 instead of x. x being the number of unpushed commits19:05
dougsland left19:05
SocalNick_ joined19:05
rabbite left19:05
sealion left19:05
_ikke_ .digraph E->D->C->B->A19:05
gitinfo .digraph: http://g.jk.gs/fm.png19:05
jbarker joined19:05
SocalNick left19:05
SocalNick_SocalNick19:05
cmpera left19:05
cmpera_cmpera19:05
_ikke_ imagine B, C, D and E haven't been pushed yet19:05
E is where master is19:06
A is where remotes/trunk is19:06
tieTYT ok19:06
_ikke_ Does that fit your situation?19:06
tgkokk joined19:06
tieTYT I wasn't sure that it did at first, but now I think so19:07
_ikke_ then git rebase -i remotes/trunk should list all the commits from B to E19:07
tieTYT I mean I committed stuff locally, then did an svn rebase. But I think that put all my local changes in front of trunk19:07
oh ok, that's easy19:07
rabbite joined19:07
tieTYT now if this was a feature branch and I wanted to squash the whole branch into one commit, could I do checkout feature; git rebase -i master ?19:08
Octalot joined19:08
mklappstuhl left19:08
phipes joined19:08
_ikke_ yes19:08
or even shorter, git rebase -i master feature19:08
tieTYT nice, ok thanks a lot19:08
_tpavel left19:08
_ikke_ (the last argument is the branch to checkout)19:09
jbarker left19:09
jaeckel joined19:09
matanya joined19:09
jbarker joined19:10
CKyle left19:10
dav left19:10
kermit left19:10
Exancillatus joined19:10
goTAN left19:10
tieTYT oh that kind of confused me. Because I do that all the time without the -i. I guess by default rebase just "picks" everything?19:10
lazers left19:10
_ikke_ tieTYT: It basically picks everything between <upstream:the first argument> and HEAD19:11
bwreilly_ left19:11
tieTYT i see19:11
EngierkO left19:11
p4denis joined19:11
griotspeak joined19:11
tieTYT thanks. now I want to figure out how I can open this interactive editor in my ide instead of vim. thanks for the help19:11
phipes left19:12
ojacobson tieTYT: $EDITOR, $VISUAL, $GIT_EDITOR, core.editor config19:12
if your IDE has a command-line tool that obeys the unix editor convention, then you can tell git to use it19:12
_ikke_ tieTYT: Does your editor allow you to open files by passing it an argument19:12
dtrott left19:12
amcsi joined19:12
xok cbreak: ok, now I have this local version, how do I put it on the server now?...19:12
pbrobst joined19:12
ojacobson (remain running until the file is closed, exit with status indicating failure/success)19:12
cbreak xok: push it19:12
xok cbreak: it says everything is up to date...19:13
ojacobson (accept filenames in argv)19:13
cbreak yeah. did you tell it what to push where?19:13
teran left19:13
_ikke_ remain running is probably the biggest problem19:13
xok cbreak: I am not sure I even know what do you mean...19:13
cbreak xok: git push origin foobar19:13
_ikke_ I guess most of the time, the process communicates to the open instance to open the file, and then quits19:13
cbreak this pushes your local foobar branch to origin, as its local foobar branch19:14
xok cbreak: git push origin master << says everything is up to date...19:14
cbreak xok: yeah... because you don't want to push master19:14
xok: type git branch19:14
doener left19:14
ojacobson _ikke_: OS X LaunchServices (the platform API that supports that program structure) has special flags for "don't reuse existing process" and "wait for process to exit" specifically for $EDITOR support :)19:14
marhaban joined19:14
pbrobst left19:14
jbarker left19:14
xok cbreak: yeah, I needed to push origin main (I've named it main)...19:14
cbreak you could rename it to master if you want.19:15
ben_alma_ joined19:15
bwreilly joined19:15
cbreak (with git branch -M)19:15
xok cbreak: the main repo contains the same stuff as its previous version...19:16
petey joined19:16
corni joined19:16
Swayz left19:16
tieTYT ojacobson _ikke_ I'm not sure, I'll have to research that19:16
xok cbreak: it seems nothing has changed for the origin repo...19:16
cbreak yeah. that's normal.19:16
tieTYT I'm on windows19:16
cbreak xok: type git branch -a19:16
you will see that you created a new branch, main19:16
xok cbreak: yeah, it shows up...19:17
cbreak so, check it out19:17
doug joined19:17
xok but this new branch contains all the logs from old branch...19:17
ben_alman left19:17
doug what's wrong ("wrong") with rebasing other than getting dates out of order?19:17
Hello71 !rebaes19:17
cbreak xok: why do you think that?19:17
Hello71 !rebase19:17
gitinfo [!merge_or_rebase] For a detailed discussion of the dis-/advantages of merge and rebase, and when to best use which, see: https://coderwall.com/p/ny1hia -- and here's how Linus explains which one to use: http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html19:17
Hello71 !rewrite19:17
gitinfo [!rewriting_public_history] Rewriting public history is usually bad. Everyone who has pulled the old history have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push -f` to force (and the remote may reject that, anyway). See http://goo.gl/waqum19:17
jason__ left19:17
cbreak xok: it contains exactly what you pushed.19:17
_ikke_ Hello71: !private19:18
Hello71: !priv19:18
gitinfo Hello71: [!privmsg] You can get gitinfo keyword expansion (e.g. !doc or this one) sent directly to you by sending a private message to me: /msg gitinfo !doc. This avoids spamming the channel. Also see http://jk.gs/git/bot/trigger.php19:18
xok cbreak: can we have private conversation?..19:18
Hello71 _ikke_: !itwasatypo19:18
cbreak no19:18
enr joined19:18
KeiKun left19:18
enr left19:18
xok cbreak: I just want to send you the link...19:18
cbreak: the link of the gitweb...19:19
tarkus left19:19
KeiKun joined19:19
HelperW left19:19
cbreak xok: don't rely on gitweb19:19
xok cbreak: I do not...19:19
cbreak use git log main on the command line19:19
enr joined19:19
HelperW joined19:19
cbreak if it shows more than git log main on your local repo, then something's wrong.19:19
you should then compare the output of git ls-remote origin and git show-ref19:20
xok cbreak: git log main shows only one commit...19:20
cbreak (from the local repo)19:20
good19:20
as expected19:20
xok cbreak: that's a great thing, but now, I want this to be the primary...19:20
cbreak as I said above19:20
you can rename it to master19:20
or you can check it out19:20
your choice19:20
xok how do I rename it?..19:20
cbreak as I said above19:21
git branch -M19:21
Exancillatus left19:21
xok cbreak: thank you very much, you were very helpful...19:22
pbrobst joined19:22
poulson left19:22
cbreak np :)19:23
enr left19:23
cbreak for future changes, consider cherry-pick or similar19:23
infynyxx joined19:24
HelperW left19:24
xok cbreak: git branch shows the asterisk on the master branch, I want it to be on the main instead, how do I do that?..19:24
fingerprint joined19:25
cbreak xok: you renamed main19:25
it's now called master19:25
Advocation joined19:25
vince_prignano left19:25
cbreak do you say there still is a main?19:25
dougsland joined19:26
Argure left19:26
xok cbreak: no, there is, but the asterisk sits on the old branch (I've renamed master to old just to be sure everything goes well)..19:26
cbreak alright. then just use checkout19:27
if you're in a bare, use git symbolic-ref19:27
JerryT_ joined19:27
marhaban left19:27
tplaner joined19:27
cbreak it's used like: symbolic-ref HEAD main19:27
JerryT left19:27
xok no, I am in the cloned repo....19:28
bvi joined19:28
Mars joined19:28
redrocket left19:28
MarsGuest4240819:28
Cephalostrum joined19:28
Guest42408 left19:28
Cephalostrum left19:29
kermit joined19:29
infynyxx left19:29
Cephalostrum joined19:30
xok cbreak: I've got now three branches, how do I make one of them the main one?..19:30
Argure joined19:31
jbarker joined19:32
cbreak xok: check it out.19:32
xok: it's not main, it's current.19:32
lite_ left19:32
cbreak the current branch is the one you have checked out19:32
kermit left19:32
cbreak (it's the one HEAD points at)19:32
xok oh, I see...19:32
mmcdaris left19:32
macben joined19:32
mmcdaris joined19:33
Biopandemic left19:33
Cephalostrum left19:34
Cephalostrum joined19:35
paulweb515 left19:35
juliohm joined19:37
juliohm left19:37
juliohm joined19:37
ncthom91 left19:37
jhulten joined19:37
xok cbreak: if I am in the cloned repo I do "git checkout new_branch" and it switches to it, what do I do if I am in the bare repo?...19:38
kukks joined19:38
Cephalostrum left19:41
vurma joined19:41
Cephalostrum joined19:41
corni left19:41
cbreak xok: what I said above... git symbolic-ref HEAD new_branch19:42
place joined19:42
cbreak you need to work on your short term memory :)19:43
Cephalostrum left19:43
mribeirodantas joined19:43
Droolio left19:43
Cephalostrum joined19:43
Cephalostrum left19:44
taylanub joined19:44
salamanderrake left19:44
Cephalostrum joined19:44
rabbite left19:44
emmajaneejwalk19:45
xok cbreak: yeah, you are absolutely right, thanks again, I've finally did it... :-)19:45
cbreak: can you suggest anything for memory?...19:46
I am really struggling from it...19:46
I am not that old yet... :D19:46
cbreak forget about useless stuff like real life.19:46
works for me :)19:46
rabbite joined19:46
xok cbreak: :-D19:46
mfulz joined19:46
ncthom91 joined19:46
taylanub Not a git question but, is there any salvation to this nasty diff output ?: http://sprunge.us/DhEN (Change in function's prologue gets munged together with newly added function above it.)19:47
(--patience didn't help BTW.)19:48
ojacobson man git-diff, have a look at the options leading up to --diff-algorithm19:48
gitinfo the git-diff manpage is available at http://jk.gs/git-diff.html19:48
SWakey joined19:48
_Vi left19:48
AzizLight left19:51
infynyxx joined19:51
tplaner left19:52
SWakey left19:52
tplaner joined19:52
tplaner left19:53
cads left19:53
ZaeDrake left19:53
tieTYT how does the git editor work? Does git create a temp file and use that as the last argument for your git editor command?19:53
grawity yes19:54
tieTYT is that explained in detail anywhere?19:54
skorgon_ joined19:55
deanclkclk left19:55
place If I have a local clone of a fork, how do I fetch a branch on another fork of the same upstream? I tried 'git fetch other-rempte-addr' branchname and got a single line response with branchname -> FETCH_HEAD, but I can't do 'git checkout branchname'19:55
tieTYT git seems to be opening my editor with a file that only contains the path to the editor. Really confusing. Don't know how to debug that19:55
taylanub ojacobson: Am I out of luck if none of the 4 algorithms help ?19:55
taylanub wants s-expression diff. :(19:56
tgkokk left19:56
veebers left19:56
hyperair left19:57
aried3r left19:58
kermit joined19:58
FortySix2 left19:59
tinti joined19:59
DrShoggoth left19:59
takamichi left19:59
matteo left20:00
skorgon_ left20:00
imachuchu place: what are you trying to do? Fetch a remote branch again to a new name? Fetch a different branch from the same remote repo?20:00
deanclkclk joined20:00
mmathis tieTYT: it looks like git creates a file in the repository's .git directory20:00
at least for me20:00
DrShoggoth joined20:01
place imachuchu: I'm trying to fetch a branch from a remote repository that is not my clones origin20:01
mmathis when I commit it opens vim .git/COMMIT_EDITMSG20:01
skorgon_ joined20:01
FortySix2 joined20:02
mmathis place: maybe try git checkout other_remote/branch20:02
rabbite1 joined20:02
asakura left20:03
rgr joined20:03
ojacobson taylanub: well, you can always use your own difftool :)20:04
rabbite left20:04
beastd joined20:04
RogerWS left20:04
bwreilly left20:04
sq-one joined20:04
mizu_no_oto joined20:05
osse taylanub: try --histogram20:05
tieTYT mmathis: is there any way to debug what command git is sending to my editor? I'd like to figure out why it's not working the way it should20:05
cavascript joined20:06
cavascript hello :)20:06
gitinfo cavascript: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.20:06
imachuchu place: git remote add the repository, fetch the repository, then use it just like your other remote20:06
taylanub osse: doesn't help20:06
place imachuchu: thx I'll try it20:06
osse taylanub: then I don't know :/ That usually does the trick for C code20:07
FortySix2 left20:07
mmathis tieTYT: I used htop20:08
gnu-man joined20:08
cyphase joined20:08
Mars___ joined20:09
SWakey_ joined20:10
place imachuchu: thanks that got me what I wanted20:10
m8 joined20:11
goTAN joined20:13
kukks left20:13
goTAN left20:14
rgr left20:14
Mars____ joined20:14
goTAN joined20:14
goTAN left20:14
halu joined20:15
SWakey_ left20:15
Mars___ left20:16
revyd left20:17
tieTYT "Cannot 'squash' without a previous commit" Is there a way to go back into my interactive mode to fix my mistake?20:17
shawndumas joined20:17
shawndumas left20:17
Mars___ joined20:17
revyd joined20:17
Mars____ left20:17
godgodgodgo joined20:17
veebers joined20:18
blinkdesign joined20:18
imachuchu place: glad it worked out for you20:19
albertgrala left20:19
skorgon_ left20:19
vurma left20:19
Silmarilion left20:20
mmathis tieTYT: git rebase --abort and then redo your rebase20:20
rethus joined20:21
revyd left20:22
Mars___ left20:22
rq60 joined20:22
petey left20:22
SocalNick left20:22
dtrott joined20:23
SWakey joined20:23
kevwil joined20:24
aChatir joined20:25
aChatir left20:25
ahmedelgabri joined20:26
joelrobichaud left20:27
machouinard joined20:28
rq60 left20:28
nZac_ joined20:28
rq60 joined20:28
mellernoia joined20:28
ivan` left20:28
hwit joined20:29
daveytrain joined20:30
hwit left20:30
gdrc left20:30
nZac left20:30
HelperW joined20:30
g3orge joined20:30
doug left20:31
petey joined20:31
jason__ joined20:31
rq60 left20:32
renatow__ joined20:33
paulweb515 joined20:34
deanclkclk left20:34
nZac_nZac20:34
daveytra1n joined20:34
s0beit joined20:34
frobwarezz_frobware20:34
freeed left20:35
HelperW left20:35
rq60 joined20:35
renatow_ left20:35
_Vi joined20:35
shruggar joined20:35
cedeon joined20:36
bwreilly joined20:36
rq60 left20:36
whaley left20:37
daveytrain left20:37
psyl0n joined20:37
psyl0n left20:37
psyl0n joined20:37
saustin joined20:38
rafaqueque joined20:40
hoschi left20:40
MistuhKurtz left20:41
RogerWS joined20:41
SocalNick joined20:41
rabbite1 left20:42
renatow_ joined20:42
lite_ joined20:43
renatow__ left20:44
Mars joined20:44
ben_alma_ left20:44
MarsGuest721820:44
jceb left20:45
rafaqueque left20:45
rabbite joined20:45
tgkokk joined20:45
Cyb3r-Assassin left20:45
nnyk_ joined20:46
cavascript left20:46
LuxuryMode left20:46
lite_ left20:48
kukks joined20:49
rq60_ joined20:49
ahmedelgabri left20:49
gnu-man left20:50
rq60_ left20:50
Argure left20:50
schemanic joined20:50
blinkdesign left20:50
ivan` joined20:51
rq60 joined20:51
rq60 left20:51
rq60 joined20:51
rq60 left20:51
dtrott left20:52
VictorCL joined20:52
rq60 joined20:52
rq60 left20:52
renatow_ left20:53
Gavrisimo left20:54
rq60 joined20:54
Argure joined20:54
dunpeal joined20:54
rq60 left20:54
psyl0n left20:54
ben_alman joined20:54
Gavrisimooo joined20:55
tgkokk left20:55
dunpeal Hi. I have a tracked file which is really a template. Occassionally folks change it, mostly by accident. Is there a neat way to prevent any changes from being tracked, and/or reset the file whenever someone makes a commit while it is modified?20:55
tgkokk joined20:55
VictorCL left20:56
canton7 dunpeal, server-side hook?20:56
ZujkisNx_ left20:56
dunpeal canton7: our model is distributed, so I'd rather a client-side solution20:56
rq60 joined20:56
zackiv31 left20:56
canton7 client-side hook?20:56
ZujkisNx_ joined20:56
rq60 left20:56
canton7 (each client will have to install it, which is the painful bit)20:57
rq60 joined20:57
dunpeal canton7: that's an idea. is there a way to set a mode on a file that is basically "stay the same until further notice"?20:57
some kind of a mode or a flag20:57
zackiv31 joined20:57
canton7 there's a flag which can be abused, but lots of things reset it20:57
zackiv31 left20:57
b3tamax left20:58
canton7 but no, ignores and tracked files don't go together20:58
ZujkisNx_ left20:58
zackiv31 joined20:58
dunpeal canton7: what's the flag? just curious20:58
ZujkisNx_ joined20:58
canton7 update-index --assume-unchanged iirc20:59
petertretyakov left20:59
b3tamax joined20:59
tgkokk left21:00
rethus left21:00
VictorCL joined21:00
angelsl left21:01
dunpeal yup, thanks.21:01
I'll probably publish a client side hook that will reset the file prior to committing.21:01
tgkokk joined21:01
dunpeal That's the behavior most devs would like anyway.21:02
saustin left21:02
sohail left21:02
dtrott joined21:02
sandorjanssen left21:02
rafaqueque joined21:02
VictorCL left21:02
VictorCL joined21:03
dunpeal anyone recall off-hand the name of the proper hook to create?21:03
str left21:03
LuxuryMode joined21:03
moritz pre-commit?21:03
cagedwisdom joined21:03
ncthom91 left21:04
tgkokk left21:04
tgkokk joined21:04
RofricTheBearded left21:04
shadowvi1eshadowvice21:05
Guest7218 left21:05
valgrind joined21:05
JohnBat26 left21:06
maestrojed left21:06
GODDOG left21:06
raniere left21:07
canton7 dunpeal, man githooks21:07
gitinfo dunpeal: the githooks manpage is available at http://jk.gs/githooks.html21:07
tieTYT mmathis: ok :T thanks21:08
dsdeiz joined21:09
TomyWork left21:09
dsdeiz left21:09
MistuhKurtz joined21:10
slyfox left21:12
slyfox joined21:14
slyfox left21:14
slyfox joined21:14
Advocation left21:15
angrytongan joined21:15
nilg joined21:15
dobalina left21:17
macben left21:17
matheus23 joined21:17
rq60 left21:20
jackneill left21:20
tpollard joined21:21
Silmarilion joined21:22
LucasKA left21:22
scarabx joined21:22
raniere joined21:23
dtrott left21:23
ZujkisNx_ left21:23
helgikrs left21:23
ejwalkemmajane21:24
helgikrs joined21:25
Nizumzen joined21:25
petey left21:25
pinage404 joined21:25
petey joined21:26
dunpeal left21:26
schemanic left21:27
irqq left21:27
kukks left21:27
scarabx left21:28
oojacoboo joined21:28
dtrott joined21:28
dobalina joined21:28
Exancillatus joined21:28
bartman` joined21:28
dobalina left21:29
scarabx joined21:29
scarabx left21:29
scarabx joined21:30
petey left21:30
FortySix2 joined21:31
Kicer86 left21:31
petey joined21:31
Pullphinger left21:32
scarabx left21:33
maqr joined21:33
scarabx joined21:33
tgkokk left21:34
xok left21:36
jbarker left21:37
guardian given an ambiguous short sha1 d8eff, how can I find the first ancestor that starts with d8eff?21:37
ojacobson "first" isn't terribly well-defined21:38
looper left21:38
cbreak guardian: git rev-list , search in that thing21:38
maybe with grep21:38
tgkokk joined21:38
scarabx left21:38
cbreak grep supports regexps or so I heard :)21:38
roymiloh left21:38
guardian :)21:38
pinage404 left21:39
guardian I was seeking advice on e.g. git log vs git rev-list21:39
or else21:39
cbreak rev-list is machine parsable by design21:39
dreiss left21:39
cbreak log is for humans and their humanly needs21:39
Targen joined21:41
guardian hmm the git rev-list HEAD ^origin example in git rev-list man confuses me21:41
Targen_ left21:41
guardian I would have thought of origin as a remote21:41
canton7 guardian, "Specifying Revisions" in man git rev-parse21:42
gitinfo guardian: the git-rev-parse manpage is available at http://jk.gs/git-rev-parse.html21:42
deanclkclk joined21:42
jizanthapus left21:43
scarabx joined21:43
teran joined21:43
Panicg left21:43
deanclkclk_ joined21:44
Kartagis this is a user question: I need to go back and get a copy of one file at a specific commit. if I do "git checkout hash filename.module" can I get back to the most current commit when I'm done? if I'm not mistaken, they need cherry-pick, no?21:44
nZac left21:44
AzizLight joined21:45
maestrojed joined21:45
skorgon_ joined21:45
travisstaton joined21:45
Mars___ joined21:45
Watabou joined21:46
zackiv31 how do i name a detached HEAD branch ?21:46
raniere left21:46
paul424 joined21:46
ojacobson !reattach21:46
gitinfo Letters refer to !detached. (a) and (b): 'git checkout branchname' to continue working on another branch, or 'git checkout -b branchname' to start a new one here; (c) git am --continue; (d) git rebase --continue21:46
paul424 what git fetch origin branch_name does ?21:46
it seems to screw up my repo .. ?>"21:46
KeiKun left21:47
KeiKun_ joined21:47
deanclkclk left21:47
deanclkclk_deanclkclk21:47
cedeon left21:47
ojacobson copies refs/heads/branch_name from the remote named origin to FETCH_HEAD locally21:47
like it says in the man page :)21:47
Kartagis this is a user question: I need to go back and get a copy of one file at a specific commit. if I do "git checkout hash filename.module" can I get back to the most current commit when I'm done? if I'm not mistaken, they need cherry-pick, no?21:48
ojacobson (downloading any necessary objects for that ref t make sense)21:48
btree joined21:48
ojacobson Kartagis: 'git checkout <commit-ish> <paths>' does something a bit surprising21:48
aard_ left21:48
ojacobson it copies the version of <paths> from the commit <commit-ish> into your work tree, *and* stages them for commit21:48
paul424 Merge branch 'development' of ssh://git.code.sf.net/p/opendungeons/git into21:48
development21:48
ojacobson it doesn't move the work tree to any commit at all :)21:48
paul424 does it make sense att all ?21:48
ojacobson: sure21:49
thevishy left21:49
paul424 ojacobson: I am in fear that it screwed something or I screwed21:49
Kartagis ojacobson: what about git cherry-pick hash?21:49
skorgon_ left21:50
b3tamax left21:50
Biopandemic joined21:50
juliohm I forgot the command to see the diff for the changes to be commited?21:50
I added the changes with git add, how to see all?21:50
all added21:51
canton7 git diff --cached for staged change only21:51
ojacobson 'git diff --staged' -- see man git-diffed21:51
'git diff --staged' -- see man git-diff21:51
gitinfo the git-diff manpage is available at http://jk.gs/git-diff.html21:51
canton7 git diff HEAD for everything21:51
matheus23 left21:51
juliohm canton7, --cached and --staged are exactly the same?21:51
ojacobson eyup21:52
b3tamax joined21:52
vince_prignano joined21:52
skorgon_ joined21:52
dreiss joined21:52
mizu_no_oto left21:52
juliohm thanks21:52
ferreum left21:52
infynyxx_ joined21:53
rfoust left21:55
tgkokk left21:56
gdogrady left21:56
infynyxx left21:57
rainbyte joined21:57
paul424 Merge branch 'development' of ssh://git.code.sf.net/p/opendungeons/git into development21:57
what does that mean .. which is remote ,which is local ?21:58
cmpera left21:58
DolphinDream left21:58
nZac joined21:59
guardian git rev-parse --verify 8274 tells me short SHA1 8274 is ambiguous. But git rev-list --all | grep ^8274 only outputs a single long SHA1. So? Where does the ambiguity come from please?21:59
tobias__ left22:00
paul424 well wehbn I do pull I do fetch and auto-merge22:00
why the merge message is in my git log ?22:00
raniere joined22:00
gunmuc1 joined22:00
weltall left22:00
BlueOrg joined22:01
simesy joined22:02
gunmuc left22:02
quup left22:02
quup joined22:02
weltall joined22:02
cannonball left22:03
JerryT_ left22:04
sq-one left22:04
godgodgodgo left22:05
paul424 I haven't gave a git merge command :(22:06
ojacobson paul424: did you mean "pull" when you said "fetch"?22:06
deanclkclk left22:07
canton7 pull = fetch + merge. If you did a 'git pull', you did a merge22:07
paul424 sure ... but why in my git log it prints explicitly about it22:07
LucasKA joined22:07
deanclkclk joined22:07
ojacobson git pull is a merge command.22:07
You asked for it, you got it.22:07
bbloom left22:08
paul424 ojacobson: naah I rarely pull that might be the case22:08
infynyxx_ left22:08
petey left22:08
paul424 donno how git ack that ... Is it old feature of doing that , riht22:09
ri9ght ?22:09
petey joined22:09
Diemuzi joined22:09
gitinfo set mode: +v22:09
paul424 ack == logs :)22:10
qq22:10
slyfox left22:10
ben_alman left22:10
PeterBooker left22:11
pepper_chico joined22:11
salamanderrake joined22:11
SWakey left22:11
marcjs joined22:11
paul424 Your branch is ahead of 'origin/development' by 13 commits.22:12
BlueOrg left22:12
FortySix2 left22:12
paul424 not true ... only 3 commits22:12
rq60 joined22:13
paul424 why is that so ... may I post my git logs ?22:13
ojacobson Have you 'git fetch origin' recently?22:13
paul424 yes22:13
btree_ joined22:13
kpreid joined22:13
ojacobson (If not, does it mention 'development' when you run 'git fetch origin' now? :)22:13
petey left22:13
ojacobson Then your local branch is 13 commits ahead, i.e., there are 13 commits in git log origin/master..HEAD22:14
PerlJam paul424: was there a recent merge?22:14
ojacobson er origin/develop22:14
!lol may be enlightening22:14
gitinfo A nifty view of branches, tags, and other refs: git log --oneline --graph --decorate --all22:14
kevwil left22:14
petey joined22:14
infynyxx joined22:15
btree left22:15
nZac left22:16
dsdeiz joined22:17
pepper_chico left22:17
paul424 http://pastebin.com/jvXuucgV22:17
no Idea what happened to this repo22:17
el3ctron_ left22:17
ojacobson Your team (mostly 'faichele@primusnetz.de') appear to use 'git pull' for integrating upstream changes into local work22:18
which works fine, but it generates these staggeringly merge-heavy histories22:18
IrishPrime left22:18
ojacobson !workflow !pull_vs_rebase are both worthwhile reading; you'll need a grounding in git's basic principles to make sense of them22:19
gitinfo Finding the right workflow for you is critical for the success of any SCM project. Git is very flexible with respect to workflow. See http://sethrobertson.github.com/GitBestPractices/#workflow for a list of references about choosing branching and distributed workflows.22:19
ojacobson !rebase22:19
gitinfo [!merge_or_rebase] For a detailed discussion of the dis-/advantages of merge and rebase, and when to best use which, see: https://coderwall.com/p/ny1hia -- and here's how Linus explains which one to use: http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg39091.html22:19
ojacobson that22:19
paul424 I was never aware of the problem ... I always used git pull22:20
ojacobson It's not a problem, exactly22:20
how it affects your workflow & expectations might be, but what it *does* is simple and predictable22:20
alezost left22:20
ItSANgo left22:21
ojacobson the "problem" in as much as there is one is idiot tutorials (and git's own advice, frustratingly) suggesting "git pull" without explaining what it does or when it's appropriate or what the workflow implications are22:21
hellopat_ joined22:21
SocalNick left22:21
paul424 http://pastebin.com/x33cLDe5 http://pastebin.com/uCSuAfv022:22
can you compare local git log vs remote git log22:22
and why it claims it's 13 commits not 3 ?22:22
hellopat_ left22:22
rendar left22:22
Mars___ left22:23
Mars joined22:23
MarsGuest8670422:23
LuxuryMode left22:23
hellopat left22:24
mishok13 left22:26
b4rbz joined22:26
paul424 There was sayinh that 'git fetch origin' or 'git fetch origin branch_name' does not do what it does ..22:28
macben joined22:28
paul424 Is there a diffrence more than one fetches one branch the other all ?22:28
nevyn !4fetch22:29
!four22:29
gitinfo [!fetchfour] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge).22:29
ojacobson !fetch422:29
gitinfo [!fetchfour] We recommend against using 'git fetch/pull <remote> <refspec>' (i.e. with branch argument), because it doesn't update the <remote>/<branch> ref. The easy way to fetch things properly is to get everything: 'git fetch' or 'git pull' are sufficient if you have one remote; otherwise we recommend 'git fetch <remote>' (plus 'git merge <remote>/<branch>' if you wanted to pull/merge).22:29
nevyn that one !.22:29
ojacobson but fetch does not, under any circumstance I can think of, create merge commits22:29
cedeon joined22:29
nevyn git fetch origin is fine.22:29
ojacobson pull does, and the presence of all those URLs in your log makes me believe that, in spite of your protestations, you run 'git pull' quite frequently22:29
jason__ left22:29
donmichelangelo left22:30
Not_Whatever left22:30
FortySix2 joined22:30
donmichelangelo joined22:30
skorgon_ left22:30
Diemuzi left22:31
beastd left22:31
paul424 ok many thanks22:32
infynyxx left22:32
macben left22:32
mmathis fetchfour?22:33
!fetch322:33
where does the four come from22:33
nevyn git fetch origin branch22:34
^^^ the behaviour of this is not obvious ^^^22:34
Biopandemic left22:35
ItSANgo joined22:35
grawity in latest git.git it actually *does* update the ref22:35
axeLR joined22:36
bwreilly left22:36
paul424 http://fc08.deviantart.net/fs50/f/2009/301/6/f/Farfetch__d_by_Xous54.png you mean farfetch ?22:36
scoT_T`zZzscoT_T22:36
danicampa901 left22:37
gdogrady joined22:38
EugeneKay left22:38
SocalNick joined22:38
EugeneKay joined22:38
AaronMT left22:39
cads joined22:39
AaronMT joined22:39
ChanServ set mode: +v22:39
g3orge left22:40
paul424 nevyn: seems this cmd might be the pun on this pokemon22:40
EugeneKay No, it's "four word invocation"22:40
mfulz left22:41
iderik left22:42
ncthom91 joined22:42
kukks joined22:43
kukks left22:43
kukks joined22:43
paul424 It's funny when you get programming tools terms translated to your native language22:43
nowI know that staged area == poczekalnia ( like a waiting room before the GP ) :)22:44
GP's office22:44
in polish :P more worth than a paragraph of description :P22:45
endiruna joined22:45
cads left22:46
ojacobson left22:46
ngladitz left22:46
scelis left22:48
bambams_ left22:51
gasbakid left22:52
prawnsalad joined22:52
prawnsalad oh awesome, git people all around22:53
Nizumzen left22:53
prawnsalad though i just realised my mistake22:53
good git people.22:53
prawnsalad left22:53
saustin joined22:54
Gamecubic left22:55
m0ltar left22:55
cedeon left22:56
m0ltar joined22:57
vince_prignano left22:57
gdogrady left22:59
mrbubbles joined22:59
gdogrady joined22:59
Gamecubic joined23:00
m8 left23:00
jbarker joined23:01
tieTYT i'm trying to sell git to my coworkers. We use svn. In Svn, if I change line 1, then do an update and the remote repository also has a change to line 1, that will be a conflict. Is that also true in git? Assuming I use git svn rebase, I think not?23:02
daveytra1n left23:02
travisstaton left23:02
btree_ left23:03
tieTYT I think not because that will essentially say, "take the remote repository change and apply it before your change"23:03
imachuchu tieTYT: it will be a conflict because git will try to reapply your changes ontop of the new remote head, but since the important parts of it have changed (line 1) it will throw a conflict.23:04
VictorCL left23:04
HelloShitty joined23:05
Noldorin left23:05
bwreilly joined23:05
helgikrs left23:05
phile left23:05
tieTYT oh23:05
dreiss left23:05
imachuchu tieTYT: but the advantage of git is that you don't have to deal with it until you want to (when you rebase/merge)23:06
matanya left23:07
matanya joined23:07
petey left23:09
CaveJohnson left23:09
petey joined23:10
VictorCL joined23:11
tieTYT isn't that true with svn? I can choose not to upgrade23:11
m0ltar left23:11
petey left23:11
calcifea left23:12
petey joined23:12
tieTYT *update23:12
matanya left23:12
Soliton left23:13
Exancillatus left23:13
Vampire0 joined23:13
imachuchu tieTYT: absolutely, but you can't use svn until you update. With git you can still use it all you want locally, you can even fix the conflicts in stages (a whole branch to track your commits to reconcile branches) instead hof having a hard stop until the conflict is resolved23:14
m0ltar joined23:14
DolpheenDream left23:16
skorgon_ joined23:16
tieTYT i see23:16
smashwilson left23:17
shauna left23:17
DolpheenDream joined23:17
KaaK_ joined23:17
Matrixiumn joined23:18
harobed_ left23:18
kukks left23:18
calcifea joined23:19
noecc left23:19
m0ltar left23:20
KaaK left23:20
Noldorin joined23:21
khmarbaise left23:21
helgikrs joined23:22
MistuhKurtz left23:22
acharlieh left23:23
insejn left23:23
dreiss joined23:24
kermit left23:24
m0ltar joined23:25
hyperair joined23:25
marhaban joined23:25
MistuhKurtz joined23:26
insejn joined23:26
matanya joined23:26
kermit1 joined23:27
Destos left23:27
petey left23:29
Gavrisimooo left23:30
Vampire0 left23:30
bhldev__ left23:31
dtrott imachuchu: To be fair thats somewhat of a client issue, you can personally use the git-svn integration and see most of the advantages of a git-git setup without having to sell anyone else....23:31
FortySix2 left23:31
polypolyzen23:32
FortySix2 joined23:32
bhldev joined23:32
alexlindenlevy left23:32
FortySix_ joined23:33
skorgon_ left23:33
alvaro_o joined23:34
FortySix_ left23:34
infynyxx_ joined23:34
DolpheenDream left23:34
m0ltar left23:35
hyperair left23:35
DolpheenDream joined23:35
m0ltar joined23:36
marhaban left23:36
Gavrisimo joined23:36
revyd joined23:37
FortySix2 left23:38
polyzenpoly23:38
Mamoru joined23:38
unomystEz joined23:38
Mamoru left23:38
Mamoru joined23:38
tieTYT dtrott: that's my first step to selling it23:41
that's all I'm using23:41
marcjs left23:42
Mamoru left23:43
Mamoru joined23:43
Destos joined23:44
ariscop left23:45
shauna joined23:45
daivyk joined23:49
scarabx left23:51
dtrott left23:51
blinkdesign joined23:51
rednaks left23:51
eijk_ left23:52
rudisimo left23:52
elbeardmorez left23:52
becks__ left23:52
huahax joined23:53
chrisshattuck left23:53
Vampire0 joined23:54
valgrind left23:54
Guest86704 left23:55
becks___ joined23:55
Mars joined23:56
Olipro left23:56
MarsGuest1530623:56
blinkdesign left23:56
scarabx joined23:57
endiruna left23:57
Norm_ left23:57
Norm_ joined23:58
alexlindenlevy joined23:58
Olipro joined23:59
JerryT joined23:59

Logs Search ←Prev date Next date→ Channels Documentation