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
- To know the local repo name
- To know the local branch
- What is the repo on server?
- 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
- git add . (This will add local files and sub directories to the local repo)
- git commit -m "some message" (will add them to stage in order to push
- 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
- Github desktop (Note: You have to add your repo to the the desktop. It won't detect automatically)
- Or an editor like VSCode (which has a host of plugins)