Skip to content

Instantly share code, notes, and snippets.

@gohilbhagirath90
Created May 7, 2015 08:56
Show Gist options
  • Save gohilbhagirath90/5e8bd81940629e8e1d9f to your computer and use it in GitHub Desktop.
Save gohilbhagirath90/5e8bd81940629e8e1d9f to your computer and use it in GitHub Desktop.
adding project to git
#!/bin/bash
git init
echo "git init successfully"
git status
echo "git status"
git add -f *
echo "adding files successfully"
echo "set-up email & name"
git config --global user.email gohil.bhagirath90@gmail.com
git config --global user.name bhagirtah
read -p "Enter commit message :: " message
git commit -m $message
read -p "Enter remote link :: " link
git remote add origin $link
echo "push data to remote"
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment