💾 Archived View for bbs.archaicbinary.net › blog › how-to › 2023.04.27-Push%20Files%20to%20GIT%20Ser… captured on 2024-05-12 at 14:53:18.
⬅️ Previous capture (2023-07-10)
-=-=-=-=-=-=-
Make sure to install Git on your computer. Open your command line or console change to the folder that you want to push to your GIT service. Then, follow the following steps running commands in single quotes, without the single quotes included. :: Local Commands - Type 'git init' (this will make the folder a repository) - Type 'git add .' (this will add all files to the repository) - Type 'git commit -m "Initial commit msg"' (all files now in the repository) - Type 'git status' (you will get a message, "On branch master nothing to commit, working tree clean" this shows your local repository is finally created) :: GIT Service - Open/Connect to your GIT service and create a New Repository. Copy the SSH Key of that created repository or HTTPS link. - Type 'git remote add origin PASTE_SSH_KEY_OR_HTTPS_LINK_OF_CREATED_REPO' - Then type 'git push origin master -force' (type "main" in place of the "master" if your default branch is master).