Created
February 5, 2021 14:38
-
-
Save appwebd/95b6dd56a74112c6a5d356a01881e5b2 to your computer and use it in GitHub Desktop.
[git existing folder] Perform a git with existing folder in console bash #bash #git #gitlab #github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# author : Patricio Rojas Ortiz | |
# Purpose: Perform a git with existing folder in console bash | |
# Usage : In the DCL git-existing-folder.sh clients/project1 folder-versioned | |
# Note : CHANGE CHANGE the name git@gitlab.local.lab with your git server name. | |
git init | |
git remote add origin git@gitlab.local.lab:$1/$2.git | |
git add . | |
git commit -m "Initial commit" | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment