Git-cmd vs GitHub

Is it really a good idea to be using both git-cmd shell and GitHub?
It can get more confusing.

What is the major disadvantage if one creates the repo and add new contents directly into GitHub?

Developers tend to use this combined workflow quite a lot, given that through the GitHub UI it’s quite easy to make minor corrections to the code.

Through the GitHub UI you will commit changes to the remote repository straight away, whereas using the shell you will be working with your local repository, of course. Thereby, every time you modify something via the UI, you should then do a git pull to keep the two repos in sync and reduce the probability of conflicts while pushing upstream.

1 Like