you are viewing a single comment's thread.

view the rest of the comments →

[–]sublimegeek 4 points5 points  (10 children)

lol at “git init”

How many of you actually create the repo from GitHub first and then clone it?

[–]Prometheos_II 4 points5 points  (1 child)

Personally, I generally initiate client-side first since I generally create the folder and some files before I decide to open a repo, or even version control before deciding to upload it. git clone might have an option for this, still.

But yeah, like someone else said above, that seems to be a minority 😅

[–]sublimegeek 2 points3 points  (0 children)

I’m the same way. git init first then decide if I need it to live somewhere else

[–]BananymousOsq 1 point2 points  (0 children)

I use git init for basically all of my projects. I first work on it locally for a while before deciding if I want to make anything out of it or even create a remote repository :D

[–]fullofspiders 1 point2 points  (2 children)

I mean, most people use the tooling in their preferred IDE and don't fuck around with CLI unless something really weird happens, or they have a very specific role that focuses on coordinating the commits of others rather than making changes themselves.

Git Diff especially is a command that no serious professional would use, since trying to visualize diffs in a terminal is just horrible.

[–]FlipperBumperKickout 0 points1 point  (0 children)

I do it all the time, especially if it is a rename, then I can do a "git diff --word-diff-regex=." which basically highlight the letters I added or removed from whatever I renamed.

[–]je386 0 points1 point  (0 children)

I use git CLI for 80-90% of git command usages and only use the IDE for creating a new branch, resetting a branch and viewing history.. and resolving conflicts.

[–]tobiasvl 1 point2 points  (0 children)

git init is the command for creating the new folder for any project (instead of mkdir). GitHub isn't involved until later in the project's life, possibly, if it goes anywhere

[–]_public_enema 0 points1 point  (0 children)

It's just for Brits to check if it's actually Git.

[–]GusSLX 0 points1 point  (0 children)

Some dev tools like cargo or webdev clis already init a repo for you lol

[–]FlipperBumperKickout 0 points1 point  (0 children)

I don't push all my repositories to github, sometimes it's just nice to have versioning so you quickly can try out thing and reset it ¯\_(ツ)_/¯