----BEGIN CLASS---- [13:28] #startclass [13:28] Razy Kased [13:28] Roll Call [13:28] kumar vipin yadav [13:28] Saikat Dey [13:28] sayan: lol [13:28] Deepak Chethan [13:28] Ashwani Kumar Gupta [13:28] hemanth [13:28] akash pathak [13:28] Razy Kased [13:28] Abhinav Shirur [13:28] Shashank Kumar [13:28] Robin Schubert [13:28] Abdul Wahab Abrar [13:28] Shivam Singhal [13:28] Suraj Ghimire [13:28] <_Richard_> Mayank gupta [13:28] Messi Fc [13:28] Aryan Tripathi [13:28] Gaurav Sitlani [13:28] Bhavin Gandhi [13:28] Chiranjeev Gupta [13:28] Anusha Srinivasan [13:28] Farhaan Bukhsh [13:28] Priyanka Sharma [13:28] Soumam Banerjee [13:28] Ranjeet Kumar [13:28] Anu kumari Gupta [13:28] Amit Kokitkar [13:28] Anupama Shipurkar [13:28] Mayur khomane [13:28] Mohsin Mumtaz [13:28] Syed Mohammad Fiha [13:28] Vipul Gupta [13:28] Gunjan [13:28] Deepika Upadhyay [13:28] Jason Braganza [13:28] Himanshu Awasthi [13:28] Abhishek Singh [13:28] Akshay Gaikwad [13:29] Santosh Kumar Shaw [13:29] pavan yejare [13:29] Jitesh Pabla [13:29] Mohd Omama [13:29] Balaji [13:30] *Back to the story mode* [13:30] Ravindra Lakal [13:30] *- *Chapter 3: Understanding VCS: Branches* [13:30] *- Few months more have passed. Tux visits a local workshop & presents one of his image. [13:30] :) [13:30] *- Two clients love his image but one wants to add a Sepia tone to it and another want Black & White (B&W) [13:30] *- Tux now needs to change the work flow again, because over time Tux would be getting more and more clients. [13:30] *- Tux like Newton sat under a tree waiting for a apple to fall, but instead notices the branches of the trees which gave Tux an idea. A revolutionary one! [13:31] Roll Call: Nikita Kotak [13:31] *- So Tux comes back home and starts working on the image. But now Tux creates two copies of images & names the directory as sepia & bw. [13:31] *- Tux who just happened to know linking, linked working directory to the sepia directory [13:31] *- So in the morning, Tux opens the working directory (which is pointing to sepia directory) opens the sepia directory [13:32] *- In the evening, Tux changes the link to bw, so Tux can work on bw image over the rest of the time. [13:33] https://paste.fedoraproject.org/paste/vvEi9Satwai2FOprwAh0YQ [13:33] *- Next time, Tux get a new client, Tux just needs to create new branch directory & start working. [13:33] https://paste.fedoraproject.org/paste/oEE2reA7EqH5eB7KpcDh-Q [13:33] Roll Call: Ganesh Nomula [13:33] Roll Call:Kishore Saldanha [13:34] yurii pylypchuk [13:34] - git branch # Tell which branch you are one (the one with *) [13:34] Roll call:Kshithij Iyer [13:34] master branch [13:34] ^^ okay type this into the foobar directory [13:35] * master [13:35] * master [13:35] master [13:35] *master [13:35] ! [13:35] next [13:35] *master [13:36] master [13:36] master [13:36] i did git branch and nothing came up, says not a git repo. did git init and git branch and still nothing? [13:36] Roll call Kshitij [13:36] Roll Call: Avik Mukherjee [13:36] Okay , that turn was from last day ,got answered [13:36] Roll Call: Nishanta Sarma [13:36] [13:36] saikat_, read the instructions carefully [13:37] saikat_: are you doing that in the foobar directory? [13:37] Roll Call: Sakshi Saraswat [13:37] next [13:37] hmm, strange batul did not get reset [13:37] Yeah ,true sayan [13:37] yups sayan this did happen yesterday too [13:37] sayan, bhavin192 , thanks, my bad, was not in the directory [13:38] Also, people when I tell you tell the output, just 2-3 people reply [13:38] Roll call: Shankar Jha [13:38] It's no meaning that all say the same output [13:38] ! [13:38] Rest of people can tally the output, if it does not match, then raise your hand [13:38] next [13:38] I tried this with a repo I just created which does not have any commit. Why does it not output anything? [13:38] ! [13:39] ashwanig: you need to have one commit atleast [13:40] next [13:40] sayan, Why so? [13:40] How to revert back to a snapshot? I was wondering about that for the entire day . [13:40] ahole, search [13:40] sayan, As saikat_ said when he was in root directory he did git init right. So does it make his entire root a git directory? [13:41] ! [13:41] ashwanig: I forgot the exact reason, vivek_ do you remember? I remember discussing it with you [13:41] ahole: git revert [13:42] \me requests someone to pm what has been going on today, please! [13:42] im_mohsin: yes [13:42] next [13:42] sayan, can we ammend commits other than the last commit ? [13:42] 0 [13:42] ! [13:42] ! [13:42] sorry mistake :( [13:42] Padfoot7: I remember someone asking the question last day but nobody pinged after the class [13:42] Roll call: Akshay Iyer [13:42] next [13:43] Padfoot7: This is out of the scope [13:43] next [13:43] can saikat_ undo what he did? [13:43] okay [13:43] ! [13:43] Roll call: Vamsi Krishna. [13:43] soumam007: yes, delete the .git directory [13:43] next [13:43] sayan, im_mohsin , wait what, if i did a git init and made my root a git directory, how do i revert it? [13:43] ok [13:43] I told the answer just now [13:44] Moving ahead [13:44] If I shut down the system without commiting the changes Is the staging area will remain same when I restart? [13:44] got it, yes. sayan [13:44] balaji: yes, it will be there because those are saved in a file [13:44] balaji: the concept of "save" still remains same [13:45] Okay. got it. Thanks [13:45] and all the stuffs you do in git are saved [13:45] - git checkout -b sepia # Create a new branch -b=tells to create new branch [13:45] - vim hellomars.txt # Add the text "Snapshot 4" [13:45] ! [13:45] - git add -u [13:45] - git commit -m "Snapshot 4" [13:46] - git branch # Tell which branch you are in? [13:46] next [13:47] *sepia [13:47] Right [13:47] git branches are just reference or lightweight movable pointer to a commit , so if there are no commit in repositary then are no branches [13:48] *sepia [13:48] there* [13:48] Suppose I make a wrongful change in my source code and I have to revert back to the previous commit. How should I do it? [13:48] avik, I had sent you today's log from the class start. [13:48] eof [13:49] ! [13:49] darkJedi: there are a bunch of ways to do it, git-revert, git-reset. but that's something I won't discuss in this class [13:49] next [13:49] ! [13:50] is branching created for versions [13:50] next [13:50] ! [13:50] hemanth: versions as in? [13:50] ghishadow, Thanks :) [13:50] sayan, like version 1.1 and version 1.2 of same software [13:51] hemanth: no [13:51] after git add -u , i did git status, I get nothing added to commit [13:51] cran-cg: fpaste the output [13:52] hemanth: versions are very much on code level and not git but there are commands to manage the version well [13:52] sayan: sorry I have to leave urgently. [13:52] branches are to carry out parrallel development on the same working directory [13:52] ! [13:53] thanks sayan [13:53] Cran_cg : after git add -u ,you have to git commit -m "snapshot4" [13:53] sayan: https://pastebin.com/n8CvmWEG [13:53] like in Fedora, we maintain two branch master & develop. The development happens on develop and when we have to release we merge develop into master [13:54] and master is latest version and is deployed [13:54] cran-cg, you have not added the hellomars.txt to tracked files, we have done it in last session [13:54] cran-cg: you did not properly follow in last class [13:54] cran-cg: what do you thing you should do?? [13:55] sayan: I made a new txt file. [13:55] Silly mistake [13:55] Understood [13:55] sayan, merging develop into master means replacing the old files in master with their new versions in develop right? [13:55] cran-cg, share your mistake [13:55] Sorry I asked out of turn [13:56] ! [13:56] ashwanig: the proper word would be updating [13:56] next [13:56] next [13:56] next [13:56] Now currently we are on the sepia branch, how do we jump back to the master branch? [13:56] if Tux wanted to create subbranch and navigste how would he do that ? [13:57] deepika: there is nothing as sub-branch [13:57] s / navigate [13:57] and I don't understand what do you mean with subbranch [13:57] ahole, git checkout master [13:57] ahole: wait! [13:57] Gaurav: I can see the messages. [13:57] creating new branch like for b&w [13:58] soumam007: Umm. I was mistakenly made a new repo :( [13:58] Sorry for the confusion [13:58] :( [13:58] - git log [13:58] sayan and then change the branch from [13:58] what is happening? [13:58] b&w to sepia [13:58] what is this going on? [13:59] People calm down [13:59] why are people getting disconnected? [13:59] There is nothing to worry, [13:59] championshuttler, Matrix server is having problem [13:59] - git log [13:59] ashwanig, ok :) [13:59] Check the commits you have [13:59] You will be having the Snapshot 4 commit [13:59] - git checkout master # Simply move around branches [13:59] - vim helloworld.txt # Add the text "Snapshot 5" [14:00] - git add -u [14:00] - git commit -m "Snapshot 5" [14:00] - git log # Notice anything? [14:01] There is no changes in git still says snapshot 3. [14:01] sayan, snapshot 5 after checking out to master? [14:01] it shows commits from the current branch? [14:01] sayan, Yes, Snapshot 5 commit got added [14:02] yes a new commit add to the list [14:02] sayan - not branch commits visible [14:02] You will find that the Snapshot 4 is not there [14:02] That is because Snapshot 4 commit is in sepia branch [14:02] sayan, Snapshot 4 is not there [14:02] not in master [14:03] next [14:03] Moving ahead [14:03] - git checkout sepia [14:03] - vim hellomars.txt # Add the text "Snapshot 6" [14:03] - git add -u [14:03] - git commit -m "Snapshot 6" [14:03] - git log # Again, noticed anything? [14:04] ! [14:04] new commit, "Snapshot 6" [14:04] next [14:04] ! [14:04] next [14:04] sayan - Sanpshot 5 missing [14:05] jasonbraganza: yup, Snapshot 5 is missing [14:05] sayan, i cannot write anything in terminal after the git log. the cursor blinks on a word saying END [14:05] Yes [14:05] and Snapshot 6 is on top of Snapshot 4 [14:05] saikat_, do :q [14:05] saikat_: press q [14:06] - git checkout -b bw # What we are doing here? [14:06] sayan: Is it If we’re in sepia branch and try git log, then it shows all the master and branch commits? [14:06] creating a new branch bw [14:06] sayan,im_moshin, thanks, worked, but this did not happen the first time i did dit log [14:06] new branch , sayan [14:06] creating a bw branch [14:07] got the new branch bw :) [14:07] saikat_, happens everytime :) [14:07] creating new branch [14:07] ganeshnomula_: yes, because sepia is created of master [14:07] creating bw branch [14:07] creating a new branch and switching to that branch [14:07] so if you have a-b-c in master [14:07] and then you create a new branch out of master branch [14:07] you will have all the a-b-c commits [14:07] [14:08] See, I told earlier that it's good that 2-3 people give the reply [14:08] But *nobody* listens [14:08] Moving ahead [14:08] - vim hellomars.txt # Add the text "Snapshot 7" [14:08] - git add -u [14:08] - git commit -m "Snapshot 7" [14:09] - git log # What do you notice? [14:09] ! [14:09] next [14:10] sayan: should I’ve to type in git checkout -b bw? [14:10] getting a bit confused [14:10] snapshot 6,7 [14:10] snapshot 7 on the top [14:10] Snapshot 7 after Snapshot 6 with the log of master branch. [14:10] ganeshnomula_, yes [14:10] no snapshots from sepia in here [14:11] sayan: History of last 4 commits including the ones done on sepia branch [14:11] switchwd to new branch [14:11] sayan: The snapshots of sepia branches are present in this branch [14:11] ganeshnomula_: yes [14:12] ! [14:13] jasonbraganza: can you fpaste the output of git log --graph [14:13] ! [14:13] sorry i goofed [14:13] lol [14:14] ! [14:14] anybody else fpaste output of git log --graph [14:15] ! [14:15] next [14:15] why aren't we finding Snapshot 5? [14:15] ! [14:15] ! [14:15] https://pastebin.com/DMXF6jvs [14:15] ! [14:15] I'm a little lost there [14:16] ! [14:16] cran-cg: cool tahnks [14:16] avik: there's no snapshot 5 :) [14:16] avik_: in which branch did you do that Snapshot 5? [14:17] haven't we done it? [14:17] sayan, see mine once, https://paste.fedoraproject.org/paste/hiF89k41HhnPhYVxDYiV3w [14:18] avik: I am really not getting you [14:18] okay, I thought since we are moving sequentially, I thought we may have done it also! anyway, its okay! [14:18] https://pastebin.com/zmpkuuZV [14:18] avik: are you reading properly? I don't think you are [14:18] next [14:18] :( [14:19] My query answered. Thanks :) [14:19] No more need to paste the code and send the url here [14:19] next [14:19] sayan, Had we created a branch from master we would nit have got commits from sepia right? [14:19] ! [14:19] im_mohsin: yes, right [14:19] next [14:19] I cannot find the two text files when i open foobar and in master branch! why? but can see both when in sepia? [14:19] <_anshul> now I get it [14:19] thanks, this way my doubts gets cleared :) [14:20] * okay the next steps that I tell are only for soumam007 * [14:20] soumam007: can you do this? [14:20] ok [14:20] - git checkout master [14:20] - git status [14:21] ^^ fpaste the output of this command [14:21] -- ls [14:21] ok wait a sec [14:21] ^^ fpaste the output of ls also [14:21] <_anshul> only has the initial commits we made on master [14:22] _anshul: Let soumam007 and sayan speak [14:22] for status its nothing to commit [14:23] ls [14:23] ! [14:23] only helloworld.txt [14:24] sorry i havent worked with fpaste till now [14:25] soumam007: go to paste.fedoraproject.org and paste the output of the command [14:25] and paste the link here [14:25] I want all of you look and try to look what's wrong with soumam007's repo [14:26] Rest of you here is how the tree looks: [14:26] https://paste.fedoraproject.org/paste/sjKIB8WYg78Mhpe2jbb5EQ [14:27] Yes sayan. [14:27] sayan what i am copying from terminal isnt pasting in fedora paste [14:27] sorry for such silly questions now [14:28] sorry, I have to leave early. Thanks for the session, sayan [14:28] soumam007: did you open https://paste.fedoraproject.org/ ? [14:28] soumam007, Are you using Ctrl+Shift+C to copy from terminal? [14:28] yes [14:28] sayan ashwanig [14:28] soumam007: and paste in paste.fedoraproject.org with Shift + v? [14:29] lol [14:29] :P [14:29] Ctrl + v [14:29] yeah did the same [14:29] soumam007: what's happening? you are not able to paste? [14:30] The text is not coming in the pastebin? [14:30] soumam007: if you are not able to do that leave [14:30] ok, i got it [14:30] we will figure out later [14:30] i think [14:30] do we have any command to check the tree structure in terminal? [14:30] <_anshul> git log --graph [14:31] terminal is in vm [14:31] :( i am dumb [14:31] thanks _anshul [14:31] im_mohsin: git log --graph --all [14:31] soumam007: I am moving ahead. come back to bw branch [14:31] ok [14:32] next [14:32] next [14:32] next [14:32] Got my query answered. Thanks [14:32] next [14:32] why i am seeing commits of sepia in bw ? [14:32] whenever we create a new branch is that is created from the master branch or the current branch we are in? [14:32] balaji - branch you’re in [14:33] imranjeetsingh_: because when you created a new branch bw, you were in sepia [14:33] imranjeetsingh_: so you checked out a new branch bw out of sepia [14:33] imranjeetsingh, because you were in sepia when you created bw and all commits in sepia were copied in bw :) [14:33] jasonbraganza, Thanks [14:33] ok thanks [14:33] imranjeetsingh_: so when you checkout a new branch you will have all the commits from the branch you are checking out [14:33] next [14:34] my output is not matching with ahole. Will you see once at https://paste.fedoraproject.org/paste/hiF89k41HhnPhYVxDYiV3w ? i am getting snapshots 7,6,3,2 repeated 3 times. ahole got snapshots 7,6,5,3,2,1 repeated twice. where is it going wrong? here is ahole's: https://pastebin.com/zmpkuuZV. [14:34] next [14:34] My question is answered thanks :) [14:34] can we import changes to "one particular file" from another branch ? [14:35] Padfoot7, yes you can do something like merge but thats a topic for other day i guess [14:35] Padfoot7: the question sounds ambiguous [14:35] saikat_: ahole did messup [14:35] :) [14:36] ! [14:36] imranjeetsingh_: check this tree link posted by sayan and perform git -log from different branches, you’ll understand what you’re getting. https://paste.fedoraproject.org/paste/sjKIB8WYg78Mhpe2jbb5EQ [14:36] The commit tree should be like this [14:36] hahaha.. yeah.. saikat_ check sayan commits [14:36] https://paste.fedoraproject.org/paste/sjKIB8WYg78Mhpe2jbb5EQ [14:36] sayan, ohh, is mine correct? i am getting the idea of branches, but still struggling with the implementation. [14:36] thanls ganeshnomula_ [14:37] Just travese from the end I have written branch name in brackets and move back [14:37] tonext [14:37] next [14:37] next [14:37] I can see only last 4 commits when I do git log under any of the branches.Why is it? [14:38] anuGupta: is those last four commits Snapshot 99, Snapshot 98, Snapshot 97 and Snapshot 96 [14:38] ? [14:38] No [14:39] i think git diff sepia and bw will help [14:39] anuGupta: you need to explain more. [14:39] Under log of bw I am getting snapshot 7 6 4 3 only [14:39] ! [14:39] anuGupta: so when you do git log you see the commits that your screen can adjust [14:39] anuGupta: and just press enter, and the log will scroll [14:40] next [14:40] anuGupta, down arrow [14:40] sayan, very silly question, but i am not getting how to read and match your tree with the graph in my terminal. Help please [14:40] Oops sorry [14:40] saikat_: which graph? [14:40] git log --graph --all [14:41] saikat_: ignore [14:41] or just git log [14:41] saikat_: you don't have to [14:41] the one that in the link is the one I made manually [14:41] ! [14:41] next [14:41] Moving ahead [14:41] https://paste.fedoraproject.org/paste/f4hc5ECL4rh8n-Ez8FBJ-A can u explain littlebit : sayan [14:41] *- *Chapter 4: Understanding VCS: Remotes* [14:42] *- It's been an year now, Tux owns a shop now. [14:42] *- So, Tux uses cloud services to backup the photos & publish photos. [14:42] *- Tux has setup some network endpoints, so that when Tux drops the photos into a particular endpoints it backup the photos in the particular cloud. [14:42] *- Tux's friend Nux is a computer programmer so who did the setup [14:42] *- The endpoints are origin: which points to Flickr [14:42] *- flickr: again points to Flickr [14:42] *- dropbox: points to Dropbox [14:43] *- 500px: points to 500px [14:43] *- When Tux runs: tux-shop push 500px sepia, it pushes the sepia photo directory to 500px [14:43] *- tux-shop push dropbox bw, it pushes the drop directory to dropbox [14:43] *- Tell me what would tux-shop push origin bw do? [14:43] drop bw to irigin [14:43] origin [14:43] push the master to flickr? [14:44] Push bw to Flickr [14:44] push to flickr [14:44] crap! sorry. not myself tonight [14:44] push to master [14:44] Flickr [14:45] push to original repository [14:45] push bw to origin [14:45] So origin is Flickr, and the branch is bw [14:45] ! [14:45] so it pushes the branch bw to Flickr [14:45] push bw to flickr [14:46] so basically remotes as the remote endpoint you want to interact with [14:46] next [14:46] how origin is flickr? it can be dropbox. [14:46] skarpy: "*- The endpoints are origin: which points to Flickr " [14:47] sayan: ok so it might point to somewhere else, you didnt define that before, ok got it :) [14:47] skarpy, he had defined it [14:47] skarpy: I had defined it [14:47] so, if thre [14:48] if there is push origin sepia, it goes to 500px? [14:48] ! [14:48] skarpy: [20:14] <@sayan> *- The endpoints are origin: which points to Flickr [14:48] ! [14:48] skarpy: no, it pushes sepia to 500px [14:48] let me discuss it more clearly [14:48] and then you can ask questions [14:48] sayan: ok [14:48] skarpy, *- When Tux runs: tux-shop push 500px sepia, it pushes the sepia photo directory to 500px [14:48] /msg NickServ identify QWERTY.123 [14:48] So, every remote has a name and a value [14:49] realslimshanky: we just say ********** [14:49] realslimshanky, nice password xD [14:49] Sorry! Now I'll have to change my password [14:49] lol [14:49] bhavin192, gotit, thank you! :) [14:49] lol [14:49] So, every remote has a name and a value [14:49] s/gotit/ got it [14:49] value is the endpoint [14:49] and the name is with what you are referring to [14:50] so suppose in my laptop I do the setup [14:50] origin: pushes to Flickr [14:50] its necessary to always push through end point? [14:51] flickr-remote: pushes to Flickr [14:51] Razy Kased [14:51] rkased: are you joining now? [14:51] No [14:51] Sorry [14:51] 500px-remote: pushes to 500px [14:52] rkased: then? Why do you write your name in between sessions everyday [14:52] Today was a mistake [14:52] I'm trying to follow your explanation of remote and endpoint [14:52] so in that case I need to do "tux-push flickr-remote bw" to push bw to Flickr [14:53] see you mention the name and then git would fetch the value and iteract with the URL [14:53] rkased: no issues :) [14:53] Excellent [14:53] Hope that makes things clear, a bit atleast [14:53] next [14:54] is setting up origin important? can we not do "tux-shop push flickr"? [14:54] saikat_ from which branch? [14:54] saikat_, then you will have to specify the URL every time [14:55] saikat_: you can just do tux-shop push, then it picks up origin & current branch [14:55] by default [14:55] ohh, okay. [14:55] saikat_: or if you mention the remote name then the branch name is the current branch [14:55] I follow naming them all [14:56] sayan, he is asking that setting up is important or not [14:56] better to be explicit [14:56] wait, i did not get your last line, please rephrase it? [14:56] saikat_: origin is there by default in git [14:56] saikat_: but you can remove it [14:56] saikat_ - allways spell things out clearly. then there is less scope for confusion [14:57] jasonbraganza, what did i spell wrong? [14:57] at the end of the you need it just resolves names to values and then does the operation [14:57] saikat_ - i meant specify things clearly [14:57] saikat_: :) don't worry. All is Well [14:58] jasonbraganza, okay, yes. [14:58] saikat_: I meant you should write all the stuffs like branch name, remote name etc [14:58] next [14:58] got answered when you explained now [14:58] ! [14:58] next [14:58] If the origin is already there, then where will it point? [14:59] bhavin192: will tell after class [14:59] I don't want bombarded with questions :) [14:59] Folks, create GitHub account [14:59] done [15:00] Then create a repo git-class-dgplug2017 [15:00] done [15:00] asraisingh_: done creating the repo? wow [15:01] :p [15:01] sayan, what is this "Initialize this repository with a README"? i alway get confused [15:01] im_mohsin: don't select that [15:01] done [15:01] done [15:01] All follks don't just fill up the title and create [15:01] don't check any other box [15:02] done [15:02] sayan: did the readme file :( [15:02] done [15:03] avik_: delete and create again [15:03] done [15:03] okay, deleted it! [15:03] avik_: delete and create again >> means the whole repo? [15:03] avik, Yes [15:03] yes avik_ [15:03] oaky [15:04] sayan yes done [15:05] next? [15:05] done! [15:05] done [15:05] Anybody yet not done? [15:05] done [15:06] sayan: just I have to type the repository name and click create repository right? [15:06] ganeshnomula_, yes [15:06] ganeshnomula_ yup [15:06] ganeshnomula_: yes [15:07] - git remote add origin https://github.com//git-class-dgplug2017.git [15:07] i was disconected so i missed this [15:07] sayan: bhavin192: jasonbraganza: Thank you so much :) [15:07] 404 page? [15:08] ! [15:08] yurii, Create a github account and then create a repo git-class-dgplug2017 [15:08] yurii: you need to create a Github account, and create a repo git-class-dgplug2017 [15:08] done [15:08] rkased: 404? where? [15:08] done [15:08] next [15:08] I created the repository then it shows Quick setup. What to do in that? [15:09] done sayan [15:09] rkased, is your GitHub username [15:09] balaji: back to terminal [15:09] done [15:09] balaji: and check the terminal I gave out [15:09] Yes, I see now [15:09] Thanks for the clarification on the 494 [15:09] ashwanig and sayan --- thank you [15:09] ! [15:09] *404 [15:09] sayan, okay [15:10] yurii: tell us when done [15:10] ok [15:10] what about writing "git clone https://github.com//git-class-dgplug2017.git" ? [15:10] sayan, do we do " git remote add origin https://github.com//git-class-dgplug2017.git" in terminal now? [15:10] saikat_: yes [15:11] Is I have do it in a specific repo or anywhere? [15:11] sayan, done [15:11] in terminal ? [15:11] saikat_, yes [15:11] santoshShaw: you don't have to [15:11] balaji, in your foobar directory, branch doesn't matter [15:11] balaji, in same directory. [15:11] Okay people [15:11] You come back to terminal [15:12] into the foobar directoru [15:12] and run git remote add origin https://github.com//git-class-dgplug2017.git [15:12] done [15:13] done [15:13] done [15:13] done [15:13] ok done [15:13] done [15:14] i successfully created my first repo :) [15:14] So here you are creating a remote name origin and giving the endpoint https://github.com/fedora-infra/statscache/pull/57 [15:14] oops sorry [15:14] wrong url [15:14] https://github.com//git-class-dgplug2017.git [15:15] - check the output of git remote -v [15:16] push: https://github.com//git-class-dgplug2017.git [15:16] my repo url for both fetch & pull [15:16] fetch & push. [15:16] fetch : https://github.com//git-class-dgplug2017.git [15:16] sayan, There are two remotes [15:16] s /pull /push [15:16] im_mohsin: :( [15:17] im_mohsin: you did not replace username? with your github username? [15:17] i did.. showed with just an example :P [15:17] Okay [15:17] sorry then :) [15:17] yes [15:17] now do [15:18] - git checkout mater [15:18] - git push origin master [15:19] done [15:19] Also, paste your github repo url here: https://etherpad.gnome.org/p/dgplug-github-url [15:19] done [15:19] mater is master, right? [15:19] ! [15:19] saikat_: yup [15:19] next [15:19] I get this --- https://paste.fedoraproject.org/paste/h-98b9ZtIw5ikQSjDAKkVw [15:19] i have 2fa enabled. do i need an app specific password? [15:20] already asked [15:20] ! [15:20] yurii: cool [15:20] yurii: now, back to your terminal [15:20] yurii: and type this: git remote add origin https://github.com/yuriypylypchuk/git-class-dgplug2017.git [15:20] jasonbraganza, no, you can create token and use it [15:20] this would a remote name origin with the URL [15:20] as password [15:20] jasonbraganza: you need to create a application password [15:21] got it. off i go [15:21] jasonbraganza, or setup SSH Key as kushal [15:21] yurii: then you do git checkout master [15:22] yurii: then git push origin master [15:22] you can then read logs what happened in betwwen [15:22] ! [15:23] jasonbraganza, I use ssh key. [15:23] kushal: that's for next class [15:23] next [15:23] will do that later kushal [15:23] next [15:23] sayan, It does not push commits in other branches? [15:23] next [15:23] ! [15:23] sayan, Okay. [15:23] turning off 2fa for now [15:23] im_mohsin: no, tell me what was the command you used for push? [15:24] I am not able see my github profile picture in my commit in the repo. How to fix that? [15:24] git push origin master [15:24] ! [15:24] im_mohsin: so you specified the branch name [15:24] im_mohsin: master [15:24] yes [15:25] im_mohsin: git push --all will push all branches [15:25] balaji, you have to set the mail id with `git config` [15:25] balaji: because your git email & github email is not same [15:25] next [15:25] i also got this after checkout: "Counting objects: 13, done. [15:25] " What am i counting? [15:25] saikat_: I told yesterday to ignore stuffs [15:25] you don't need to know each and every stuffs [15:26] sayan: I have to go ! Got some work. [15:26] sayan, Is I have to fix the user name also in git? [15:26] This confuses a lot of other people [15:26] ikshitij: sure, see you later [15:26] sayan, okay, sorry. [15:26] balaji: we can fix that later after class [15:26] sure [15:26] saikat_: also this is for you http://www.catb.org/esr/faqs/smart-questions.html [15:27] next [15:27] in hellomars.txt it have only 'snapshot 3' at git [15:27] hacker_: what's your repo url? [15:27] ! [15:27] https://github.com/pavanyejare/git-class-dgplug2017 [15:27] skarpy: check the other repos [15:27] hacker_, :O [15:28] sayan: ok, i made a different repo, which will be useful to me later! :p [15:28] hacker_: the last commit you did in master in hellomars.txt was that of Snapshot 3 [15:29] skarpy: sure, you are going to suffer later, can't help [15:29] skarpy: but it would be useful to you, so never mind [15:29] sayan, some people are too smart :) [15:29] sayan: ok, sorry! [15:29] next [15:29] bhavin192: :( [15:29] I am not able to see the branches in github. Is I have to push that to. If yes How to do that? [15:30] balaji: you haven't pushed them [15:30] s/to/too [15:30] skarpy, I'm not saying anything to you, seriously :( [15:30] balaji: check the logs, I told to im_mohsin [15:30] bhavin192: ok :p [15:31] balaji, here git push --all, it pushes all the branches [15:31] - git remote add another-remote https://github.com//git-class-dgplug2017.git [15:31] sayan, Got it Thanks [15:32] next [15:33] sayan - i got this ----- fatal: Authentication failed for 'https://github.com/yuriypylypchuk/git-class-dgplug2017.git/' [15:33] sayan, i have to go now. Thank you for this :) [15:33] yurii: you write wrong password [15:33] yurii: wrong password [15:33] im_mohsin: sure :) [15:34] kushal [15:34] Now we added a new remote called another-remote [15:34] with the same url [15:34] how can I recieve a password if it looks like do not remember [15:34] It's like same number stored in your phone with two different names [15:35] yurii: you can reset it after going to github.com [15:35] yurii: https://github.com/password_reset [15:35] thank you [15:35] - git remote -v [15:35] should show both the remotes now [15:36] yes [15:36] yes [15:36] adas0496: yes? a class is going on [15:37] sayan, sorry that was by mistake [15:37] - git checkout sepia [15:37] - git push another-remote sepia [15:38] done [15:38] done [15:38] So now you push via "another-remote" [15:38] In Github you would see two branches [15:38] sepia & master [15:38] yes [15:39] Ending the class here [15:39] Any questions? [15:39] ! [15:39] ! [15:39] i hv some questions but will ask u later [15:39] How do you combine the master and other branches ? [15:40] next [15:40] Is it necessary to git checkout branch-name before pushing it? [15:40] ! [15:40] bhavin192: no [15:40] next [15:40] sorry I spoke out of turn. [15:40] next [15:40] so, if i have x number of remote, are those opening me to branches? [15:41] sorry sayan. [15:41] what do mean by opening me to branches [15:41] asraisingh_: next is ban :) [15:41] ok. [15:41] ! [15:41] next [15:41] i mean like, master is the main or source, and then we have branches, we can add branches to our repo, by adding remotes? [15:42] What will happen if we pushed those changes in same origin remote ? [15:42] How do you combine all the branches to form a new master branch ? [15:42] balaji: nothing the output will be same [15:42] as the remote si pointing to same URL [15:42] So why we are adding another remote? [15:42] ahole, may be next class [15:42] skarpy: remote is way of communicating with the remote repo [15:43] ahole: git merge [15:43] Okay I see where people got consfused [15:43] I wanted to demo the name another-remote [15:43] we could have also done git push origin sepia [15:44] at the end of the day, git sees that it needed to push sepia to origin remote [15:44] skarpy: balaji got it? [15:44] next [15:44] ok. so push origin sepia will do the same [15:44] ! [15:44] next [15:44] ok, got it [15:45] sayan, Got it [15:45] can we push to other clouds? like flickr or dropbox as yu said? [15:45] <_anshul> yes [15:45] s/yu/you [15:45] sayan: it will show under branch of github, i suppose [15:46] sayan, As like in example origin and Flickr pointing to same thing correct? [15:46] avik_: that was a fictional story [15:46] avik_: to explain [15:46] balaji: right [15:46] okay, so its only for VCSs? [15:46] ! [15:46] there are some protocols if the serves on the receiving end is following that [15:46] ! [15:46] then you can push [15:46] next [15:47] next [15:47] getting stuck at another-remote [15:47] Where in the github do I see the branches? [15:47] sayan: thanks. got it! [15:47] can get a short explanation of what is it [15:47] anuGupta: Ctrl + F and then type Branch [15:48] <_anshul> https://github.com///branches [15:48] hemanth: what did you not understand [15:48] ? [15:48] another-remote is just another remote name [15:49] Next session is at 5th July 00:30 AM [15:49] Roll Call [15:49] Balaji [15:49] kshithij Iyer [15:49] <_anshul> Anshul Chauhan [15:49] Razy Kased [15:49] Ashwani Kumar Gupta [15:49] Abhinav Shirur [15:49] Vipul Gupta [15:49] Abhishek Singh [15:49] Shivam Singhal [15:49] Santosh Kumar Shaw [15:49] Akash pathak [15:49] Bhavin Gandhi [15:49] we have here only one remote the dgplug repository [15:49] Nikita Kotak [15:49] Avik Mukherjee [15:49] Aryan tripathi [15:49] Kishore Saldanha [15:49] Anu kumari Gupta [15:49] Chiranjeev Gupta [15:49] Mayur khomane [15:49] Ranjeet kumar [15:49] Saikat Dey [15:49] Gaurav Sitlani [15:49] <_Richard_> Mayank gupta [15:49] Ganesh Nomula [15:49] hemanth [15:49] Himanshu Awasthi [15:49] Akshay Gaikwad [15:49] Gunjan [15:49] Jason Braganza [15:50] Suraj Ghimire [15:50] sayan: means today late night? [15:50] sayan, a midnight session huh , should be fun. [15:50] Ravindra Lakal [15:50] Umm.. the time is unclear for the next class.Can you clarify what you meant? [15:50] Jitesh Pabla [15:50] vipulgupta2048_, 21:21 <@sayan> Next session is at 5th July 00:30 AM ----END CLASS----