Поиск по блогу

суббота, 22 ноября 2014 г.

Между делом восстановил аккаунт GitHub, ума не приложу, что с ним делать

Действительно - сервис отличный, знать его надо..., обнаружил консоль и отличные руководства..., но деньги платить за сокрытие моего "рабочего" кода... это пижонство. Получается, что публиковать там нечего? Ну как тут станешь приличным кодером?

В консоль можно войти через меню опций дескотклиена gitHub, а можно набрать "git shell" в поиске w8

In []:
C:\Users\kiss\Documents\GitHub\dirbot [master +7 ~0 -0 !]> git --help
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]

The most commonly used git commands are:
   add        Add file contents to the index
   bisect     Find by binary search the change that introduced a bug
   branch     List, create, or delete branches
   checkout   Checkout a branch or paths to the working tree
   clone      Clone a repository into a new directory
   commit     Record changes to the repository
   diff       Show changes between commits, commit and working tree, etc
   fetch      Download objects and refs from another repository
   grep       Print lines matching a pattern
   init       Create an empty Git repository or reinitialize an existing one
   log        Show commit logs
   merge      Join two or more development histories together
   mv         Move or rename a file, a directory, or a symlink
   pull       Fetch from and integrate with another repository or a local branch
   push       Update remote refs along with associated objects
   rebase     Forward-port local commits to the updated upstream head
   reset      Reset current HEAD to the specified state
   rm         Remove files from the working tree and from the index
   show       Show various types of objects
   status     Show the working tree status
   tag        Create, list, delete or verify a tag object signed with GPG

'git help -a' and 'git help -g' lists available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
C:\Users\kiss\Documents\GitHub\dirbot [master +7 ~0 -0 !]>

Сначала посмотрим, где мы

In []:
C:\Users\kiss\Documents\GitHub\dirbot [master +7 ~0 -0 !]> git status
# On branch master
# Your branch is behind 'origin/master' by 9 commits, and can be fast-forwarded.
#   (use "git pull" to update your local branch)
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       dirbot/__init__.pyc
#       dirbot/items.pyc
#       dirbot/pipelines.pyc
#       dirbot/settings.pyc
#       dirbot/spiders/__init__.pyc
#       dirbot/spiders/dmoz.pyc
#       us.stackdump
nothing added to commit but untracked files present (use "git add" to track)

В видеоролике на 4-ой минуте автор использует (в текущей папке создается пустой проект...)

In []:
git init 
In []:
Кроме того, на моей странице -[аккаунт](https://github.com/kiss2013/Python_1) выскочиал инструкция:
In []:
or create a new repository on the command line
In []:
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/kiss2013/Python_1.git
git push -u origin master
In []:
or push an existing repository from the command line
In []:
git remote add origin https://github.com/kiss2013/Python_1.git
git push -u origin master


Посты чуть ниже также могут вас заинтересовать

11 комментариев:

  1. https://guides.github.com/

    The easiest way to get started with GitHub

    ОтветитьУдалить
  2. pdf second edition ru
    https://losst.ru/wp-content/uploads/2016/08/progit-ru.1027.pdf?x11003

    ОтветитьУдалить
  3. https://habrahabr.ru/company/enterra/blog/241525/

    Вне всяких сомнений, Pro Git — это одна из лучших книг про систему контроля версий git. Совсем недавно появилось второе издание этой замечательной книжки.

    Большие изменения произошли в издательском процессе: исходный код книги теперь хранится в AsciiDoc, а не в Markdown, а различные форматы (PDF, ePub и Mobi) автоматически генерируются с помощью O'Reilly Atlas platform.

    Разработка книги активно ведётся на гитхабе, актуальная online-версия находится в открытом доступе на официальном сайте, а любители печатной продукции могут заказать себе экземпляр на Amazon.

    Второе издание получилось почти в два раза больше первого: на сегодняшний день PDF-версия содержит 570 страниц. Помимо улучшения старого материала, книжка также пополнилась новыми главами и разделами:

    ОтветитьУдалить
  4. 1.5 Введение - Первоначальная настройка Git
    https://git-scm.com/book/ru/v1/%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5-%D0%9F%D0%B5%D1%80%D0%B2%D0%BE%D0%BD%D0%B0%D1%87%D0%B0%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F-%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0-Git

    ОтветитьУдалить
  5. How to use Git - Git Video Tutorial - Part 1 (add, commit, push, pull, status)

    https://www.youtube.com/watch?v=DQUcmNO4diQ

    Опубликовано: 4 сент. 2011 г.
    Part 1 Jason Semko

    Commands:
    git add
    git commit
    git push
    git pull
    git status

    ОтветитьУдалить
  6. GitHub For Beginners: Commit, Push And Go
    https://readwrite.com/2013/10/02/github-for-beginners-part-2/

    ОтветитьУдалить
  7. git - the simple guide
    just a simple guide for getting started with git. no deep shit ;)

    http://rogerdudler.github.io/git-guide/

    ОтветитьУдалить
  8. Пожалуй, Vim нельзя просто запустить и начать работать — требуется определенная подготовка. Зато стоит раз испытать его в деле и поражаешься тому, как можно было без него обходиться.

    https://ru.wikibooks.org/wiki/Vim#.D0.9F.D0.B5.D1.80.D0.B5.D0.BA.D0.BB.D1.8E.D1.87.D0.B5.D0.BD.D0.B8.D0.B5_.D1.80.D0.B5.D0.B6.D0.B8.D0.BC.D0.BE.D0.B2

    ОтветитьУдалить
  9. Ну и вот то, что мне сечас (активное освоение и все очень кратко) нужно
    https://githowto.com/ru/setup

    ОтветитьУдалить