git の説明 (主に gitee を使用)

git の説明 (主に gitee を使用)

git を使用してコードやその他のコンテンツをアップロードし、独自のデータを保存します

  1. Git のグローバル設定:
git config --global user.name "小小洋洋"
git config --global user.email "[email protected]"
  1. git リポジトリを作成します。
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. すでに倉庫をお持ちですか?
cd existing_git_repo
git remote add origin https://gitee.com/small-ocean/catkin_ws_src.git
git push -u origin "master"
  1. vscode が git のたびにユーザー パスワードを入力する必要がある問題を解決する
git config --global credential.helper store 
  1. 各アップロードの主なコマンドは次のとおりです。
git add .
git commit -m "V1.0"
git push origin master

おすすめ

転載: blog.csdn.net/Hot_Ant/article/details/125279625