Git command line

satya - 10/16/2023, 1:32:44 PM

After all I needed this as well :(

After all I needed this as well :(

satya - 10/16/2023, 2:00:00 PM

Confusing part

  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!!

satya - 10/16/2023, 2:02:31 PM

To push latest code to server

  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)

satya - 10/16/2023, 2:05:48 PM

or you can use

  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)