Git Operation


How to build a repository and upload files?

1.Build a new repository

2. Right-click and choose ‘git bash here’ in Local Project Folder, clone remote repository

git clone https://github.com/XXXXX/Your Project.git

3.Local Folder Initialization

cd Your Project
git init

5.Add files to Local Folder

git add .

6.Commit code with annotation

Annotations, like ‘initial commit’ are indispensable.

git commit -m 'initial commit'

7.push code to remote repository

git push


Author: cipher
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source cipher !
  TOC