Common Git Tricks
Below are some of the more common things we’ll do this semester with Git and GitHub (aside from your standard commit, push, and pull)
Clone a repository and set as your own
- Clone repository to desktop or AWS
- Create your own repository in GitHub
- Remove remote,
git remote rm origin
- Set new remote
git remote add origin NEW_URL
(where NEW_URL is your own repository) - git push origin HEAD:master
- git push –set-upstream origin master