On first glance, the command line looks intimidating but once you get the hang of it, it makes things quicker and easier.

Using the Command line for the first time

If you are a Windows user download Cmdr for an easier to use a terminal window.  It integrates with Git and allows you to use Ctl+C and Ctl+V saving you time.

When you open Cmdr you will land in your C drive

To see the contents of the folder

You can then change directory

Move back or up one folder level

Make a new folder

Move into the new folder

Creating a new file

Using Github with Cmder

Adding a file to a new or existing repo using Cmder is quicker and easier than using the desktop app. Here’s how to do it

Add a project

  • Create a new repo on Github.com
  • Under the repository name, click Clone or download
  • Copy the clone URL for the repository
  • Open Cmdr and change the current working directory to your project
  • Clone the repo

  • Create the files in your new repo and stage them

  • Commit the files with a useful message

  • Push to GitHub.com

Adding a file to a repo

  • Open Cmder and change the current working directory to your project
  • Stage the file

  • Commit the files with a useful message

  • Push to GitHub.com

That’s it!  The very, very basics of using the command line to move between folders, create new files and use Github.


Photo by Scott Webb on Pexels

This post first appeared on dev.to