Skip to content

1 Github Basics

Usefull commands

  • Use git clone <githubRepoURL> to clone repo
  • Use git reset --hard <commit-hash> to reset local repo to specific commit
  • Use git remote remove origin to disconnect local repo from origin to prevent pushing new commits
  • Use git remote -v to check remote repo url