Connecting an existing RStudio project to git and GitHub (CC145)

Поділитися
Вставка
  • Опубліковано 4 гру 2024

КОМЕНТАРІ • 92

  • @Riffomonas
    @Riffomonas  3 роки тому +10

    What kind of questions do you have about using git or GitHub?

    • @lukegroene6629
      @lukegroene6629 3 роки тому +2

      Hi! When committing during creating a local git repository, I am getting this message popping up in R:
      git config --global user.email "you@example.com"
      git config --global user.name "Your Name"
      When typing these into the terminal, and retrying, the message still occurs. Is this a common mistake?

    • @Riffomonas
      @Riffomonas  3 роки тому

      Hi Luke - Can you try to run those from a command line outside of RStudio? Then try running "git config --global -l" from the command line and make sure there are values there for user.name and user.email. Let me know if this doesn't solve the problem

    • @AndreaDalseno
      @AndreaDalseno 3 роки тому +2

      Hi, thank you for your videos. Nowadays anyone can have unlimited private repositories also with the free version of github, you have a limit of 500MB of storage (for private only) though.

    • @Riffomonas
      @Riffomonas  3 роки тому

      @@AndreaDalseno that's fantastic! thanks

    • @rimjhimster
      @rimjhimster Рік тому

      This video has been super helpful. I don't know if you are still monitoring these but if I have an existing repository and existing Rproj that I wasnt using git on but ratherly stupidly copy pasting code in GitHub folder. How do I now, link the project to the repository. Added caveat - what if I want to put that stuff on a branch? Thanks.

  • @katep841
    @katep841 10 місяців тому +7

    My grad program taught me a whole lot about R but nothing about GitHub. I've been so lost trying to figure out how to get my R scripts into GitHub until now. Thank you so much!!!

  • @resford1
    @resford1 2 роки тому +7

    Thank you very much for making this! I just started learning R and GitHub and am really excited to keep all my projects organized for other folks to see and share.

    • @Riffomonas
      @Riffomonas  2 роки тому +2

      Hey Resford, I'm glad to hear the video was helpful! Project organization is an under appreciated part of reproducible research

  • @aidanperkins3947
    @aidanperkins3947 5 місяців тому

    you sir are my hero, i was so lost without you

    • @Riffomonas
      @Riffomonas  5 місяців тому

      lol - thanks! I'm glad you found this helpful

  • @chuckbecker4983
    @chuckbecker4983 4 місяці тому

    Great instructional video, thanks! During the pandemic I became proficient at this but haven't used Git in a couple of years. You provided just the guidance I needed.

    • @Riffomonas
      @Riffomonas  4 місяці тому

      So glad to hear it - thanks for watching!

  • @AlexKashie
    @AlexKashie Рік тому

    Possible to like this video 1000 times?
    Thank you Sir

  • @chrismatthis9710
    @chrismatthis9710 Рік тому

    Your videos are immensely helpful! Also they are so friendly for beginners like me. Really appreciate you making and sharing these vids!!

  • @chughag
    @chughag Рік тому

    Thank you!! Really appreciate for creating these simple, concise yet powerful tutorials.

  • @niceday2015
    @niceday2015 2 роки тому +2

    Simple and straightforward, GREAT! A big thanks to you!

  • @PedroRibeiro-zs5go
    @PedroRibeiro-zs5go 2 роки тому +1

    Thanks man, this video was EXTREMELY useful!! Awesome!

    • @Riffomonas
      @Riffomonas  2 роки тому

      Excellent! Thanks for watching Pedro🤓

  •  2 роки тому

    This is really helpful, I'm sure I'll comeback to this video a few times.

  • @maniramraj4324
    @maniramraj4324 5 місяців тому +1

    Thanks for teaching this subject

    • @Riffomonas
      @Riffomonas  5 місяців тому

      My pleasure - glad you found the video useful!

  • @sven9r
    @sven9r 3 роки тому +1

    Our Lab doesn't use it, but I still try to manage my projects in GIT. I don't know why but I like Gitlab more.
    Thanks for sharing your point of view over and over again. I don't know why you only have 3k subs.

    • @Riffomonas
      @Riffomonas  3 роки тому +2

      Thanks! We’ll get there 😊 I’m still learning how to do UA-cam better and have confidence the channel will keep growing

  • @yumidera
    @yumidera 2 роки тому +1

    Thanks for great instruction! I got stuck at the new authentication method a bit, but made it through!!

  • @jonf568
    @jonf568 2 роки тому

    This may seem like simple steps but this really clarified a lot of things, huge thanks from California :)

    • @Riffomonas
      @Riffomonas  2 роки тому

      Wonderful! Thanks for watching and I’m glad it was helpful

  • @marerlevin2494
    @marerlevin2494 2 роки тому +2

    Maybe just for others that run into the same problem. Do not create a README file at the start when creating your repository. At least I had the problem that I then could not link my Rproject with my github repository because it said that there were files in my github repository that were not on my local computer. Just follow his instructions precisely and you should not run into any trouble. In the process of trying to fix my issue I also linked my Rstudio with my github using a SSH-key but I am not sure if that was really necessary.
    I used github for the very first time and this was my first repository ever made on my github account.

    • @Riffomonas
      @Riffomonas  2 роки тому

      Thanks Marer - glad you got it working!🤓

  • @salihabdullahkilic
    @salihabdullahkilic Рік тому

    great content, keep it up bruv!

  • @andreas.chrysostomou
    @andreas.chrysostomou 2 роки тому +1

    Very helpful! Thanks a lot!

  • @joseluisloren904
    @joseluisloren904 2 роки тому +2

    Just wanted to say that now private repositories are also available with the free version.

    • @Riffomonas
      @Riffomonas  2 роки тому

      It’s such a great service!

  • @ifeyinwaodiaka9295
    @ifeyinwaodiaka9295 Рік тому

    Many thanks. Very helpful.

  • @dhercar
    @dhercar 3 роки тому +1

    That was helpful! Thank you.

    • @Riffomonas
      @Riffomonas  3 роки тому

      Glad it was helpful! Thanks for watching :)

  • @birasafabrice
    @birasafabrice 3 роки тому +1

    thank for this amazing video, it helped a lot!

  • @josevaldes7493
    @josevaldes7493 Рік тому

    Thanks man. this is a great videos

  • @fit_sarthi
    @fit_sarthi 2 роки тому +2

    ☺ Thanks, Appreciated . Can you please make videos on how to make nested loops in R - that we can use for feature engineering and all ?

    • @Riffomonas
      @Riffomonas  2 роки тому

      Hey Sahil! I did a for loop episode a while back. Maybe that will help? ua-cam.com/video/hG7SSfBXVuM/v-deo.html

  • @marcelofalchetti
    @marcelofalchetti 2 роки тому +1

    Amazing, thanks!

  • @andrea-mj9ce
    @andrea-mj9ce 2 роки тому +1

    A little off-topic, but what open R project do you recommend to join as a 4-year experience person with interest in machine learning ?

    • @Riffomonas
      @Riffomonas  2 роки тому +1

      Wonderful question! Somewhat selfishly maybe mikropml could use some help?

    • @andrea-mj9ce
      @andrea-mj9ce 2 роки тому +1

      @@Riffomonas I have seen that mikropml is a package for ml tools for microbiology. Is it recommended to have knowledge on microbiology to contribute to this package ?

    • @Riffomonas
      @Riffomonas  2 роки тому +1

      @@andrea-mj9ce it's widely used outside of microbiology so no need for micro expertise!

  • @pikineestest7362
    @pikineestest7362 2 роки тому +1

    Hi Professor thanks for sharing.
    I have problems when installing R packages in ubuntu or Linux, it take several times and often rise "exit with zero status" please help.
    Thanks.

    • @Riffomonas
      @Riffomonas  2 роки тому +1

      Thanks for watching! Sorry to hear you're having problems with installing packages. Try doing it in Rstudio. If it complains that it can't find a different package when installing the package you want, go ahead and try to install the package it's complaining about

  • @emkahuda776
    @emkahuda776 2 роки тому +1

    Thank you for the great video. I am using RStudio server and connecting it to the Github. I have successfully committed and pushed several times. However, today, I accidentally commit a large file from RStudio to Github. It causes errors and "push" process is failed. Then I tried to commit a small file and push it (hoping it will work normally), and it turned out to fail as well since, I guess, the prior commit was failed. Therefore, now I have 2 commits not pushed to Github yet. I got the message "Your branch is ahead of 'origin/main' by 2 commits." My question is how to solve the issue? The first option is I want to cancel the committing a large file, or possibly second commit I can push the large file. I prefer the first one actually. Please help me to solve it. Thank you.

    • @Riffomonas
      @Riffomonas  2 роки тому +1

      If you google for how to undo commits you’ll find some good tutorials. If you try this from the command line it should reset your local repository to match the remote repository: git reset --hard origin/ the should be the name of your branch on GitHub. Be sure to add the problem file to your .gitignore file

  • @mubassirwrites
    @mubassirwrites Рік тому

    sir how to create python environment in r studio. i want to run RNN and LSTM models in r.

  • @yaqinguo8971
    @yaqinguo8971 2 роки тому +1

    great video!

  • @kelvas6839
    @kelvas6839 3 роки тому +1

    Hey, thanks for the very helpful video. My Git Acc doesn't show me any Quick setup information after creating my repository ( no codes pop up)

    • @Riffomonas
      @Riffomonas  3 роки тому +1

      Hmm I’m not sure I follow what you’re saying. You don’t see git in rstudio?are you sure you have git installed on your computer?

    • @kelvas6839
      @kelvas6839 3 роки тому

      @@Riffomonas I have managed to connect Git and RStudio just now by using PAT.
      What I meant before is that after creating a new repository I don’t see a window with Quick setup where I could copy the push settings

  • @janeroque4733
    @janeroque4733 2 роки тому +1

    In my version control option, I only see none, there is no other option. What can I do in that case?

    • @Riffomonas
      @Riffomonas  2 роки тому

      Hi Jane - thanks for watching! First make sure you have git installed on your computer

  • @mariaortega2636
    @mariaortega2636 Рік тому

    Very helpful! Thankyouu

  • @AntoinSts
    @AntoinSts 6 місяців тому

    Thanks very much :)

    • @Riffomonas
      @Riffomonas  6 місяців тому +1

      My pleasure - glad you found it helpful!

  • @nellyiwuh20
    @nellyiwuh20 Рік тому

    Hello. I tried to commit my data to git but it opens an interface and asks me to put in email and name. I can't type in this interface tho.

  • @prateekshahegde1528
    @prateekshahegde1528 2 роки тому +1

    I don't have a option git, in version control, please tell what I am missing

  • @SergioUribe
    @SergioUribe 2 роки тому +1

    THANK YOU!

  • @evareindl7472
    @evareindl7472 Рік тому

    Thank you so much!!

  • @birasafabrice
    @birasafabrice 3 роки тому

    why don't find the option of setting version control to git at 2:50? I only have "none" option... any help is appreciated. thanks!

    • @birasafabrice
      @birasafabrice 3 роки тому

      sorry, I got that question solved from the previous video. thank you!

    • @Riffomonas
      @Riffomonas  3 роки тому

      Hi Birasa - glad you got it worked out!

    • @prateekshahegde1528
      @prateekshahegde1528 2 роки тому

      Same issue...! please help

  • @mmuti7800
    @mmuti7800 2 роки тому +1

    this video just earned u a like, subscribe and a comment ✌

  • @josekaromo153
    @josekaromo153 2 роки тому

    Thanks for this

    • @Riffomonas
      @Riffomonas  2 роки тому

      My pleasure! Thanks for watching 🤓

  • @Toawsome2care
    @Toawsome2care 2 роки тому

    I always get promoted to enter my username and password even when i enter my personal access token I only ever seem the get the message fatal: unable to access

    • @Riffomonas
      @Riffomonas  2 роки тому

      Hi Heather! Sorry, I haven't gone to using the PAT yet. I'm still using the ssh keys.

  • @po-t7299
    @po-t7299 2 роки тому +1

    Git is giving me headaches at the moment. The Git tab is not showing no matter how I configure things, change the path, or whatever. The joy of using Windows 😂

    • @Riffomonas
      @Riffomonas  2 роки тому

      Can you double check you have git installed? You might also confirm that the preferences are set right for version control?

    • @po-t7299
      @po-t7299 2 роки тому +1

      @@Riffomonas It was a stupid thing... like usual 🤣
      I was trying to run Git on a project stored on an external hard drive, but because of the formatting of the hard drive, I do not have full write permission.
      I ran it on my PC's hard drive and it worked perfectly.

    • @po-t7299
      @po-t7299 2 роки тому

      @@Riffomonas Also, thank you for your tutorial! It is better explained than the official Happy Git book.

    • @kanchanaramar
      @kanchanaramar 2 роки тому +1

      @@po-t7299 Thanks. I had the very same issue. I was clueless - till I read your post. Worked for me as well.
      Riffomonas Project, thanks for creating and uploading this video!