• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 12 páginas
Examen

Github Study Guide With Complete Solution

Document preview thumbnail
Vista previa 2 fuera de 12 páginas

Github Study Guide With Complete Solution...

Vista previa del contenido

Github Study Guide With
Complete Solution

Git vs Github - ANSWER Git is a Distributed Version Control System that
helps to track the changes in the source code. Git is simply a persistent hash
map wherein key is the hash of file and the value is the contents of the file.
Github is used to manage the remote repository. If you wanna use Git you
must install in your local machine.

cat command - ANSWER Allows us to create to create single or multiple files,
view contain of file, and concatenate files and redirect output in terminal or
files

nano - ANSWER edit the file using this shell command

what does git init do? - ANSWER creates the git repository and places the
hidden .git folder within the git repository

how to view hidden folders in finder - ANSWER command + shift + .

what are the four object types in git - ANSWER Blob, tree, commit, annotated
tag

what is blob - ANSWER It is an object type for git. Binary large object => Its
the object type used to store contents of each file in a repository (file data)

tree - ANSWER It's an object type for git. It stores information about
directories. In other words, it's just like a directory - it references bunch of
other trees and/or blobs, i.e. files and sub-directories

, commit - ANSWER Its an object type that allows to store different versions of
the project

annotated tag - ANSWER object type, which is a persistent pointer that
points to different commits

What does a hash function do? - ANSWER Generates a fixed length hash
based on the input. Same input will have the same hash. One way function.
Cannot get input based off hash. Only hash based off input

git hash-object - ANSWER allows us to create a new blob object type

sha1 bit size? - ANSWER 160 bits

how to create hash from string in command line ANSWER echo "Hello Git" |
shasum

what is the probability of reaching a specific hash given a file ANSWER
1/(2^160) => There are 2^160 possible options for SHA1 (160 bits)

git cat-file options ANSWER - git cat-file -p <hash> => contents of the
object

- git cat file -s <hash> => size of the object

- git cat file -t <hash> =>type of the object

how to git the hash of the a file or object using pipe - ANSWER echo "Hello,
Git" | git hash-object --stdin -w

--stdin => take input from standard input

- w => create git object

how would you write a string to a new file - ANSWER echo "Hello Git" >

Información del documento

Subido en
27 de octubre de 2024
Número de páginas
12
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$11.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Smooth
4.1
(67)
Vendido
353
Seguidores
216
Artículos
3029
Última venta
1 mes hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes