[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1708277174518359.png (4 KB, 347x145)
4 KB
4 KB PNG
ITT: humbling tech
Tech that makes you feel stupid.
>>
>>103212206
just use it from your IDE. you're not impressing anyone by memorizing retarded CLI commands
>>
>git fetch && git rebase origin/master
>git commit --amend && git push -f
idk what the struggle with Git people have. just slap your name on a dev branch and nobody else will tend to touch it and you can force-push to it as much as you like, keeping it clean and simple to merge to master branch. then your merge requests will be a simple forwards. it's really that simple.
>>
>Tech that makes you feel stupid.
Javascript doesn't make me feel dumb, but I feel dumber having used it.
>>
File: Untitled.png (5 KB, 275x183)
5 KB
5 KB PNG
>>
>>103212238
most based take
>>
>>103212238
This is absolutely true. I don't understand this retarded elitism using CLI. VSC does a great job at git.
>>
>>103212238
>>103212562
>memorizing
Good morning sirs!
>>
File: file.png (32 KB, 368x82)
32 KB
32 KB PNG
>>103212206
>marks your stupid question as duplicate
>>
>>103212206
Try writing a really basic version of Git in C, you'll learn a lot.
>>
File: img_5e72a64e32003.png (85 KB, 1054x657)
85 KB
85 KB PNG
>>103212206
>>103212238
>>
>>103212206
you want to make a change to code?
git checkout -b descriptive-branch-name-of-intention-of-change-to-code


change code then
git status

to see what files have been changed. happy with your changes thus far?
git add file1 file2 file3
git commit

and enter a message describing your changes. if you are on Linux, the editor that is pulled up is based on your
$EDITOR
environment variable. I use Neovim btw

do another
git status

to see that no files are marked as changed now, because you just commited your changes to the descriptive-branch-name-of-intention-of-change-to-code branch.
make as many more changes as you want and reperform the above steps to keep commiting changes.

when you are done and want to merge your changes into master:
git checkout master
git merge description-branch-name-of-intention-of-change-to-code

this will pull up your editor again. why? because you are effectively commiting the changes from the description-branch-name-of-intention-of-change-to-code branch into the master branch. write whatever you want, although I typically just leave it as the defaults.

if Git complains about merge conflicts, then search your codebase for
>>>>
to find the conflicts and correct them, then rerun
git merge
>>
>>103213335
these are like babbys first git commands
try looking at other than most basic examples of git usage
>>
>>103213335
what's the usecase of these retarded posts that don't touch upon even 1% of git and yet somehow are still worse than just reading the manual?
>>
>>103212238
>entire files in one commit
>"files changed: main.c utils.h utils.c ... (10more)"
>unintended rebase and force push (we can't let the user see error messages and a terminal!!!!11)
IDEtards are insufferable cunts worthy of impalement on oversized black cocks (you will like it)
>>
>>103213367
>>103213368
if your Git experience is not this easy then your workflow is retarded
btw you should be merging master into your development branches regularly and resolving conflicts as they come up
t. have worked on enterprise medical software with large teams (I've even dealt with submodules, ooooooo spookyyyyyyyy)
>>
>>103213390
ok nocoder, I can tell that you had a special "git guy" who did everything in your place
>>
after doing 100 three way merges I no longer experience fear
>>
File: a5oyjqcfm47a1.jpg (48 KB, 1080x607)
48 KB
48 KB JPG
>>103212238
absolutely based. btfo all CLI tinkertards
>>
File: 1723314981611055.png (226 KB, 900x900)
226 KB
226 KB PNG
>>103213397
the spoon represents the simplicity of my Git workflow
your gIT workflow is more like a set of plastic chopsticks
>>
>>103213454
I use a fork and a knife because I don't eat slop.
>>
File: 1723483229659790.jpg (66 KB, 669x669)
66 KB
66 KB JPG
>>103213471
>>
>>103212816
>duplicate
Which would be fine if the original question was ever updated. Unfortunately, it often doesn't happen and the original question has an accepted answer that doesn't work anymore.
>>
>>103213471
fucking obliterated
anon in shambles
>>
>>103212238
i truly dont get people who do it through CLI by default, and ive met some. it seems like pure autism.
he's there, typing commands (on his super-loud mechanical keyboard, naturally), reading through the prompt of file changes, to do something that literally takes 2 (two) casual mouse clicks in any normal git client.
>>
>>103213661
I know it's hard to accept that some people are simply more intelligent than you.
>>
>squash all my dev changes
>clone team branch
>git cherry-pick -X theirs my_shit
>push and open pr
>just werks
>>
>>103213390
Nobody uses master as an actual branch though
>>
I've never used Git on a team before. Are you supposed to tell people "hey dude, I made a change, pull it"?
>>
>>103213937
....
if they need to have that specific change right away to do their job, then yes. otherwise, no.
>>
>>103213937
No. I just force push everytime and when some front monkey cries about it I tell them to open a PR to my branch. Bakcned chads win again.
>>
>>103212238
filtered
>>
>>103213726
right, the reason why youre out there clickety-clacking
>git status
>git commit
>git oh-no-i-mistyped-the-branch-name
is because im not smart enough to type those
>>
>>103213977
yes, that's what you wrote, that you're not intelligent enough to write specific things that are easy to understand and comprehend
>>
>>103213982
but why would you type git status, when you can just not type anything at all, and have the information presented to you regardless?
>>
>>103213996
probably because I don't need the information until I asked for it, I know, it's a very hard concept to comprehend for someone of your intelligence
>>
>>103214022
it is, every day's a struggle. and i apologize for implying you have autism, youre clearly normal.
>>
File: rlc.png (106 KB, 1584x834)
106 KB
106 KB PNG
>>103212206
analog electronics. digital is kinda easy, but analog is black magic to me.
>>
>>103213910
I use actual-slave-owner
>>
File: Frank Urbert's Hoon.png (2.47 MB, 1000x1382)
2.47 MB
2.47 MB PNG
>>
I hate GUIs on top of git. they often put their own twist on the workflow, and I never really know what they're doing.
>>
>>103214160
that's the point, they're made for retards who don't want to know anything
>>
>>103214160
magit is the best porcelain because it exposes the core plumbing really well.
alternatively lazygit is more high level, for all that entails.
if you're willing to experiment with an entirely different vcs frontend then jujutsu is genuinely pretty good. authors don't know how to sell it very well but it's got undo/redo for all operations, a much more sane working model, and conflicts as a first class citizen. the simplified model makes editing history so much easier that it's basically the default way you work on your commits instead of being dark magic you dread having to use.
>>
>>103214293
more sane would be not to commit until you know you got it right
>if only there was a way to make sure you got it right
>>
>>103212816
I have never seen this happen. People keep making jokes about it but the people there are usually friendly
>>
>>103214340
why bother getting your history right as you're writing the code when you can just go back and review it later as you're waiting for PR comments?
history doesn't matter until it's merged, so there's no point in working on it until that point. not every event needs to make its way into the history books.
>>
>>103214340
just commit garbage first and clean it up before pushing (interactive rebase)
>>
>>103214510
>>103214534
>just build the house first then check if foundation holds correctly
how brown are you?
>>
>>103214540
code is the foundation here, who gives a shit if the guy who built my house writes down what he did as a stream of consciousness vs a condensed and linear historical accounting?
>>
>>103214645
>who gives a shit about history
and kike once again outs himself
>>
>>103213661
>he's there, typing commands (on his super-loud mechanical keyboard, naturally), reading through the prompt of file changes, to do something that literally takes 2 (two) casual mouse clicks in any normal git client
You know how tech illiterate people sound to you when they act like building a PC or using Linux is some dark magic? That's probably what you sound like to him. He's checking file changes before committing them, something that's completely reasonable, and you're turning it into a bad thing because you don't understand what's going on.
>>
>>103214819
Fr. GUI users are the ones committing binary blobs and build artifacts to the repo by "click clicking" and then later wondering why their repo is 2gb and takes minutes to clone
>>
>>103214819
>they act like building a PC
we had a thread about retarded redditor breaking a CPU by not checking if he oriented it correctly before using his entire onion force to shove it in wrong, causing it to short
>>
>>103213413
>only 3
NGMI
https://github.com/torvalds/linux/commit/9b25d604182169a08b206306b312d2df26b5f502
>>
>>103213335
>basic bitch git commands
You are aware gig does a whole lot more, right?
>neovim
Reddit faggot. Use emacs.
>>
File: LMAOing @ ur life.png (173 KB, 450x472)
173 KB
173 KB PNG
>>103212238
I am yet to see an IDE that has an equivalent of git bisect
>>
>>103215323
>something actually useful
I think that's bad for job security or something...
>>
File: git.png (297 KB, 1594x1092)
297 KB
297 KB PNG
>>103212238
>>
>>103215384
only midwits keep spamming this midwit meme by the way
>>
>>103215399
your point? smart people enjoy the convenience of both CLI and GUI
>>
>>103215442
smart people aren't midwits who can't decide on which one is superior when we all know that CLI is objectively superior
>>
>>103215467
>who can't decide on which one is superior
both are superior at some tasks
>>
>>103215480
yes, CLI is superior for intelligent people and GUI is superior when my coworker is 70IQ drooling retarded nigger like (You)
>>
>>103215399
That's not a midwit meme.
>>
>>103215600
ok midwit
>>
>>103212238
if u guys arent baiting u are literally too retarded to work in tech. theres like 4 cli commands to use git effectively 90% of the time
>>
>>103213471
>>103213626
samefag/monkey
>>
>>103215720
stay mad, tranny, keep eating slop with your spoon, while I keep eating real food with a fork and a knife
>>
>>103215498
I use and reap benefits of both, you may reply to this post with your uninformed opinion
>>
File: UI.jpg (31 KB, 800x533)
31 KB
31 KB JPG
The real tragedy is that we don't have a 3D Git UI like the filesystem UI in Jurassic Park.
>>
>>103212206
if your pick is git then you are stupid I'm sorry to say
>>
>>103216124
>a file is a point
>traveling down a directory is 1 dimension
>a list of files within a directory is another dimension
>git provides history of each file, a 3rd dimension
This might actually work
>>
>>103212206
>CS major
>Have to take a dumb general ed
>Group project
>Obnoxious prick keeps hitting on the girls
>Get up, pretend to trip and fall, hit douches power button
>He freaks out
>Ask what's the matter? You remembered to commit, right
>Get to teach the group about git
Was I based?
>>
>>103217883
very fucking based, anon
>>
>>103212238
What is the best VS Code extension for GUI Git?
>>
>>103212238
fpbp

literally never had to use CLI git even once
>>
>control + F
>no regex
>>
>be devops chad
>only have 1 branch in every infra repo
>only need to know git commit and push
feels good
>>
>>103219462
I feel like the more you know regex the less applicable you realize it is. Once I started testing regexes for ReDOS I realized that "correct" regexes were often vulnerable, and it was better to use them minimaly and write custom parsing/validation/cleanup.
>>
>>103212206
I didn't grok git until I used GitExtensions visual git. Now I can use it on the command line if I have to, but I prefer the tools in Rider.
>>
>>103213390
>merging master into your development branches
That's backward. Anyway, rebase and fast forward whenever you can.
>>
>>103214852
I keep vidya clients in git so I can easily switch to old versions to play on pirate servers. My DAoC repo is 4.7 GB.
>>
>>103219694
hello fellow devops chad
I must admit I use two branches
one for dev/staging/internal-shit and one for prod
Have a good day
>>
>>103212206
https://git-scm.com/docs/user-manual
Honestly, it's super well laid out. Very concise and clear.
>>
>>103221547
I do all my development in develop and merge into master whenever I deploy to live servers.
>>
git and ssh are the gatekeepers, largely because git is massive and ssh is system dependent.

>>103219462
this shouldnt stump anyone except if its lisp
>>
>>103221526
it is not backward. it works perfectly well
>>
>>103213335
>>103213390
dunning kruger moment
>>
File: some.webm (2.31 MB, 1916x1040)
2.31 MB
2.31 MB WEBM
>>103215323
>>
File: file.png (26 KB, 369x277)
26 KB
26 KB PNG
>>103212206
>>
>>103224916
>still sitting in terminal, just with cringe TUI that has no purpose because noone who hates CLI will use this
concession accepted
>>
>>103219462
That regex which I assume parses email addresses doesn't support .ac.uk among other country codes
>>
This is like calling the dewey decimal system tech
>>
>>103213335
Somehow you managed to write the stupidest post itt
>>
>>103212562
until submodule merge conflict. Then it just throws its hand in the air.
>>
>>103221526
you realize that merging master into your branch doesn't affect master in any way, right? You just merge master into feature, resolve any conflicts on feature and then merge feature back to master.
>>
there's like 6 commands you need for git. how the fuck do people struggle with it
>>
File: rwlikr23.png (75 KB, 1432x965)
75 KB
75 KB PNG
file explorer decided to restart while I was selecting my reaction image, nice double whammy of unbridled rage. It isn't even that git is complex, it just has redundant names that do different things that were require extremely specific parameters or it's a cascade of piss offs.
>>
>>103221693
>>103229777
>t. London tube map enjoyers
>>
File: 1701015037487240.png (365 KB, 646x595)
365 KB
365 KB PNG
>>103225399
>>
>>103230405
What the fuck is this shit?
t. rebase-only
>>
>>103230405
WTF?
You never rebase or something?
>>
>>103230240
don't use the word redundant if you don't know what it means
>>
>>103233151
>>forget remote
understanding concepts isn't even his main problem, possibly lacks object permanence desu
>>
>>103213390
>merging master into your development branches
why????? just rebase
>>
File: 1731530300796334.png (451 KB, 460x506)
451 KB
451 KB PNG
>>103212323
it was made by demons
>>
>>103233174
If you get conflicts, you have to resolve those conflicts in all pending commits of the rebase
It also destroys commit timestamps.
>>
>>103230405
There is literally nothing wrong with that.
>but le scary graph
Filtered by --first-parent. Sad.
>>
>>103233359
Also, in a merge, of you fucked up the resolution, you can just reset your branch to just before the merge.
In a rebase, your fucked resolution is there forever.
>>
>>103233419
in rebase, all I have to do is to revert rebased commits, retard
>>
>>103233422
Uh no, that will revert your commits, not just the resolution.
>>
>>103233435
if I didn't push to remote, I can memory hole the commits completely, it's as if they were never there, what seems to be the problem?
>>
>>103233444
>what's the problem with losing my work
Some of us don't tinkertranny all day, redoing the same work over and over again.
>>
>>103233493
well, that's why I rebase correctly the first time
>>
File: 1731275772226263.jpg (41 KB, 540x576)
41 KB
41 KB JPG
>>103215323
Your ci pipeline should take care of that.
>>
File: magit.png (2 KB, 134x33)
2 KB
2 KB PNG
>>103212206
vscode probably has some git slop. i dont use neovim but maybe they have something similar?
>>
File: kektastrophe.png (175 KB, 400x350)
175 KB
175 KB PNG
>>103233419
>filtered by git reflog
oh my sides
>>
>>103236698
>doing all this stupid shit just to avoid keeping the history of merges that were done as a part of development due to the natural progression of the project
it's almost like you care more about min-maxing your fashionability than presenting a clear log of how the code was actually built.
>>
>>103238465
It's almost like commits matter, merges don't, retard.
By the way, what's written in your commits? They are at least 50 words minimum and detailed, right?
You aren't just some sort of pajeet who writes
>fix bug
>wtf
>oh no
>fix bug
right?
>>
>>103230405
at my last job we had guys who did this instead of rebasing
hated those fucking retards
>>
>>103238589
>Add button for toggling dark mode
>Move side effects to outer scope
>Evaluate untrusted user input to sense emotional state prior to DB insertion
>>
>>103238465
>presenting a clear log of how the code was actually built
and how does rebasing prevent that?
>>
>>103212206
It's really amazing you say this, considering Klossy also got filtered by git

how about that



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.