git init git add -A git commit -m "first commit" git branch -M main # remove the previous server's url git remote remove origin # add remoe directory origin url git remote add origin http://192.168.1.203:3100//.git # local ip git remote add origin https://github.generalinfinity.cloud//.git # gloabl ip # examples git remote add origin http://192.168.1.203:3100/dhruv/genesis.git git remote add origin http://192.168.1.203:3100/dhruv/power-button-to-Rustdesk.git git remote add origin http://192.168.1.203:3100/dhruv/Free-unlimited-VPN-for-Linux.git git remote add origin https://github.generalinfinity.cloud/Free-unlimited-VPN-for-Linux.git git push -u origin main # add remote server's origin url git remote set-url origin http://192.168.1.203:3100//.git # loacl ip git remote set-url origin https://github.generalinfinity.cloud//.git $ global ip # examples git remote set-url origin http://192.168.1.203:3100/dhruv/genesis-.git git remote set-url origin http://192.168.1.203:3100/dhruv/Free-unlimited-VPN-for-Linux.git git remote set-url origin http://192.168.1.203:3100/dhruv/power-button-to-Rustdesk.git git remote set-url origin https://github.generalinfinity.cloud/aksh_intern/.git # actual git config --global user.name "YOUR_NAME" git config --global user.email "you@example.com" # examples git config --global user.name "dhruv" git config --global user.email "yuvrajyuvrajkukreja@gmail.com" touch README.md # optional git add -A git commit -m "first commit" git branch -M main git push -u origin main # After you edit files (every time) updae the Repositories git add -A git commit -m "update" git branch -M main git push # sync with git with GitEa (pull, then push): git fetch origin git pull --rebase origin main # resolve any conflicts if asked git push -u origin main # If you really want to overwrite remote with your local: git push --force-with-lease origin main # force update the GitEa's Repositories # tracked by git ( log the files stored in the local git ) git ls-files #Delete last commit from Gitea branch: git reset --hard HEAD~1 # undo the git changes git push --force-with-lease origin main # update he git to GitEa backend # bypass certificate desable ssl verification git config --global http."https://github.generalinfinity.cloud/".sslVerify false git config --global http.sslVerify false # save username and password to local system . ( so that there will not be any need to enter username and password for every git clone on Private repositories ) git config --global credential.helper store # log the username and encoded_password ( need to ask chatGpt to deCode the encoded-password) cat ~/.git-credentials