I don't understand git anyway
Well, you learn four commands and hope for the best.
Title text: If that doesn't fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of 'It's really pretty simple, just think of branches as...' and eventually you'll learn the commands that will fix everything.
-
git pull
-
git add *
-
git commit -m "Some stuff"
-
git push
And occasionally when you mess up
-
git reflog
-
git reset HEAD@{n} (where n is where you wanna roll back to)
And occasionally if you mess up so hard you give up
- git reset --hard origin/main
And there you go. You are now a master at using git. Try not to mess up.
JetBrains IDEs, I don't remember the last time I used the CLI.
you have forgotten the face of your father
Linus Torvalds?
Good luck doing anything remotely complicated/useful in git with an IDE. You get a small fraction of what git can do with a tool that allows absolutely 0 scripting and automation.
IDE git is less powerful than CLI git. However I'm pretty confident that most people use more features of git by using a GUI.
CLI feature discoverability is pretty awful, you have to go out of your way and type git help
to learn new commands.
With a GUI though, all the buttons are there, you just have to click a new button that you've been seeing for a while and the GUI will guide you how to use it.
It sounds like you don't speak from experience. I have all the automation I need. It supports git hooks on top of IDE-only features like code checking.
If I have to fire up my CLI for some mass history rewriting (like changing an author for every commit), or when the repo breaks - so be it. But by not using the CLI I save my fingers and sanity, because committing a bunch of files is several click away with little to no room for error.
I can rebase, patch, drop, rename, merge, revert, cherry pick, and solve conflicts with a click of a button rather than remembering all the commands and whatnot.
Learning git will give you the tools to work on projects on any git platform. It doesn't matter if I'm in Forgejo, Gitlab, or Github.
And it will find you the most answers online in case you have a git related question.
CLI
Though I will admit it took me a while to get there
git add -i is where the true magic begins
GitHub desktop Stan here. Been a software engineer for over a decade and still love my UI tools. GitHub desktop is good enough 99% of the time.
Any windows screenshots?
(Fork is also an awful name in terms of searching for it btw)
You have my attention
Do they have a Linux client though?
sadly no and i don't think it works through wine
but technically they have a mac client which is basically an expensive version of linux
I'd love to like the desktop app, but I just don't understand what it's doing under the hood when I click a button. When I click an icon, is it syncing my changes up as it pulls down, it just pulling down? I guess point and click is more scary to me when prod is on the line.
GitKraken!
Another gui client, such as Git Fork. Much easier to fine tune what I commit, and see commit history, with a gui client. Certain things are better to do in the command line, but I really don't get why so many people hate gui clients
Why am I not allowed to login to 2 GitHub remote at the same time? Answer me Microsoft
Sublime Merge, for most items in the UI it tells you the git command it will use
using LazyGit in tmux has changed my workflow.
instead of:
git add . git commit -m 'foo' fg
i just:
g ac foo q
and it displays everything neatly
Edit: apparently greater/less than symbols dont render properly on lemmy. so imagine a few (CR)
's and (C-b)
's sprinkled in
I feel those captions are the wrong way round
I'd use Desktop if it worked, unfortunately recently it decided that I don't have read/write access to a repo I'm working on. Works fine in git CLI so idk what the problem there is.
Vim Fugitive
GitLens?
GitHub Desktop is literally "Baby's first git GUI".
Why are they even on the same bus?
Personally, GitExtensions... github desktop is a pile of turds but git CLI introduces unnecessary stress precisely when I don't want it.
Yup. I don't care if my workflow is suboptimally slow, I can easily see exactly I'm doing with git extensions.
CLI because linux
For something with such an horrible interface, it's amazing how often people that create a new interface for it manage to make it worse.
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics