{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "!git config --global user.name \"lyhue1991\"\n", "!git config --global user.email \"lyhue1991@163.com\"\n", "\n", "# 出现一些类似 warning: LF will be replaced by CRLF in . 可启用如下设置。\n", "!git config --global core.autocrlf false\n", "\n", "# 配置打印历史commit的快捷命令\n", "!git config --global alias.lg \"log --oneline --graph --all\"" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "ExecuteTime": { "end_time": "2020-08-22T11:09:34.731929Z", "start_time": "2020-08-22T11:09:34.556119Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Reinitialized existing Git repository in /Users/liangyun/CodeFiles/PythonAiRoad/.git/\r\n" ] } ], "source": [ "!git init" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "ExecuteTime": { "end_time": "2020-09-07T01:41:38.941843Z", "start_time": "2020-09-07T01:41:38.692546Z" } }, "outputs": [], "source": [ "!git add -A " ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2020-09-07T01:41:47.324431Z", "start_time": "2020-09-07T01:41:47.088699Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[master 1eb8011] add streamlit\r\n", " 3 files changed, 2981 insertions(+), 6 deletions(-)\r\n", " create mode 100644 120分钟吃掉DIEN深度兴趣演化网络.ipynb\r\n", " create mode 100644 30行代码用streamlit快速构建你的机器学习应用.ipynb\r\n" ] } ], "source": [ "!git commit -m\"add streamlit\"" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "!git remote add origin git@github.com:lyhue1991/PythonAiRoad" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "usage: git remote set-url [--push] []\r\n", " or: git remote set-url --add \r\n", " or: git remote set-url --delete \r\n", "\r\n", " --push manipulate push URLs\r\n", " --add add URL\r\n", " --delete delete URLs\r\n", "\r\n" ] } ], "source": [ "#!git remote set-url origin" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "ExecuteTime": { "end_time": "2020-09-07T01:41:57.080849Z", "start_time": "2020-09-07T01:41:50.210110Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "From github.com:lyhue1991/PythonAiRoad\n", " * branch master -> FETCH_HEAD\n", "Already up to date.\n" ] } ], "source": [ "!git pull -f origin master " ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Enumerating objects: 7, done.\n", "Counting objects: 100% (7/7), done.\n", "Delta compression using up to 4 threads\n", "Compressing objects: 100% (5/5), done.\n", "Writing objects: 100% (5/5), 23.01 KiB | 4.60 MiB/s, done.\n", "Total 5 (delta 2), reused 0 (delta 0)\n", "remote: Resolving deltas: 100% (2/2), completed with 2 local objects.\u001b[K\n", "To github.com:lyhue1991/PythonAiRoad\n", " 8a438bd..1eb8011 master -> master\n" ] } ], "source": [ "!git push origin master " ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.8" } }, "nbformat": 4, "nbformat_minor": 2 }