1. create a repository in you github.
i.e. repository name: spring5_exercise
2. initial git profile in your local project root directory.
echo "# spring5_exercise" >> README.md git init git add README.md git commit -m "first commit" git remote add origin git@github.com:VictoriaLau/spring5_exercise.git git push -u origin master
There are two way to connect your github repository, they are https & ssh.
ssh link like "git@github.com:yourGithubAccount/githubRepositoryName.git" i.e.: "git@github.com:VictoriaLau/spring5_exercise.git"
https link like "https://github.com/yourGithubAccount/githubRepositoryName.git"