GIT Flashcards

1
Q

Jak sprawdzić wersję git

A

git –version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Jak ustawić nazwę i email użytkownika

A

git config –global user.name “Andrew”

git config –global user.email “andrzejszomszor@gmail.com”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Print the working directory

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Change directory

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Make directory (utwórz folder)

A

mkdir “Hello”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Zainicjuj git w danej lokalizacji

A

git init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Sprawdź status

A

git status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Add all changes to the staging area.

A

git add -A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Skomituj zmiany (z opisem)

A

git commit -m “opis”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Przywróć zmiany

A

git checkout – *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Połącz repozytorium lokalne z bitbucket

A

git remote add origin git@bitbucket.org:AndrewSzo/modernweb.git

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Sprawdź ścieżkę do repozytorium w Bitbucket

A

git remote -v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Send project to the server

A

git push origin master

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Send project from server to local directory

A

git pull origin master

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Clone repository

A

git clone https://github.com/LearnWebCode/travel-site-files.git

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Od pull po push

A
git pull origin master 
*Change something*
git status
git add -A
git commit -m "opis"
git push origin master
17
Q

Make file (utwóz plik)

A

touch index.html