Update gitea_client_uploader_comands.sh
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
# actual
|
|
||||||
git config --global user.name "YOUR_NAME"
|
|
||||||
git config --global user.email "you@example.com"
|
|
||||||
|
|
||||||
git init
|
git init
|
||||||
git add -A
|
git add -A
|
||||||
@@ -11,9 +9,10 @@ git branch -M main
|
|||||||
git remote remove origin
|
git remote remove origin
|
||||||
|
|
||||||
|
|
||||||
|
# add remoe directory origin url
|
||||||
git remote add origin http://192.168.1.203:3100/<user>/<repo>.git # local ip
|
git remote add origin http://192.168.1.203:3100/<user>/<repo>.git # local ip
|
||||||
git remote add origin https://github.generalinfinity.cloud/<user>/<repo>.git # gloabl ip
|
git remote add origin https://github.generalinfinity.cloud/<user>/<repo>.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/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/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 http://192.168.1.203:3100/dhruv/Free-unlimited-VPN-for-Linux.git
|
||||||
@@ -26,19 +25,26 @@ git push -u origin main
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# example snippet
|
|
||||||
|
# add remote server's origin url
|
||||||
|
|
||||||
git remote set-url origin http://192.168.1.203:3100/<user>/<repo>.git # loacl ip
|
git remote set-url origin http://192.168.1.203:3100/<user>/<repo>.git # loacl ip
|
||||||
git remote set-url origin https://github.generalinfinity.cloud/<user>/<repo>.git $ global ip
|
git remote set-url origin https://github.generalinfinity.cloud/<user>/<repo>.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/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/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 http://192.168.1.203:3100/dhruv/power-button-to-Rustdesk.git
|
||||||
git remote set-url origin https://github.generalinfinity.cloud/aksh_intern/<repo>.git
|
git remote set-url origin https://github.generalinfinity.cloud/aksh_intern/<repo>.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.name "dhruv"
|
||||||
git config --global user.email "yuvrajyuvrajkukreja@gmail.com"
|
git config --global user.email "yuvrajyuvrajkukreja@gmail.com"
|
||||||
|
|
||||||
touch README.md
|
touch README.md # optional
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "first commit"
|
git commit -m "first commit"
|
||||||
git branch -M main
|
git branch -M main
|
||||||
@@ -51,15 +57,15 @@ git push -u origin main
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# After you edit files (every time)
|
# After you edit files (every time) updae the Repositories
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "update"
|
git commit -m "update"
|
||||||
|
git branch -M main
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# sync with git with GitEa (pull, then push):
|
||||||
# Safe fix (pull, then push):
|
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git pull --rebase origin main
|
git pull --rebase origin main
|
||||||
# resolve any conflicts if asked
|
# resolve any conflicts if asked
|
||||||
@@ -67,8 +73,8 @@ git push -u origin main
|
|||||||
|
|
||||||
|
|
||||||
# If you really want to overwrite remote with your local:
|
# If you really want to overwrite remote with your local:
|
||||||
git push --force-with-lease origin main
|
git push --force-with-lease origin main # force update the GitEa's Repositories
|
||||||
|
|
||||||
|
|
||||||
# tracked by git ( log the git )
|
# tracked by git ( log the files stored in the local git )
|
||||||
git ls-files
|
git ls-files
|
||||||
Reference in New Issue
Block a user