GitHub from the Command Line: A Beginner's Guide Using git and gh
Briefly

GitHub from the Command Line: A Beginner's Guide Using git and gh
"Transparency: You see exactly what's happening. Speed: Fewer clicks, no mouse gymnastics. Scriptability: Automate repetitive tasks. Portability: Works the same across macOS, Linux, and Windows. Less mess ups: If we're honest, this is actually the main reason -so many people have had bad IDE/Git GUI experiences that many prefer the CLI VSCode is great - but sometimes it obscures what's happening, does things you don't expect, and leads you to sloppy choices. It really pays to know how to do it right."
"Somewhere on your computer, create a github.com directory to organize your GitHub repositories. Inside that directory, create a subdirectory for your GitHub user. mkdir github.comcd github.commkdir your-namecd your-name Clone your own repos and forks to your subdirectory. Create subdirectories for other users and orgs whose repos you clone. For example, if you clone a repo from github.com/YakDriver, create a YakDriver directory inside github.com. Then clone the YakDriver repo inside the YakDriver directory."
The Git command line offers transparency, speed, scriptability, portability, and fewer mistakes compared with IDE or GUI tools. Create a local github.com directory and a subdirectory named for the GitHub user to keep repositories organized. Clone personal repos and forks into the user subdirectory and create separate org or user subdirectories for repositories cloned from others. Create a new repository on GitHub via the web UI, optionally add a README, license, and .gitignore, then clone the repository locally using the repo link. Make local changes, commit them, and push commits to the remote using the CLI to control the full workflow. Ensure prerequisites are installed before beginning the hands-on exercises.
Read at Medium
Unable to calculate read time
[
|
]