- Git clone the repo
git clone <Input the HTTPS of the repo>
here it should be
git clone https://github.com/ironmanyu/robotics_labs.git
- if you have not a branch yet, you need to set up it. If you have a branch already, go to step 4.
git checkout -b <your account, for example zhitaoyu/testGitHub>
- Show your current branch: git branch shows your current branch
git branch
Note: always check which branch you are on and if it is the correct branch to push before run git push
- Do any operations you like such as create a .txt file. Add existing files to the repository :
git add .
- Commit this repository for the first time :
git commit -m "First commit"
- Push your commit to your branch on github.
git push
Note: if it is newly created branch run 'git push --set-upstream origin zhitaoyu/testGitHub' to push your changes.