Some instructions of git, mainly using gitee
Use git to upload code and other content and save your own data
- Git global settings:
git config --global user.name "小小洋洋"
git config --global user.email "[email protected]"
- Create a git repository:
mkdir catkin_ws_src
cd catkin_ws_src
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/small-ocean/catkin_ws_src.git
git push -u origin "master"
- Already have a warehouse?
cd existing_git_repo
git remote add origin https://gitee.com/small-ocean/catkin_ws_src.git
git push -u origin "master"
- Solve the problem that vscode needs to enter the user password every time git
git config --global credential.helper store
- The main command for each upload is
git add .
git commit -m "V1.0"
git push origin master