编程人 cdmana.com

Using git tool to upload local project to GitHub

Use Git Tools to upload local projects to Github

  1. Open and want to upload to Github Local working directory of the warehouse , Right click to select Git Bash Here.
  2. Local working directory initialization , Project space creation .git file , The file is hidden by default .
  3. Add items to the staging area (Stage/Index).
  4. Submit to local warehouse (Repository).
  5. Local warehouse Association github Remote warehouse .
  6. Code merge .
git init
git add .
git commit -m " The project submitted description information "
git remote add origin git@github.com:xxxxxx.git
git pull --rebase origin main
git push -u origin main 
Scroll to Top