Lazygit - The Best Way To Use Git On The Terminal & Neovim

  Рет қаралды 70,992

Josean Martinez

Josean Martinez

Күн бұрын

Пікірлер: 137
@ykhatat
@ykhatat 4 ай бұрын
Just a tip: Press Ctrl-Z to put nvim in background and then later type 'fg' to bring it back. No need to close and reopen it everytime. Nice video btw.
@joseanmartinez
@joseanmartinez 4 ай бұрын
I didn’t know about that, thanks!
@GavinBogie
@GavinBogie 4 ай бұрын
Woah. Thanks for the tip!
@maguilecutty
@maguilecutty 4 ай бұрын
Or just get the plug-in for neovim and press leader gg …
@MrBratkenSolov
@MrBratkenSolov 4 ай бұрын
use tmux to have stuff in different panes
@RichardAPalaciosG
@RichardAPalaciosG 3 ай бұрын
I started the vim world thinking it was a mistake to use Ctrl + Z, it was hard to stop using it and use "u" but now it makes sense.
@olearydj
@olearydj 4 ай бұрын
Just here to say your production values set the bar for this kind of content. Outstanding.
@joseanmartinez
@joseanmartinez 4 ай бұрын
Thank you!!
@khanra17
@khanra17 Ай бұрын
Huh 🧐
@tamtamresearchs.r.o.5562
@tamtamresearchs.r.o.5562 4 ай бұрын
I am using lazygit since 2021. But it was worth to watch your video - well scripted, very explanatory, explains how to find your way, succinct presentation. Well done.
@JefCollier
@JefCollier 4 ай бұрын
I'm in the same boat. I watched this--like many of Josean's vids--to see if I was just stuck using LG in "my way." I think one of the best parts of this was how he showed how to use the help screen to find commands rather than just telling you to hit "a" then "C" then "P."
@MangaTengu
@MangaTengu 4 ай бұрын
I love how you take the time to show how useful `?` is through example 👍
@henrikleion9861
@henrikleion9861 15 күн бұрын
Lazygit is awesome. Today I finally finished and rebased an old feature branch which was dozens of commits behind. Sorted out the rebase merge conflicts, squashed, reordered and reworded 30 commits into 4. A job that would have taken me hours on CLI was completed in 30 minutes. If you’re in the Rebase camp of git, this tool is a must.
@jonathanrodriquez3775
@jonathanrodriquez3775 4 ай бұрын
Lazygit is sweet! Makes committing specific files so easy.
@xunliu4548
@xunliu4548 3 ай бұрын
you are an ideal coworker that I'd work with for my entire life and I won't quit my job in that case.
@sambrown7691
@sambrown7691 2 ай бұрын
Great video! But also it brings me great comfort to know that other people typo the word 'svelte' the same way that I always do.
@maguilecutty
@maguilecutty 4 ай бұрын
Other great things I use everyday are keybinding “o” for that will open a browser and setup a pull request for me and the stashes for moving between branches without having to stage changes :) I watched this vid cause I thought I’d learn something I didn’t use this tool for and it certainly hit the mark!
@bagfleet
@bagfleet 4 ай бұрын
Great vid! Will definitely give lazygit a try again.
@joseanmartinez
@joseanmartinez 4 ай бұрын
Awesome! Thank you 🙏🏽
@jjaimealeman
@jjaimealeman 4 ай бұрын
My setup includes 'git flow', all within neovim of course 😎👍 Great video. Love your content amigo, Bien hecho!! Salutos
@joseanmartinez
@joseanmartinez 4 ай бұрын
Thank you!
@GandalfTheBrown117
@GandalfTheBrown117 4 ай бұрын
Very cool! Thanks for showing all these features and the integration into Neovim!
@joseanmartinez
@joseanmartinez 4 ай бұрын
🚀
@RazoBeckett.
@RazoBeckett. 4 ай бұрын
I really love your video when I see notification my brains is like quality content is ready to watch.
@joseanmartinez
@joseanmartinez 4 ай бұрын
Awesome! Thank you!
@NazarMalyy
@NazarMalyy 4 ай бұрын
Nice video man! I never used Lazygit to solve the merge conflicts. Thanks for explanation!
@joseanmartinez
@joseanmartinez 4 ай бұрын
Happy to hear that!
@myname7815
@myname7815 4 ай бұрын
Apart from amazing content, Looking solid man 💪
@jizhang2407
@jizhang2407 4 ай бұрын
Thanks for sharing another amazing video. One tip: install delta to show git diff side-by-side with colors highlighting various changes.
@slim_mike
@slim_mike 3 ай бұрын
this is just what I was missing on my setup. Thank you very much!
@wulymammoth
@wulymammoth 4 ай бұрын
This works for almost any process, because prior to terminal emulators, this was one of a few ways to obtain your command prompt back and run another process while the original is suspended. If the process needs to keep running, you can bg it and then type “jobs” to list them
@RichardAPalaciosG
@RichardAPalaciosG 3 ай бұрын
Nice!! Thanks for the tutorial Josean.
@JimSedric
@JimSedric 23 күн бұрын
This is amazing, imma start using it from now on
@TobiasFrei
@TobiasFrei 4 ай бұрын
🙏 a lot for telling. And while I always enjoy reading another chapter in Pro Git, lazygit *does* speed up my workflow from this day 🤓
@joseanmartinez
@joseanmartinez 4 ай бұрын
Awesome!
@tvntvn-b
@tvntvn-b 4 ай бұрын
Great video! One of the other great features is the pull request. Having the branch you want to merge to checked out, navigate on the branch you want to merge and pressing ”o” will open the github PR page with some of the fields prefilled. I dont think i’ve made PRs any other way after learning about it.
@joseanmartinez
@joseanmartinez 4 ай бұрын
That’s awesome! Thanks for pointing this out too!
@channinghsu46
@channinghsu46 4 ай бұрын
Lazygit is just amazing!!!Thanks for the video!!
@joseanmartinez
@joseanmartinez 4 ай бұрын
Awesome! Thanks for the feedback 🙏🏽
@rendivs
@rendivs 4 ай бұрын
Cool, this makes me so motivated to contribute to an open source project :)
@benarcher372
@benarcher372 4 ай бұрын
As always, an excellent walk-through. Thanks.
@joseanmartinez
@joseanmartinez 4 ай бұрын
Happy to hear that, thank you!
@yeyintaung9837
@yeyintaung9837 4 ай бұрын
Couldn't help to subscribe, great job man❤
@joseanmartinez
@joseanmartinez 4 ай бұрын
Thank you!
@ИльяПащенко-л8х
@ИльяПащенко-л8х 4 ай бұрын
Thanks for the video! Super useful thing, using it every day.
@joseanmartinez
@joseanmartinez 4 ай бұрын
Awesome!
@alecclews
@alecclews 4 ай бұрын
Noice -- best intro to Lazygit I've seen
@joseanmartinez
@joseanmartinez 4 ай бұрын
Awesome, thank you for the feedback 🙏🏽
@JIeFu-ee4xk
@JIeFu-ee4xk 4 ай бұрын
Thanks ~ Wiat for so long for lazygit!!!
@clouddeveloper9558
@clouddeveloper9558 4 ай бұрын
Thank you for the video. You can close lazygit by just pressing q.
@Temet79
@Temet79 4 ай бұрын
Hello, You read my mind, I wanted to learn how Git works, and I already like this tool ;) Your Neovim videos have been the main inspiration for making my Neovim config, big thanks. PS : Too bad I can't find kits as yours for the Corne Keyboard in France... As a European, I really feel we'll never leave the middle age in technology in EU :(
@joseanmartinez
@joseanmartinez 4 ай бұрын
Awesome, thank you for your feedback! As a very small shop, I’m only shipping to the US for now, but hope to ship to other countries in the future, sorry about that.
@Temet79
@Temet79 4 ай бұрын
@@joseanmartinez : Please don't be sorry about not shipping abroad. I was just referring it's hard to find tech related material in Europe on the web. Keep up on your videos, they are awesome :)
@joseanmartinez
@joseanmartinez 4 ай бұрын
@@Temet79 Definitely understand. Thanks so much for your feedback!
@gand0rfTRZ
@gand0rfTRZ 4 ай бұрын
Installing once I get home!!
@joseanmartinez
@joseanmartinez 4 ай бұрын
🚀🚀
@serhgoch
@serhgoch 4 ай бұрын
Great video. You can also use delta with lazygit for better diffs
@Care2WorldBuild
@Care2WorldBuild 4 ай бұрын
There goes all my git scripts and shortcuts! Now I wish I had made my scripting this good. Thank you for showing this. By the way, I keep hoping for ":x" when you use ":w :q" 😂
@joseanmartinez
@joseanmartinez 4 ай бұрын
I definitely should use “:x” more often, I got so used to “:w” and “:q”! Happy to hear you found the video helpful!
@Liltsco
@Liltsco 3 ай бұрын
God, that typing speed!
@kim-s1y7v
@kim-s1y7v 4 ай бұрын
I found this video really informative and enjoyable. I'm really curious about how to debug in Neovim. Do you have any plans to make a video on this topic?
@chalmagean
@chalmagean 4 ай бұрын
you can navigate through the panels with H/L as well (useful for vim users)
@joseanmartinez
@joseanmartinez 4 ай бұрын
Didn’t know about that, thank you for the tip!
@zirs6660
@zirs6660 4 ай бұрын
Great video! you are the best tutorial video I ever saw. Could you share your raycast configure?
@Oktomvri
@Oktomvri 4 ай бұрын
Heya, Josean. Your tutorials are so awesome and what's gotten me into neovim to begin with. You mentioned you you can scroll the unstaged changes panel with your mouse. Is there anything specific in your setup to enable this? I haven't been able to accomplish this in both lazygit and neovim (on MacOS). Thanks in advance. Keep up the great video quality! :)
@joseanmartinez
@joseanmartinez 4 ай бұрын
Hey! Thanks! Not sure why it might not be working for you. It has been working for me. Might have to do with mouse functionality overall in your terminal setup. I’m currently using wezterm and tmux. I have the mouse enabled within my tmux setup. Not sure if this is the solution to your issue though.
@TomKearns-t9p
@TomKearns-t9p Ай бұрын
Thank you very much!
@xbeast7585
@xbeast7585 2 ай бұрын
Great Video
@openshores4288
@openshores4288 4 ай бұрын
Im currently happy with using commandline and DiffView in nvim but gotta try this one haha
@neniugrava
@neniugrava 3 ай бұрын
If you like using the CLI for git you may enjoy the Fugitive vim plugin. The ":Git" command opens a buffer with the familiar "git status" output, but you can navigate around and use = to show the diff of a file, S to stage it, cc to create a new commit (opens a new buffer with the familiar contents), and dv opens a vertical diff of the file. You get commands like :Gvdiffsplit to open a vertical diff of the file (and you can diff with any branch or commit or tag via ":Gvdiffsplit some-branch:%", super useful). Oh, and the :Git command basically works exactly like git on the shell, so you can use all your familiar commands without having to learn anything new (but you can use nice vim things like % for current file, ctrl+r to get a file stored in a register, etc.). You can use all of your git aliases, too. I have a "git la" alias to output a nice graph log of all branches (fugitive just puts the output into a new split buffer). There are a million more features I don't know or use, but the fact that :Git just wraps the CLI tool really helped me pick up and learn gradually whenever I hit one of those "there has to be a better way" moments. I tried picking up lazygit months ago, but having to learn new things (even as intuitive and well-designed as it is) kept me from transitioning to it. I will definitely be trying lazygit again, though. It streamlines a lot of things that are cumbersome.
@LeungWong
@LeungWong 4 ай бұрын
Using lazygit plugin for neovim has some issue with escape. For instance when you open up lazygit with "lg" and then select a file, and press . Normally you need to press to go out from it, but you are unable to and the only way to get out from lg would be to exit with "q" or +c
@andriesvanwyk3226
@andriesvanwyk3226 4 ай бұрын
Thanks for the great video, Josean! How's the video platform coming along?
@joseanmartinez
@joseanmartinez 4 ай бұрын
Thanks!! Currently working on the platform, will probably take some time to finish, but excited to continue building it out!
@andriesvanwyk3226
@andriesvanwyk3226 3 ай бұрын
@@joseanmartinez Awesome man! Thanks for all the quality content you put out. Learning a lot and enjoying Neovim so much
@joseanmartinez
@joseanmartinez 3 ай бұрын
@@andriesvanwyk3226 Thank you!
@JohnStrandt
@JohnStrandt 25 күн бұрын
pretty cool... thanks
@theherk
@theherk 4 ай бұрын
I ❤ Lazygit!
@viatrixhd
@viatrixhd 4 ай бұрын
Hi Josean, you got me into configuring my terminal and nvim for the first almost a year ago, thanks for that, my whole workflow and productivity skyrocketed. I also use lazygit since the beginning. Unfortunately a feature which is really missing for me is editing / resolving merge conflicts directly using nvim from lazy git. The workflow i mean would be: 1. Open lazy inside nvim 2. Select any of the files 3. Press e (for edit) 4. And open the file within the current nvim instance (Not opening a separate nvim instance. I tried multiple solutions i found online but none of them seemed to work, do you have some tips on how to get this working or somebody else from the community. I would love to get this to work
@tednaaa
@tednaaa 4 ай бұрын
thank you for the guide! I have small question, is there something like nvim cmp or treesitter inside lazygit?
@ManuX
@ManuX 4 ай бұрын
This is great! Just one question. Could Delta work for the DIFFs?
@danko95bgd
@danko95bgd 4 ай бұрын
Yes, there is an option in config to use delta and have the side by side preview for example if you want
@ManuX
@ManuX 4 ай бұрын
@@danko95bgd thank you
@tomaszgora4353
@tomaszgora4353 4 ай бұрын
For a long time I've been using lazygit in a float window of toggleterm. Had some nasty keymaps conflicts (especially escape) that I had to do some bending backwards to get around ;) Does this plugin integration behave better with regards to that?
@joseanmartinez
@joseanmartinez 4 ай бұрын
From my personal experience using the plugin, I haven’t had any issues with conflicts. But I think it might depend on your workflow and setup. I recommend you try it out and see how it goes!
@PhilSherry
@PhilSherry 4 ай бұрын
You should do similar videos for lazynpm and lazydocker.
@joseanmartinez
@joseanmartinez 4 ай бұрын
Sounds good, will definitely keep it in mind. Thanks!
@gustavoferreira5622
@gustavoferreira5622 4 ай бұрын
You can make more videos using nvim like the penultimate video.
@ypathan420
@ypathan420 4 ай бұрын
commenting for the algorithm❤
@joseanmartinez
@joseanmartinez 4 ай бұрын
Thank you! Really appreciate the support
@justronny20
@justronny20 4 ай бұрын
I tried to install the lazygit nvim plugin but it just wouldn't install at all. It's not even showing up on the Lazy dashboard of plugins. I guess I'm probably stuck with the GUI version. Otherwise excellent video as always. I guess the only tutorial left is integrating note-taking with neovim 😊.
@yuxiang4218
@yuxiang4218 4 ай бұрын
great video
@joseanmartinez
@joseanmartinez 4 ай бұрын
Thanks!
@hakimakbary65
@hakimakbary65 4 ай бұрын
Hi, Just two questions 1. Why your hands are so much wide open on your keyboard? 2. What is the tool that auto-suggests the rest of the command?
@joseanmartinez
@joseanmartinez 4 ай бұрын
@@hakimakbary65 Hi! I use a corne split keyboard and the tool is zsh-autosuggestions.
@cariyaputta
@cariyaputta 4 ай бұрын
2:52 Shift-j, and S-h to scrool the sidebar.
@joseanmartinez
@joseanmartinez 4 ай бұрын
Nice! Thank you for the tip!
@chovon
@chovon 4 ай бұрын
awesome hello can you tell me how to show the type key on screen
@zatochiSiberian
@zatochiSiberian 4 ай бұрын
Thanks
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 4 ай бұрын
Interesting. I did it a bit different in RDS.
@FrancescoM-
@FrancescoM- 4 ай бұрын
powerlevel10k have been discontinued same with yabai, can you make a video about oh my posh and an yabai alternative? like aerospace or similar?
@NimaqAlizadeh
@NimaqAlizadeh 4 ай бұрын
Nice 🎉
@joseanmartinez
@joseanmartinez 4 ай бұрын
🚀
@themohmand
@themohmand 4 ай бұрын
How do you work with bare repos and manage worktrees using lazygit? This is one use case that I can’t figure out.
@wild_shaman
@wild_shaman 9 күн бұрын
LazyGit integration into nvim has a problem - no option to navigate to selected file. It is possible to open in external editor(o), or run a neovim editor inside lazygit(e), but no way to open in your running neovim session. SO I literally have to open lazygit, find something I want to change, quit lazygit, open fzflua git changes and navigate to file from there. This is not how I want it to be.
@guitardude1019
@guitardude1019 5 күн бұрын
You don’t need to exit neovim to open up lazygit. If you have lazyneovim installed the default to open lazy git is leader g G
@mattskov2917
@mattskov2917 4 ай бұрын
What is your nvim theme
@StingSting844
@StingSting844 4 ай бұрын
So many keys to remember 😅
@raytry69
@raytry69 2 ай бұрын
Close lazygit with 'q'. :)
@codinglife391
@codinglife391 4 ай бұрын
Tell me about your font name. Thanks
@mateusztocha9260
@mateusztocha9260 4 ай бұрын
sadly I get used to magit in emcas so much and now I am unable to switch. So I stick to Neogit
@GR3YS0RG4N1CS
@GR3YS0RG4N1CS 4 ай бұрын
Heads up, you don't need to do "Ctrl-c" to leave lazygit, "q" also quits out
@joseanmartinez
@joseanmartinez 4 ай бұрын
Good to know, I thought “q” only worked with lazygit within Neovim, thanks!
@bustopher5837
@bustopher5837 3 ай бұрын
this is cool but i wouldnt use this to commit or push code, only to view things
@ktolis
@ktolis 3 ай бұрын
it looks like the pycharm git interface
@vanvothe4817
@vanvothe4817 4 ай бұрын
Lazygit is good and the best way I don't think so
@geomorillo
@geomorillo 3 ай бұрын
lazygit is also great without neovim
@sadeepa_bandara
@sadeepa_bandara 4 ай бұрын
Hi Josean, Thank you for your videos. They helped us a lot. I have one issue with my NVIM telescope. When I try to work with my projects, when I try NVIM with some projects, the telescope works well and shows all the files, but when I try different projects, the telescope doesn't work. So, I moved my files from a not-working folder to a working folder, and it works well. I think the issue is with folders. What can I do to solve this issue? Thank you ❤ Update: And also there's a could not parse linter output error in my code. Can you give me some help please.
@micaelviana
@micaelviana 4 ай бұрын
I saw a friend of mine have a similar problem, in his case it was because .gitignore was misconfigured
@radenikolic9125
@radenikolic9125 Ай бұрын
cemu sluzi ovo
@ch4o7ic8
@ch4o7ic8 4 ай бұрын
I cannot quiet express just how much this one peg not hanging properly in your pegboard bothers me...😶
@rul1175
@rul1175 2 ай бұрын
nice but not a tutorial to start.
@bjarne9700
@bjarne9700 4 ай бұрын
Great showcase but what purpose does this software serve? It looks so cluttered and unnecessarily complex. Usually TUIs exist to make complex commands easy to use but this one does the opposite.
@madmaxdev
@madmaxdev 4 ай бұрын
Use it first.
@bjarne9700
@bjarne9700 4 ай бұрын
@@madmaxdev your comment provides no value. No explanation no nothing. Can you name something that’s easier to do with this software that with just the git command?
@madmaxdev
@madmaxdev 4 ай бұрын
@@bjarne9700 Use it first and you'll find out.
@jorar91
@jorar91 4 ай бұрын
Fugitive provides a much better experience in vim/neovim
@mallukittens177
@mallukittens177 4 ай бұрын
Tbh I felt like it's way easier learning git than doing all these circus.
@joseanmartinez
@joseanmartinez 4 ай бұрын
You should learn git before using lazygit
@mallukittens177
@mallukittens177 4 ай бұрын
@@joseanmartinez I already use Git and i don't find any need for lazy Git for me. As thr name says it's for lazy people haha
@subbunittala2012
@subbunittala2012 4 ай бұрын
@@mallukittens177 you are clown ....if you do not knwo the power of lazygit !!!
How I Use Wezterm & Zsh For An Amazing Terminal Setup On My Mac
16:00
Josean Martinez
Рет қаралды 100 М.
Role-Based Authentication in React (Complete Tutorial)
26:31
Cosden Solutions
Рет қаралды 34 М.
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24
Lazy days…
00:24
Anwar Jibawi
Рет қаралды 6 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 138 МЛН
My Neovim configuration in 2024
20:48
Andrew Courter
Рет қаралды 15 М.
I'm never using Git the same way again
11:19
typecraft
Рет қаралды 95 М.
I Love Neovim But I WONT Use It | Prime Reacts
23:22
ThePrimeTime
Рет қаралды 128 М.
7 Amazing CLI Tools You Need To Try
18:10
Josean Martinez
Рет қаралды 394 М.
I Have 2 Weeks to File a Dispute for this Scam TV
25:35
Linus Tech Tips
Рет қаралды 3,5 МЛН
My Neovim & Tmux Terminal Dev Workflow As A Principal Engineer
9:22
DevOps Toolbox
Рет қаралды 54 М.
Git Worktrees and Neovim: A Match Made in Coding Heaven
9:53
DevOps Toolbox
Рет қаралды 32 М.
Vim Motions & Tricks I Wish I Learned Sooner
9:25
Henry Misc
Рет қаралды 45 М.
Ghostty is Probably The Best Terminal Emulator I've Ever Used
12:26
DevOps Toolbox
Рет қаралды 59 М.
Never* use git pull
4:02
Philomatics
Рет қаралды 554 М.
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24