modules

What the Git?

Help! I’m randomly typing git commands into the terminal.

Ok Ok…lets chill and take a systematic approach to this.

Where Am I?

pwd print working directory

Is this a git repository?

ls -a lists all files and folders in this directory. -a sands for all (to display hidden folders too).

You should see a folder called .git. If you don’t, you may need to

What has hapened here?

You can use the ↑ and ↓ arrows to look through your commit log.

Press q to quit.

What’s is happening now?

Breathe

Take a few breaths and make a mental picture of what’s going on.

Figure out what’s next

Tell yourself what needs to be done next before typing any commands: