Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 450 Bytes

Git.md

File metadata and controls

32 lines (18 loc) · 450 Bytes

Cloing repos

git clone https://github.com/<user>/<repo_name>.git

cd <repo_name>

Making changes

cd <repo_name>

git pull

git checkout -b newBranch or git checkout existingBranch

[make the changes]

git add .

git commit -m "Commit message"

git push origin newBranch

[make PR]

git checkout main

git branch -D newBranch

Undoing changes that are NOT yet committed

git reset

git checkout .

git clean -fd