first commit

This commit is contained in:
2025-11-01 09:52:00 +05:30
parent d8d0cff609
commit 2094857247
2 changed files with 74 additions and 1 deletions

View File

@@ -0,0 +1,74 @@
# actual
git config --global user.name "YOUR_NAME"
git config --global user.email "you@example.com"
git init
git add -A
git commit -m "first commit"
git branch -M main
# remove the previous server's url
git remote remove origin
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 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
# example snippet
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 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/<repo>.git
git config --global user.name "dhruv"
git config --global user.email "yuvrajyuvrajkukreja@gmail.com"
touch README.md
git add -A
git commit -m "first commit"
git branch -M main
git push -u origin main
# After you edit files (every time)
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