echo 'alias open="explorer.exe"' >> ~/.bashrc
source ~/.bashrc
Now run:
open .
ssh-keygen -t rsa -b 4096 -C "youremail@host.com"
cat ~/.ssh/id_rsa.pub
Then copy and paste into GitHub settings, SSH and GPG keys.
git init
git add .
git commit -am"Initial commit."
git branch -M master
git remote add origin git@github.com:username/repo
git push -u origin master
git clone --mirror <original_repository>
git remote rm origin
git remote add origin <new_blank_repo>
git push origin --all
git push --tags
git tag v0.1-alpha
git tag -a v0.1-alpha -m "Version 0.1 Alpha"
git push origin v0.1-alpha
git checkout v0.1-alpha
git checkout --orphan branch_name
git rm -rf .
git commit --allow-empty -m "Root commit."
git push origin branch_name
git submodule add git@github.com:username/submodule
git submodule update --init --recursive
cd <submodule_directory>
git pull origin master
git rm <path_to_submodule>
Note: This will keep the .git
reference to allow checking out old commits. To remove this, follow the additional steps below:
rm -rf .git/modules/<path_to_submodule>
git config --remove-section submodule.<path_to_submodule>