Programming C#

Git Hub In Visual Code

Install GIS

Truy cập vào link sau để cài đặt Git https://git-scm.com/

Check version

git --version
Hay
git -v

Config Email

git init
git add .
git config --global user.email "refactortop@gmail.com" 
git config --global user.name "refactortop"  
    

Create a new repository on the command line

echo "# Store" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/refactortop/Store.git
git push -u origin main

Push an existing repository from the command line

push an existing repository from the command line
git remote add origin https://github.com/refactortop/Store.git
git branch -M main
git push -u origin main
    

Share repository

Vào repository muốn share, chọn Setting, chọn Collaborators, rồi Add People

Clone repository

git clone https://github.com/refactortop/Store.git

Push repository

git status
git add .
git commit -m "update code here"
git push
    

Pull and Push

git pull
git status
git add .
git commit -m "update code here"
git push