Git command line
Git command line
After all I needed this as well :(
After all I needed this as well :(
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!!
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)
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)