Some instructions of git, mainly using gitee

Some instructions of git, mainly using gitee

Use git to upload code and other content and save your own data

  1. Git global settings:
git config --global user.name "小小洋洋"
git config --global user.email "[email protected]"
  1. 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"
  1. 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"
  1. Solve the problem that vscode needs to enter the user password every time git
git config --global credential.helper store 
  1. The main command for each upload is
git add .
git commit -m "V1.0"
git push origin master

Guess you like

Origin blog.csdn.net/Hot_Ant/article/details/125279625