Git command line

After all I needed this as well :(

  1. To know the local repo name
  2. To know the local branch
  3. What is the repo on server?
  4. Some of the commands yield no results if the repo is brand new!!
  1. git add . (This will add local files and sub directories to the local repo)
  2. git commit -m "some message" (will add them to stage in order to push
  3. git push origin master (where origin points to the remote server and the branch being the master)
  1. Github desktop (Note: You have to add your repo to the the desktop. It won't detect automatically)
  2. Or an editor like VSCode (which has a host of plugins)