Skip to content

Latest commit

 

History

History
63 lines (55 loc) · 1.02 KB

how-to-using-git.md

File metadata and controls

63 lines (55 loc) · 1.02 KB

How to using GIT

Checking command

git --version

Required

  • Github account

Step 1 (Create repository on github)

-> Create new Repository -> Create name -> Pick Public -> Click button

Step 2 (Copy Remote source of Repo)

-> Copy repo url *** https://github.com/prawee/67-tct32-strapi.git

Step 3 (Link Remote source and Repo)

  • make on your source code on local

Link repo

git status #red
git init
git remote add origin 
https://github.com/prawee/67-tct32-strapi.git
git status #red

Step 4 (Add files)

git add a.txt  | git add .  # . = all
git status #green

Step 5 (Note)

git commit -m "initial commit."
git status #nothing

Step 6 (Push)

first time

git push -u origin main

next time

git push

On error case

git config --list
git config --global user.email "[email protected]"

How to clone project

git clone https://github.com/prawee/cyber-security-admin.git
cd cyber-security-admin
ls # window use `dir`