Module 4 Flashcards
What are other names for Working Directory?
Current Working Directory (CWD) and Working tree.
What Parse means?
To break something up into its parts and analyze it.
What is Hash?
An operation that converts one value to another. It is usually used to mask data with different data.
Ex: The original file name could be orangepants.docx and the hash could be absdfmoijgfsdnsadf. Both would point to the file.
What is the working directory in the following file path?: C:\Windows\Users\code.txt
Users.
Which one of the following terms means something different than the rest?
1. Working Directory
2. Staging area.
3. CWD
4. Current Directory
Staging Area
True or false?: Git is case sensitive.
True.
What “ls” does in bash?
List the files in the current directory.
What -a does in bash?
Apply to all.
Ex: ls -a would list all files including hidden ones.
What “git status” does?
Show in which branch you are and what is to be commited.
What git commit -m “Added new text file” does?
Commit what was prepared to be commited and anex the message in quotations to the commit. -m is short for message.
What echo ‘This is my text file’ > file.txt does?
Create a text file int the current directory with the text in quotations as content.
What “git add file.txt” does?
Stage file.txt to be commited. The add command stages and track untracked files.
What “git log” does?
Log the commit hash, author, data, and message for every commit.
What “add .” does?
Apply the add command to all files in the directory.
What “mkdir myCodeFiles” does?
Create a directory called myCodeFiles.
What “mv file2.txt myCodeFiles” does?
Move the file file2.txt to the myCodeFiles directory.
What “mv file2.txt myCodeFile.txt” does?
Rename file2.txt to myCodeFile.txt
In which directory you have to be to commit?
Main directory of repository.
What is staging?
To mark a file to be commited.
What is an untracked file?
Files that git “doesn’t know about”. Files not saved in your working directory and are not in your staging area.
What “git init MyRepository” does?
Initialize an empty Git repository in the current directory.
What git branch myFirstBranch does?
Create a branch called myFirstBranch
What git branch does?
List out the branchs for the current repository.
What git checkout myFirstBranch does?
Switch to the myFirstBranch branch.