Took me a while to figure out how to use git lol, now its a few seconds process. So ill post this here if it helps anyone.
Git is used for working on new projects it allows you to work in groups, great for comparing files and generally a good way to share your work. The most known one is github, i prefer gitlab i find it easier and its worth learning how its done manually.
Firstly you will need gitbash for windows https://gitforwindows.org/
Once you have gitbash installed and you have a account on gitlab
Make a folder on your desktop, lets call it Master Git. Place a file in it, whatever its just to show you
this folder is linked to you project all uploads need to be placed in here so do not move or delete
Make a new project and you will receive a list with all the commands save these somewhere save
Now go inside the desktop/Master Git/folder, right click and select Git bash here

A window will pop up add these 3 commands from the saved list one by one this will set the folder to your project

Then add command link
git remote add origin https://gitlab.com/M-jay/git.git
Now enter these commands one by one ( after setup you only need to use these 3 commands for uploading)
git add .
git commit -m "Initial commit"
git push -u origin master
Lastly you will be asked for your username this is the gitlab username and your gitlab password

Once you have your project uploaded on gitlab add a branch this will be a copy of your original files.
A clone is basically like the desktop folder thats linked to your project i prefer doing it the way above but on github you can download your clone open gitbash and go through the commands above. On a clone the command link git remote add origin https://gitlab.com/M-jay/git.git is already added
After setup you just need to enter these 3 commands you can change the comment each time so its easier to find edited files
Add another file to the desktop master git folder and open git bash
git add .
git commit -m "new changes"
git push -u origin master
Git is used for working on new projects it allows you to work in groups, great for comparing files and generally a good way to share your work. The most known one is github, i prefer gitlab i find it easier and its worth learning how its done manually.
Firstly you will need gitbash for windows https://gitforwindows.org/
Once you have gitbash installed and you have a account on gitlab
Make a folder on your desktop, lets call it Master Git. Place a file in it, whatever its just to show you
this folder is linked to you project all uploads need to be placed in here so do not move or delete
Make a new project and you will receive a list with all the commands save these somewhere save
Git global setup
git config --global user.name "Mark "
git config --global user.email "mark@hotmail.com"
Create a new repository
git clone https://gitlab.com/M-jay/git.git
cd git
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Push an existing folder
cd existing_folder
git init
git remote add origin https://gitlab.com/M-jay/git.git
git add .
git commit -m "Initial commit"
git push -u origin master
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.com/M-jay/git.git
git push -u origin --all
git push -u origin --tagsNow go inside the desktop/Master Git/folder, right click and select Git bash here

A window will pop up add these 3 commands from the saved list one by one this will set the folder to your project

Then add command link
git remote add origin https://gitlab.com/M-jay/git.git
Now enter these commands one by one ( after setup you only need to use these 3 commands for uploading)
git add .
git commit -m "Initial commit"
git push -u origin master
Lastly you will be asked for your username this is the gitlab username and your gitlab password

Once you have your project uploaded on gitlab add a branch this will be a copy of your original files.
A clone is basically like the desktop folder thats linked to your project i prefer doing it the way above but on github you can download your clone open gitbash and go through the commands above. On a clone the command link git remote add origin https://gitlab.com/M-jay/git.git is already added
After setup you just need to enter these 3 commands you can change the comment each time so its easier to find edited files
Add another file to the desktop master git folder and open git bash
git add .
git commit -m "new changes"
git push -u origin master
