Truy cập vào link sau để cài đặt Git https://git-scm.com/
git --version
Hay
git -v
git init
git add .
git config --global user.email "refactortop@gmail.com"
git config --global user.name "refactortop"
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
git remote add origin https://github.com/refactortop/Store.git
git branch -M main
git push -u origin main
Vào repository muốn share, chọn Setting, chọn Collaborators, rồi Add People
git clone https://github.com/refactortop/Store.git
git status
git add .
git commit -m "update code here"
git push
git pull
git status
git add .
git commit -m "update code here"
git push