Kateb Tech Docs
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.git

Clone using HTTPS

git clone https://github.com/katebtech/repository-name.git

Clone into a custom folder

git clone git@github.com:katebtech/repository-name.git new-folder-name

Change repository ownership remote

Check:

git remote -v

Change:

git remote set-url origin git@github.com:katebtech/repository-name.git

Verify:

git remote -v

Push:

git push -u origin main

Copy an existing framework into a new repository

Clone temporarily:

git clone --depth 1 https://github.com/example/framework.git _framework_tmp

Copy without the original .git directory:

rsync -av --exclude ".git" _framework_tmp/ ./

Delete the temporary clone:

rm -rf _framework_tmp

Then:

git add -A
git commit -m "Initial project created from framework"
git push -u origin main

On this page