Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Normalize Git Repo
- # Move insides of repo folder to the root
- # usage: normalize_git_repo.sh <BRANCH_NAME>
- fix_branch_name=$1
- goc $fix_branch_name
- echo $fix_branch_name >> README.md
- folder_name=($(ls -d */ | cut -f1 -d'/'))
- echo $folder_name
- mv $folder_name/* .
- rm -rf $folder_name
- gs
- git add -A
- gs
- git commit -am 'Normalized repo'
- gs
- git push origin HEAD
- goc master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement