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 [email protected]: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 "[email protected]:yourGithubAccount/githubRepositoryName.git" i.e.: "[email protected]:VictoriaLau/spring5_exercise.git"
https link like "https://github.com/yourGithubAccount/githubRepositoryName.git"