-
-
Save keithmorris/f4881fff00689e49131e to your computer and use it in GitHub Desktop.
Simple shell script to initialize a Git repository, create an initial commit, add origin server, create a develop branch and push to the server
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
#!/usr/bin/env bash | |
git init . | |
touch .gitignore | |
git add --all | |
git commit -m"initial commit" | |
git remote add origin $1 | |
git branch develop | |
git push origin --all | |
git push origin --tags | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
create full programm nitialize a New Git Repository (10 Minutes)
# Version Control System Practical
This repository is for practical tasks on Git basics.
"Initial commit with README file"