Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 628 Bytes

READ.md

File metadata and controls

21 lines (11 loc) · 628 Bytes

2024_09_10-git

LOcal changes

git init; intializes new git repositiory in the current directory

git remote add origin ; adds a rmeote repository called origin with the specified URl

git branch -M main; renames the current brach to main

git push origin main; pushed the main branch to the rmeote repository

Working with changes on GIT

git restore ; Restores the specified file to the last committed state in the working directory

git diff : shows the differences between the working directory and the dtaging area for the specified file.

git restore --staged

git diff --staged