#here???

1 messages · Page 1 of 1 (latest)

sand swan
#
git add .
git commit -m "Initial commit"
git branch -M main   
git push -u origin main```
#

Adding the origin tells it what to track. You can also run git remote -v , if it's not the right origin you can run git remote set-url origin https://github.com/RidaNoor2/INTERNORBIT.git. I suspect you copied a folder, without copying git, and so your project is now currently not linked to github. sorry was on my phone, and couldn't see properly. but this should fix that.

#

When you view hidden folders, you will have a .git folder. this tracks changes and whatnot. You will no longer have to copy to backup folders, when you have git set up correctly.

#

Once this is all set up, future commands will be a, b, c.

git commit -m 'your msg'
git push```
You can also git checkout into a different branch e.g. develop, make changes, push to develop, and you will have different files in different branches. You can then merge one branch into another. this is more advanced but worth reading about
#

Here's an example, with a .git folder