- After you’re done with Part 1 , Let’s practice now.
- Just log into your github account and create a new repository
- After that, you go to the new repository page to copy the SSH or HTTPS url to clone the repository into local
- Then go back to git bash and type git clone url
- The repository is in your local destination now.
- Like you can add a new python script
- Add the code into buffering
$ git add .
- Notice there is a dot in the end of the command. It means add all things into the buffer. And there is a frequently-used command git status. It can check the status of your local repository now.
- Now commit your buffer
$ git commit -m "first commit"
- -m means the message you can record here.
- Now you can push your code into your github now
$ git push origin master
- And you can see the response message like this
- That means you push your local code into your github repository. And you can you can check your websit repository right now.