Skip to content

Instantly share code, notes, and snippets.

View jeffallen's full-sized avatar

Jeff Allen jeffallen

View GitHub Profile
@josephhainline
josephhainline / convert_github_md_to_gitlab_format.sh
Created May 10, 2015 02:30
If you have repos in github that you'd like to port to gitlab, with all branches and tags, this will do it. If you want to port your wikis too, this will also work, although it's only a 90% solution for wikis. Github and gitlab use different file name and markdown conventions. Run the command port_repos_and_wikis_from_github_to_gitlab.sh to get …
#!/bin/bash
echo
echo "Processing all *.md files in current directory..."
echo
# Loop through all .md files in directory and rename spaces to dashes
for file in *" "*; do
echo "Renaming $file"
mv -- "$file" "${file// /-}"