How to use Git with Visual Studio 2022 (Step by step)

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • How to use Git with Visual Studio.
    In this video, I'm going to show you how to use Git with Visual Studio 2022.
    Buy me a coffee: www.buymeacoffee.com/itsmepat...
    Subscribe: czcams.com/users/TechWithPat...
    TIMESTAMPS :
    00:00 Intro
    00:51 Create a GIT repository
    02:06 Create a branch
    03:00 Save changes
    05:07 Combine multiple commits into one.
    06:24 Modify the last commit
    07:35 Push to a remote repository
    08:18 Fetch, pull from the remote repository
    09:15 Sync
    10:07 Merge
    11:00 Check-pick
    11:54 Revert
    12:36 Reset
    13:22 Resolve merge conflicts
    14:50 Outro
    Where you can find me:
    💻 Github: github.com/techwithpat
    🌐 Website: www.techwithpat.com
    🕴️ LinkedIn: / patrick-tshibanda-4310...
    #gitwithvisualstudio #visualstudio #git

Komentáře • 88

  • @TechWithPat
    @TechWithPat  Před 2 lety +20

    TIMESTAMPS :
    00:00 Intro
    00:51 Create a GIT repository
    02:06 Create a branch
    03:00 Save changes
    05:07 Combine multiple commits into one.
    06:24 Modify the last commit
    07:35 Push to a remote repository
    08:18 Fetch, pull from the remote repository
    09:15 Sync
    10:07 Merge
    11:00 Check-pick
    11:54 Revert
    12:36 Reset
    13:22 Resolve merge conflicts
    14:50 Outro

  • @mickelodiansurname9578
    @mickelodiansurname9578 Před 7 měsíci +3

    why have you not got half a million subscribers? Clear, concise, on point, easy to understand, no tangents... 5 stars.

    • @dhruvsingh9
      @dhruvsingh9 Před 5 měsíci

      Indeed. He is pretty good. Dude please share your linkedin profile. If you don't have please create it

  • @thaophuong8100
    @thaophuong8100 Před rokem +5

    I wish I have found your video sooner after spending 3 hours looking for ways to use git with VS 2022. Thank you a lot for your clear clarification!

  • @pogo4524
    @pogo4524 Před 2 lety +27

    You are really a talented teacher, I liked that you used simple terms, examples, and timestamps for each step, easy to follow what you are doing.
    Please don't stop creating in these formats, you do really contribute to the programming community with these videos.
    Subbed and liked 👍

  • @user-wj5qd5fy1n
    @user-wj5qd5fy1n Před rokem +2

    I am very happy, that I found this tutorial. I am not new to git, but for first time I need to use it with Visual Studio. In 15 minutes you explain everything, which somebody needs to work in commercial project. Just magnificent! Great explanation and time saving! Thanks!

  • @ut4321
    @ut4321 Před 2 lety

    EXCELLENT intro video to using git with Visual Studio! Thank you SO much for publishing this! Keep up the good work, sir.

  • @philchadwick9470
    @philchadwick9470 Před 7 měsíci

    At last someone who knows how to explain things! Now I can use GIT. Thank you.

  • @longbeachboy57
    @longbeachboy57 Před 3 měsíci +1

    The best explanation of Git so far... Thanks!

  • @yossfish
    @yossfish Před rokem +1

    Very helpful/clean explanation - thank you so much!

  • @lazarnikolovski7571
    @lazarnikolovski7571 Před 9 měsíci

    Thank you Sir!! I can't explain how much I appreciate tutorials like this. Short and straight to the point. Much appreciation to you!

  • @quicktastic
    @quicktastic Před 2 lety

    Wow. Covered a lot of ground in a short period of time and did it well. Thank you!

  • @nolascop3547
    @nolascop3547 Před rokem +2

    amazing video.
    You explained everything really well in details, with a calm clear voice.
    thank you so much my man

  • @lovol2
    @lovol2 Před rokem

    Probably the best and most clear and quick explanation of common activities, thank you.

  • @oortcloud210
    @oortcloud210 Před 8 měsíci

    What a great tutorial - clear and concise, with absolutely no waffle. I just wanted a quick refresher on using GIT in VS and this is perfect. Thank you!

  • @Microdisnee
    @Microdisnee Před rokem +2

    This is hands down one of the most succinct and well laid out tutorials I have seen on YT. Like others have stated the explanations are clear and to the point with no extra fill. I would love to see you do a real world branching strategy/workflow using VS. Thank you for the contribution.

  • @rawanmalaeb6916
    @rawanmalaeb6916 Před 2 lety +1

    Extremely helpful, thank you!

  • @TheCyberhacker01
    @TheCyberhacker01 Před rokem +1

    Very easy to understand. Thanks for this demo

  • @codie12
    @codie12 Před 9 měsíci

    Pure gold! This is the first time I've used Git with Visual Studio for C# projects, and you got me into it really quickly. If I had to do it in Visual Studio Code, I would have to install extensions and usually get used to the command line in order to interact with Git.

  • @tbuc76
    @tbuc76 Před rokem

    Best video in the subject in YT. Well done!

  • @kalbasa195
    @kalbasa195 Před rokem +1

    Спасибо дядя, всё понятно и произношение, даже переводить мне не пришлось

  • @kellybmackenzie
    @kellybmackenzie Před rokem

    Thank you so much, this helped me a lot!! You're an awesome teacher!!

  • @MrPatrichon
    @MrPatrichon Před 3 měsíci

    This tutorial did it for me! Thanks a lot!

  • @Zabideen97
    @Zabideen97 Před rokem

    I been looking for video like this. This is the best video. Thanks

  • @praveenkumar-pt1xg
    @praveenkumar-pt1xg Před 2 lety +1

    Great Tutorial . Thanks for helping me

  • @ChaosRider726
    @ChaosRider726 Před rokem

    really good! short and to the point!

  • @ossamaettahery3286
    @ossamaettahery3286 Před 11 měsíci

    Clean, nice and simple.
    Even a kid that has never touched code in his life might fully understand this video.
    Thanks a lot man, this was extremly helpful! Keep it up with good work! 💪

  • @chris_lynch
    @chris_lynch Před 2 lety

    Best git video I have seen, very clearly explained

  • @guillermodanielmazzarigiov1768

    Thank you very much, I'm moving from vs code to visual studio and this was extremely useful for me

  • @saadablat2998
    @saadablat2998 Před rokem

    You are a great teacher! Thank you ❤

  • @JD-lx3cx
    @JD-lx3cx Před 2 lety +1

    Nice. Thank you for sharing!

  • @mohiuddinansari9356
    @mohiuddinansari9356 Před 5 měsíci

    To the point and well explained.. Thanks you !!

  • @Jake-lu6pt
    @Jake-lu6pt Před 3 měsíci

    Thanks for sharing Pat!! Very useful tutorial

  • @leblancthierry8781
    @leblancthierry8781 Před 9 měsíci

    thank you for this course, the best I've seen to explain git and visual studio. You are a very good teacher. Thierry from Belgium.

  • @ShatabdaRoy
    @ShatabdaRoy Před 10 měsíci

    Very in-depth tut, I like it.

  • @junglemike4
    @junglemike4 Před 4 měsíci

    Thanks. That was very informative.

  • @yatendradeshmukh8110
    @yatendradeshmukh8110 Před 2 lety +1

    Excellent...you covered All

  • @P0K0
    @P0K0 Před 2 lety

    This is helpful , keep it up 🔥

  • @ovilalta
    @ovilalta Před rokem

    Mil gracias!!!! Excelente explicación

  • @hanswelder
    @hanswelder Před rokem

    Great explanatory stuff!

  • @jayamalaraut273
    @jayamalaraut273 Před 3 měsíci

    Very helpful, Thank you!

  • @marektichy3926
    @marektichy3926 Před rokem

    Great guide to get started...thanks!

  • @TheGuideToIslam
    @TheGuideToIslam Před rokem

    Clearly explained to the point.

  • @sumedha7
    @sumedha7 Před rokem

    Great video.. clearly explains most wanted

  • @thegooddoctor6719
    @thegooddoctor6719 Před 9 měsíci

    Very informative video - thank you !!!!!!!!!

  • @TarunMishra3180
    @TarunMishra3180 Před rokem

    Amazing Video! Keep it up!!

  • @kavipritha9669
    @kavipritha9669 Před 5 měsíci

    Thank u for helping me figure out things with git vs22.❤

  • @liz.1328
    @liz.1328 Před 10 měsíci

    Great tutorial!

  • @JamesGrieco
    @JamesGrieco Před 2 lety

    Thank you for the tutorial.

  • @dowhiletrue6687
    @dowhiletrue6687 Před rokem

    Outstanding training video!

  • @samirfighter1213
    @samirfighter1213 Před rokem

    Thnx for this tutorial

  • @antonmariadas7747
    @antonmariadas7747 Před 2 lety

    Top. Merci Pat.

  • @mozhdehdashti1839
    @mozhdehdashti1839 Před 8 měsíci

    simple practical explanation using VS , thanks

  • @shivakumar7578
    @shivakumar7578 Před 2 lety

    very informative video. Thank you

  • @komando005
    @komando005 Před 10 měsíci

    Bro you are a true legend ❤

  • @wolfgang999
    @wolfgang999 Před rokem

    nice , thank you very much man :D

  • @jjque322
    @jjque322 Před 2 lety

    Excellent!!!!

  • @PapaBigDoinks
    @PapaBigDoinks Před 9 měsíci

    You're a fucking legend. This is the most comprehensive and straight forward tutorial I have seen on using Git in Visual Studio. It really helped me! Thank you :)

  • @kvelez
    @kvelez Před měsícem

    Excellent.

  • @valijoneshniyazov
    @valijoneshniyazov Před 2 lety +1

    Really liked this video
    or
    after so many tutorials at this point I understand git
    Just kidding. Neither too deep nor very high level. this one is perfect!

  • @firasnizam
    @firasnizam Před 2 lety

    thanks for great video

  • @crazyvideogames101
    @crazyvideogames101 Před 2 lety

    Thanks very helpful video

  • @KingKrubba
    @KingKrubba Před 3 měsíci

    fantastic video

  • @harikrishnank3945
    @harikrishnank3945 Před rokem

    TNice tutorialS IS WHAT I NEEDED BRO, thank you for taking the ti and doing tNice tutorials for most of that are starting with tNice tutorials beautiful tNice tutorialng called

  • @CarrigansGuitarClub
    @CarrigansGuitarClub Před 2 lety

    Excellent

  • @TixonLucojanov
    @TixonLucojanov Před rokem

    Thanks! 👍from Russia!

  • @Szopakleks
    @Szopakleks Před 2 lety

    will be helpfull

  • @Kariim_Atef
    @Kariim_Atef Před 5 měsíci

    ty

  • @vigneshwarilango7866
    @vigneshwarilango7866 Před 2 lety

    Good one

  • @kidoo1567
    @kidoo1567 Před rokem

    Super

  • @iCore7Gaming
    @iCore7Gaming Před rokem

    Why do i not have the Git menu in VS 2022??

  • @primavera919
    @primavera919 Před 2 lety

    Hello, thanks for sharing.
    I have no option to merge to master on visual studio 2022, nothing appear when I right-click, please help

  • @jamesscott6864
    @jamesscott6864 Před 2 lety

    Hi, how can i undo a revert ?

  • @ThorStore
    @ThorStore Před rokem

    How do I add an existing solution to the git repository??

  • @jamesdaniels6134
    @jamesdaniels6134 Před 2 lety

    When I created/connected to a git repo everything worked (I could do the initial push), but it wouldn't let me add any of my files. I had to into the folder on Windows Explorer, then open my Command Prompt and enter "git add ." (etc) manually. Can anyone tell me what I did wrong or how to fix?

  • @mohanaPriya-wr1lf
    @mohanaPriya-wr1lf Před rokem

    Clicking on create repository in VS2022 doesn't show up the dialogue box😢

  • @embossCoder
    @embossCoder Před rokem

    im still have questions. when i modified the branch, before committed it i must make sure my changing code has worked right? i dont know u guys, but i usually run it first and see the result of my changes. the problem is i always get error message. would u guys tell me how to do it, or am i doing it wrong, and i didnt see you run your code after changes. please, help me. thanks

  • @bryankelly3002
    @bryankelly3002 Před rokem

    At time 2:20, or about, the video starts with creating a new branch. But I don't yet have anything loaded into Git.
    And, why is the screen a black background? None of my versions of VS have had black backgrounds. It is quite difficult to view.

  • @wonkanese
    @wonkanese Před rokem

    my git doesnt detect changes to my code

  • @primavera919
    @primavera919 Před 2 lety

    The right click on the items in "Manage Branches" does not work, it doesn't show the option to merge branches.

  • @primavera919
    @primavera919 Před 2 lety

    I am still confused about what is "stage"? How does that translates to Git commands?

  • @Usammityduzntafraidofanythin

    Do you have to 'commit all' when committing changes? Is there a way to commit only one or select number of files?

    • @TechWithPat
      @TechWithPat  Před 2 lety +1

      No, you don't have to. In the Git changes window, you can stage a file with the + (plus) button, to commit all staged files, you click on the "Commit staged" button.

  • @Kariim_Atef
    @Kariim_Atef Před 5 měsíci

    gl

  • @devidsuu
    @devidsuu Před rokem

    I think i just merged local branch into dev, lets see what happens

  • @Kariim_Atef
    @Kariim_Atef Před 5 měsíci

    ku