How to use Git in command line

I can't understand this. I litterally just want to upload some files, but they make it impossible.
E
13eck44d ago
As I said before:
Be sure to include the steps you took, what's not working, what should be happening, and any error messages you get
"I don't understand" isn't a question. it's a statement. No one can refute it
D
Deacon44d ago
I don't know what isn't working, if I don't know what's supposed to do what. So much for 10 minutes of research
E
13eck44d ago
Step 1: Install Git Step 2: type git -v and see if it prints the currently installed version number Step 3: Watch this 23m video Step 4: use it
D
Deacon44d ago
2.39.2
E
13eck44d ago
Great, now create a repo in github and follow the instructions. You literally copy/paste the code into your terminal. Then you're done
D
Deacon44d ago
I tried copy pasting, and that did nothing. I tried that earlier They said that "innit" was supposed to make a .git folder, but that didn't work Any ideas?
E
ErickO44d ago
init, "innit" is slang how do you know it didn't work? it is a dotfile so it could be hidden to you
D
Deacon43d ago
Wait, it added a file with the name of my project in my files, will that stay uploaded to git once I add a file? "fatal:adding files failed" I fucking hate this
ἔρως43d ago
can you actually show the error? and what you have done?
D
Deacon43d ago
Here it is
No description
D
Deacon43d ago
And yes I'm using ChromeOS
ἔρως43d ago
where did you run the git init?
D
Deacon43d ago
/home/deaconburch/.git/
ἔρως43d ago
yeah, you blew it
D
Deacon43d ago
What do you mean?
ἔρως43d ago
its not your fault, but you did it wrong
ἔρως43d ago
what do you want to send to git?
D
Deacon43d ago
Like... 200 somethin mb of files this is why I love google drive, they make it so simple
ἔρως43d ago
git isnt google drive
D
Deacon43d ago
I know I wish
ἔρως43d ago
both do different things but anyway which folder do you want to send to git?
D
Deacon43d ago
/HTMLOS Well, it's just called HTMLOS
ἔρως43d ago
then get inside that folder, with cd and then you can do git init there
D
Deacon43d ago
ARE YOU FUCKING KIDDING ME IT'S THAT SIMPLE?
ἔρως43d ago
basically, yes then you add all the files and commit everything
D
Deacon43d ago
IT TOOK THEM HOURS TO TELL ME NOTHING, THEN YOU TELL ME THE WHOLE PROCCESS IN 1 SECOND
ἔρως43d ago
its a lot easier if you use vscode
D
Deacon43d ago
I do use VSCode?
ἔρως43d ago
then open the folder in vscode
D
Deacon43d ago
Hold on it's starting
ἔρως43d ago
alright
D
Deacon43d ago
Hold on let me reboot Crostini
ἔρως43d ago
take your time this whole process is a few clicks in vscode
D
Deacon43d ago
okay Here
ἔρως43d ago
show mr me show me whats in vscode
D
Deacon43d ago
Sorry, I can't take screenshots of stuff from crostini in chromeos, don't ask me why this stuff is weird
ἔρως43d ago
thats file
D
Deacon43d ago
"thats file"
ἔρως43d ago
fine
D
Deacon43d ago
oh ok Actually, could we just use git? at this point, I've gotten so far into git I want to finish in git
ἔρως43d ago
sure
D
Deacon43d ago
thanks sorry
ἔρως43d ago
you should be able to git add everything
D
Deacon43d ago
it says "fatal: pathspec 'everything' did not match any files"
ἔρως43d ago
lol
D
Deacon43d ago
what?
ἔρως43d ago
git add --all
D
Deacon43d ago
man, I'm dumb
ἔρως43d ago
the "everything" isnt part of the command
D
Deacon43d ago
oh now how do I commit the stuff?
ἔρως43d ago
you should be able to do git commit -m 'a message here' where 'a message here' is what will show as a the commit message in the repo
D
Deacon43d ago
commit message?
ἔρως43d ago
since this is the first commit, something like 'first commit' is fine yes, so you can describe what the commit is all about
D
Deacon43d ago
I THINK I DID SOMETHING
ἔρως43d ago
nice
D
Deacon43d ago
How do I see the stuff in the github link now?
ἔρως43d ago
now, it should only be in your local repo, so, you have to git push
D
Deacon43d ago
remote: Support for password authentication was removed on August 13, 2021. crap
ἔρως43d ago
you need to make a personal token
D
Deacon43d ago
Personal token? D:
ἔρως43d ago
yeah, you can create one in github, in your profile
D
Deacon43d ago
What's a token?
ἔρως43d ago
alternatively, you can create an ssh private certificate that just lets you send everything, but its rather annoying it's a personal token that you use as your password
D
Deacon43d ago
How do I do that? I know nothing about github
D
Deacon43d ago
Now it's telling me to go to settings that don't exist. I hate you Github. I'm going to break my damn keyboard over my knee
ἔρως43d ago
this should exist ive used it before, quite a few times
D
Deacon43d ago
It's not showing up on the website
C
ChimichangaCop43d ago
GitHub usually has the steps written out for setting something up, no?
ἔρως43d ago
are you sure you are in your profile settings, and not the repo settings? i sent the link
D
Deacon43d ago
Profile settings, I'm following the tutorial, but there is no "developer settngs" on my left side
ἔρως43d ago
its just "settings"
D
Deacon43d ago
I'm in settings, and I see nothing about tokens What do I do?
ἔρως43d ago
🤔
D
Deacon43d ago
what? did I do something wrong AGAIN?
ἔρως43d ago
no
D
Deacon43d ago
oh This should NOT be the industry standard this is ridiculous
C
ChimichangaCop43d ago
No description
D
Deacon43d ago
I'm not using a phone
ἔρως43d ago
you know you can upload the files directly to your repo, right?
D
Deacon43d ago
what?
ἔρως43d ago
if thats all you wanna do, and dont intend to edit the files for now, you can just add the files better yet, you can press the "." key and you have vscode online, for your repo
ἔρως43d ago
that explains how you can add the files to github
D
Deacon43d ago
YES I DID ITR
ἔρως43d ago
this way, you can actually go the easy route of cloning and then you just use your username and personal token to access the repo later on, if you want now, all the files are in the repo?
D
Deacon43d ago
Almost all I'm uploading the last few Then I can show you guys my project!
ἔρως43d ago
lets see how it goes btw, its not just "industry standard": git management (or almost any source control) is/should be a requirement to code in a company
D
Deacon43d ago
After a few minutes it should be ready!
ἔρως43d ago
nice! you're uploading the files directly, instead of the directory, right? oh, and you're NOT uploading the node_modules folder, right?
D
Deacon43d ago
?
E
ErickO43d ago
you say these things before the act not after 😔
D
Deacon43d ago
I think I didn't mess it up XD
ἔρως43d ago
you dont need to upload the node_modules folder you can start over, its fine
D
Deacon43d ago
I don't know what that is so I think I'm fine
ἔρως43d ago
its the big ass folder that you get when you use npm, yarn, pnpm or npx to install node packages to your repo
D
Deacon43d ago
Yeah I'm fine
ἔρως43d ago
if you didnt use any of that, its fine
D
Deacon43d ago
Ok
ἔρως43d ago
after uploading the files, you should be able to work on them with the built-in vscode editor that should be enough for now
D
Deacon43d ago
I'm about to test it! Uh-oh New idea😥
ἔρως43d ago
oh boy ideas at 4am are a dangerous thing
D
Deacon43d ago
It didn't all make it in there
ἔρως43d ago
upload what didnt made it
D
Deacon43d ago
Also, where I am it's 11:34 P.M
ἔρως43d ago
here's +5 hours ahead
D
Deacon43d ago
Where are you?
ἔρως43d ago
portugal
D
Deacon43d ago
Oh, I'm from indiana
ἔρως43d ago
oh, you're from usa
D
Deacon43d ago
yes I wish I weren't
ἔρως43d ago
there are worse countries so, did it work?
D
Deacon43d ago
I have to shorten down an audio file it's 80mb too big
ἔρως43d ago
wtf? how? how long is it? thats almost 3 hours of music in mp3, or 2 flac songs
D
Deacon43d ago
it's 30 minutes of mp3
ἔρως43d ago
yeah, want my advice? DO NOT uploads music to github
D
Deacon43d ago
I have to
ἔρως43d ago
you can get your git dmca'd and it goes bye bye
D
Deacon43d ago
You know what, good night, sorry I'm tired dmca'd?
ἔρως43d ago
yes
D
Deacon43d ago
what's that? what's dmca'd?
ἔρως43d ago
Digital Millennium Copyright Act
The Digital Millennium Copyright Act (DMCA) is a 1998 United States copyright law that implements two 1996 treaties of the World Intellectual Property Organization (WIPO). It criminalizes production and dissemination of technology, devices, or services intended to circumvent measures that control access to copyrighted works (commonly known as di...
D
Deacon43d ago
It's just classical music bethoven
ἔρως43d ago
that could be fine, but im not an expert in this
D
Deacon43d ago
oh, ok. I'm not using anything new, nothing copywrited, I was careful about that Good night
E
ErickO43d ago
yeah uh, not to be the bearer of bad news but classical music is sorta copyrighted
D
Deacon43d ago
I hate this country
E
ErickO43d ago
not the piece itself but the interpretation is so whoever interprets the piece can copyright their version
D
Deacon43d ago
I hate this country so much
E
ErickO43d ago
nuanced :shrug: also maybe you can shrink the file size? if you can do it to images surely there's something for music files too
ἔρως43d ago
also, if you intend to host the files, so people access it over a website, you might want to check out the latest bs from netlify
D
Deacon43d ago
I'm not hosting the files, just sharing them
ἔρως43d ago
a 3mb file was accessed to hell and back, and the guy racked up ~$105k in bandwidth costs
D
Deacon43d ago
what? I don't want money well, debt
ἔρως43d ago
yeah, but it was where he was hosting the files since you arent hosting, its fine
D
Deacon43d ago
ok
ἔρως43d ago
i would still avoid music
D
Deacon43d ago
I need the music it's sample music like how windows used to have sample music?
ἔρως43d ago
yes, but you dont need 80mb of it a quick tune is fine
D
Deacon43d ago
I'm going to shorten it down good night!
ἔρως43d ago
goodnight
M
majkl43d ago
man git
ἔρως43d ago
that works if your distro ships the git manuals too but he's using a chromebook, so, i doubt it has man
D
Deacon42d ago
GitHub
GitHub - decoder181/HTMLOS: HTMLOS is a mini operating system ran i...
HTMLOS is a mini operating system ran in the browser. To use, open "HTMLOS.html" - decoder181/HTMLOS
ἔρως42d ago
nice!
B
bluestreak71142d ago
I am following because this is on my list of things to learn.
ἔρως42d ago
its easier to start the other way around make the repo put the files there clone locally and done
Want results from more Discord servers?
Add your server
More Posts
Installing a library with JSHello, I'm trying to build a demo bar code scanner. I found this library: https://serratus.github.ioNested route problemI have a nested route system, One is in App.js and one in RoomGuard component The app.js has router Max width with fr in grid.Hi, I am trying to limit breakout in the grid to a amx width but would like to retain ints atributesopen full stackNot sure how useful this will be but it looks useful for understanding fullstack. Trigger warning: rchange default keyboard layout without changing the default language in windows 11windows 11 has plenty of flaws, and one of them is how badly it accommodates people who speak multipHaving problem in wrapping custom hooks with React componentThis is my code:- const App = () => { return ( <Router> <Routes> <RoFind new positions of elementsPlease watch the following video, in question 5 when I connect the answers together they are followiPosition Sticky stops working, after I set a sibling element to Position Absolute```html <header> <div class="logo"></div> <div class="header__links"></div> <nav class="nav"><question regarding "key" in jsIk this might seem a lil dumb but can someone explain to me why we use "key" in js or react as wellEven/odd row styling with CSS Grid and subgrid, is this a good idea?For work, I needed some table styling and decided to use CSS Grid. Because I need even/odd row stylihow to prevent last item of flex to grow```css section {display:flex; flex-wrap:wrap; gap:1rem} div {background-color:red; width:0; min-widtResponsive IdeasHello there! Thank you in advance for your help. I've been working on a Weather API that I need to fIssue in starting sassFirst off, i have exisiting .css file doing some mini project of mine then i encountered limitation Button coloring with a imaged backgroundIt's proving quite difficult to find the right color to make this not look out of place/tacky.. I tHelp me, help you, by helping me, so I don't ask so many questions(yep?)Here's the site: https://anglian-online.netlify.app/ Here's the code: https://github.com/callum-lainFor some reason the post value isn't being shown even tho in var_dump it shows that it's there.You can see that the `$_POST["ajaxMonth"]` has a string value of "2" in the first image however whenResponsive Carousel (TailWind + JS)Hello, I'm trying to build a responsive carousel. Ideally, what I'd like to happen is that the amouWebpage CSS to make it be better on varying display size (responsive)tell me where to start how to fix this , where to study this ,on varying display somethings get stacIs my site layout saveable?Two years ago I made a custom layout for my website. At a small scale it worked perfectly (only one simulating support for missing web apis?Is there a way to simulate *the lack of support* for web apis in Firefox or Chrome? Like for example