diff --git a/DEMO copy.PY b/DEMO copy.PY deleted file mode 100644 index 7a4b892..0000000 --- a/DEMO copy.PY +++ /dev/null @@ -1,3 +0,0 @@ -12345 - -67890 \ No newline at end of file diff --git a/DEMO.PY b/DEMO.PY deleted file mode 100644 index bd41cba..0000000 --- a/DEMO.PY +++ /dev/null @@ -1 +0,0 @@ -12345 \ No newline at end of file diff --git a/README copy.md b/README copy.md deleted file mode 100644 index 8540ee7..0000000 --- a/README copy.md +++ /dev/null @@ -1 +0,0 @@ -hi 123 \ No newline at end of file diff --git a/README.md b/README.md index b6fc4c6..d3d186b 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -hello \ No newline at end of file +this repo is a cheet sheet for popular gitEa commands . \ No newline at end of file diff --git a/gitea_client_uploader_comands.sh b/gitea_client_uploader_comands.sh index 8261161..f13f106 100644 --- a/gitea_client_uploader_comands.sh +++ b/gitea_client_uploader_comands.sh @@ -6,13 +6,31 @@ git init git add -A git commit -m "first commit" git branch -M main -git remote add origin http://192.168.1.203:3000//.git + +# remove the previous server's url +git remote remove origin + +git remote add origin http://192.168.1.203:3100/dhruv/genesis-basic-code.git +git remote add origin http://192.168.1.203:3100/dhruv/docker-based-power-button-to-Rustdesk-starter-script.git +git remote add origin http://192.168.1.203:3100/dhruv/Free-unlimited-VPN-for-Linux.git +git remote add origin http://192.168.1.203:3100//.git + +git remote add origin https://github.generalinfinity.cloud/Free-unlimited-VPN-for-Linux.git git push -u origin main + + + + # example snippet -git remote set-url origin http://192.168.1.203:3000/dhruv/first.git + +git remote set-url origin http://192.168.1.203:3100/dhruv/genesis-basic-code.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/docker-based-power-button-to-Rustdesk-starter-script.git +# git remote set-url origin https://github.generalinfinity.cloud/aksh_intern/computer_vision.git git config --global user.name "dhruv" git config --global user.email "yuvrajyuvrajkukreja@gmail.com" @@ -28,3 +46,20 @@ git push -u origin main git add -A git commit -m "update" git push + + + + +# Safe fix (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 + + +# tracked by git ( log the git ) +git ls-files \ No newline at end of file