IRCloggy #git 2016-12-28

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.

2016-12-28

martinjlowm rizonz: say, merge x commits into one. Could be a number of commits on a feature branch that you want to merge or rebase onto the production branch00:00
kadoban dshap: Might be .git/objects/pack/ though IIRC they're much less easily edited/seen in there. I don't recall the format.00:01
martinjlowm instead of having many small commits that describe a subset of a larger change, you can squash them into one commit describing all the changes in detail00:01
Rodya_ left00:01
dshap kadoban: roger that. thx!00:01
bronson joined00:01
tyreld left00:02
Sasazuka left00:03
rizonz martinjlowm: yap, but I need to look more into branches, now I mostly let my app update it;s code from trunk when using SVN but I think I can use versions/branches now00:03
I deploy my app from my repos00:03
howitdo left00:04
psyb0t joined00:04
cdown joined00:04
Sasazuka joined00:05
martinjlowm sure :)00:05
rizonz martinjlowm: some people think it's stupid but I think it's ideal!00:05
why have some deploy management when git or SVN could do as well00:06
Noldorin joined00:06
bronson left00:06
toothe joined00:06
jimi_ joined00:07
toothe are there any extensions I can add to my shell (ksh) to show what branch I am in?00:07
marcogmonteiro joined00:07
meadmoon joined00:07
ertes rizonz: good enough for simple scenarios, but it's not necessarily ideal if you have dependencies, target-specific peculiarities, parametric deployment, etc.00:07
Schrostfutz left00:07
meadmoon left00:07
finalbeta left00:10
GavinMagnus left00:10
joki joined00:10
Emperor_Earth left00:10
martinjlowm toothe: are you forced to use ksh?00:10
rizonz ertes: how so ? I use pull it using puppet and go from there00:11
done00:11
howitdo joined00:11
ertes rizonz: ok then; i thought you use only git =)00:11
rizonz ertes: no!00:11
haha00:11
sorrry00:11
I can't manage 300 servers without foreman/puppet00:12
tmsmith left00:13
martinjlowm toothe: otherwise, there are plenty of options for zsh00:13
rtm1046 joined00:13
martinjlowm maybe liquidprompt works for ksh, I'm not sure though. You can check that out00:14
marcogmonteiro left00:15
askb joined00:16
toothe no, I am not.00:16
I just happened to be using it on FreeBSD. I could always switch to bash.00:16
kyan joined00:16
metachr0n left00:17
metachr0n joined00:17
martinjlowm okay, at least, liquidprompt works for bash. You can see how it looks on its github page00:18
toothe what are the options?00:18
oh, liquidprompt.00:19
okay!00:19
thank you00:19
t0by left00:19
rivarun left00:20
rivarun joined00:20
musicmatze1 joined00:21
Guest98878 left00:22
BSAlb left00:22
BSaboia joined00:22
Padawan joined00:23
dsdeiz joined00:25
dsdeiz left00:25
dsdeiz joined00:25
nuck joined00:25
Rodya_ joined00:25
cyrus_mc left00:26
dshap Hmm, does anyone know -- I used the BFG repo cleaner to remove all traces of a file and I pushed to Github per the instructions, but now I'm trying to see how a copy of that file could still be accessed via the read-only pull request refs that Github maintains. I tried checking out an old pull request, back when the (now deleted) file existed, but it's not showing up. Does that file actually have to be modified in the pull request for this issue00:26
apply?00:26
austin987 joined00:27
bakers dshap, What are you trying to do? Remove all traces a file existed in the repo?00:28
I had to do that once (had passwords in a file)... fixing the repo locally by doing a rebase, and then a git push --force worked for me00:28
dshap bakers: Yep, which I believe I did, but then I read about a caveat about these pull request refs and I'm trying to verify that it's an issue. I'm trying to verify that I have to contact Github support to delete my pull requests00:28
dreiss left00:28
dshap bakers: since those refs are read-only00:29
tmsmith joined00:29
bakers Is this your repo, or a remote repo?00:29
Where do the pull requests live00:29
dsdeiz left00:30
dar123 left00:31
dshap pull requests live on Github00:31
it's a Github thing00:31
I'm chatting with someone in #github, which might be more appropriate for this00:31
systemovich left00:32
dshap basically they are read-only refs00:32
bakers Ah ok... probably00:32
dirtyroshi joined00:32
dshap so once I use BFG locally, i can't push to them on my remote00:32
like i can with all other branches/refs00:32
watabou joined00:32
tmsmith left00:32
courrier left00:33
cqi joined00:34
tmsmith joined00:34
Lyqyd left00:35
Rodya_ left00:39
Lyqyd joined00:39
Sasazuka_ joined00:39
Sasazuka_ left00:39
Rodya_ joined00:39
fstd left00:40
fstd joined00:40
Starky left00:41
Sasazuka left00:41
dling` joined00:42
Raed left00:43
dling left00:43
iamtakingiteasy left00:43
esc left00:43
rawtaz left00:43
Raed joined00:43
esc joined00:43
kexmex left00:43
HelloShitty joined00:44
hramrach joined00:44
Spinkzeit joined00:44
iamtakingiteasy joined00:44
rawtaz joined00:44
quite joined00:44
denimsoft joined00:45
jimi_ left00:45
nettoweb joined00:46
dreiss joined00:47
Isla_de_Muerte joined00:50
nettoweb left00:51
NwS left00:52
Padawan I have this local repo which has some submodules of github projects. Now, i need to make changes on one of these submodules, i can do that, but when i try to push my local to remote and clone it to another machine... the submodule doesnt get in, and i get errors. What am i missing00:53
cdown left00:54
theskillwithin left00:54
jimi_ joined00:55
bakers left00:55
arescorpio joined00:56
satbyy left00:56
AciD` joined00:56
dreiss left01:01
bronson joined01:02
NimeshNeema left01:03
Mathieu_Du joined01:03
sbeller Padawan: the superproject needs to have an updated pointer to the submodule, i.e. in the superproject: git add <submodule> (with the correct new sha1 checked out in the submodule)01:06
rwb joined01:07
bronson left01:07
Rodya_ left01:09
moei joined01:09
shgysk8zer0 left01:10
arescorpio left01:15
dodobrain joined01:18
dsdeiz joined01:20
dsdeiz left01:20
dsdeiz joined01:20
Rodya_ joined01:21
endiruna joined01:21
dar123 joined01:26
theskillwithin joined01:28
leeN left01:29
tmcmahon joined01:29
WaReZ left01:30
[log] left01:30
[log] joined01:30
nickabbey joined01:32
arescorpio joined01:33
endiruna left01:34
endiruna joined01:35
a_thakur joined01:37
nckpz left01:38
Sasazuka joined01:38
joshszep left01:39
endiruna left01:40
a_thakur left01:42
a_thakur joined01:43
JamesBaxter joined01:46
fahadash joined01:46
a_thakur left01:48
aw1 left01:56
YuGiOhJCJ left01:59
Sasazuka_ joined02:00
Sasazuka left02:00
joki left02:03
bronson joined02:03
rtm1046 left02:04
Lyqyd left02:05
cagedwisdom left02:06
finalbeta joined02:06
bronson left02:08
unreal_ joined02:08
aw1 joined02:09
Sasazuka_ left02:10
unreal left02:11
manuelschneid3r left02:11
endiruna joined02:12
rtm1046 joined02:12
andrew710 joined02:12
NeverDie left02:13
Rodya__ joined02:14
rtm1046 left02:15
grumble joined02:15
Rodya_ left02:16
NeverDie joined02:17
cagedwisdom joined02:18
netj left02:18
netj joined02:18
pks left02:20
sdothum left02:20
pks joined02:23
muuse joined02:23
tvw left02:24
sdothum joined02:24
cyphase left02:27
d^sh_ left02:28
manuelmrtz joined02:29
d^sh joined02:29
looper left02:30
metachr0n left02:30
cqi left02:30
metachr0n joined02:32
cyphase joined02:32
looper joined02:33
tmcmahon left02:34
jw4242 joined02:35
endiruna left02:36
marlinc joined02:37
Vampire0 joined02:40
franks-reich joined02:41
manuelmrtz left02:41
cqi joined02:43
Vampire0_ left02:43
manuelmrtz joined02:45
[0xAA] left02:46
ilbot3 left02:46
manuelmrtz left02:48
ilbot3 joined02:48
Goplat joined02:52
aavrug joined02:52
looper left02:53
ayjay_t omg ntfs folders showing up as 0 bytes and giving me weird permissions, what do02:54
git no work02:54
_rht left02:56
moestevens left02:58
beecushm_ joined03:02
beecushm_ left03:02
NeverDie left03:02
moestevens joined03:03
chachasmooth left03:04
bronson joined03:04
NeverDie joined03:06
chachasmooth joined03:07
newbie1 left03:07
crayon left03:08
thiago left03:08
bronson left03:09
bannakaffalatta left03:17
kyan left03:19
justanotheruser left03:21
jimi_ left03:23
unreal joined03:26
tmsmith left03:27
paws_ left03:27
Vortex35 joined03:28
unreal_ left03:29
Nilesh_ joined03:29
fk joined03:32
Vortex34 left03:32
hexagoxel left03:34
justanotheruser joined03:34
jstimm joined03:36
ayjay_t left03:40
ayjay_t joined03:40
hexagoxel joined03:41
raedah joined03:41
raedah I have serveral branches that each contain a patch I am submitting upstream as an individual pull request. How do I make a new branch that has the changes from all of my branches so that I can run it and test it?03:42
Lyqyd joined03:43
phroa man git-cherry-pick to copy each commit, then optionally squish them together with man git-rebase /INTERACTIVE03:45
gitinfo the git-cherry-pick manpage is available at http://jk.gs/git-cherry-pick.html03:45
the git-rebase manpage is available at http://jk.gs/git-rebase.html03:45
cqi left03:45
Noldorin left03:46
tmsmith joined03:47
sunri5e left03:50
justanotheruser left03:51
sunri5e joined03:51
Emperor_Earth joined03:51
a_thakur joined03:54
meloc joined03:54
ToBeCloud joined03:54
gitinfo set mode: +v03:54
mizu_no_oto joined03:55
raedah cool, thats working03:57
denimsoft left04:00
denimsoft joined04:00
robattila256 left04:01
Rodya__ left04:02
looper joined04:02
chachasmooth left04:02
bronson joined04:05
justanotheruser joined04:05
Lyqyd left04:05
Anja left04:06
rtm1046 joined04:07
chachasmooth joined04:08
nd joined04:08
bronson left04:10
raedah how do I remove a cherry-pick I dont want anymore? delete a commit04:10
nd_ left04:11
[log] left04:12
[log] joined04:12
raedah delete the branch and start over maybe04:13
tmsmith left04:17
dsdeiz left04:18
fstd_ joined04:18
xall joined04:18
cagedwisdom left04:20
cyphase left04:21
fstd left04:22
fstd_fstd04:22
phroa raedah: git rebase -i04:23
man git-rebase04:23
gitinfo the git-rebase manpage is available at http://jk.gs/git-rebase.html04:23
dave0x6d left04:23
JanC_ joined04:25
nowhere_man joined04:25
JanC left04:25
dsdeiz joined04:25
JanC_JanC04:26
cyphase joined04:26
dave0x6d joined04:27
kulelu88 left04:28
dsdeiz left04:31
mizu_no_oto left04:32
fatalhalt joined04:33
fatalhalt left04:33
netj left04:38
netj joined04:38
subhojit777 joined04:46
jw4242 left04:47
slash_ joined04:48
gitinfo set mode: +v04:49
slash_ Hey guys, what would happen if I pull a feature branch1 to local, rebase feature branch2 on top of feature branch 2 and try to push it?04:49
dshap left04:49
slash_ *on top of feature branch 104:49
preaction try to push it where?04:49
ayogi joined04:50
kadoban slash_: It's unclear what you're asking exactly, but ... not much interesting?04:50
preaction you'd have rewritten feature branch 2, causing it to have all new commits in it, which means if you pushed the old fb2 anywhere, you'd have to force-push the new fb2 there if you wanted to push it04:50
slash_ preaction: I've never pushed fb2 previously. This is only on local.04:51
preaction then you'd push fb204:51
slash_ kadoban: I'm sorry if it's not interesting enough for you.04:51
preaction: Is that the recommended workflow if I had to work on top of an existing feature branch?04:51
preaction that isn't what kadoban meant, i'm sure.04:52
kadoban (it's not)04:52
preaction also, as far as i know, it's the only way to work "on top" of an existing feature branch, unless you meant merging the branches instead, at which point it's up to your team04:52
i prefer to keep a linear history, so i rebase often (and force-push often). other teams prefer to merge instead04:53
slash_ kadoban: Sorry for the abrasiveness then :)04:57
preaction: I prefer linear history as well. So since I'd be working on fb2 alone, would what I've done currently work fine04:58
kadoban No worries, sorry for giving the wrong impression04:58
preaction i mean, if you want to know if you like how the history looks, use git log and look at the history04:58
consider using the --one-line and --graph options if you want to see if it's linear or not04:58
rebasing in this way will create a linear history, if that's what you're asking05:00
slash_ I see a really long lie when I use --graph. That's linear? How would branched history look?05:01
aarobc left05:02
slash_ *line05:02
dviola left05:04
m0viefreak left05:04
bronson joined05:06
dreiss joined05:09
bronson left05:11
duderonomy joined05:11
holodoc joined05:12
Cabanossi left05:13
Cabanossi joined05:14
holodoc I remember being able to clone a git repo into a file and then unpack it on another location. Could anyone point me in the right direction what I might have used back then? I don't think it was git-archive.05:14
slash_ left05:14
kadoban holodoc: Sounds like git bundle05:15
holodoc kadoban, Yes! git bundle!05:16
kadoban :)05:16
holodoc Can't believe I wasn't able to remember that effing name05:17
kadoban It doesn't get used too much, heh.05:17
holodoc Thanks kadoban!05:17
kadoban Though when you need it, it works great. Anytime.05:17
holodoc I need it to move a large repo05:17
And I don't have many other options to do it05:17
So I remembered using git bundle for that a long time ago05:17
duderonomy left05:19
svm_invictvs joined05:25
duderonomy joined05:26
nowhere_man left05:27
nowhere_man joined05:27
howitdo left05:28
Mowgli joined05:29
nickabbey left05:29
nowhere_man left05:31
sbulage joined05:32
nowhere_man joined05:32
armyriad left05:32
Limes_ joined05:33
jason237 left05:38
bocaneri joined05:38
jon-mac joined05:39
nowhere_man left05:40
nowhere_man joined05:40
shubhnik joined05:44
Limes_ left05:45
duderonomy left05:46
doener left05:50
fatalhalt joined05:53
fatalhalt left05:53
nowhere_man left05:53
[log] left05:57
[log] joined05:57
bannakaffalatta joined05:59
weckstrom joined05:59
justanotheruser left05:59
zefferno joined06:01
dreiss left06:03
ToBeCloud left06:06
bronson joined06:07
NeverDie left06:07
NeverDi__ joined06:08
ogny joined06:10
bronson left06:12
justanotheruser joined06:12
duderonomy joined06:12
arescorpio left06:13
BrianJ joined06:15
cagedwisdom joined06:15
cyan__ joined06:19
sdothum left06:20
clemf joined06:21
pks left06:32
pks joined06:32
svm_invictvs left06:33
Tobarja joined06:34
freimatz joined06:36
overlord_tm joined06:39
askb left06:41
DonqKonq joined06:43
xall left06:44
wcpan joined06:49
netj left06:49
netj joined06:49
wcpan left06:49
wcpan joined06:50
ThomasLocke joined06:53
ThomasLocke left06:53
ThomasLocke joined06:53
Ozymandy joined06:53
cyan__ left06:56
DonqKonq left07:00
dminuoso joined07:01
dminuoso left07:02
dminuoso joined07:02
dminuoso Hi, I have some github repository that I want to fork for a small modification - however I don't want to be bothered to constantly pay attention to any commits from upstream.07:02
kadoban Why would you be bothered? I have several forks that I don't use for anything anymore, github doesn't seem to care.07:03
dminuoso kadoban: Because I still want updates as they come in.07:03
Sircle_ joined07:04
Sircle_ Hi07:04
I had a working git with bitbucket. I just added my new gitlab remote by 'git remote add localOrigin Http://path/to/gitlab/localrepo.git'. I see commits in 'activity' page but none in tree/master page or commits/master or /project page. Why is that?07:04
I still see git instructions on the project page07:04
dminuoso kadoban: My dependency tool accepts github repositories, so if I specified by own fork I would not get upstream updates unless I merged them myself all the time. If I specified the upstream I would not get my own modification.07:04
JamesBaxter left07:05
kadoban dminuoso: Then get upstream to take your change and maintain it, otherwise what you want doesn't sound possible, or sensible in the git model.07:05
boombatower left07:06
dminuoso kadoban: That would be interesting - the change is a little extreme (I essentially castrate a library to mock out half of its features to dramatically speed things up) so Ill see how it goes.07:06
Haven't even considered sending the change upstream.07:06
bronson joined07:08
Anja joined07:08
Sircle_ snores07:09
basiclaser joined07:10
Anja left07:12
bronson left07:13
Ozymandy left07:14
snowkidind left07:16
diogenese left07:21
prawnzy I'm oversimplifying but if the singularity happens and whole-body gene therapies become a thing you can reset to whatever you are now07:23
or when you iced your cells07:23
oops wrong channel07:23
aavrug left07:24
dirtyroshi left07:24
diogenese joined07:24
ayogi what's the difference between "git pull" and "git pull origin master"07:25
GT4066 joined07:25
ayogi what should be used to deploy in production master branch07:25
JeroenT joined07:25
dminuoso ayogi: git should not be used for deployment directly at all.07:25
It is not a deployment tool.07:25
!deploy07:25
gitinfo Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html07:25
ayogi dminuoso: i mean i am updating the code in the production07:26
how do i update code, i need to do pull?07:26
dminuoso ayogi: Again, it is not a deployment tool.07:26
lacour left07:27
kadoban ayogi: Certainly anything that involves a pull into production code sounds insane.07:27
dminuoso ayogi: We are running a setup that for each deployment run checks out the entire application into a separate directory with a unique name, and then use symlinks to switch between releases.07:27
kadoban If this is a website for instance, that's just going to break things all the time ...07:27
davideb left07:27
dminuoso We then keep the last 5 deployed versions around, allowing us to instantly roll back between versions.07:27
davideb joined07:28
ayogi dminuoso: okay. but for now please tell me what's the difference07:28
navidr joined07:28
dminuoso ayogi: You mean the difference between using a knife and scissors to cut paper? They are different things.07:28
duderonomy left07:29
ayogi dminuoso: yeah, what's the difference and efficient07:31
prawnzy In the analogy one is better suited for the task, safer, much more efficient, more can go wrong with the other one07:31
not just efficiency07:32
if you don't care about the trade-offs and just want to cut paper, keep using the knife, but know the scissor exists and you should probably use it07:32
dminuoso ayogi: git is in no way designed to facilitate deployment. You will just get conflicts and issues. Just imagine at some point you decide to rewrite history for whatever reason.07:32
It is really easy to build a simplistic deployment tool around git.07:32
even if its a small bash script akin to what we do07:32
howitdo joined07:34
howitdo left07:34
howitdo joined07:34
ayogi dminuoso: i can not find any difference between "git pull" and "git pull origin master" after reading: http://stackoverflow.com/questions/23953125/difference-between-git-pull-and-git-pull-origin-master07:36
if default is set07:36
skered joined07:36
aavrug joined07:36
skered Can git-format-patch generate a patch that isn't/won't be used for email submission or would that just be git-diff output?07:37
ex: can git-format-patch generate a patch minus the email headers. Bugzilla recognize git-format-match attachments as mbox files.07:38
Junior joined07:38
skered recognizes*07:38
duderonomy joined07:40
a_thakur left07:43
xall joined07:44
Sircle_ I had a working git with bitbucket. I just added my new gitlab remote by 'git remote add localOrigin Http://path/to/gitlab/localrepo.git'. I see commits in 'activity' page but none in tree/master page or commits/master or /project page. Why is that? I still see git instructions on the project page07:46
duderonomy left07:46
davideb left07:46
freimatz left07:48
dar123 left07:50
dave0x6d left07:53
lu_zero joined07:53
Mannn joined07:54
nidr0x left07:55
dave0x6d joined07:56
lu_zero left07:56
lu_zero joined07:57
lu_zero left07:57
lu_zero joined07:57
theskillwithin left07:57
Mannn left07:58
clemf left08:02
a_thakur joined08:02
somaReverse left08:05
bronson joined08:09
freimatz joined08:10
lordjancso joined08:11
bronson left08:13
somaReverse joined08:13
howitdo left08:15
PCatinean joined08:15
_rht joined08:17
nidr0x joined08:17
grawity skered: does that actually cause problems with bugzilla?08:17
the format happens to be the same as consumed by `git am`08:17
shubhnik left08:19
sarbs joined08:22
Anja joined08:22
aidalgol joined08:22
cagedwisdom left08:26
Anja left08:28
Anja joined08:29
Anja left08:30
Goplat left08:31
shubhnik joined08:31
mattp_ joined08:33
Sadeukko joined08:35
cagedwisdom joined08:40
aidalgol left08:41
shubhnik left08:42
Balliad joined08:45
Balliad left08:45
Panacea joined08:45
Balliad joined08:45
Junior left08:46
SteffanW joined08:46
overlord_tm left08:48
overlord_tm joined08:49
skered grawity: No, because you just change it to be a patch08:50
But I would suspect if it didn't have the email headers it would auto detech it as a patch.08:50
Just added extra step if you attach a patch when you create a bug08:50
Silox| joined08:51
tvw joined08:51
bremner Sircle_: I guess you need to find a gitlab specific support channel/forum/mailing-list08:51
skered But if I could get that same output minus the headers via a simple flag to format-patch or via a .gitconfig alias I would use that instead of git-format-patch08:52
Panacea left08:53
ayjay_t left08:54
xall left08:54
LiMp^ left09:00
fbwnd left09:05
NimeshNeema joined09:05
cqi joined09:06
LarArT joined09:07
jnavila_ joined09:07
clmsy joined09:07
LarArT left09:09
bronson joined09:09
marcogmonteiro joined09:14
bronson left09:14
robattila256 joined09:17
fbwnd joined09:18
t0by joined09:18
danslo joined09:19
osse skered: won't that be the same as git show?09:26
hmm, never mind. but i think a custom --format to git show/log is the way to go09:26
cartman joined09:30
cartman left09:32
Macaveli joined09:32
grawity skered: but then the committer would need to do extra steps to copy the message/authorship/etc.09:34
jstein_ joined09:38
jstein_jstein09:40
Junior joined09:41
MrLawrence joined09:42
skered grawity: Well for this case I don't think it's git on the otherside.09:43
Panacea joined09:43
skered So losing the meta data isn't that big of a deal.09:43
I think I might bark up the bugzilla tree to see what can be done to understand a git-format-patch patch or better options during bug creation.09:45
ferr1 joined09:45
nisseni joined09:47
robotroll joined09:51
anddam I have a project remote called 'upstream' and a copy of mine at origin, 'git log upstream/master..master' shows only one log that means that if I push on upstream I'm only pushing that one commit, is that right?09:52
that's my understanding but I'm asking as double check since last time I messed up big time09:53
Mowgli left09:54
selckin git push --dry-run09:54
gitk <copy paste hashes it shows>09:54
thats what it'll do09:54
jnavila_ left09:55
skered osse: git show -u --format=full ...09:55
kurkale6ka joined09:55
skered Appears nice.09:55
jnavila_ joined09:57
YuGiOhJCJ joined09:57
aw1 left09:57
skered I think with some shell scripting it could also generate directly to a file.09:57
It good I might have a alterative but I'd like to see if Bugzilla could better support format-patch output.09:58
We'll see what they have to say.09:58
cdown joined09:58
skered I'd guess the only argument might be that they can't tell the difference between an mbox file and a format-patch file.09:59
Only because they're the samethign.10:00
nettoweb joined10:01
cdown_ joined10:01
cdown left10:04
cdown_cdown10:04
dubing joined10:05
anddam selckin: I see, what's 'gitk'?10:07
Jebs joined10:07
gitinfo set mode: +v10:09
gitinfo set mode: +v10:09
Jebs Hi ALl10:09
gitinfo Jebs: 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.10:09
chll_ joined10:10
bronson joined10:10
aw1 joined10:11
shiriru joined10:14
Jebs left10:14
jnavila_ left10:15
bronson left10:15
watabou left10:16
howitdo joined10:16
tojo joined10:18
tojo left10:18
absence joined10:22
PtxDK joined10:24
basiclaser left10:24
absence https://github.com/julien-truffaut/Monocle/tree/v1.3.2 <- this repo seems to have a tag called v1.3.2, but when i do git tag -l (after git fetch to get the latest changes), v1.3.2 isn't in the list, and i can't do git checkout v1.3.2 either. what could be wrong?10:25
selckin git fetch --tags10:25
absence selckin: ah, thanks. why was that necessary? it seems to have fetched all the other tags before i did that10:26
selckin afaik its not default to fetch them, can be configured10:27
anddam selckin: was gitk a typo?10:29
absence weird, i've never done anything explicitly to get tags, and yet i had most of them10:29
oh well, file under "yet another git mystery" :)10:29
muuse left10:29
selckin i don't know10:29
GT4066 left10:31
mgedmin the original git clone gets the tags that existed when you cloned, iirc10:31
wait, I'm overthinking this10:32
jnavila_ joined10:32
mgedmin "By default, any tag that points into the histories being fetched is also fetched"10:32
Macaveli left10:32
mgedmin so, if v1.3.2 points to a commit that's not part of the master branch (assuming you fetched the master branch), it wouldn't get fetched10:32
Macaveli joined10:33
jnavila_jnavila__10:33
jnavila__jnavila10:33
dimi1947 joined10:35
acetakwas joined10:36
DieguezZ joined10:40
nisseni left10:41
a_thakur left10:43
a_thakur joined10:43
watmm Anyone know why a git merge might introduce special characters to filenames/paths that aren't decoded properly (e.g. German letters with umlauts being translated as '\220'), when the characters aren't visible on the source repository?10:45
selckin because the pc you're running the merge on can't handle them?10:46
watmm I can't find where they come from though, they don't appear to be intentional10:48
Jackneill joined10:48
Mowgli joined10:50
bket left10:55
bket joined10:58
d0nn1e left11:00
d0nn1e joined11:02
JeroenT left11:04
Atm0spher1c left11:04
JeroenT joined11:04
rtm1046 left11:04
rtm1046 joined11:06
msonntag left11:06
bmahe left11:07
rtm1046 left11:08
JeroenT left11:08
DrRobotic joined11:09
oaao joined11:11
bronson joined11:11
iamtakingiteasy left11:14
msonntag joined11:14
cmn_ joined11:15
bronson left11:16
Silox| left11:16
cmn_ left11:18
cmn_ joined11:19
netj left11:20
netj joined11:21
davimore joined11:24
dimi1947 left11:24
g__k__ left11:25
davimore__ left11:25
manuelschneid3r joined11:26
Greg364 joined11:32
Panacea left11:35
Seveas which os are you on, and which filesystem is teh repo on?11:36
JeroenT joined11:37
Greg364 left11:38
Seveas also, are these characters part of the path, or part of the output of git command?11:38
m0viefreak joined11:39
rahtgaz joined11:39
fbwnd left11:42
ok91 joined11:43
leeN joined11:43
cqi left11:47
cmn_cmn11:48
cmn_ joined11:50
ertesx joined11:51
xaa joined11:52
absence mgedmin: i guess that's it. useful to know, thanks!11:53
sostenuto joined11:53
ertes left11:54
ertesxertes11:54
fbwnd joined11:54
somaReverse left11:55
gitinfo set mode: +v11:59
Tobarja left11:59
Nitesh I sent a patch using git send-mail and then another patch with the same Subject but a v2. i.e. the only difference between the subject lines of two patches was "v2". Still when I sent the second patch, it came in the mailing list as one below the other as if it were the same messages sent twice11:59
Not sure why this happened, also the subject lines came as same for both the patches in the mailing list. Am I missing something/doing something wrong12:00
kpraveen joined12:01
SwingShock joined12:01
thiago joined12:01
JeroenT left12:03
jnavila left12:03
pixaal joined12:03
SwingShock Hi. I was trying to get rid of a commit i did earlier and go back to the commit before it and set it as the master. I tried to use revert <commit> to that commit and i am now stuck at (master|REVERTING). What can i do next ?12:03
rnsanchez joined12:04
YuGiOhJCJ left12:04
pixaal hey all, i'm having a bit of trouble authenticating to github. trying to clone one of my repos gives a 'Permission denied (publickey)' error, even though i've added the contents of id_rsa.pub to github and doing 'ssh -T [email@hidden.address] shows "Hi <username>! You've successfully authenticated..."12:05
Sadeukko left12:05
JeroenT joined12:06
osse pixaal: what is the URL you're trying to use=12:06
pixaal [email@hidden.address]12:07
MenoPiu joined12:07
MenoPiu left12:08
osse pixaal: what does 'git config core.sshCommand' say?12:08
and env | grep GIT12:08
maialino4 joined12:08
donught joined12:08
maialino4 hey, how can I rebase commits with empty message?12:08
somaReverse joined12:08
donught left12:09
donught joined12:09
pixaal osse, doesn't show anything, but neither does my other pc where it is working fine12:09
osse pixaal: does git clone https://github.com/gregzaal/Gaffer.git work ?12:10
and show the output of ''GIT_TRACE=1 git clone git@github...''12:10
pixaal probably, but i'd rather not have to type in my username & password every time12:10
SwingShock I learned to reset instead. It is risky but it worked for now. Bye.12:10
pixaal will try12:11
SwingShock left12:11
maialino4 osse: yep it works12:11
pixaal osse, https://hastebin.com/imelujatef.pas12:12
bronson joined12:12
pixaal cloning https does work12:13
subhojit777 left12:13
Jackneill left12:14
Jackneill_ joined12:14
Nilesh_ left12:14
kpraveen left12:15
bronson left12:17
osse pixaal: well that looks suspicious12:19
lordjancso left12:19
osse that thingy before git@12:19
nuke it from orbit12:19
cmn_ left12:20
pixaal indeed12:21
but how12:21
JamesBaxter joined12:22
osse maybe you accidentially typed AltGr-Shift-Escape-ASpace-Ctrl as you were typing "git" then just used "up and enter" ever since12:22
mgedmin copy/paste error? one half of a UTF-8 sequence for NO-BREAK-SPACE?12:22
pixaal ahhhhh12:22
yes12:22
the old copypasta12:23
mgedmin which is \xC2\xA0 in UTF-8, but \xA0 in Latin-112:23
osse but there is a regular space there too... otherwise he'd get "clone git@..." not a git command12:23
sbulage left12:23
pixaal yes the must've been some encoding screwup with copy paste, thanks guys o/12:24
somaReverse left12:24
pixaal working now12:24
strange that it didn't screw up the https too tho12:24
aavrug left12:26
osse it can happen to the worst of us. my bet is a pebcak and that it has nothing to do with actual copy-pasting.12:27
mgedmin as a linux user, I forget that there are ways to input no-break spaces that do not involve copy-pasting12:28
oskarkv left12:28
osse Alt-Space is one I think, at least in gnome. I usually change the keyboard layout to let Space produce a Space no matter what keys I may be pressing at the same time... The amount of time spent on fixing nbsp bugs in latex when typing $ ... GRRRR12:29
grawity alt-space is the system menu12:29
shift-space might be NBSP?12:29
I keep forgetting too12:29
mgedmin alt-space opens the window menu in gnome12:30
osse hmm, then it's AltGr-Space12:30
(I belong to the AltGr cult)12:30
ok91 left12:30
mgedmin altgr-space is just plain space in my Lithuanian layout, but this is getting off topic and I'm sorry12:30
grawity osse: heathen12:31
grawity : Compose user12:31
grawity ahhh here it is12:31
there's a whole *ton* of Xkb options for it: https://i.imgur.com/j6dsfeG.png12:31
osse Anything an op wishes to discuss is on topic by definition!12:32
Jackneill_ left12:33
pixaal i'm using git bash on windows. never really trusted copy-pasting with terminals on windows in general, but it's gotten better in win1012:34
uskerine joined12:34
uskerine hi, I am new to git. I have created my repo in bitbucket. I have installed SourceTree and succesfully see my new repo. I added my first source files to that repo and I can see them in SourceTree. I have "Staged" all them. Now what do I have to do?12:36
selckin commit12:36
uskerine selckin, I press commit and nothing happens12:36
selckin read some documentation12:36
!gui12:37
gitinfo Graphical user interfaces are not supported here. If you want to get support, it needs to be through the git CLI. Reasons: 1) Because very few people here use the graphical interface. 2) Because giving instructions for GUI's is difficult. 3) The command line gives you a history of what commands you have executed.12:37
somaReverse joined12:38
uskerine I am asking about conceptual issues of git12:38
not about the gui12:38
thiago uskerine: once you stage, you commit12:39
or unstage12:39
after you commit, you can push. Or not.12:39
selckin which is the first thing any doc/tutorial will go over, you are trying to guess how it works from the gui12:40
andrew710 left12:40
oskarkv joined12:40
andrew710 joined12:41
uskerine thanks thiago12:43
maialino4Makko_fR12:43
uskerine what does stage/unstage mean?12:43
ToBeCloud joined12:43
gitinfo set mode: +v12:43
selckin its not very efficient for us to type out the entire documetnation, read one and then come with specific questions12:44
thiago uskerine: to put them into the staging area for the next commit or to remove from it12:44
uskerine understood12:45
osse pixaal: I definitely suggest you use the mintty and not the regular cmd window thingy12:45
PadawanGuest8881312:46
Padawan_ joined12:46
JeroenT left12:48
jeffreylevesque left12:48
Guest88813 left12:49
ojdo left12:49
pixaal osse, i use the git bash thing, not the normal cmd thing12:51
Panacea joined12:52
Mowgli left12:53
OnceMe joined12:54
OnceMe hello, can someone help me with git?12:54
Muzer joined12:54
OnceMe Im not sure should I checkout new branch12:54
mgedmin I love mintty except it badly breaks python repl :'-(12:54
OnceMe because I just have cloned it from github12:54
pixaal git bash comes with some bash commands to, maybe from cygwin idk.12:55
thiago from cygwin, correct12:55
OnceMe: do you want to check out a new branch?12:55
mgedmin msys2 rather than cygwin these days, afaiu12:55
OnceMe I dont know12:55
tvw left12:56
ojdo joined12:56
OnceMe thiago: I just want to push it12:56
JeroenT joined12:56
OnceMe but I cloned main git repo, and I have my branch on github which is under blah/tree/myusername12:57
so when I did git add . -A and git commit -m "m"12:57
I did git push origin myusername but it fails12:57
shams joined12:57
JamesBaxter left12:57
thiago OnceMe: push what?12:58
ah12:58
you cloned from the main repo and that's where you've tried to push back to12:58
I assume you don't have the rights to do that12:58
OnceMe well I tried with git push origin myusername12:59
I guess it can push only to master, so I need to swtch branches if I'm right?12:59
shams how to bring changes in a file back?12:59
thiago you need to first git remote add -f personal [email@hidden.address]12:59
then you can do: git push perosnal master12:59
shams: explain more, please12:59
OnceMe thiago: I dont want to push on remote12:59
and I already have my tree, Im added into project13:00
basically I thikn I need to checkuot the branch13:00
I get non-fast forward thing13:00
thiago OnceMe: you don't need to change your local branch, but you can13:00
shams thiago, i changed a .c file then did git add,commit,now i want my file should be same as previous13:00
synthroid joined13:01
thiago you don't need to change branches to push to a different branch13:01
anyway, your problem is that your local copy is old and doesn't have the latest from upstream. Taht's the "non-fast-forward" thing (which you should have mentioned before).13:01
git pull again13:01
shams: do you want to remove the commit you've made?13:01
musicmatze1musicmatze13:01
finalbeta left13:02
thiago shams: or do you want to just rollback the changes to the file? Temporarily or permanently?13:02
shams thiago, i created a patch but i don't want to send it13:02
finalbeta joined13:02
OnceMe thiago: didnt fix13:02
shams i want my .c file as previous13:02
rwb left13:02
shams permanently13:02
thiago, are there two methods for doing this temp and permanent?13:03
thiago shams: yes13:04
OnceMe thiago: what to do?13:04
thiago shams: do you want to remove the commit from existence?13:04
shams yes13:04
OnceMe do I commit to my branch as git push origin/mybranchusername or?13:04
thiago OnceMe: obviously something you didn't tell me is not working properly.13:04
Jackneill joined13:05
thiago OnceMe: what is your local branch called?13:05
OnceMe how do I find that?13:05
thiago shams: have you pushed this commit anywhere other people can see?13:05
OnceMe: git branch13:05
uskerine left13:05
shams thiago, no its in my local13:05
OnceMe onceme13:06
thiago shams: git reset --hard HEAD~13:06
shams: this will remove the current commit from existence13:06
shams: and remove any changes in the work tree13:06
shams thiago , and what about my .c file?13:06
thiago OnceMe: git push -u origin onceme:remotebranchname13:06
shams: what about it?13:06
shams: the reset --hard command will make your work tree look exactly like the commit second to last (which will be the last & current after the command)13:07
andrew710 left13:07
shams thiago,this --reset command will also make my .c file as earlier?13:08
thiago shams: it will make all your files look like as they were in HEAD~13:08
OnceMe thiago: can we do it step by step13:08
so I clone: git clone https://git.com/.../blah.git13:08
cd blah13:09
I make change to one file, so how can I see all available remote branches?13:09
thiago OnceMe: git branch -r13:09
shams thiago, but when i type git status ,it says HEAD detached13:09
thiago shams: that's not the reset command. Something else did it.13:09
rtm1046 joined13:09
OnceMe thanks13:09
I know whats the issue13:09
I tried git push origin myusername when I needed git push origin/myusername13:10
a_thakur left13:10
thiago OnceMe: that's not your issue13:10
shams thiago, yeah i did previously git checkout <commit_id>13:10
OnceMe thiago: maybe I need to switch to my branch first?13:10
how can I do that?13:10
thiago OnceMe: I know that because the second command is incorrect, therefore cannot be the solution13:10
OnceMe: git checkout otherbranchname13:10
shams: that does detaching13:10
OnceMe git checkout origin/myusername ?13:11
thiago shams: check out your regular branch first, then reset13:11
stamina joined13:11
thiago OnceMe: no, git checkout myusername13:11
OnceMe ok Im on it13:11
rtm1046 left13:11
OnceMe now I make changes and then what? git add . -A ?13:12
thiago yes13:12
shams thiago, how do i bring back the head to commit_id?13:12
OnceMe and then git commit -m "All good"13:13
thiago shams: git reset --hard commit_id13:13
OnceMe and then git push origin myusername ?13:13
thiago shams: --hard will check out after bringing HEAD to commit_id13:13
OnceMe is that all good commands?13:13
thiago OnceMe: yes13:13
bronson joined13:13
shams thiago, i didn't get you13:15
Isla_de_Muerte left13:15
Makko_fR left13:15
SteffanW left13:18
bronson left13:18
CheckDavid joined13:19
mindfart joined13:19
pixaal left13:20
SteffanW joined13:22
shiriru left13:24
SteffanW left13:24
SteffanW joined13:25
plos1 joined13:25
pixaal joined13:25
shams thiago, done13:26
thiago, one more question13:27
sdothum joined13:29
shams what is better to follow- to remove your commits permanently and do it again correctly or make you r changes in a file and do commit again without removing the previous commit in you local13:30
pixaal left13:30
narendraj9 joined13:32
linuxdaemon joined13:33
danslo left13:34
JeroenT left13:35
JeroenT joined13:35
danslo joined13:35
jeffreylevesque joined13:35
shams thiago, which approach you used while contributing upstream?13:36
desertSniper87 joined13:38
OnceMe how can I avoid commiting/pushing .metadata dir changes in Eclipse from terminal?13:38
grawity remove the directory from the repo (git rm -rf --cached .metadata), add it to gitignore (echo .metadata >> .gitignore), then add&commit the .gitignore file13:38
troulouliou_div2 joined13:39
OnceMe so basically: echo ".metadata" > .gitignore && git add . -A && git commit -m "ok" && git push origin username?13:40
grawity assuming .metadata isn't *yet* tracked by the repo13:42
OnceMe it is13:42
grawity then untrack it using the command given above13:43
Jackneill_ joined13:43
masuberu joined13:44
Jackneill left13:44
sobersabre joined13:44
sobersabre hi. is there some kind of version related change that happened and I missed it or is there a default config that changed in how git handles staged vs non-staged changes to a file ?13:45
JeroenT left13:45
sobersabre I remember I could interactively add only selected changes to a file13:45
JeroenT joined13:45
sobersabre then commit, and the non-staged changes would remain unstaged and uncommitted.13:45
grawity you used `git add -p` or `git add -i` for that13:45
Seveas sobersabre: git add -p (or --interactive)13:45
sobersabre Seveas: I'm talking about how commit behaves...13:45
Something is weird13:45
j416 sobersabre: what is weird, specifically?13:46
grawity commit always commits everything that is staged13:46
Seveas git commit -p :) (which is really add -p + commit)13:46
grawity well, you can tell it to commit specific files bypassing the staging area13:46
but I don't think you can do the same at -p level13:46
_rht left13:46
Seveas correct, -p manipulates the index13:46
leeN left13:47
grawity the whole idea of committing individual chunks seems to kinda require a staging area13:47
sobersabre j416: when I ran "git commit -s ." I did not see unstaged changes in a file.13:48
when I ran now "git commit -s", I saw only staged changes.13:48
so if I say git commit ., it takes all files not even staged?!13:48
grawity the former is a case of `git commit <file>`13:48
which bypasses the staging area13:48
j416 ^13:48
sobersabre grawity: I remember it used not to bypass.13:48
systemovich joined13:48
grawity I don't remember it having ever done so13:48
Seveas sobersabre: your memory is faulty.13:49
grawity in fact I think that always has been the whole point of this mode?13:49
sobersabre Seveas: I now understand what's the mystery, this is already a plus13:49
I am thinking I mentally remember this to work in the past.13:49
j416 how can you remember something if not mentally?13:49
sobersabre maybe the change crawled up slowly, and I didn't notice.13:49
j416 ponders13:49
sobersabre I could record a session, or video, and remember having it, that is with a hard copy.13:50
Seveas j416: well, some people think with other parts than their brain :)13:50
j416 Seveas: lol13:50
sobersabre Seveas: that too, aren't we all sometimes?13:50
j416 sobersabre: fair point13:50
sobersabre: not Seveas.13:50
astrofog joined13:50
sobersabre j416: you can't think with what you don't have.13:50
j416 sobersabre: Seveas is practically made out of brain tissue.13:51
j416 runs13:51
sobersabre j416: you made me this mental(again) image of a certains scene of "Starship Troopers". clearly made by a biased person...13:52
Seveas /nick Krang13:52
sobersabre :))))13:52
j416 heh. I don't think I have seen that.13:52
Seveas I've only read starship troopers, never seen the movie13:52
j416 or read it.13:52
Seveas I've heard the movie described as "so unlike the book, that's it's best described as 'being inspired by the cover of the book'"13:53
osse Seveas: is the book satirical and a bit black comedy-ish? The movie is like Robocop, basically. dark satire all the way13:53
wogi joined13:53
Seveas no13:53
rwb joined13:54
osse i remember thinking it was a bad movie when i was younger. but now i think i've missed much of the point. i need to watch it again13:54
so that I can *grok* it.13:54
sobersabre Seveas: starship troopers is one of the books I haven't read b/c the movie was too weird. Generally I do like Heinlein.13:54
Seveas Read the book13:54
sobersabre Seveas: +1 thanks.13:55
acetakwas left13:55
nettoweb left13:56
osse "While the original novel has been accused of promoting militarism, fascism and military rule, the film satirizes these concepts by featuring grandiose displays of nationalism as well as news reports that are intensely fascist, xenophobic, and propagandistic" this surely wooshed by my 15 year old head13:57
synthroi_ joined13:58
grawity osse: I wonder if nowadays it'd be written "...attempts to satirize these concepts by featuring grandiose displays of nationalism as well as news reports that are intensely fascist, xenophobic, and propagandistic, but falls short due to Poe's law"13:59
afuentes joined13:59
osse haha, could be13:59
SwingShock joined14:00
osse But Robocop still holds its ground, and it's the same director.14:00
leeN joined14:00
shinnya joined14:01
synthroid left14:01
SwingShock When i opened the git folder with git gui after a long time since i been using bash the whole time, it shows there are lots of loose objects and it needs to be compressed to maintain optimal performance. Is this adivasable to do ?14:01
osse SwingShock: you can do it, but git usually does it by itself14:02
SwingShock can it be checked and done from time to time with git bash instead ?14:02
rnsanchez_ joined14:04
Seveas SwingShock: just run 'git gc'14:05
Asenar joined14:06
SwingShock That worked nice. It didn't ask any confirmations too.14:06
osse git runs git gc --auto by itself sometimes. that's usually more than enough14:07
when you see that message you mentioned that usually means git does it then and there14:07
SwingShock I had 320 loose objects.14:07
rnsanchez left14:07
osse i think the automatic gc only kicks in after passing 500014:08
acetakwas joined14:08
Jackneill_ left14:08
SwingShock So it's really unnecessary to do. Then it was shown in git gui maybe due to it's lower check limit there.14:09
cdown left14:10
plos1 left14:11
NeverDi__ left14:11
Macaveli left14:11
Jackneill_ joined14:11
NeverDie joined14:12
khfeng_ joined14:12
cdg joined14:13
cagedwisdom left14:13
shams left14:14
bronson joined14:14
synthroid joined14:14
SwingShock left14:15
HoierM joined14:15
dubing left14:16
cdown joined14:16
plos1 joined14:18
Jackneill_ left14:18
synthroi_ left14:18
bronson left14:19
skered left14:20
glebihan left14:24
dynamic joined14:25
dynamic left14:26
pbrewczynski joined14:26
ShekharReddy joined14:26
glebihan joined14:27
nidr0x left14:27
treehug88 joined14:27
Spascho joined14:28
al-damiri joined14:28
jimi_ joined14:28
nidr0x joined14:28
Spascho left14:29
ExoUNX joined14:29
Jackneill_ joined14:30
nidr0x left14:30
cdg left14:30
AlineGomes joined14:31
nidr0x joined14:31
cyphase left14:32
cdown left14:32
relipse joined14:33
Es0teric joined14:33
relipse I deleted a whole directory, how do I tell git to restore all the deleted files "Not staged for commit"14:33
xall joined14:34
cyphase joined14:36
f3r70rr35f joined14:36
nowhere_man joined14:37
wogi left14:38
ShekharReddy left14:39
ayogi left14:39
systemovich `git checkout -- directory/`14:42
Panacea left14:43
denisMone joined14:43
acetakwas left14:45
ac3takwas joined14:45
glebihan left14:45
sostenuto left14:45
sostenuto joined14:45
ToBeCloud left14:46
glebihan joined14:46
OnceMe left14:47
zefferno left14:47
JamesBaxter joined14:47
sostenuto left14:47
cdown joined14:48
sostenuto joined14:48
denisMone left14:48
denimsoft left14:49
Panacea joined14:50
delboy1978uk joined14:50
delboy1978uk hi everyone, some work got pushed to the wrong branch, and otrhers have since committed. whats the easiest way to remove a branch that was merged?14:50
selckin !revert_merge14:51
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.txt14:51
sharpy joined14:53
ispn joined14:54
rtm1046 joined14:55
Oatmeal left14:56
rtm1046 left14:57
ThomasTang joined14:58
Lyqyd joined14:58
cfoch joined14:59
cfoch Hi. If I restore a file using "git checkout 45343^ -- path/to/file" and then I commit it, will blame tell that the author of all the lines was the previous original authors or I?15:01
selckin i15:01
Padawan_ left15:01
cfoch selckin: is there a way to recover the file but keeping the original authors15:02
?15:02
delboy1978uk selckin: thanks very much for that, highly informative15:02
zefferno joined15:02
ThomasTang left15:03
selckin cfoch: its generally not usefull to look at blame without context15:03
delboy1978uk cfoch: if you commit it, you ae now responsible.15:03
Rapture joined15:03
selckin delboy1978uk: no.15:03
delboy1978uk wont it show him in blame?15:04
ThomasTang joined15:04
selckin that does not make you responsible15:04
delboy1978uk hmm, could disagree with that. guess it depends on office protocol15:05
selckin if you rename a method, are you responsible for every usage of it?15:05
delboy1978uk theoretically though, if the code has your name on it..15:05
selckin the team owns the project15:05
delboy1978uk selckin: then you'd be responsible for line x15:06
selckin having code that is owned by a person is the biggest sign of a disfunctional org15:06
cdown_ joined15:06
delboy1978uk i totally get you15:06
newbie1 joined15:06
Noldorin joined15:06
delboy1978uk but git blame helps show who committed the code, then you can speak to team member x and ask why15:06
NeverDie_ joined15:07
delboy1978uk thats all my point is15:07
selckin and you look at the commit mesage and see "revert x", and blame the parent commit15:07
or "rename x"15:07
you know generally be a functional person15:07
delboy1978uk lol15:07
cfoch How can I revert an old file from a previous commit but keeping the authors for each line?15:08
selckin you can't15:08
ThomasTang left15:08
cdown left15:08
cdown_cdown15:08
delboy1978uk unless... could he rewind to a point where it was still in existance? then branch off, and cherry pick in the new stuff?15:09
selckin you can rewrite history to anything you want15:09
delboy1978uk then merge that in the branch that doesnt have the file?15:09
ThomasTang joined15:09
delboy1978uk wouldnt that keep the blame history?15:09
selckin if you rewrite history as if the commit never happened yes offcourse15:10
NeverDie left15:10
aavrug joined15:10
ferr1 left15:12
ogny left15:13
ogny joined15:14
bronson joined15:15
aavrug left15:16
glebihan left15:17
glebihan joined15:18
ogny left15:19
bronson left15:20
dsdeiz joined15:20
aavrug joined15:20
ertes can't you revert deletes?15:21
f3r70rr35f left15:21
Seveas anything you commit can be reverted15:21
synthroi_ joined15:23
shams joined15:23
Seveas cfoch, this may work, but is untested. Do it in a scratch copy of the repo and make sure you understand what the commands do before trying them: git checkout -b temp-branch last-commit-that-had-the-file; git checkout master -- .; git checkout HEAD -- path/to/file-to-restore; git commit -m "Restore path/to/file"; git checkout master; git merge temp-branch15:24
algun left15:24
danslo left15:25
Seveas i.e., create temporary branch at the point the file existed, then copy the contents of master into it, but keeping the deleted file, then merge that temporary branch into master.15:25
synthroid left15:25
hashpuppy joined15:25
delboy1978uk left15:25
selckin thats gonna be your name15:26
snowkidind joined15:27
Jackneill_ left15:27
Seveas git reset --hard selckin15:28
selckin its gonna show what committer/author is when you commit in that flow15:28
your 5th command15:28
danslo joined15:29
danslo left15:29
aavrug_ joined15:31
Seveas the commit we create changes all files (potentially). Except the one we're restoring, as it's been reset to the current contents15:31
so it shouldn't affect blame15:31
but as I said, it's untested. And I can't test it now as I need to run to a train :)15:31
aavrug left15:31
shinnya left15:32
ertes cfoch: perhaps reverting the commit that deleted the file could keep the authors15:33
aavrug_ left15:34
nettoweb joined15:38
anonymuse joined15:39
YuGiOhJCJ joined15:42
masuberu left15:42
nettoweb left15:44
nettoweb joined15:46
Jackneill_ joined15:46
narendraj9 left15:48
dviola joined15:48
cyan__ joined15:48
narendraj9 joined15:49
stamina left15:50
nettoweb left15:51
shams left15:51
ThomasTang left15:51
nettoweb1 joined15:51
Shock- left15:53
shams joined15:53
rts-sander what do I do when a tag does not exist on a certain repository?15:53
zefferno left15:53
rts-sander I pushed the tag, I pulled with fetch --tags but the tag is not there15:54
zefferno joined15:54
freimatz3 joined15:55
narendraj9 left15:55
grawity check with `git ls-remote` whether it actually exists or not15:56
narendraj9 joined15:56
rts-sander it doesn't15:56
JeroenT left15:56
rts-sander I removed a random tag and did git fetch --tags and it only retrieved that tag again15:56
subhojit777 joined15:57
Mowgli joined15:58
synthroi_ left15:58
nettoweb1 left15:59
rts-sander it's a problem with the remote, I got it15:59
JamesBaxter left15:59
grawity well, if `git ls-remote` doesn't show it, then fetching isn't going to retrieve it either15:59
either you pushed it wrong, or the remote "forgot" it somehow15:59
maybe try pushing again, specifically to refs/tags/<thename>16:00
nettoweb joined16:00
rts-sander the remote points to a directory on the filesystem instead a server URI16:00
grawity shouldn't matter16:00
ac3takwas left16:00
rts-sander why have a repository point to another repository on the filesystem that points to the actual server URI?16:02
jnavila joined16:02
selckin because thats what you did?16:03
somaReverse left16:03
Cavallari joined16:03
rts-sander coworker, he's on vacation and I'm trying to reverse engineer his automatic deployment system because I broke it by force pushing16:04
but it's all good now16:04
Shock- joined16:04
nowhere_man left16:05
nettoweb left16:05
grawity sounds like !deploy recipe #4.216:06
gitinfo Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html16:06
rnsanchez_rnsanchez16:07
a_thakur joined16:07
JamesBaxter joined16:09
adbjesus joined16:10
clemf joined16:11
ThomasLocke left16:11
netcarver joined16:11
theskill_ joined16:12
nettoweb1 joined16:12
m0viefreak left16:12
nettoweb1 left16:13
zefferno left16:13
shgysk8zer0 joined16:15
bronson joined16:16
fbwnd left16:16
synthroid joined16:18
Panacea left16:19
plos1 left16:20
pcre joined16:20
bronson left16:21
thebope joined16:22
Nerbrun joined16:23
snowkidind left16:25
doener joined16:25
a_thakur left16:28
jnavila left16:35
jnavila joined16:35
Oatmeal joined16:37
manuelschneid3r left16:37
cdown left16:38
astrofog left16:38
manuelschneid3r joined16:39
gtristan joined16:39
Mowgli left16:39
Rr4sT joined16:39
dar123 joined16:39
snowkidind joined16:40
porsche944 joined16:41
Balliad left16:42
shubhnik joined16:43
a_thakur joined16:43
shgysk8zer0 left16:43
shgysk8zer0 joined16:44
clmsy left16:45
mmlb left16:46
JamesBaxter left16:51
Oatmeal left16:52
shgysk8zer0_ joined16:53
WayToDoor joined16:53
dar123 left16:53
RiPer I have checked out a repo, updated a file, the push a pull request, but it is including 2 other commits that are not part of my edit. My branch and the branch I am pushing to are identical except for the single file I changed, thoughts on why it is including two other commits?16:54
checked out = forked oops16:54
shgysk8zer0 left16:54
nicksloan joined16:54
cdown joined16:55
nowhere_man joined16:55
jccn joined16:55
jccn left16:56
jccn joined16:57
pks left16:57
zifnab joined16:57
shubhnik left16:57
tmsmith joined16:57
pks joined16:58
svm_invictvs joined16:58
Darren_ joined16:58
RiPer ahh figured it out, I created a new branch with my commit, I have to merge to the branch I want to pull request with.16:58
Rapture left17:00
xall left17:00
mda1 joined17:01
freimatz3 left17:03
freimatz3 joined17:03
xall joined17:03
howitdo left17:04
sq-one joined17:04
PCatinean left17:04
jimi_ left17:04
cyan__ left17:05
synthroi_ joined17:05
PCatinean joined17:05
Sircle_ left17:06
HarryPothead joined17:06
synthroid left17:08
Goplat joined17:08
cdown left17:08
duderonomy joined17:08
shubhnik joined17:09
duderonomy left17:10
howitdo joined17:11
boombatower joined17:12
WayToDoor left17:14
slayerjain joined17:14
meloc left17:15
meloc joined17:15
narendraj9 left17:15
imachuchu joined17:17
bronson joined17:17
Es0teric left17:18
cdown joined17:19
Rapture joined17:19
joki joined17:20
ResidentBiscuit joined17:20
Oebele joined17:20
bronson left17:21
duderonomy joined17:23
Guest14887 joined17:23
xall left17:24
sea-gull_ joined17:25
algun joined17:26
mda1 left17:27
ac3takwas joined17:27
JanC_ joined17:27
Macaveli joined17:28
jnavila left17:28
a_thakur left17:28
JanCGuest8350917:28
Guest83509 left17:28
JanC_JanC17:28
prestorium joined17:29
prestorium I thought it would be worth to share17:30
A developer just did a merge of repo A into repo B.17:30
I was speechless17:30
xall joined17:30
prestorium I have absolutely no idea how he achieved that. :)17:30
fstdfisted17:30
prestorium and I'm afraid to known17:31
a_thakur joined17:31
kurkale6ka left17:32
maxb It's not that unusual17:34
tmsmith left17:34
grawity probably just did `git pull <wrong_url>`17:34
Git only recently added a warning about that17:34
maxb Entirely reasonable if two projects merge into a single repo17:34
fistedfstd17:35
Macaveli_ joined17:35
fstdftsd17:35
Torsho_ joined17:35
synthroid joined17:36
shgysk8zer0_ left17:36
duderonomy left17:37
Macaveli left17:37
ftsdfstd17:38
synthroi_ left17:38
Macaveli_ left17:38
adbjesus left17:39
desertSniper87 left17:40
ResidentBiscuit left17:41
synthroid left17:46
kyan joined17:48
jnavila joined17:51
kyan Hi! If I have a commit tagged, then delete that tag, and recreate the tag pointing to a different commit, how can I see the previous revision of the tag? It doesn't show up in the commit history... Thanks!17:51
grawity tags don't have "revisions"17:52
nowhere_man left17:52
grawity more like the opposite, they're something holds revisions (like read-only branches)17:52
nettoweb joined17:53
kyan Ok... how can I see those changes, then?17:53
Asenar left17:54
kyan (Like, if I screw something up in the files in a repository, I can see what it used to be, and go back to it. I'd like to be able to fix similar screw-ups to the tags...)17:54
shams left17:54
grawity well, tags are meant to never change in the first place17:55
cdown left17:55
kyan Right, but if I (or someone with access to my comp) deletes one and create a new one with that name, it'd change it, I'd think, at least as far as downstream users are concerned17:56
chll_ left17:56
kyan I could include a listing of tags in the repository17:57
grawity "someone with access to my computer" is a bigger problem...17:57
aw1 left17:58
grawity for downstream users which already have the tag, Git won't update it (unless they delete the old one manually)17:58
troulouliou_div2 left17:58
tvl joined17:58
gtristan left17:58
kyan Oh, interesting17:58
tvltobiasvl17:58
kyan OHH, that's what it meant in the manual about how push --tags skips ones they have17:58
cool, thanks :D17:59
grawity well downstream users would be fetching them instead, but same general idea17:59
(and of course if you had a policy of always pgp-signing tags, then "someone"s fake tag would get noticed quicker)17:59
kyan mm18:00
grawity but anyway, going back to the original question18:01
tags are just names attached *to* a revision (commit)18:01
subhojit777 left18:02
grawity they could in theory have a local reflog like branches do18:02
although Git deletes reflogs when you delete a ref, so that wouldn't help much18:02
logging ref updates *on the server* would help more18:02
or, for that matter, forbidding tag changes on the server18:03
Rapture left18:04
relipse left18:04
dsdeiz left18:04
kyan thanks!18:04
BlackMaria joined18:04
ac3takwas left18:07
xall left18:07
thebope left18:08
Rapture joined18:09
shgysk8zer0_ joined18:09
shgysk8zer0_ left18:09
aw1 joined18:10
thebope joined18:10
bocaneri left18:12
HarryPothead left18:13
bronson joined18:18
ac3takwas joined18:19
duderonomy joined18:20
nettoweb left18:20
Oebele left18:21
mrnuke joined18:21
bronson left18:23
dsantiago left18:23
shams joined18:24
NeXTSUN joined18:25
coasterz left18:25
Es0teric joined18:27
wogi joined18:27
nettoweb joined18:27
duderonomy left18:28
aarobc joined18:29
morenoh149 joined18:29
morenoh149 how do I checkout a file from a previous revision?18:29
Spec-Chum joined18:31
rudi_s morenoh149: git checkout id -- path18:32
man git-checkout18:32
gitinfo the git-checkout manpage is available at http://jk.gs/git-checkout.html18:32
morenoh149 left18:37
toothe left18:38
coasterz joined18:39
publio joined18:39
Noldorin left18:40
a_thakur left18:42
crayon joined18:43
madewokherd joined18:43
jimi_ joined18:43
zeroed joined18:44
prestorium left18:47
joki left18:49
sammyo joined18:49
Balliad joined18:49
NeverDie_NeverDie18:49
weckstrom left18:51
Padawan joined18:52
Padawan left18:53
ResidentBiscuit joined18:53
sammyo left18:54
Salander27_ joined18:56
Peuc left18:56
Junior left18:57
ResidentBiscuit left18:58
weckstrom joined18:58
todd_dsm joined18:59
prestorium joined18:59
Peuc joined19:00
Surfer2010 joined19:01
v-y joined19:03
joshszep joined19:03
ac3takwas left19:03
Surfer2010_ joined19:06
dsantiago joined19:06
Surfer2010 left19:07
ochorocho__ joined19:07
weckstro_ joined19:09
weckstro_ left19:09
tyreld joined19:10
weckstrom left19:11
Rr4sT left19:11
weckstro_ joined19:11
systemovich left19:12
Pulp joined19:12
rominronin joined19:13
weckstro_ left19:13
Surfer2010_ left19:14
Learath2 joined19:14
languitar left19:15
snowkidind http://pastebin.com/DTsk0dkr19:17
i deleted a file on my server but the origin has the one i want to be there.19:17
desertSniper87 joined19:17
Panacea joined19:18
snowkidind and i edited my .gitignore file on the server but i want to sync that with the origin19:18
jknetl joined19:18
bronson joined19:18
Torsho_ left19:18
overlord_tm left19:20
Silenced joined19:21
Silenced left19:21
Silenced joined19:21
Sasazuka joined19:22
guest joined19:23
bronson left19:23
hahuang65 joined19:25
fission6 joined19:26
fission6 how do i stash an untracked file19:26
dsdeiz joined19:26
dsdeiz left19:26
dsdeiz joined19:26
tmsmith joined19:29
hashpuppy kind of confused. i'm trying to clean up my branches that have already been merged. i'm doing git push origin :feature1 and then git fetch origin -p and it still shows the upstream branch i deleted19:29
same thing when i try to git remote | xargs -n 1 git remote prune19:29
joki joined19:30
duderonomy joined19:30
hashpuppy or what's the best way to delete both at once?19:30
duderonomy left19:31
dsdeiz left19:31
freimatz left19:31
wogi left19:32
freimatz joined19:32
freimatz3 left19:32
cagedwisdom joined19:34
YuGiOhJCJ left19:34
morenoh149 joined19:35
PCatinean left19:35
dodobrain left19:35
marcogmonteiro left19:37
weckstrom joined19:37
GavinMagnus joined19:37
neunon left19:37
ac3takwas joined19:39
neunon joined19:40
Panacea left19:40
cyan__ joined19:40
tmsmith left19:40
WaReZ joined19:41
Guest14887 left19:42
watabou joined19:42
_czyzewski joined19:44
mda1 joined19:44
_czyzewski left19:44
tvw joined19:44
Goplat left19:46
neunon_ joined19:46
guest left19:47
BSaboia left19:47
neunon left19:48
neunon_neunon19:48
Achylles joined19:50
prestorium left19:51
kyan left19:53
kyan joined19:54
Panacea joined19:54
ResidentBiscuit joined19:55
desertSniper87 left19:57
ResidentBiscuit left19:59
BlueProtoman joined20:00
Cavallari left20:01
bannakaffalatta left20:03
grumble left20:03
idr0p joined20:03
grumble joined20:05
dsantiago left20:06
jknetl left20:07
Darcidride joined20:07
DrRobotic left20:10
kyan left20:12
Goplat joined20:12
shubhnik left20:14
Balliad left20:14
kyan joined20:16
cyan__ left20:16
Oatmeal joined20:17
Silenced left20:17
dirtyroshi joined20:17
bronson joined20:19
regedit joined20:20
WayToDoor joined20:20
Peuc left20:20
Peuc joined20:21
windsurf_ joined20:22
PHPanos joined20:23
windsurf_ project has two developers, each committed with different indentation (tabs/spaces). We want to fix indentation to tabs. If I reserve a commit for only whitespace fixes (change all indentation to tabs), and commit with ignore-space-change, then from then-on commit without ignore-space-change, will the history keep the tab fixes but not consider the whole file to have changed? History preserved elegantly?20:23
DrRobotic joined20:24
bronson left20:24
Silenced joined20:25
dsantiago joined20:26
BrianJ left20:27
sea-gull_ left20:32
rwp windsurf_, Without answering your question (because I don't have a good answer) let me suggest trying what you want on a branch. Then poke around on it and see if the result is acceptable. If not then no problem just delete the experimental branch.20:35
windsurf_ rwp good idea!20:35
Rapture left20:36
rwp That is one of the features I like about git over many other systems. With git you can try it easily with no long term risk. Then decide later on keeping it or discarding it.20:36
kulelu88 joined20:37
anonymuse left20:37
anonymuse joined20:37
Darcidride left20:39
Darcidride joined20:40
watmm left20:40
ToBeCloud joined20:40
gitinfo set mode: +v20:40
watmm1 joined20:40
watabou left20:41
robotroll left20:43
rewt commit with ignore-space-change would leave the existing whitespace in the file, resulting in not changing the committed state, and then the first commit without ignore-space-change will commit the whitespace changes20:46
[cust] joined20:47
rnsanchez left20:48
Rapture joined20:49
Achylles left20:49
pcre left20:50
overlord_tm joined20:50
windsurf_ rewt thank you. What's the best way to make my whitespace the same and preserve history elegantly? Is that even possible?20:51
rewt what do you mean by preserve history elegantly?20:52
just change the whitespace, commit, and done20:52
mdw joined20:53
anonymuse left20:53
anonymuse joined20:53
BrianJ joined20:54
watabou joined20:55
WayToDoor left20:55
shgysk8zer0_ joined20:55
Goplat left20:58
jottr joined21:00
Tatou_ joined21:01
Tatou_ Howdy21:01
I've got something I've commited to github - but there's a mistake on it21:01
Only the one commit. But what's the way I can silently re-write history here?21:02
SteffanW left21:02
tobiasvl Tatou_: silently, not really. once history is made public, you should consider it public21:02
Tatou_: is there just a mistake or did you commit !sensitive data?21:02
gitinfo Tatou_: [!filter_sensitive] You can use filter-branch to remove sensitive data from a repository's history. https://help.github.com/articles/remove-sensitive-data/21:02
Tatou_ Just a mistake21:03
tobiasvl well, for one commit filter-branch is a bit overkill anyway21:03
Tatou_ But I am choosing to learn how to rewrite history here21:03
tobiasvl Tatou_: !reewrite21:03
Tatou_: !rewrite21:03
gitinfo Tatou_: Rewriting public history is not recommended. Everyone who has pulled the old history will have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push --force-with-lease <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum21:03
Tatou_ I'm still learning git, tobiasvl .. So I'm looking at my options21:03
Zialus left21:03
Tatou_ There's nothing sensitive or anything. I just want to see what git is capable of :)21:04
Zialus joined21:04
clemf_ joined21:04
howitdo left21:04
Panacea left21:05
tobiasvl Tatou_: well, if it's the latest commit, it's really simple. fix the mistake, add the file, run "git commit --amend", and then "git push --force-with-lease" to force github to update with the rewritten history21:05
Tatou_ cool, let me try that!21:06
Damn I'm on the wrong laptop -_-21:06
tobiasvl wrong laptop? this is git, you can just clone :P21:06
Tatou_ I know, I know..21:07
Sigh I'll not be lazy21:07
clemf left21:07
Atm0spher1c joined21:07
GavinMagnus left21:08
mp3 joined21:10
Silenced left21:10
shams left21:10
howitdo joined21:10
nowhere_man joined21:10
navidr left21:11
unborn joined21:11
mp3 left21:11
tmsmith joined21:11
zeroed left21:12
DrRobotic left21:12
BlueProtoman left21:13
fatalhalt joined21:14
fatalhalt left21:14
cyphase left21:14
ok91 joined21:14
dsdeiz joined21:15
Vortex35 left21:16
Oatmeal left21:17
cyphase joined21:18
jknetl joined21:20
dsdeiz left21:20
bronson joined21:20
askb joined21:21
Oatmeal joined21:21
jccn left21:23
jccn joined21:23
NeXTSUN left21:24
jottr left21:25
jstimm left21:25
bronson left21:25
Rodya_ joined21:25
jottr joined21:25
BrianJ left21:27
windsurf_ rewt I mean, if I have commits A, B and C (chronologically), and B only fixes whitespace, then when diffing changes between B and A or C and A, it will look like almost the whole file has changed, so the history before B is impacted pretty significantly from a practical standpoint21:28
rominronin left21:28
ResidentBiscuit joined21:28
mdw left21:29
rewt well, if you change anything, including whitespace, it will be a change, no way around that... but you can diff ignoring whitespace and you won't see the whitespace changes21:30
i think it's -B, but check man git diff21:30
gitinfo the git-diff manpage is available at http://jk.gs/git-diff.html21:30
rewt -b21:31
jeffreylevesque left21:33
Vortex35 joined21:33
nettoweb left21:33
GavinMagnus joined21:33
Es0teric left21:34
Es0teric joined21:34
rwb left21:36
cyphase left21:36
Tatou_ left21:38
jagob joined21:38
cyphase joined21:41
ok91 left21:42
mdw joined21:43
endiruna joined21:43
GavinMagnus left21:47
joki left21:48
satifant joined21:48
windsurf_ rewt ok that's something21:48
thx21:48
windsurf_ left21:48
kulelu88 left21:50
jstein__ joined21:51
jsteinGuest1885921:51
jeffreylevesque joined21:52
evil-t0by joined21:52
jstein__jstein21:53
jimi_ left21:55
sLite joined21:55
Guest18859 left21:55
jnavila left21:56
c^ joined21:57
drgeb joined21:57
drgeb Hi21:57
gitinfo drgeb: 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.21:57
jottr left21:58
endiruna left21:59
drgeb What is best way to deal with one git repo lets say the project is called DiscoverTheWorld but right now while I am starting I have many little pieces of the big puzzle that I neeed to Discover before I get there. My manager wants just one repo where as I would create as many as needed for each part of the puzzle that we are trying to solve and buildup the whole Architecture as we go. Any suggestions on this ???21:59
pbrewczynski left22:00
BrianJ joined22:00
WayToDoor joined22:01
Atrumx left22:01
evil-t0by left22:02
jknetl left22:03
overlord_tm left22:05
ResidentBiscuit left22:05
ResidentBiscuit joined22:06
YuGiOhJCJ joined22:06
watabou left22:07
ac3takwas left22:07
aidalgol joined22:10
freimatz left22:10
publio left22:13
Cassiopaya joined22:14
ExoUNX left22:14
Raed left22:16
iAmerikan joined22:16
iAmerikan is there any method faster than git pull to check if the remote has changes? fetch / pull --dry-run both appear to be slower22:16
uva joined22:17
uva How would I codify git diff "--no-prefix" into ~/.gitconfig?22:17
IlNominePatre joined22:17
kadoban ls-remote, it's not really user-friendly though in the slightest.22:17
iAmerikan then compare hashes?22:18
ac3takwas joined22:19
kadoban Yes22:19
bronson joined22:21
anli joined22:22
iAmerikan sweet, thanks22:22
anli With rabbitvcs, I miss one thing: "restore after commit", is it a hidden function by any chance?22:23
jagob left22:23
anli Meaning that a file does not change, even if you edit the diff before committing it22:23
jagob joined22:23
shgysk8zer0_ left22:24
Es0teric left22:24
kadoban anli: What?22:24
ResidentBiscuit ^22:25
kadoban I can't tell if you're using some other tool and looking for some feature from git, or using git and looking for some feature from some other tool, or ... something else, and the details of what you're looking for.22:25
bronson left22:26
iAmerikan anyone have any lower level or more advanced git resource go-to's?22:26
Darcidride left22:28
llamapixel packtpub books at the moment iAmerikan are $522:28
If you want branching management concepts - http://nvie.com/posts/a-successful-git-branching-model/ || https://gist.github.com/djspiewak/9f2f91085607a4859a6622:29
What specifically are you looking for?22:30
https://www.atlassian.com/git/tutorials/advanced-overview/22:30
nicksloan left22:30
iAmerikan nothing specific. that atlassian tutorial has been my go to, was looking to keep going down the rabbit hole.22:31
kini joined22:31
helpD joined22:31
overlord_tm joined22:31
rewt anli, this was covered yesterday and the day before; when you do a partial commit, the file you had before the commit is the file you end up with after, with both the committed and uncommitted changes22:31
helpD left22:32
llamapixel iAmerikan: and gitfu ? https://gitfu.wordpress.com/22:33
jimi_ joined22:33
iAmerikan these are all awesome links, thanks!22:34
rewt anli, git's staging is same as the copy you'd edit with rabbitcvs that you'd commit22:34
llamapixel https://www.packtpub.com/all?search=git22:35
np iAmerikan22:35
jottr joined22:35
Gianormagantrous joined22:35
Gianormagantrous left22:35
Gianormagantrous joined22:35
rewt anli, this is the way git actually works; it's not a hidden feature at all22:36
WaReZ left22:37
jagob left22:38
jagob joined22:38
ResidentBiscuit left22:38
porsche944 left22:39
aarobc left22:40
tang^ joined22:42
jstein left22:42
roygbiv joined22:43
jw4242 joined22:43
Samual joined22:44
nidr0x left22:47
anli left22:47
WaReZ joined22:48
Jackneill_ left22:49
masuberu joined22:50
gtristan joined22:51
Samual left22:51
bekks joined22:52
bekks hi all22:52
pks left22:53
Rapture left22:54
pks joined22:54
hashpuppy left22:55
bekks I've started learning git today, using gitlab and eclipse. Until now, I've used SVN. For a very small project (<50 files, <30 "releases" until now), I'm trying to "rebuild" that entire project and its releases using a git repo and tags (for the release versions). In SVN, I've used "x.y.z" in the file headers and replaced it with the according version string. How would I go about this using git? Basically I want to identify the release by some value in ...22:55
... the file header.22:55
thebope left22:56
bekks I'd be glad for any hints please :)22:57
PHPanos left22:58
theskill_ left22:59
theskillwithin joined23:00
fmeerkoetter left23:01
nidr0x joined23:01
fmeerkoetter joined23:01
iAmerikan left23:02
dsdeiz joined23:03
anjen joined23:04
theskillwithin left23:04
Electrometro joined23:05
Electrometro left23:06
sbeller left23:07
Electrometro joined23:07
theskillwithin joined23:08
dsdeiz left23:08
llamapixel so you are looking to merge or migrate SVN to git bekks ? https://www.atlassian.com/git/tutorials/migrating-overview/ || https://www.atlassian.com/git/tutorials/migrating-synchronize/23:08
PHPanos joined23:08
bekks llamapixel: No no no, I'm not looking for a migration tutorial, I will migrate the current SVN upstream to git. I am looking for on how to handle releases after that.23:09
nicksloan joined23:10
PHPanos left23:11
jagob left23:13
jagob joined23:14
PHPanos joined23:15
satifant left23:15
jagob left23:16
jagob joined23:16
tmsmith left23:16
sbeller joined23:16
masuberu left23:19
masuberu joined23:21
cdown joined23:21
Samual joined23:21
t0by left23:22
bronson joined23:22
afuentes left23:25
cdown left23:26
bronson left23:27
watabou joined23:27
denimsoft joined23:29
Darren_ left23:29
mdw left23:30
Sasazuka left23:30
Sasazuka_ joined23:30
pks left23:31
pks joined23:32
Sasazuka joined23:35
Sasazuka_ left23:35
imachuchu bekks: With git you just tag the commit that the release is based off of with whatever version number you want and then deploy it however you do that. There isn't any standard format for versions, so you can make it whatever you want so like "Release v1.2.3"23:36
bekks Yeah.23:36
unborn hello guys, I have really idiotic question.. when I create git and push it to remote, everything works, now when I change anything in my code.. how to push updates to remote? is there any single command for this?23:36
bekks The only point I'm strugling with, is: having whatever crap in a git repo, can I just tag a few files, and not the whole repo?23:37
jagob left23:37
jagob joined23:38
imachuchu unborn: yes/no. First you "add" the changes (to tell git you want it to store them), then "commit" the changes (to make the object it stores those changes in), then "push" to the remote (to give it the commit you made)23:38
Rodya_ left23:38
unborn imachuchu: like git add * -m "changes" and then just git push? that is all? (I mean remote is in config already)23:39
ac3takwas left23:40
unborn I mean git add * then git commit -m "commit message" and then just git push?23:40
imachuchu bekks: not really. Add the files you want in a commit and tag it, you can have other stuff uncommited, or on a different branch. Git thinks of a commit as a snapshot of workfolder at some point in time (at least the stuff you told it to snapshot). This means you can't tag just some files, but you can create a commit with them and tag it23:40
Gianormagantrous left23:40
unborn or is it git push origin master? that is where I am confused23:41
anonymuse left23:41
anonymuse joined23:42
TomyLobo left23:42
imachuchu unborn: well.. they're the same thing. "git push" says "with the branch I've currently checkedout, push it to the remote I've said it's tracking", "git push origin master" says "push the branch master to the remote origin"23:42
Gianormagantrous joined23:43
Gianormagantrous left23:43
Gianormagantrous joined23:43
imachuchu unborn: assuming that you've cloned from origin, then you're currently on the branch master and it's been setup to track origin, so the two commands do the same thing, just one is you specifying instead of going with it's defaults23:43
bekks imachuchu: So having my workfolder, I could change, commit and tag files A and C - how would I "add" file B to this tag then?23:44
unborn oh okay... but I do not have to check out every time do I? I mean I had issue to update one of my repos that is why I am asking what is the step by step with command line23:44
PHPanos left23:45
unborn imachuchu: so it follows like this: git add * then git commit "commit msg" and lastly git push.. is that all?23:45
anonymuse left23:46
imachuchu unborn: yes, to push your changes to remote. If there are other people working on the same remote repo then it gets a bit more complex, but that's a different bridge to cross23:46
FooMunki joined23:47
imachuchu (cause you have to integrate their changes with your code, and they might have pushed before you did, etc. Standard stuff, but a different topic)23:47
bekks imachuchu: So maybe I'm better off using a branch for every "release" then, and just transfer every file from my working state to that branch, then tag that branch, and release it?23:48
FooMunki Anyone know any reason why `git submodule [status | init | update]` are executing silently?23:48
imachuchu bekks: probably not. So why, say, do you want file x in release 1.2.3 but not in 1.2.4?23:49
unborn imachuchu: nah its just my private repos.. as I am webdev whole development gets really bad mess for me so I started using git couple months ago, however I was using those fancy tools aka smartgit but lately doing 60gb of repos is damn bad with any gui.. I wrote script which does init for me and create all repo however I was not sure how to simply push any changes to my remote23:49
imachuchu bekks: !xy23:50
gitinfo bekks: Woah, slow down for a bit. Are you sure that you need to jump through 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...23:50
imachuchu sorry, not bekks, that was for unborn23:50
rwb joined23:50
jagob left23:51
imachuchu unborn: 60gb? It sounds like you're storing the wrong thing it git. Git's really great for code, really bad for binaries/images/blobs of any kind23:51
BlessJah unborn: how did you ended with 60GiB of stuff? you might be interested in !annex23:51
gitinfo unborn: git-annex, git-media, and Git LFS are some solutions to the !binary problem. They work by keeping the blobs outside of the repo, storing a reference to the blob in the repo instead. http://git-annex.branchable.com https://github.com/alebedev/git-media http://git.io/git-lfs23:51
unborn imachuchu: ah no :) most repos are 15 megs max..23:52
BlessJah s/ended/end up/23:52
rahtgaz left23:52
unborn but mostly very small.. like bash scripts and bunch of js and html and css scripts23:52
jagob joined23:52
jottr left23:53
bekks imachuchu: So my overall objective is: I have project consisting of a bunch of files. I am constantly editing these files, and now and then I want to release a subset of these files as a tarball for "a new release". In addition, I want to have the tag name in the headers of these released files.23:54
xaa left23:54
BlessJah bekks: why would you release just subset of files?23:54
unborn I do not use it for binary stuff and if I do, its only some gif or small zipped file occasionally BlessJah years of coding, backups and other projects I contributed to.. together its load23:55
bekks BlessJah: Because some of the unreleased files are like notes (long text) to a specific implementation, and such, which are irrelevant for the users of the release.23:55
BlessJah unborn: borg serves me well for backups23:56
unborn BlessJah: yeah I have normal backups - those are mods for configs for clients and friends or stuff like that..23:56
jimi_ left23:57
BlessJah bekks: will users have access to said git repo? or just tarball releases?23:57
unborn is it possible to do git commands with && aka git add * && git commit "msg" && git push? possibly another idiotic question from me.. im sorry.23:57
bekks BlessJah: Users will have access to the tarballs only.23:57
BlessJah unborn: git is just an another command in your shell23:58
unborn that is brilliant!23:58
Lyqyd left23:59
BlessJah unborn: also, there is git for windows bundled with bash (just in case you're on windoze)23:59

Logs Search ←Prev date Next date→ Channels Documentation