Hermes – git backup

You are here:Home-Resources-Hermes-Hermes – git backup
Hermes – git backup 2018-04-16T15:04:32+00:00
Set basic git config
git config --global user.name "Teo Cheng Lim"
git config --global user.email "teochenglim@gmail.com"
Get basic git config
git config --global user.email
git config --global user.name
I have an existing project with git and I want to push to remote repository
Step 1: Switch to your repository's directory
Step 2: Connect your existing repository to Bitbucket
git remote add origin https://username@bitbucket.org/username/repo_name.git
git push -u origin master
I have an existing remote git project, I want to continue working on it
git clone https://username@bitbucket.org/username/repo_name.git
cd projectfolder
echo "# My project's README" >> README.md
git add README.md
git commit -m "Initial commit"
git push -u origin master