мысли и фотки Чайной Эльфи - шоб было. метод проб и ошибок юзанья гит
June 6th, 2018
12:29 am

[Link]

Previous Entry Add to Memories Tell A Friend Next Entry
шоб было. метод проб и ошибок юзанья гит
aive@aive-H81M-S1 ~/github $ git init
Инициализирован пустой репозиторий Git в /home/aive/github/.git/

таки надо смотреть, в какой папке открыл терминал блин...

*Лёля Лох
aive@aive-H81M-S1 ~/github/madoka-magica-world $ git add test.md
aive@aive-H81M-S1 ~/github/madoka-magica-world $ git remote add origin https://github.com/aiveforever/madoka-magica-world
fatal: внешний репозиторий origin уже существует
aive@aive-H81M-S1 ~/github/madoka-magica-world $ git remote -v
origin https://github.com/aiveforever/madoka-magica-world (fetch)
origin https://github.com/aiveforever/madoka-magica-world (push)
aive@aive-H81M-S1 ~/github/madoka-magica-world $

особо надо быть внимательным, если скопировал не то и сунул не туда, то после придётся открыть новое окно, ибо в старом будет кашица и оно тебе скажет:
aive@aive-H81M-S1 ~/github/madoka-magica-world $ git commit -m "initial commit"
На ветке master
Ваша ветка опережает «origin/master» на 1 коммит.
(используйте «git push», чтобы опубликовать ваши локальные коммиты)

Изменения, которые не в индексе для коммита:
deleted: "\320\242\320\260\321\200\321\202 \320\274\320\260\320\263\320\270\320\272\320\260 2 \320\263\320\273\320\260\320\262\320\260.odt"

нет изменений добавленных для коммита
aive@aive-H81M-S1 ~/github/madoka-magica-world $ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

git config --global push.default simple

When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.

In Git 2.0, Git will default to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Username for 'https://github.com': *****@**.**
Password for 'https://*****@**.**@github.com':
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 274 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/aiveforever/madoka-magica-world
6561277..cb38c17 master -> master
aive@aive-H81M-S1 ~/github/madoka-magica-world $

aive@aive-H81M-S1 ~/github/madoka-magica-world $ git push -u origin master
Username for 'https://github.com': *****@**.**
Password for 'https://*****@**.**@github.com':
Ветка master отслеживает внешнюю ветку master из origin.
Everything up-to-date
aive@aive-H81M-S1 ~/github/madoka-magica-world $


итог.

всё проводится в той папке, в которой и дб
сваять файл - команда - git init
добавить рождённый файл в отслеживание гитом - git add README.md
где README.md имя файла
подружить локалку с натуралкой - git remote add origin +адрес репозитория
команда git remote -v поможет понять, правильно ли они подружились
фиксация изменений в репозиторий - git commit -m "initial commit"
залить все изменения на удалёнку - git push -u origin master (в том случае, если уже введены логин и пароль от экка на гите)

Tags: ,

(13 мяков | мяукнуть)

Comments
 
From:(Anonymous)
Date:June 5th, 2018 - 10:02 pm
(Link)
когда ты последний раз ебалась?
From:(Anonymous)
Date:June 5th, 2018 - 10:07 pm
(Link)
На балконе жи.
From:(Anonymous)
Date:June 5th, 2018 - 10:51 pm
(Link)
Что за стори с балконом?
From:(Anonymous)
Date:June 6th, 2018 - 12:46 pm
(Link)
у косыряши был единственный в жизни секс - на балконе, без анала, без орала, чисто классика с каким-то анимешником
[User Picture]
From:[info]aiveforever
Date:June 6th, 2018 - 01:11 pm
(Link)
пффф)))хахахаха)
[User Picture]
From:[info]valdor
Date:June 5th, 2018 - 10:05 pm
(Link)
Бложик Эльфи. Старикам тут невеста.
[User Picture]
From:[info]aiveforever
Date:June 5th, 2018 - 10:11 pm
(Link)
хахахаха) привет)
[User Picture]
From:[info]valdor
Date:June 5th, 2018 - 10:22 pm
(Link)
[User Picture]
From:[info]aiveforever
Date:June 5th, 2018 - 10:26 pm
(Link)
ок) гляну как-нибудь, когда на фильмы снова потянет (тут смотрела несколько серий "Только ты" с Орейро)
[User Picture]
From:[info]sadkov
Date:June 5th, 2018 - 10:23 pm
(Link)
>мухосранская русня окупирует гитхаб

Видимо это знак мне переходить на другой хостинг.
From:(Anonymous)
Date:June 5th, 2018 - 10:26 pm
(Link)
кстати, да.
[User Picture]
From:[info]aiveforever
Date:June 5th, 2018 - 10:27 pm
(Link)
дада, вали, хипстерок))
но таки у нас там благое дело - редач скриптов магиреко (для особо мозгом тронутых игра по Мадоке) и мой экк так для теста)
From:(Anonymous)
Date:June 6th, 2018 - 02:07 am
(Link)
лолчто
ня %-) Powered by LJ.Rossia.org