Commands
Repository Commands
Clone, copy, and reconfigure Git repositories for Kateb Tech projects.
Repository Commands
Clone using SSH
git clone git@github.com:katebtech/repository-name.gitClone using HTTPS
git clone https://github.com/katebtech/repository-name.gitClone into a custom folder
git clone git@github.com:katebtech/repository-name.git new-folder-nameChange repository ownership remote
Check:
git remote -vChange:
git remote set-url origin git@github.com:katebtech/repository-name.gitVerify:
git remote -vPush:
git push -u origin mainCopy an existing framework into a new repository
Clone temporarily:
git clone --depth 1 https://github.com/example/framework.git _framework_tmpCopy without the original .git directory:
rsync -av --exclude ".git" _framework_tmp/ ./Delete the temporary clone:
rm -rf _framework_tmpThen:
git add -A
git commit -m "Initial project created from framework"
git push -u origin main