Skip to content

Практическое задание №1

uralbash edited this page Feb 19, 2011 · 9 revisions

1 регистрация на github.com

2 установить git на компьютер, создать rsa ключ и активировать его на сайте

3 форкнуть репозитарий

practice1/Снимок-tommybolin-Python-practice2011 - GitHub-Mozilla Firefox.png

4 скопировать репозитарий практик на локальный компьютер

$ git clone [email protected]:tommybolin/Python-practice2011.git
Initialized empty Git repository in /home/uralbash/Python-practice2011/.git/
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 11 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (11/11), done.

**5** создать текстовый файл(в этой папке), где имя файла будет фамилия и инициалы студента написанные слитно в транслите > Пример: > Студент: Иванов Сергей Анатольевич > Имя файла: IvanovSA.txt
$ cd Python-practice2011/practice1/
$ touch testForWiki
$ git status 
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	testForWiki
nothing added to commit but untracked files present (use "git add" to track)



6 сохранить изменения в локальном репозитарии и отправить их в форкнуты репозитарий практик на github.com

$ git status 
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	testForWiki
nothing added to commit but untracked files present (use "git add" to track)

$ git add testForWiki

$ git commit 
[master ec529c8] add file testForWiki
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 practice1/testForWiki

$ git push [email protected]:tommybolin/Python-practice2011.git master
Counting objects: 5, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 368 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To [email protected]:tommybolin/Python-practice2011.git
   7edf502..ec529c8  master -> master



7 отправить запрос на pull

нажимаем запрос на pull
practice1/Снимок-Отправить запрос на пулл - GitHub-Mozilla Firefox.png

Отправить запрос на pull
practice1/Снимок-by tommybolin for uralbash's Python-practice2011 - Pull Request - GitHub-Mozilla Firefox.png
practice1/Снимок-Ваша панель - GitHub-Mozilla Firefox.png

Clone this wiki locally