Use ssh to avoid GitHub password every time
- Creating a new SSH key and adding it to the ssh-agent
- Adding a new SSH key to your GitHub account
- Changing a remote’s URL
Git delete
1.Delete from both local disk and GitHub
git rm test.txt
git commit -m "remove"
git push origin master
2.Delete only from GitHub
git rm --cached test.txt
git commit -m "remove"
git push origin master