How To Configure And Use GitHub From PyCharm

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello good morning all today in this video we are  going to discuss regarding how to use github from   the pycharm so we already have discussed how to  create edit hub repository and how to clone that   repository into local machine and how to make  some changes and pull it back to github in the   last video so if you haven't watched this video  you can just go to our Channel and you can just   watch this video on creating github repository  and introduction to get comments so once you   watch that video you will be understanding how  to use the comments like git clone did push did   pull git status is it add a widget commit so in  this video we will see how we can do all those   commands from using the interface in the a charm  so if I come to the PI charm and here you know we   have got if I go to files and settings here we can  see something called version control and from here   we can see we have got the option to configure  github account details inside the pouch on so   in this video we will show how to configure  github account inside the pouch on and how   to clone the repository using pouch um and how to  make changes and commit the files using the pouch   and application itself so if I go to the browser  and if I go to the github account so here you can   see I have already logged into gihub account and  this is the repository that we have created for   the illustration purpose so the repository name  is over there and we have got two branches one   is master branch and another is 12.0 which is the  branch that we have created that day and we have   already committed the UM hospital module into  this repository so first of all we'll go to the   PI champ and we will see how we can configure the  github account in the hi chump so for that what   you have to do is that you can go to files then  to the settings so once you go to the settings you   can see there is an option called version control  since then you can explain the version control   and here you can go to the github so once you go  to github you can see github account is added it   so you can just add the consider github account  from here or you can just add it from if you go   to VCS so either you can do it from here that  is from settings version control GIT hub or you   can just do it from VCS check out from version  control I'll choose Git and here you can see we   have got an option to log into github account so  either you can configure it from here or you can   do it from the files safeties motion control and  Git now I'll configure it from here that is the   path that I have follow these VCS shake out from  version control then I will choose Git and here   you can see right now there is no URL because if  we have already configured the Jitterbug on it   it will see all the repositories available inside  that account so first of all let's configure the   Git hub account using this button login to github  so click on this and here you can see server is   github.com now we have to enter our credentials  so I will just enter our the account details that   is roommates at gmail.com so I'll just end up  my email ID and you have the entry well github   credentials that is you have to enter image it  hub password so I'll just enter the password so   I have entered my password so once you enter your  data because they like login and password you can   just click on login so you can see it's loading  so it will take some time to create a token for   the github so once it is done you can see you  will see all the available properties inside   the corresponding account so right now in the  URLs I can see there are four repositories that   is one is development tutorial sheet one is paid  apps did and ordered Dave this is the repository   that we have created and another is apps George  it so if I go to the browser and if I go to the   auto mix here I will have four repositories  so if I come to the repositories we can see   that our posit is overdue for your apps paid apps  and older development tutorials so these are the   repository that you are seeing here development  tutorials paid apps over there and Odets so once   the account is configured there is no need to  enter by username and passwords while crawling   or while pushing into the repository so that's  done so we have configured a code account so once   you done that you can see the account details  here so if I go to settings then to the version   control and click on to the G tab you can see the  roommates at gmail.com has been added in here so   you can see the call the old configured accounts  will be listed here and if you need to remove   this you can just click on this - and click on ok  then the account will get removed from the FISA so   let's keep it there as was now I'll click on ok so  we have successfully configured the github account   inside the PI jump so there is two way either you  can do it from we see is check code from version   control choose it and here you will have the login  button so from there you can configure the account   or you can go to files settings version control  and then to the G tab and configure the account   so that's done now let's see how we can clone  a repository so right now if you check here I   have good OCA web POS for yours adults so first  of all what we will do is that I will just clone   the repository that be how created last day so  here we have got to do the G tutorials so this   is the repository that we have created last Bay so  let's see how we can crawl this repository using   the ohr itself so I'm not going into the terminal  so I'll just do it from the here so first of all   you have to go to VCS then checkout from version  control then touch it then you have to choose   which repository that you need to crawl so I'll  choose the repository as or they rotate then you   can see you can specify which path to which path  the repository has to be called so right now I am   going to clone the repository into this path that  is a little inside a folder will get created that   is Odom so if you need to change that name you  can just change it here so I will keep the name   of a root Dave itself and what you have to do is  that you have to just click on the clone so once   you click on the clone you can see the old Dave  has been got created here and here you can see   clone source repository so here it is asking check  out from version control control would you like to   open the directory new directory so you can just  click on ignore so successfully we have cloned   that repository so dave has been added here so we  have successfully cloned the repository from the   github but the issue is that right now it's gone  to the master branch so right now we can see in   the master branch we have got one file that is  red-meat dot MD so we have successfully cloned   that master branch so what increase if you need  to clone any other branch so right now you know   the I'm Hospital module is added in the order 12  bands that is 12.0 bands so what we will do if   you need to clone that branch so I don't know  whether there is an easy way the bear that I   have found it using the Python is that right now  we have successfully cloned our master branch so   let's take a case and we need to switch into  the 12.0 branch so you can just click on the   corresponding folder and here you can see you have  got git then you can go to click on git repository   and here you have got the branches so you can  just click on the corresponding folder click on   get repository and you can click on the branches  so once you click on the branches you can see in   the local we have got the master branch and in  the remote in the remote means github account   we have got two branches that is master and 12.0  so if I come to the remote so this is the remote   repository here we have got master branch and 12.0  so if i click on it once again I'll come to git   repository then to the branches in the local we  have only master branch belt used to 12.0 so once   you click on 2.0 check out us so click on check  autos 12.0 new branch name 12.0 so it is similar   to get checkout - be branch null so it will go  okay so here you can see the own Hospital model   is coming here so which is coming from the 10.0  brand so successfully we have switched into the   branch 12.0 and we've got the code from the cheat  hub so this is how we can clone the repository   from github account and change the branch so if  I need to go back to the branch master I can just   click on here git repository and I can go to the  branches and this is to say if I need to switch   to the master branch and click on master check  out us master don't need though no need of that   I will click on git repository branches and you  can just choose it from here that is in the local   we have got master branch and as the last step  on 0 if I need to switch to master this click   on master check out so you can see it has been  changed into readme.md that is a mess currently   I am in master branch and if I need to switch back  to the 12.0 repository branches then choose 12.0   so you will be successfully check out into the  corresponding branch so we have successfully clone   the repository into our local instance so I don't  know any method to configure the local user name   and in user name and email from the pycharm so for  configuring the GG username and email I will just   use the terminal from the pitcher so some Python  I can just go to CD or the day and just choose the   for configuring widget username and email so it  will be shown here right now here you can see the   name is over suppose if I need to change it to Oh  roommates I need to configure the GT username and   email so I don't find any method to do it from the  PyCharm UI so I'll just use the terminal for that   purpose so git config so you have to specify the  git config user name as a roommates and I have to   configure digit email JITgit config user dot email  as roommates at gmail.com so I have successfully   configured our github username as the last email  so if you need to see the existing username you   can just go to git config username so once  you click on end of this current git config   username you will see the GG username that is  auto mates and if you need to see the email jet   config user dot email you will see the email that  is automated email or consult what we have done   is we have successfully cloned that repository  into local instance we have switched the branch   into 12.0 and we have set the git username and  git image now let's what we do will make some   changes in the code so I'll open the OM Hospital  module and let me make some few changes that is   I will just change the version number right  now the version number is twelve point zero   one point one I will change it to two point one  just a small change like I will change category   for beginners and experts I'll just update a few  things so once you change something you can see   that in a file name husband final color has been  changed into yellow which shows that the file has   been some modification has been done into the  file so if you check an existing file you can   see it's all coming in white and the manifest  got B Y is coming in blue color that is because   of the changes so right now if I go to read me  so if I right now you can see if I go to another   Fallbrook you can see you read me no Darla's stays  in white color so let me open the readme dot rst   and if I make some changes if I mix add an extra  is here you can see this file has been good into   blue color that is which indicates there is some  changes so we have made some changes now we need   to commit these changes into the git havoc on  so here you can see right on there is already   three commits so let's commit these changes also  for committing that what you have to do is that   you can split on here or you can just click on  to from here so I'll just choose a City Hall I   will click on here and I can go to get and you  can see come it directly so I'll choose commit   directly so once you click on that you can see the  changes here that is you can see this is the old   version and this is the new version you can see  12.0 1.10 has been changed into twelve point zero   point two so this has been changed and here you  can see all the difference so here we can see if   I need to see the changes happen to these file  you can just click on here and if you click on   get this you can see those changes that is twelve  point zero one point one zero has been changed to   twelve point zero two point the version number has  been changed and also summary has been changed so   that is the changes happen for that file and you  have got readme.rst if I open or if I show this   out if you can see development has been changed  into developments so you can see the changes that   you have done before committing so this is the  use of the points you see right out so it will   be difficult if we are doing it from the same  from the core you have to type G diff to see   all the changes and here we have got better why  and we will get better understanding of what we   have done so suppose if you need take a case you  need to cancel the changes you have done for the   create me Totoro ski file so if I need to revert  the changes you can just click all here and you   can just click on that reward so once you click on  the reward the change is done for this file will   be reported so if I click on reward you can see  reward if you click on reward it will be changed   that is it will come back to the odoo developments  the S we have added here has been reverted back so   right now the only change is for the file manifest  file which we have changed wrong version number so   here you can see you have got only manifest file  so let's commit this you can add a commit message   here so I'll just add it commit messages update  update and you can just add change in number like   the ranges you can just add a combi classes which  will be understandable for you so once you add the   commit message here you can just click on commit  so here you have got two option you can just   directly committed commit these changes or you can  just commit and push so you know once we are doing   it from the terminal has to be how it committed  and then we have pushed so if you need to do a   same at the both time you can just click on commit  and push or if you want to commit right now you   can just click on commit so right now the changes  are committed so one file committed but it will   not be reached the d table so it will be updated  the cut remote repository once the push is done so   right now if you check here here we have got only  three commits and it has been last commit has been   yesterday so if I need to push this you can just  click on git repository and you can just click   on push so once you click on push you can see the  changes that is already we have committed changes   you be illustrate here push commits it will be  listed here and if you need to change this you   can show diff you can see still you can see the  difference you have that and then cross this and   you have to pick on push so once push is done it  will be updated into the remote repository so here   I can see it's pushing so let's wait until the  pushing has been completed so let's wait so once   it is done it will update the na+ so here you can  see push successful pushed one come into oh gee   12.0 now if I go to the browser and here you can  see 12.0 less than a minute ago so if I reload the   screen you can see fetching the last commit change  out version number to 12 pounds this is the commit   message that we have added right now and if I open  this commit message and if I open this you can see   the changes that will have added on so here you  can see I have changed this line into this one   and these changes have been made so before that so  we have successfully cloned the repository change   devotion and we have made some changes and push  that changes into the server so if I make some   changes into the court from the Jetta back on  or take consider a case we are working in its   repository as a team so as well working as a team  there is chance for different commits coming from   different portions so for illustrating purpose  I'll just edit the code from the UI itself so I'll   just go to the 12.0 so for illustrating purpose  are you working in a team there will be chances   for coming different commits on different persons  so I'll open the tutorials module from here and I   will make it change in de manifest file from here  so if I change something from here I'll click on   edit I'll just remove order development tutorials  or a room we told develop and Toutatis I will just   change the module name here that is for people  development tutorials and I'll commit the changes   here come it directly to tell pound 0 change what  your name I'll just give a name like change module   name and if you wanna commit changes so I'll just  make a change come the UI so what I have done is   I have just changed the module name come the UI  itself so it's master if I switch to 12.0 you   can see there are total PI commits so if I come to  the local repository that is the odoo there which   we have pushed and if I need to get the changes  that is done here we have made the change the   module name so these changes is not get updated  here so we have to pull that changes here so what   you have to do is that you can click on here get  before going into that the manifest file you can   see the name is o2 development tutorials so we  are going to change what we are going to check   pull the remote changes into our local repository  so for that you can click on git repository and   you can click on pull so once you click on so here  you can see we are git wrote and we are going to   remote this is our folder and we are pulling  from this remote repository and if I click on   pool you can see you can see if pulling changes  from origin here you can see there is a change   inside the manifest file if I click on show deep  you can see this has been changed to auto vehicle   development tutorials so let me accept it so here  you can see our remote repository that is our   local repository has been updated with the name  that I have changed from here so this is how we   can make it full so if I go to github repository  and if I click on pull and if there is no items to   pull it will show will item no items and if I I go  to git repository and push it will show there is   nothing to push now commit selected if I click on  push it will show that empty push nothing to push   like that it will show everything if successful  everything is updated so this is how we can use   github from the pide pide jump so first of all  what you have to do is that you have to configure   the GT account for that you have can go settings  from the motion control github and you can add   your github account details here so that's all  about this video if you have any queries or any   doubts you can just comment it out or reaches  over the email that is email is automate so   gmail.com and if you have any suggestions or  feedback you can just commit it out or reaches   over the email and social medias and if you like  the videos please do click the like button and   subscribe the channel to get notified regarding  all the upcoming updates so that's it thank you
Info
Channel: Odoo Mates
Views: 47,973
Rating: undefined out of 5
Keywords: github, github commands, github pycharm, connect github and pycharm, git push, git pull, git commit, github tutorials, odoo tutorials, odoo github, odoo development, odoo git tutorials
Id: 7sinNdn49Uk
Channel Id: undefined
Length: 18min 58sec (1138 seconds)
Published: Sun Apr 19 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.