| ▲ | himata4113 3 hours ago | ||||||||||||||||
It kind of is, you push to a repository which is not on your computer. Force push protection stops you from rewriting history and default branch on github is protected by default and requires an option to be disabled (or well used to, I use gitea these days). | |||||||||||||||||
| ▲ | bawolff an hour ago | parent | next [-] | ||||||||||||||||
The backup part of that is that you are sending a copy of your code to a separate server (github). It has nothing to do with git. Making a copy on a separate server would still be a backup even if you weren't using git. Using git without pushing your repo somewhere else would not be a backup. | |||||||||||||||||
| |||||||||||||||||
| ▲ | charcircuit 2 hours ago | parent | prev [-] | ||||||||||||||||
>you push to a repository which is not on your computer That is not a mandatory part of using source control. Modern source control can work entirely on your own computer. >Force push protection stops you from rewriting history This doesn't always exist and usually there are ways to disable it. | |||||||||||||||||
| |||||||||||||||||