DEV Community

loading...
Cover image for Does not remember git commands a bad thing?

Does not remember git commands a bad thing?

Bassim RAJI
Technology addict,Coder, I believe in turning ideas into reality ,don’t follow me because I don’t even know where I’m going.
・1 min read

I've been using git extension in Vscode for a long time so just clicking (to commit, push,...) I do only use commands if it's something complicated that I look for and follow, but now I found myself kind of don't remember the basic commands of git and it's kind of disturbing me a little bit and I don't know if there are people in my case? or is it for you a bad thing or it doesn't matter?

Discussion (17)

Collapse
jessekphillips profile image
Jesse Phillips

Forgetting how isn't a problem. Not doing something because you don't want to look it up is.

Being aware something is possible is most important.

But you said basic commands. If you have a way, then you don't need to force yourself into a different way. However, I do believe the tools you choose for convenience will influence your choice on other things.

Using VS for Git makes it hard to do line by line commits, rebaseing and other useful things.

Collapse
bassimsmile profile image
Bassim RAJI Author

Yeah that happens when I had to do something like pretty complexe in it I do first look at a Vs git solution than if I struggle or I don't find than I go to commands

Collapse
reinoute profile image
Reinout

I've used it for 5 years and I still can't remember them (I Google "undo last commit" every time).

Git solves a difficult technical problem, but the UX is pretty terrible.

In my opinion that's also the reason why it never took off outside the domain of software development.

Collapse
jouo profile image
Jashua

You can always use Google so it doesn't matter, but perhaps at least memorize the basic commands, it will save you some time whenever you are forced to use the CLI :)

Collapse
perpetual_education profile image
perpetual . education

We prefer to use Tower. Git commands are yucky - and we have more confidence when we can see what is happening instead of working with a black box.

Collapse
bassimsmile profile image
Bassim RAJI Author

Never knew about that, thank you 👌

Collapse
eruizdechavez profile image
Erick Ruiz de Chavez

First of all, I've been using Tower for 2 years now and I just love it. Awesome Git client for both, simple commits and big advanced interactive rebases. I still use the CLI from time to time, but most of the times I prefer to switch to Tower.

It all ends up in preference. Most (not all) git users just follow their recipes because that is how they learned it. IMO, as far as you understand what each operation is doing, you are just fine using whatever is better for you. If someone critiques you because you are not using the CLI, ignore them, it is just another flavor of Tabs vs Spaces or Vim vs Emacs.

Thread Thread
bassimsmile profile image
Bassim RAJI Author

Well said bro

Collapse
juanfrank77 profile image
Juan F Gonzalez

It's very natural to not remember something that it's not used constantly. I personally use VSCode for everything except for Git, I prefer to do that all from the command line because somethings Code messes up something and then I have to go in and figure out what happened.

I actually very recently posted about some Git commands and several tricks I've picked up lately. Shameless plug.

Collapse
joelbonetr profile image
JoelBonetR

Nope, you can simply use a management GUI such GitKraken or a plugin for your IDE and forget about command line.

It's ok if you want to learn the commands but als it's ok if you don't, as long as you remember the concepts (pull, push, merge, rebase, branch and so).

I'm with gitkraken after trying VScode plugins, native PHP Storm git manager, smartgit and few more because the automerge of gitkraken is like a GOD and makes you much more efficient at work. It also includes gitlab, github (and others) issues tracker integration and gboards, so basically lets you work on your project only using IDE and Gitkraken without having to keep various tabs pinned on your browser and switch from one to another.

Collapse
nikhilroy2 profile image
Nikhil Chandra Roy

if you stuck anywhere just search on google. We are human not like a robot so we are a great animal who is always forgetting without practice.

Collapse
svemaraju profile image
Srikanth

Not really, I google it all the time. As long as you're aware of what a command is going to do before running it, I think it's fine.

Collapse
pj profile image
Paul Johnson

~10 years of working with git, pretty much only using the command line and at least once a month I have to google a command to do some random thing. It's not you it's just git.

Collapse
bassimsmile profile image
Bassim RAJI Author

I liked this 'It's not you, it's just git' I will quote it lol

Collapse
chriscampbell96 profile image
Chris Campbell

I'm the same. Although, I just bookmark this and check it out when I need to remember something - education.github.com/git-cheat-she... 🍎

Collapse
bassimsmile profile image
Bassim RAJI Author

OH pretty good cheat, I'm stealing it ;)

Collapse
dephraiim profile image
Ephraim Atta-Duncan

No one remembers everything.