How to Add Git to an Existing Project

preview_player
Показать описание
A simple workflow for using Git in a project.

----

----

----

----
Follow Me Online Here:

#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

Fantastic, the best video I've found on adding git to an existing project

dgrins
Автор

Thank you Ben, keep up the great work!

eliotistube
Автор

One of the best Git videos out there!!!❤️

colarey
Автор

I think -u is a shorthand version of --set-upstream or something like that: basically saves the default remote and branch so that you dont have to type "origin master" every time (and instead only write git push)

frfou
Автор

Even though I learn nothing this time, just wanna say that you are by far the most dedicated, rigorous developer on YouTube. Thx for all. 👍

deannno
Автор

If anyone is getting any errors while fetching and pushing this helped me:
take a local backup first in case something bad happens
git pull --rebase origin main

aytunch
Автор

Another amazing video, incase if you don't know you can use "add ." To add every change on root.

prakashpawar
Автор

So u have three files inside main folder :

main style.css, app.js)

On your termminal :

cd main
git init
git add .
git commit -m "building main structure"
git push

If u want to clone someone's code to main folder :

blazi_
Автор

One place in your code I see -
app.get("/", ( _, res ) => { ...
What does '_' means? Rather I have seen 'req' which is very common used variable. Sometimes your code looks high level to me. I always want to code like you but for that I have to learn a lot and I am far behind you and this is the reason, Everytime I have to leave your twitch live stream in between because at that time you were teaching something which I don't know.

Astrovish
Автор

Hey, you can do `` git add . `` instead of `` git add -A ``

fernandosalazar