Skip to content

Instantly share code, notes, and snippets.

@appwebd
Created February 5, 2021 14:35
Show Gist options
  • Save appwebd/49a7041cc0efdf91e3b9ebbd9ba945b0 to your computer and use it in GitHub Desktop.
Save appwebd/49a7041cc0efdf91e3b9ebbd9ba945b0 to your computer and use it in GitHub Desktop.
[git create a new repository] Perform a git create a new repository in console bash #bash #git #gitlab #github
#!/bin/bash
# author : Patricio Rojas Ortiz
# Purpose: Perform a git create a new repository in console bash
# Usage : In the DCL git-create-a-new-repository.sh clients/project1 folder-versioned
# Note : CHANGE CHANGE the name git@gitlab.local.lab with your git server name.
git clone git@gitlab.local.lab:$1/$2.git
cd bin
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment