Git Tutorial 4: Basic Commands: add, commit, push

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ค. 2016
  • In this git tutorial we will learn how to commit a code change locally using git commit and how to upload it to remote using git push. Here is the list of topics we are covering in this git tutorial,
    1) how to create new github repository
    2) push code to this repository using git push command
    3) go over these commands in detail,
    * git add
    * git commit
    * git push
    * git difftool
    #Git #GitHub #GitTutorial #GitTutorialforBeginners #GitRebase #GitAdd #GitBash #GitCommit #GitCommands #GitPush #GitConfig
    Do you want to learn technology from me? Check codebasics.io/?... for my affordable video courses.
    Git Tutorial: • Git Tutorial 1: What i...
    Next Video:
    Git Tutorial 5: Undoing/Reverting/Resetting code changes: • Git Tutorial 5: Undoin...
    Machine Learning Tutorial With Python: • Machine Learning Tutor...
    🌎 My Website For Video Courses: codebasics.io/?...
    Need help building software or data analytics and AI solutions? My company www.atliq.com/ can help. Click on the Contact button on that website.
    #️⃣ Social Media #️⃣
    🔗 Discord: / discord
    📸 Dhaval's Personal Instagram: / dhavalsays
    📸 Instagram: / codebasicshub
    🔊 Facebook: / codebasicshub
    📝 Linkedin (Personal): / dhavalsays
    📝 Linkedin (Codebasics): / codebasics
    📱 Twitter: / codebasicshub
    🔗 Patreon: www.patreon.com/codebasics?fa...

ความคิดเห็น • 195

  • @codebasics
    @codebasics  2 ปีที่แล้ว +4

    Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.

    • @petermarwa9153
      @petermarwa9153 2 ปีที่แล้ว

      Great tutorials brother. Waiting on the python course and thank you for sharing this content!

  • @codebasics
    @codebasics  4 ปีที่แล้ว +1

    Step by step roadmap to learn data science in 6 months: th-cam.com/video/H4YcqULY1-Q/w-d-xo.html
    Full python course: th-cam.com/play/PLeo1K3hjS3usILfyvQlvUBokXkHPSve6S.html
    Machine learning tutorials with exercises:
    th-cam.com/video/gmvvaobm7eQ/w-d-xo.html

    • @sri4frndz
      @sri4frndz 4 ปีที่แล้ว

      Well explained. Thanks!!
      But, you haven't explained on how to setup the git for the first time on local machine. Any info on that please?

  • @chitrangadapradhan5535
    @chitrangadapradhan5535 3 ปีที่แล้ว +17

    This video is exactly what I was looking for. Short, crisp, to the point, and informative. Thank you!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad it was helpful!

  • @codebasics
    @codebasics  3 ปีที่แล้ว +2

    Step by step roadmap to learn data science in 6 months: th-cam.com/video/H4YcqULY1-Q/w-d-xo.html

  • @priyanshugupta7904
    @priyanshugupta7904 3 ปีที่แล้ว +3

    Sir you are a genius... in 1st sem you helped me in ML and now in 3rd sem with git.... Things gets easy and simple with you

  • @elizabethwarren9872
    @elizabethwarren9872 10 หลายเดือนก่อน

    A big thank you. I have been tinkering at this for days and after watching your video I got it to work. Highly recommended

  • @farhaankazi7134
    @farhaankazi7134 5 ปีที่แล้ว +1

    Simply very good. Teaches practical use as well as overview so that we understand that how git is different from other version control. great. Request you to make more tutorial on git and bigbucket

  • @ramseydarling
    @ramseydarling 5 ปีที่แล้ว

    Just wanted to say thanks a bunch. This helped me understand git a lot faster than if I were to read about this.

  • @codebasics
    @codebasics  4 ปีที่แล้ว

    How to learn coding for beginners | Learn coding for free: th-cam.com/video/CptrlyD0LJ8/w-d-xo.html

  • @JasperVGomez
    @JasperVGomez 5 หลายเดือนก่อน

    This video helped understand me understand git add, commit, and push concepts easily. It also has a visualization of what happens when you do these commands, so it helps a visual learner like me. Thank you!

  • @mukundtn
    @mukundtn 2 ปีที่แล้ว

    What a simple explanation. Very helpful. Thank you so much!

  • @singamit_
    @singamit_ 2 ปีที่แล้ว +1

    Thank you for the lucid explainations. Such a valuable content

  • @prasanthvemula_nv
    @prasanthvemula_nv 5 ปีที่แล้ว +9

    bro, U R Awesome !!!! I`ve been working from the morning to understand, but u that possible in 20min.

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      I am glad it was helpful

  • @ntgc-tv
    @ntgc-tv 6 ปีที่แล้ว +1

    Thank You Very.....The best video So far....Even A baby can get this done.....Thank you for your hard work....

  • @olixz
    @olixz 4 ปีที่แล้ว +23

    Thank you Sir and here's to many more samosas with various fillings.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +6

      Ha ha, samosas are so tempting Oliver 😋

  • @dawnmcmannama7920
    @dawnmcmannama7920 5 ปีที่แล้ว +1

    Great tutorial. Clearly presented and spoken. I've used SVN for years so the extra steps have not been unclear. I'll be looking for information on how to handle when my branch is behind the main line. Several developers are changing the same file to add automated unit tests.

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      You can do git pull and it will try to auto merge. If it can not then you will have to manually merge those changes which should not be that hard.

  • @naraendrareddy273
    @naraendrareddy273 3 ปีที่แล้ว

    The simplest and best video explanation for beginners

  • @salkynaabd1855
    @salkynaabd1855 2 ปีที่แล้ว

    Awesome! Thank you so much! Exactly what I was looking for!

  • @flyincarpet1338
    @flyincarpet1338 3 ปีที่แล้ว

    Danke Dir, Ich Wunsche dir eine frohes neues Jahr und gutes rutsche

  • @PraveenKumar-dv8xn
    @PraveenKumar-dv8xn 6 ปีที่แล้ว +2

    Where can I locate the version database in the local system because I am unable to see in the dedicated folder? Thank you so much for the video.

  • @vladmerol
    @vladmerol 6 ปีที่แล้ว

    Thanks for keeping it simple!

  • @yenkoSS
    @yenkoSS 10 หลายเดือนก่อน

    I love him. I followed many other tutorials on his channel. May the Universe bless you!

  • @revanthbalabommala4649
    @revanthbalabommala4649 6 ปีที่แล้ว +1

    You are simply awesome:)
    Can you please add the video for the usage of GIT pull and fetch commands?

  • @Joaquin297545
    @Joaquin297545 3 ปีที่แล้ว +1

    THANK YOU SO MUCH!!!! I am taking a boot camp and half the time I don't know what I'm doing!!!! Thank you for the video I finally understand!!!

  • @diamondfb
    @diamondfb 2 ปีที่แล้ว

    Awesome teaching. Thank you and keep up the good work!

  • @learnerlearner4090
    @learnerlearner4090 2 ปีที่แล้ว

    This is the best video on learning basic commands on Git and how to use Git hub. This is exactly what I was looking for. Thanks so much!

    • @codebasics
      @codebasics  2 ปีที่แล้ว

      glad you liked it

  • @Koujujutsu
    @Koujujutsu 4 ปีที่แล้ว

    Thank you! This video made these basic commands clearer for me.

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      👌😊👍🙏

  • @harishs8778
    @harishs8778 2 ปีที่แล้ว

    Excellent 👌👌👌😊 I was working in IDE from long time . By seeing this video I will use command prompt from now onwards..

  • @rajdave9862
    @rajdave9862 5 ปีที่แล้ว

    Sir when I revert first time then it works fine but when I revert again after one more commit then it's not working and shows me "hints: add " . What should I do ?

  • @user-wy7wl5on7l
    @user-wy7wl5on7l 3 ปีที่แล้ว

    Remarkably straight forward. Also, I appreciated the charming commentary.

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Thank you Alex 👍😊

  • @sudhanandabiswas7415
    @sudhanandabiswas7415 6 ปีที่แล้ว

    many many thanks for this video. it is a great video.

  • @TheBearCoder
    @TheBearCoder 2 ปีที่แล้ว

    Thank you so much for the great video sir! You are a great teacher! You just gained a subscriber :)!!

  • @saswatidas6217
    @saswatidas6217 ปีที่แล้ว

    Thanks for your effort and it's really helped me to push my newly added module to the repo. Which I was not able to push through intellij IDE. Thanks a lot

  • @marydzekh7590
    @marydzekh7590 2 ปีที่แล้ว

    Thank you for this awesome explanation:)

  • @ZayraMolina22
    @ZayraMolina22 6 ปีที่แล้ว

    Awesome! Thank you so much!

  • @utsavporwal4899
    @utsavporwal4899 6 ปีที่แล้ว

    Is it necessary to use pycham only can't we use another editor like jupyter note or any other.

  • @ikemuoma8495
    @ikemuoma8495 2 ปีที่แล้ว

    Brilliant. Thanks 👍

  • @Mydad-et1el
    @Mydad-et1el 4 ปีที่แล้ว

    very good tutorial. Please keep up the good work my friend! Cheers!

  • @Manaswini_Manu57
    @Manaswini_Manu57 4 ปีที่แล้ว

    How it came directly ly in cmd promt like c/code, is it necessary to move to any folder

  • @gems1184
    @gems1184 2 ปีที่แล้ว

    This video was really useful

  • @kothiyaVasahat
    @kothiyaVasahat 4 ปีที่แล้ว

    Hey ! Info and presentation was very clear and crisp. Thanks for making video and publishing....Thanks

  • @anujataywade1360
    @anujataywade1360 2 ปีที่แล้ว

    Helped me a lot

  • @veenawanjari4884
    @veenawanjari4884 4 ปีที่แล้ว

    Thank you for making wonderful video. Just I have one query. If i do not have pycharm, how to create file in repo??

  • @ravish2429
    @ravish2429 6 ปีที่แล้ว

    Excellent Tutorial.....

  • @vasantvarma6406
    @vasantvarma6406 5 ปีที่แล้ว

    Great video 👍
    The diagram which you showed in the end of the video was very helpful

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Glad you found that diagram useful vasant.

  • @babaiiseuphoric
    @babaiiseuphoric 7 ปีที่แล้ว +7

    Man you saved my day...

    • @zinuguadu9526
      @zinuguadu9526 4 ปีที่แล้ว

      Can you help me pls I can not do it my each step my email is melkiekebede4 @gmail.com

  • @coachaashish1418
    @coachaashish1418 6 ปีที่แล้ว

    very nice presentation from scratch

  • @edmund3504
    @edmund3504 4 ปีที่แล้ว

    great tutorial! thank you

  • @ramneetkaur4902
    @ramneetkaur4902 5 ปีที่แล้ว

    Useful Tutorial thanks for sharing this

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      I am glad it was helpful

  • @shrutijain1628
    @shrutijain1628 3 ปีที่แล้ว

    thank you so much i was not able understand any other tutorial but this tutorial helped me a lot .

    • @codebasics
      @codebasics  3 ปีที่แล้ว +1

      Glad it helped!

  • @kavacham222
    @kavacham222 4 ปีที่แล้ว

    Very clean explanation... 👍👌🏼

  • @gopalakrishna8748
    @gopalakrishna8748 6 ปีที่แล้ว

    How git identify the file's what I return in the pycharm?
    Can we specify any path ? In both pycharm and git local.
    Can missing any video before to watch this video?

  • @swallowedinthesea11
    @swallowedinthesea11 5 ปีที่แล้ว

    Nice! Thank you!

  • @wothetzer
    @wothetzer 3 ปีที่แล้ว

    thanks, helps me a lot!

  • @aryamankumar2712
    @aryamankumar2712 2 ปีที่แล้ว

    Awesome!

  • @sriharidhanakshirur9245
    @sriharidhanakshirur9245 4 ปีที่แล้ว

    Thank you!
    It was useful!

  • @min.min0
    @min.min0 2 ปีที่แล้ว

    thanks alot for making this lessons

  • @priyanshupaliwal8548
    @priyanshupaliwal8548 2 ปีที่แล้ว

    great tutorial

  • @jlolivos1
    @jlolivos1 5 ปีที่แล้ว

    Excellent explanation. Congratulations very good work. Thanks for sharing.

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Jorge I am happy you found it to be useful

  • @lathanelapati8582
    @lathanelapati8582 5 ปีที่แล้ว

    Do you have a tutorial on sort and search algorithms

  • @kostasnikoloutsos5172
    @kostasnikoloutsos5172 6 ปีที่แล้ว

    So clone has the same meaning with fork in git bash ?

  • @manishprabhakaran1561
    @manishprabhakaran1561 3 ปีที่แล้ว +1

    When I use the "git difftool HEAD" command, it doesn't open any tab and show me the difference. It just goes to the next line/control.
    Any interest would be appreciated.

  • @tanujsharma5492
    @tanujsharma5492 ปีที่แล้ว +1

    excellent!

  • @tejasdeshpande485
    @tejasdeshpande485 4 ปีที่แล้ว

    Have you initialized the directory on your PC as a git directory using git init. Isn't it necessary to do that ?

  • @rudestewing
    @rudestewing 6 ปีที่แล้ว

    you are just awesome man ..~

  • @vijeandran
    @vijeandran ปีที่แล้ว

    This is what I am looking for... direct explanation... thanks

  • @adilismail3593
    @adilismail3593 5 ปีที่แล้ว +1

    Excellent..
    Plz add configuring git with github in linux. Too

  • @Raj-si5yz
    @Raj-si5yz 4 ปีที่แล้ว

    Hi i have one quary,kindly reply.I have created repo in git and in local I have directory name as jenkins.
    When I went inside jenkins directory I have two files.when I do git init and git clone url then I got remote repo in local.But I went cd repo then inside that repo file is not showing.

  • @user-on9zx1rg2n
    @user-on9zx1rg2n 11 หลายเดือนก่อน

    Best of alll !!!!!!!!11

  • @yogithakakarla1716
    @yogithakakarla1716 3 ปีที่แล้ว

    Well explained

  • @sadiaafrin8041
    @sadiaafrin8041 3 ปีที่แล้ว

    For me, the directory appears as /test(main). Unlike you where your one appears as /test(master). What is the difference?

  • @hoaiho7288
    @hoaiho7288 3 ปีที่แล้ว

    Thank you so much for this meaningful video

    • @codebasics
      @codebasics  3 ปีที่แล้ว +1

      Glad you enjoyed it!

  • @aryaabinash3138
    @aryaabinash3138 6 ปีที่แล้ว

    I am not able to push the code, getting this error. i.e. fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin master.
    Any solutions ? Thank you .

    • @aryaabinash3138
      @aryaabinash3138 6 ปีที่แล้ว

      I tried that also but did not work.
      Anyway all of your videos are really nice and helpful.
      Thanks for preparing such videos. :)

  • @siddharthmodi2740
    @siddharthmodi2740 2 ปีที่แล้ว

    Backgroud music is like i'm watching khana khazana. btw very helpful tutorial. ❤

  • @selenabostick5844
    @selenabostick5844 2 ปีที่แล้ว

    Thanks for the video

    • @codebasics
      @codebasics  2 ปีที่แล้ว

      Glad it was helpful!

  • @kishork6405
    @kishork6405 3 ปีที่แล้ว

    Very nice explanations for each command

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      I am happy this was helpful to you.

  • @naomiibe6348
    @naomiibe6348 2 ปีที่แล้ว

    You sir are a lifesaver 🥺🥺🥺🥺. Thank you *10000

  • @harshraj2993
    @harshraj2993 4 ปีที่แล้ว

    Thanksssss a lot Sir
    I can't explain u helped me a lot
    Lots of Donuts from your nice voice

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      You are most welcome

  • @subhasininatarajan5809
    @subhasininatarajan5809 4 ปีที่แล้ว

    Git is well explained. 👍👍 Great video.

    • @codebasics
      @codebasics  4 ปีที่แล้ว +1

      Subhasini, I am happy this was helpful to you.

  • @gauravramrakhyani7593
    @gauravramrakhyani7593 5 ปีที่แล้ว +1

    Very nice... Thank You.

    • @codebasics
      @codebasics  5 ปีที่แล้ว

      Gaurav, I am glad you liked it

  • @flamboyantperson5936
    @flamboyantperson5936 4 ปีที่แล้ว

    Very very useful.

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Glad it was helpful!

  • @SKtheGEEK
    @SKtheGEEK 6 ปีที่แล้ว

    how to configure git difftool ?

  • @biswajitphotography8955
    @biswajitphotography8955 3 ปีที่แล้ว +1

    In my machine when am running command git push as per described by you it is doing nothing. No error is poping. Just the cursor is going to nextline and blinking for indefinite time. Could you please help?

  • @sukumarc87
    @sukumarc87 4 ปีที่แล้ว

    Very Good explanation!!.Easy understand for beginners ..

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Glad it was helpful!

  • @Sumit-lr1qj
    @Sumit-lr1qj 2 ปีที่แล้ว

    Do I need commit everytime when I change the code ?

  • @alute5532
    @alute5532 2 ปีที่แล้ว

    I already know Tamil nadu so well, I love Dahl
    So much for your viable lesson

  • @sameerbichagatti1337
    @sameerbichagatti1337 3 ปีที่แล้ว +1

    Thank you sir , You made it too easy

    • @codebasics
      @codebasics  3 ปีที่แล้ว +1

      Glad it helped

  • @rohitjadhav7422
    @rohitjadhav7422 2 ปีที่แล้ว

    helpfull,specially digram'

  • @ExperienceLearning9521
    @ExperienceLearning9521 4 ปีที่แล้ว

    thanks bro you really healped

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      I am glad it was helpful

  • @keshavrajacharya1145
    @keshavrajacharya1145 5 ปีที่แล้ว +2

    Hi there
    I got this erro how to solve this
    Permission to a/check.git denied to a.
    fatal: unable to access 'for security reason': The requested URL returned error: 403

  • @sumalathaa678
    @sumalathaa678 4 ปีที่แล้ว

    Thankyou..You saved my time..Keep going:-)

  • @kstevenson3504
    @kstevenson3504 2 ปีที่แล้ว

    super!!!

  • @akshaysingh252
    @akshaysingh252 3 ปีที่แล้ว

    I just Loved samosa reference:)

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      😊👍😋😋

  • @wolfwalker_
    @wolfwalker_ 3 ปีที่แล้ว

    Thank you for the tutorial. I love samosas!

    • @codebasics
      @codebasics  3 ปีที่แล้ว

      Glad you enjoyed it

  • @abdulwarissherzad9914
    @abdulwarissherzad9914 4 ปีที่แล้ว

    Nice i understand what are you keeping to tell us .

  • @mayavik1034
    @mayavik1034 8 ปีที่แล้ว +1

    Hey man,
    When you make the videos, can you pls have the commands you type in pop up on the screen. If you need reference, try looking at 'Excel is fun' by Mike Girvin.
    Also, I think you have the most updated videos on Git so far.
    Thanks for your hard work.

  • @2010aishwary
    @2010aishwary 5 ปีที่แล้ว

    Very nice video

  • @anakalcic5790
    @anakalcic5790 6 ปีที่แล้ว

    when i type in clear it doesnt clear??? why

  • @peopleandstate
    @peopleandstate 6 ปีที่แล้ว

    how to go D in git bash?

  • @masudparbhez458
    @masudparbhez458 4 ปีที่แล้ว

    Thank you so much
    carry on Brother

    • @codebasics
      @codebasics  4 ปีที่แล้ว

      Masud I am glad you liked it